function startMainPage(){
	$('#left-column').remove();
	$('#articleContent').css('height',$('#artBox1').height()-5);
	$('.artScroll').click(function(){
		var a=$(this).parent().attr('full');
		if(a=='false'){
			$(this).hide();
			$('.roll1').show();
			artFull($(this).parents('.box').attr('id').substr(6));
			$('.artr').attr('full', 'false');
			$(this).parent().attr('full', 'true');
		}
		else {
			$(this).hide();
			$('.roll2').show();
			artZero();
			$(this).parent().attr('full', 'false');
		}
	}).parent().attr('full', 'false');
	if($.flash.available){
		if($.flash.hasVersion(9)){
			$('#mainPageTopBanerR').flash({
				swf: '/images/www/swf/rotator.swf',
				width: 680,
				height: 294,
				wmode: 'transparent',
				flashvars: {xmlFile: 'bannersToRotator.ltr'}
			 });
			$('#mainPageTopBanerL').flash({
				swf: '/images/www/swf/leftColumnMP.swf',
				width: 250,
				height: 294,
				wmode: 'transparent',
				flashvars: {xmlFile: 'bannersToMainPageLeftColumn.ltr'}
			 });
		}else{
			$('.mainPageTopBaner').css({'height':'auto','text-align':'center'}).html('<div id="content-1c"><div class="center-top"></div><div class="center-content p10 f14 tcenter"><a class="pR10" target="_blank" href="http://www.adobe.com/go/getflashplayer"><img border="0" align="middle" alt="Get Adobe Flash Player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"/></a>Aby zobaczyć pełną wersję naszej strony, należy zainstalować aktualną wersję <a target="_blank" href="http://www.adobe.com/go/getflashplayer">wtyczki Adobe Flash Player</a></div><div class="center-bottom2"></div></div>');
		}
	}else {
		$('.mainPageTopBaner').css({'height':'auto','text-align':'center'}).html('<div id="content-1c"><div class="center-top"></div><div class="center-content p10 f14 tcenter"><a class="pR10" target="_blank" href="http://www.adobe.com/go/getflashplayer"><img border="0" align="middle" alt="Get Adobe Flash Player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"/></a>Aby zobaczyć pełną wersję naszej strony, należy zainstalować <a target="_blank" href="http://www.adobe.com/go/getflashplayer">wtyczkę Adobe Flash Player</a></div><div class="center-bottom2"></div></div>');
	}
	if($.browser.version=='6.0'){
		$('.abs1').each(function(){
			$(this).parent().children('a').children().attr('src','/images/www/ico-video.gif');
			$(this).remove();
		});
	}
}
function artZero(){
	var h=$('#articleContent').height()+5;
	var speed=300;
	$("#artBox1").animate({ 
        width: 307,
       	top:0,
       	left:0,
       	height:h
      	}, speed );
	$("#artBox2").animate({ 
        width: 307,
       	top:0,
       	left:317,
       	height:h
      	}, speed );
	$("#artBox3").animate({ 
        width: 307,
       	top:0,
       	left:633,
       	height:h
      	}, speed );
	$(".artContent").css('height','auto');
	$(".itemMore").removeClass('itemMoreW');
}
function artFull(id){
	var speed=300;
	var tdHeight=101;
	$(".itemMore").removeClass('itemMoreW');
	var k=$('#artBox1 .artTop tr.artRow').length;
	if((k % 2) ==1){
		k1=k2=parseInt(k/2);
	}else {
		k1=parseInt(k/2);
		k2=parseInt(k/2)-1;
	}
	if(id=='1'){
		$("#artBox1").animate({ 
	        width: 623,
	        top:0,
	        left:0
	      	}, speed );
		$("#artBox2").animate({ 
	       	left:633,
	       	top:0,
	       	width:307
	      	}, speed );
		$("#artBox3").animate({ 
	        top:(k1+1)*tdHeight,
	        left:633,
	        width:307
	      	}, speed );
		$("#artBox1 .artContent").css('height','auto');
		$("#artBox2 .artContent").css('height',k1*tdHeight);
		$("#artBox3 .artContent").css('height',k2*tdHeight);
		$("#artBox2 .itemMore").addClass('itemMoreW');
	}
	else if(id=='2'){
		$("#artBox1").animate({
			left:633,
	        top:(k1+1)*tdHeight,
	        width:307
	      	}, speed );
		$("#artBox2").animate({ 
	       	left:0,
	       	top:0,
	       	width:623
	      	}, speed );
		$("#artBox3").animate({ 
			left:633,
	       	top:0,
	       	width:307
		}, speed );
		$("#artBox1 .artContent").css('height',k2*tdHeight);
		$("#artBox2 .artContent").css('height','auto');					
		$("#artBox3 .artContent").css('height',k1*tdHeight);
		$("#artBox3 .itemMore").addClass('itemMoreW');
	}
	else if(id=='3'){
		$("#artBox1").animate({ 
			left:0,
	       	top:0,
	       	width:307
		}, speed );
		$("#artBox1 .itemMore").addClass('itemMoreW');
		$("#artBox2").animate({ 
	       	left:0,
	       	top:(k1+1)*tdHeight,
	       	width:307
	      	}, speed );
		$("#artBox3").animate({
			left: 317,
			top:0,
			width:623
	      	}, speed );
		$("#artBox1 .artContent").css('height',k1*tdHeight);				
		$("#artBox2 .artContent").css('height',k2*tdHeight);
		$("#artBox3 .artContent").css('height','auto');
	}
}