/* browser specific stylesheets
----------------------------------------------------------------------------*/
/*
if (browser.isSafari){
	loadStylesheet("safari.css");
} else if (browser.isWin && browser.isIE){
	loadStylesheet("ie_win.css");
	if (browser.versionMajor==7)
		loadStylesheet("ie_win_7.css");
	else if (browser.versionMajor==6)
		loadStylesheet("ie_win_6.css");
}

/* misc
----------------------------------------------------------------------------*/
/*
var currentTab=1;

function showTab(tab){
	if (currentTab == tab)
		return;
	$("tab"+tab+"-content").style.visibility="visible";	
	$("tab"+tab).className+=" selected";	
	$("tab"+currentTab+"-content").style.visibility="hidden";
	$("tab"+currentTab).className=removeClass($("tab"+currentTab).className, "selected");
	currentTab=tab;
}

function selectSubject(selectObj){
		if (selectObj.selectedIndex==0)
			return;
		location.href="subject_index_"+selectObj.options[selectObj.selectedIndex].value+".html";
}
*/
function flashVideoRollover (width, height, video, link) {
	AC_FL_RunContent('codebase',"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0",
		'width',width+4,'height',height+4,'id','portfolio','align','middle','allowScriptAccess','sameDomain','movie','flvrollover',
		'quality','high','bgcolor','#ffffff', 'FlashVars', 'video=../video/'+video+'&link='+link, 'src','../flash/flvrollover?video=../video/'+video+'&link='+link,
		'type',	'application/x-shockwave-flash','pluginspage','https://www.macromedia.com/go/getflashplayer');
}

function flashVideoRollover2 (sizeType, video, image, linkURL) { //elliot
	var swf;
	var width;
	var height;
	switch(sizeType){
		case "128": //still working on this. just ignore this case for now... -elliot
				swf = 'flvrollover_128';
				width = 128;
				height = 96;
				break;
		case 'large':
				swf = 'flvrollover_large';
				width = 160;
				height = 120;
				break;
		case 'small':
		default:
				swf = 'flvrollover_small';
				width = 128;
				height = 96;
				break;
	}
	
	AC_FL_RunContent('codebase',"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0",
		'width',width,'height',height,'id','portfolio','align','middle','allowScriptAccess','sameDomain','movie','flvrollover',
		'quality','high','bgcolor','#ffffff', 'FlashVars', 'video='+video+'&image='+image+'&link='+linkURL, 'src','../flash/'+swf+'?video='+video+'&image='+image+'&link='+linkURL,
		'type','application/x-shockwave-flash','pluginspage','https://www.macromedia.com/go/getflashplayer');
}

function flashVideoRollover3 (width, height, video, image, linkURL) { //elliot
	AC_FL_RunContent('codebase',"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0",
		'width',width,'height',height,'id','portfolio','align','middle','allowScriptAccess','sameDomain','movie','flvrollover_new',
		'quality','high','bgcolor','#ffffff', 'FlashVars', 'video='+video+'&image='+image+'&link='+linkURL, 'src','../flash/flvrollover_new?video='+video+'&image='+image+'&link='+linkURL,
		'wmode','transparent','type','application/x-shockwave-flash','pluginspage','https://www.macromedia.com/go/getflashplayer');
}

/* scroller
----------------------------------------------------------------------------*/
/*
function initScroll(containerId, contentId, left, speed, interval){	
	var container=$(containerId);
	if (container != null){
		var content=$(contentId);
		container.style.visibility = 'visible';
		container.scrollSpeed = speed;
		content.style.left=left+"px";
		interval=setInterval("contentScroll('"+ containerId +"','"+ contentId +"')",interval);		
	}
}

function contentScroll(containerId, contentId){
	var container=$(containerId);
	var content=$(contentId);
	if (parseInt(content.style.left)>(content.offsetWidth*(-1))){
		content.style.left=parseInt(content.style.left)-container.scrollSpeed+"px";
	} else {
		content.style.left=parseInt(content.offsetWidth)+"px";
	}
} 

/* initialisation
----------------------------------------------------------------------------*/
/*
function main_init(){		
	//feature specific initialisation
	if (hasNewsTicker)
		initScroll("newsTicker", "newsTicker-content", 20, 1, 10);
}

runOnLoad(main_init);
*/