
// window witdth and height
var myWidth = 0;
var myHeight = 0;


	function calcWindowsSize() {
	  
	  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;
	  }
	}

	// Gets a element by its Id. Used for shorter coding.
	function GetE( elementId )
	{
		return document.getElementById( elementId )  ;
	}

	function showDiv( id) {
		GetE(id).style.visibility="visible";
		GetE(id).style.width="auto";
		GetE(id).style.height="auto";
		GetE(id).style.overflow="auto";
	}

	function showDiv_par( id, width, height) {
		GetE(id).style.visibility="visible";
		GetE(id).style.width=width;
		GetE(id).style.height=height;
		GetE(id).style.overflow="auto";
	}


	function hideDiv( id) {
		GetE(id).style.visibility="hidden";
		GetE(id).style.width="10px";
		GetE(id).style.height="10px";
		GetE(id).style.overflow="hidden";
	}

