<!--
	$(window).bind("load resize", function(){ 
  	//$('#newsblock').removeClass('leftmarge');

	  var y = $(document).height();	 
	  //alert(y); 
	  //alert('0 '+(y-400)+'px');
	  $('#labstripes').css('backgroundPosition', '0 '+($(window).height()/2-440)+'px'); 
	  //$('#footer').css("top", y-70);
		//$('#footer').show();

	  var x = $(window).width();

	  var cwidth=960;
	  var cleft = (x-960)/2;
	  if (cleft < 20) { 
	  	cleft = -(x/2-20);
	  	$('.leftmarge').css("marginLeft",cleft);
	  	$('#logo').css("marginLeft",cleft);
	  	$('#payoff').css("marginLeft",cleft+180);
	  	$('#content0').css("marginLeft",cleft);
	  	$('#content1').css("marginLeft",cleft);
	  	$('#content2').css("marginLeft",cleft);
	  	$('#content3').css("marginLeft",cleft);
	  	$('.disclaimer').css("marginLeft",cleft);
	  	$('#footer .top').css("marginLeft",(x/2)-110);
	  } else {
	  	$('.leftmarge').css("marginLeft",-480);
	  	$('#logo').css("marginLeft",-480);
	  	$('#payoff').css("marginLeft",-300);
	  	$('#content0').css("marginLeft",-480);
	  	$('#content1').css("marginLeft",-480);
	  	$('#content2').css("marginLeft",-480);
	  	$('#content3').css("marginLeft",-480);
	  	$('.disclaimer').css("marginLeft",-480);
	  	$('#footer .top').css("marginLeft",340);
	  }
  	//$('.leftmarge').css("padding-left",cleft);
  	//$('.disclaimer').css("padding-left",cleft);
  	//$('#login').css("right",cleft);
  	//$('#footer .top').css("left",cleft+820);
  	//$('#footer2 .top').css("left",cleft+820);

//	  if (x > (cwidth/0.8)) {
//	  	if (activeMenu == 0) $('#newsblock').css("left","10%");
//	  	$('.leftmarge').css("padding-left","10%");
//	  	$('.rightmarge').css("width","80%");
//	  	$('.rightmarge1000').css("width","1000");
//	  	$('.norightmarge').css("width","90%");
//	  } else {
//	  	lmarge=(x-cwidth)/2;
//	  	if (lmarge<20) { lmarge=20; }
//	  	if (activeMenu == 0) $('#newsblock').css("left",lmarge);
//	  	$('.leftmarge').css("padding-left",lmarge);
//	  	$('.rightmarge').css("width",x-lmarge);
//	  	$('.rightmarge1000').css("width",x-lmarge);
//	  	$('.norightmarge').css("width",x-lmarge);
//	  }
	  var y = $(document).height();
 		$('#lab').css("height", y);
	  var y = $(window).height();
		$('#labicon').css("top", y/2);
		if (y/2 > 280) { spacer = y/2-280; }
		else { spacer = 0; }
	
		$('#labcontent .spacer').css("height", spacer);

	  //var y = $(window).height();
	  //y = $('#content0').height();
	  //if (activeMenu == 1) { y = $('#content2').height(); }
	  //if (activeMenu == 2) { y = $('#content2').height(); }
	  //if (activeMenu == 3) { y = $('#content3').height(); }
	  //$('#footer').css("top", y);
	});
//-->
