// JavaScript Document
function repositionBannerNotIE(objId){
		var scrollWidth = window.scrollX;
		var scrollHeight = window.scrollY;
		var documentWidth = window.innerWidth;
		var documentHeight = window.innerHeight;
		var bannerWidth = document.getElementById(objId).offsetWidth;
		var bannerHeight = document.getElementById(objId).offsetHeight;
		var docWidthDiv2 = documentWidth/2;
		var banWidthDiv2 = bannerWidth/2;
		var docHeightDiv2 = documentHeight/2;
		var banHeightDiv2 = bannerHeight/2;
		var bannerposx = ( window.scrollX + docWidthDiv2 - banWidthDiv2 );
		var bannerposy = ( window.scrollY + docHeightDiv2 - banHeightDiv2 );
		var theValToString = (bannerposy - 20) + "px";
		document.getElementById(objId).style.marginTop = theValToString;
	}
		function repositionBannerIfShitIE(objId){
		var scrollWidth = document.body.parentNode.scrollLeft;
		var scrollHeight = document.body.parentNode.scrollTop;
		var documentWidth = document.body.offsetWidth;
		var documentHeight = document.body.offsetHeight;
		var windowHeight = window.document.body.parentNode.clientHeight/2;
		var bannerWidth = document.getElementById(objId).offsetWidth;
		var bannerHeight = document.getElementById(objId).offsetHeight;
		var docWidthDiv2 = documentWidth/2;
		var banWidthDiv2 = bannerWidth/2;
		var docHeightDiv2 = documentHeight/2;
		var banHeightDiv2 = bannerHeight/2;
		var scrollHeight2 = scrollHeight/2;
		var bannerposx = ( scrollWidth + docWidthDiv2 - banWidthDiv2 );
		var bannerposy = ( scrollHeight + windowHeight - banHeightDiv2 );
		var val2STR = (bannerposy - 20).toString();
		var theValtoString =  val2STR + "px";
		document.getElementById(objId).style.setAttribute("marginTop", theValtoString, false); 
	}
	function showDropdown(nme){
		var objId = nme
		if (window.navigator.appName != 'Microsoft Internet Explorer'){
			repositionBannerNotIE(nme);
			//alert("not ie")
		}else if (window.navigator.appName == 'Microsoft Internet Explorer'){
			repositionBannerIfShitIE(nme);
			//alert("ie");
		}
		var nowWorkinOn = document.getElementById(nme).style.visibility="visible";
		//document.getElementById(nme).parentNode.style.position="absolute";
		
	}
	function hideDropdown(nme){
		document.getElementById(nme).style.visibility="hidden";
	}
	function showcitationLocation(nme){
		document.getElementById(nme).style.visibility="hidden";
		window.location.href="#citation";
	}
