// JavaScript Document
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
var font_size,Req_PGWidth,Per_PGWidth,Req_PGHeight,l;
	var PGWidth
	var PGHeight
function fit_to_screen(){
	if(window.innerHeight){
		PGHeight = window.innerHeight
		PGWidth = window.innerWidth
	}else
	if(document.documentElement.clientHeight){
		PGHeight = document.documentElement.clientHeight
		PGWidth = document.documentElement.clientWidth
/*	}else
	if(document.body.offsetWidth){
		PGWidth = document.body.offsetWidth
		PGHeight = document.body.offsetHeight
*/	}
	if(PGWidth <= 800){
		PGWidth = 800
	}
	Req_PGWidth = Math.round(PGWidth - 20)
	Per_PGWidth = Math.round((Req_PGWidth/2000)*100)
//	Per_PGHeight = Math.round((PGHeight/PGHeight)*100)
	Req_PGHeight = Math.round(((Per_PGWidth)*1078)/100)
//	content_top = Math.round((84 * Req_PGHeight)/100)
//	nav_width = Req_PGWidth - 10
	font_size = Math.round((Per_PGWidth*50)/100);
	document.getElementById('content').style.width = 80+'%'
//	document.getElementById('content').style.height = Math.round(((Per_PGWidth)*810)/100)+'px'
//	document.getElementById('wrapper').style.width = Req_PGWidth +'px'
	document.getElementById('page').style.width = Req_PGWidth +'px'
//	document.getElementById('page').style.height = PGHeight+'px'
	document.body.style.fontSize = font_size+'px'
}

