//
var dOm =window.innerWidth;
var sizefontbody = 30;
	
function resizefont(){
	if (dOm){
		winw = window.innerWidth;
		winh = window.innerHeight;
		if(winh<(winw/4*3)){
			siz = winh*(sizefontbody+5)/screen.height;
		} else {
			siz = winw*sizefontbody/screen.width; }
			
		document.getElementById("bodi").setAttribute("style","font-size:"+siz+"px;");
		document.getElementById("copri").setAttribute("style","visibility:hidden;display:none;");
	}
	else if (checkB.IE6 || checkB.IE7){
		winw = document.body.clientWidth;
		winh = document.body.clientHeight;
		/*if(winh<(winw/4*3)){
			siz = winh*(sizefontbody+5)/screen.height;
//			alert(winw+" * "+(sizefontbody+5)+" / "+screen.height);
		} else {
		//	alert("nonentro");
			siz = winw*sizefontbody/screen.width;
			}*/
		siz = winw*sizefontbody/screen.width;
			
		
		document.getElementById("bodi").style.fontSize=siz+"px";
		document.getElementById("copri").style.visibility="hidden";
		document.getElementById("copri").style.display="none";
	}
	/*
	else if (checkB.IE4){
		winw = document.body.clientWidth;
		winh = document.body.clientHeight;
		if(winh<((winw/4)*3)){
			siz = winh*(sizefontbody+5)/screen.height;
		} else {
			siz = winw*sizefontbody/screen.width; }
			
		document.all['bodi'].style.fontSize=siz+"px";
		document.all['copri'].style.visibility="hidden";
		document.all['copri'].style.display="none";
	}
	*/
	else if (checkB.NN4){
		winw = document.body.clientWidth;
		winh = document.body.clientHeight;
		if(winh<((winw/4)*3)){
			siz = winh*(sizefontbody+5)/screen.height;
		} else {
			siz = winw*sizefontbody/screen.width; }
			
		siz = winw*sizefontbody/screen.width;
		document.layers["bodi"].setAttribute("style","font-size:"+siz+"px;display:none");
		document.layers["copri"].setAttribute("style","visibility:hidden;display:none;");
	}
}

window.onload = resizefont;
window.onresize = resizefont;

//