var needCompatibility = false;

if ((navigator.appName.indexOf("Microsoft")!=-1) && (Number(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5,navigator.userAgent.indexOf("MSIE")+6)) < 8)) needCompatibility = true;

function checkCompatibility(){
	if (needCompatibility) {
		if (document.getElementById("imgView") != null) {
			document.getElementById("imgView").style.width = document.documentElement.clientWidth;
			document.getElementById("imgView").style.height = document.documentElement.clientHeight;
			document.getElementById("imgView").style.top = "0px";
		};
		for (i = 1; i <=7; i++)
			document.getElementById("barMenu"+String(i)).style.top = String(parseInt(document.documentElement.scrollTop,10) + 100)+"px";
	}
}

if ((navigator.appName.indexOf("Microsoft")!=-1) && (Number(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5,navigator.userAgent.indexOf("MSIE")+6)) < 8)) {
	document.getElementById("weMainMenu").style.position = "absolute";
	document.getElementById("weMainMenu").style.top = "0px";
	document.getElementById("pageHeader").style.position = "absolute";
	if (document.getElementById("flashAD") != null) {
		document.getElementById("flashAD").style.position = "absolute";
		document.getElementById("flashAD").style.top = "0px";
		document.getElementById("flashAD").style.left = String(document.documentElement.clientWidth - (document.documentElement.clientWidth-1250)/2 - 250)+"px";	
	}
	if (document.getElementById("imgGrid") != null) document.getElementById("imgGrid").style.paddingTop = "25px";
	if (document.getElementById("imgView") != null) document.getElementById("imgView").style.position = "absolute";
	
	for (i=0; i < document.all.length; i++) {
		if (document.all.item(i).className == "weSubMenuBar") document.all.item(i).style.position = "absolute";
		if (document.all.item(i).className == "weSubMenuBar") document.all.item(i).style.top = "100px";
	}
}

