// JavaScript Document
var width = 800, height = 600; resize=0; maxWidth=750 // defaults
function checklayersIndex(){
maxWidth=780;
checklayers()
}
function checklayers(){
	if (document.layers) {
		width = window.innerWidth;
		height = window.innerHeight;
	}
	else if (document.all) {
		width = document.body.clientWidth;
		height = document.body.clientHeight;
	}
	for (divs in document.all.tags("DIV")){	//get the divs on the form
		if (width>maxWidth) {
			resize=(width-maxWidth)/2
			if (divs!="length")
					if (document.all(divs))
						document.all(divs).style.posLeft=document.all(divs).style.posLeft+resize
		}
	}
}
