// ---------------------------------------------------------------------------------------
// browser sniffer, defines variables for the rest of the functions below to use.

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
   
// ---------------------------------------------------------------------------------------
// resizes page to its proper dimension

function resizeFix() {
	if(widthCheck != window.innerWidth || heightCheck != window.innerHeight) {
		window.location.reload();
   }
}

// ---------------------------------------------------------------------------------------
// handles netscape resizing problem by forcing to reload when window is resized

if(ns4) {
	widthCheck = window.innerWidth;
    	heightCheck = window.innerHeight;
    	window.onresize = resizeFix();
}

// ---------------------------------------------------------------------------------------
