function background() 
{	
	backHeight = document.getElementById('AllSiteCont').offsetHeight;
	TrueBackHeight = backHeight - 737;
	if (TrueBackHeight > 0) {
		document.getElementById('backer').style.height = TrueBackHeight+'px';
	}
}

function showenter(checker)
{
	whod = document.getElementById('whod1');
	checker ? whod.style.display = 'block' : whod.style.display = 'none';
}

function diverfixer()
{
	divHeight = document.getElementById('AllSiteCont').offsetHeight;
	divWidth = document.getElementById('AllSiteCont').offsetWidth;
	needHeight = document.getElementById('big').offsetHeight;
	
	//document.getElementById('backtileID').style.height = document.getElementById('big').offsetHeight+'px';
	
	
	var windowWidth = 0, windowHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		windowWidth = window.innerWidth;
		windowHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	  }
	
	
	if (windowWidth <= 970) {
		document.getElementById('AllSiteCont').style.width = '980px';
	} else {
		document.getElementById('AllSiteCont').style.width = windowWidth+'px';		
	}
	
	if (windowHeight <= 900) {
		document.getElementById('AllSiteCont').style.height = '900px';
	} else {
		document.getElementById('AllSiteCont').style.height = windowHeight+'px';		
	}
	
	if (document.getElementById('big').offsetHeight > document.getElementById('AllSiteCont').offsetHeight - 170) {
		document.getElementById('AllSiteCont').style.height = (document.getElementById('big').offsetHeight + 170)+'px';
	}
	
	//alert(divHeight+':'+(needHeight+100));
	//if (divHeight <= (needHeight+100))
//	{
//		//alert('111');
//		document.getElementById('AllSiteCont').style.height = (needHeight+200)+'px';
//	} if (divHeight > (needHeight+210)) {
//		//alert('asdf');
//		document.getElementById('AllSiteCont').style.height = 100+'%';
//	}	
//		//alert(divHeight+':'+(needHeight+220));
//	if (divWidth <= 970)
//	{
//		document.getElementById('AllSiteCont').style.width = 970+'px';
//	} if (divWidth > 970) {
//		document.getElementById('AllSiteCont').style.width = 100+'%';
//	}
}	

var old_classname = '';
function change(e)
{
    old_classname = e.className;
    e.className = 'link1';
}

function returns(e)
{
    e.className = old_classname ;
//  e.className = 'link';
    old_classname = '' ;
}

