function onLoadFlashContainer() {
	document.getElementById("flashcontainer").style.width = "100%";
	document.getElementById("flashcontainer").style.height = "100%";
	resizeFlashContainer();
}

function getWinSize() {
	var winH, winW;
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
	}
	return {height: winH, width: winW};
}

function resizeFlashContainer() {
	var winSize = getWinSize();
	var w = winSize.width < 1000? "1000px" : "100%";
	var h = winSize.height < 540? "540px" : "100%";
	if (navigator.appName.indexOf("Microsoft") != -1) {
		if (w!="100%" || h!="100%") {
			document.body.overflow = "auto";
		} else {
			document.body.overflow = "hidden";
		}
	}
	document.getElementById("flashcontainer").style.width = w;
	document.getElementById("flashcontainer").style.height = h;
}

if (window.attachEvent) {
	window.attachEvent("onresize", resizeFlashContainer);
	document.getElementById("flashcontainer").focus();
} else {
	window.addEventListener("resize", resizeFlashContainer, false);
}	

onLoadFlashContainer();


function openCompanyInfo(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 690,top = 325');");
}

function openCertifications(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=455,left = 690,top = 325');");
}

function openImportantNotices(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=445,left = 690,top = 325');");
}




