// JavaScript Document

<!--
 
 var VIEWPORT_WIDTH;
 var VIEWPORT_HEIGHT;
  
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
  
function GetViewportSize(){  
	 if (typeof window.innerWidth != 'undefined'){
		  VIEWPORT_WIDTH = window.innerWidth,
		  VIEWPORT_HEIGHT = window.innerHeight
	 }
	  
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	 
	 else 
		if (typeof document.documentElement != 'undefined'
			&& typeof document.documentElement.clientWidth !=
			'undefined' && document.documentElement.clientWidth != 0) {
			VIEWPORT_WIDTH = document.documentElement.clientWidth,
			VIEWPORT_HEIGHT = document.documentElement.clientHeight
		}
	  
	 // older versions of IE
	  
		else{
		   VIEWPORT_WIDTH = document.getElementsByTagName('body')[0].clientWidth,
		   VIEWPORT_HEIGHT = document.getElementsByTagName('body')[0].clientHeight
		}
}

GetViewportSize();
	
	//alert(VIEWPORT_WIDTH+'x'+VIEWPORT_HEIGHT);
//-->
