// JavaScript Document


function open_imirus(params) {
	window.open('/Mpowered/imirusApp.jsp?'+ params,'imirus','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=1045,height=780');
}//close open_tableaux


function FullScreen() {
	window.moveTo(0,0);
	window.resizeTo(window.screen.availWidth, window.screen.availHeight);
	window.focus();
}//close FullScreen

function StandardScreen() {
	window.resizeTo(1024, 885);
	window.moveTo(((window.screen.availWidth/2) - (1024/2)),0);
	window.focus();
}//close FullScreen


function open_imirus_virtual(server, params) {
	window.open(server + '/imirusApp.jsp?' + params,'imirus','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=1045,height=780');
}//close open_tableaux


function open_imirus_secondary() {
	window.open('/imirusApp.jsp?'+ params,'imirusSec','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=1045,height=780');
}//close open_imirus_secondary


function close_win() {
	window.close();	
}//close close_win


function loadPubTitle(pTitle) {
	parent.document.title = pTitle;
}//close loadPubTitle


function changeBannerAd(params) {

	//parent.frames['banner'].window.location.reload();
	document.getElementById('a57f1c7e').src = document.getElementById('a57f1c7e').src
	return "1";	
	
}//close changeBannerAd


function hideBannerFrame(params) {
	
	//get the scrollHeight as it reports accurately the current size of content.
	var the_height = parent.document.getElementById('frame').contentWindow.document.body.scrollHeight;
	
	//alert(params);
	if (params == "true") {
		
		parent.document.getElementById('frame').style.height = the_height+92+"px";
		parent.document.getElementById('banner').style.height = "0px";
		parent.frames['banner'].window.location = "./blank.html";
		
	}//close if
	else {

		parent.frames['banner'].window.location = "./adsB.jsp";
		parent.document.getElementById('frame').style.height = the_height-92+"px";
		parent.document.getElementById('banner').style.height = "92px";
		
	}//clsoe else
	
	return window.screen.availHeight;
	
}//close showHideBannerFrame


