var firstload=true;
var sw=0;
var sh=0;
var IE=undefined;
function doCloseVoting(){
	objBL=document.getElementById("VOTING_BLACK");
	objVO=document.getElementById("VOTING");
	objCL=document.getElementById("VOTING_CLOSE");
	objBL.style.visibility="hidden";
	objVO.style.visibility="hidden";
	objCL.style.visibility="hidden";
}
function initialize(){
	if(navigator.appName.indexOf("Microsoft")==-1)
	{
		IE=false;
	}else{
		IE=true;
	}
	if(IE==true)
	{
		sw=document.body.clientWidth;
		sh=document.body.clientHeight;	
	}else{
		sw=window.innerWidth;
		sh=window.innerHeight;
	}
	if(sh<560){
		sh=560;
	}
	if(site!="home"){
		objC=document.getElementById("CONTENT");
		objC.style.height=(sh-30)+"px";
		objC.style.paddingRight="15px";
		objS=document.getElementById("IMGSVPSM");
		objS.style.top=sh-(30+75)+"px";
		objF1=document.getElementById("IMGFBSM");
		objF2=document.getElementById("TXTFBSM");
		if(objF1!=undefined){
			objF1.style.top=sh-(30+32)+"px";
			objF2.style.top=sh-(30+30)+"px";
		}
	}
	if(firstload==true){
		firstload=false;
	}
	objG=document.getElementById("GALERIE");
	if(objG!=undefined){
		var newhtml=objG.innerHTML;
		newhtml=newhtml.replace(/800/g,(sw-100));
		newhtml=newhtml.replace(/400/g,(sh-175));
		objG.innerHTML=newhtml;
	}
	document.getElementById("MAIN").style.visibility="visible";
}
window.onload=initialize;
window.onresize=initialize;
