﻿// JavaScript Document
function windowSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement &&
		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
}

windowWidth = myWidth;
windowHeight = myHeight;
document.body.style.width = windowWidth + 'px';
document.body.style.height = windowHeight + 'px';
document.getElementById('nav1').style.width = windowWidth + 'px';
document.getElementById('nav1_ul').style.marginLeft = ((windowWidth - 400)/2) + 'px';
//document.getElementById('nav2').style.width = (windowWidth * .2) + 'px';
//document.getElementById('nav2').style.height = (windowHeight-190) + 'px';
if((windowHeight-190)<document.getElementById('cnt').style.height){
    document.getElementById('nav2').style.height = (windowHeight+60) + 'px';
}else{
    document.getElementById('nav2').style.height = (windowHeight+250) + 'px';
}
document.getElementById('cnt').style.width = (windowWidth-260) + 'px';
document.getElementById('ftr_logo').style.marginRight = (windowWidth-170) + 'px';
}
