// VIEWPORT
if( typeof(window.innerWidth)=='number') {
	//Non-IE
	wDoc=window.innerWidth;
	hDoc=window.innerHeight;
} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
	//IE 6+ in 'standards compliant mode'
	wDoc=document.documentElement.clientWidth;
	hDoc=document.documentElement.clientHeight; 
} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
	//IE 4 compatible
	wDoc=document.body.clientWidth;
	hDoc=document.body.clientHeight;
	}

// MONITOR SCREEN SIZE
wScr=screen.width; 
hScr=screen.height;

// AVAILABLE ON DESKTOP
wAvail=screen.availWidth;
hAvail=screen.availHeight;

// BROWSER FRAME SIZE
if(navigator.appName!='Microsoft Internet Explorer') {
	wBrow=top.window.outerWidth-8; // Browser frame except IE
	hBrow=top.window.outerHeight-8;
} else { // Guestimates
	wBrow=wDoc+30;
	hBrow=hDoc+150;
	}
