var myWidth =0;
var myHeight=0;
var ie = /*@cc_on!@*/false;

function debug(elem)
{
	var d =document.createTextNode(myHeight);
	if(elem.hasChildNodes())
	{
		var kids = elem.childNodes;
		elem.removeChild(kids[0])
	}

		elem.appendChild(d);
}
function innerSize() {
  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;
  }
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
}
function setCss()
{
	var extra_height = 0;
	var a =document.getElementById("main");
	//var c =document.getElementById("sizetest");
	innerSize();
	//debug(c);
	if(ie)
	{
		extra_height = 0;
	}
	else
	{
		extra_height = 9;
	}
	if(myHeight>600)
	{
		a.style.height=myHeight+extra_height+"px";
	}
}
function setCss2()
{
	var b =document.getElementById("innermain");
	if(myHeight>600)
	{
		b.style.paddingTop = ((myHeight-530)/2)+"px";
	}
}
function startSide()
{
window.onresize = function(){
setCss();
setCss2();
}
}
function startSide2()
{
window.onresize = function(){
setCss();
}
}