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 = $("#page").height();

	if (bod<y) {
		tex = y-592;
		bod=y;
		
		$('#text').height(tex);
	}
	
	$('.leftpol').height(bod);
	$('.ritpol').height(bod);
}

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);
});
