
/*FLASH DETECTION*/
var baseUrl = window.location.protocol + '//' + window.location.hostname;
document.write('<script language="VBScript" type="text/vbscript" src="' + baseUrl + '/script/flash.vb"></script>');
document.write('<script language="Javascript" type="text/javascript" src="' + baseUrl + '/script/flash.js"></script>');


/*PAGE BOTTOM*/
function pageBottom(){
	removeAnchorHighlights();
	upLinkHover();
}



function removeAnchorHighlights(){
	var links = document.getElementsByTagName("A");
	for(var i = 0 ; i < links.length ; i++){
		links[i].onfocus = function(){this.blur()};
	}
}

function upLinkHover(){
	var upLink = document.getElementById("localNavUpLink");
	if(!upLink)return;
	upLink.onmouseover = function(){this.style.backgroundPosition="0px -21px"}
	upLink.onmouseout = function(){this.style.backgroundPosition="0px 0px"}
}


function displayMedia(type, name, width, height){

	var left =  Math.round(screen.width/2 - width/2);
	var top = Math.round(screen.height/2 - height/2);


	var newWindow = window.open(
		"/display-media.php?type=" + type + "&name=" + name + "&width=" + width + "&height=" + height,
		"",  "top=" + top +   ",width=450,height=450,scrollbars=no,left=" + left+ ",screenX=" + left + ",screenY=" + top
	);
	
	//newWindow.moveTo(0,200);
	
}