var tiout;
function size ()
{
	var bod,tex;
	var x,y;
	
	// общий синтаксис

		if (self.innerHeight) {
		
		x = self.innerWidth;
		
		y = self.innerHeight;
		
		// IE 6 Strict Mode
		
		} else if (document.documentElement && document.documentElement.clientHeight) {
		
		x = document.documentElement.clientWidth;
		
		y = document.documentElement.clientHeight;
		
		// Остальные версии IE
		
		} else if (document.body) {
		
		x = document.body.clientWidth;
		
		y = document.body.clientHeight;
		}
	
	
	bod = $(".cen").height();
	if (bod < 900){$('.cen').height(900);}
	/*if (bod < y && y > 990) {
		tex = y-57;
		bod=y;
		
		$('.page').height(tex);
	}
	else if (bod==y){}
	else {$('.page').height(933);}*/
	
	//$('.page').height(933);
}

var tr,scher;
function blinks ()
{
	if (scher==0)
	{
		scher=1;
		
	}
	else
	{
		scher=0;
	}
	$('.blinks').animate({opacity: scher}, 600);
	
}

$(document).ready(function(){
	size ();					   
	tiout = setInterval("size ()",3000);
	//tr = setInterval('blinks ()',800);
});
