var scrh, scrw;
var loaded = 'false'

function Setup()
{
 var pageHeight, x, y, frame, main;
 if (self.innerHeight) // all except Explorer
  {
	 x = self.innerWidth;
	 y = self.innerHeight;
  }
 else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
  {
	 x = document.documentElement.clientWidth;
	 y = document.documentElement.clientHeight;
  }
 else if (document.body) // other Explorers
  {
	 x = document.body.clientWidth;
	 y = document.body.clientHeight;
  }
 
 frame = document.getElementById("container");
 main = document.getElementById("content_mid");  
 var htmlheight   = document.getElementById("footer").offsetTop + 30;
 var headerHeight = document.getElementById("content_mid").offsetTop;
 var windowheight = y; //document.documentElement.clientHeight;
 if( htmlheight < windowheight )
  {
//	 alert(htmlheight + " : " + windowheight); 
//	 document.body.style.height = windowheight + "px"; 
//	 frame.style.height = windowheight + "px";
	 main.style.height = ((windowheight-headerHeight)-65) + "px"; 
	}  
/*else 
 { 
//  alert(htmlheight + " : " + windowheight);
//  document.body.style.height = htmlheight + "px"; 
//	frame.style.height = htmlheight + "px"; 
	main.style.height  =  (htmlheight-180) + "px";
 }
 */  
// alert(pageHeight);
}

loaded = 'true'