function hideflash ()
{

//$('#main_baner_pl').show();
}

	setTimeout("hideflash()",3500);

function wopen(url, name, w, h)
{
	wleft = (screen.width - w) / 2 - 7;
	wtop = (screen.height - h) / 2;

	if (wleft < 0) 
	{
		w = screen.width;
		wleft = 0;
	}
	if (wtop < 0) 
	{
		h = screen.height;
		wtop = 0;
	}
	var win = window.open(url, name, 'width='+w+', height='+h+', left='+wleft+', top='+wtop + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no');
	win.resizeTo(w, h);
	win.moveTo(wleft, wtop);
	win.focus();
}

$(document).ready(
	
	function()
	{	  

	var uniqueid=Math.floor(Math.random()*1000);
		if ($("input[name='page_get']").val() == '')
		
		{
			
			//swfobject.embedSWF('KazarBanner_pl.swf', 'main_baner_pl', '940', '470', '9.0.45', '', {}, {wmode: 'transparent'}, {id: 'main_baner_pl'});
			
		}
		
		$("#product_description table").attr('style', '');
		$("#product_description table").attr('border', '0');
		$("#product_description table").width('100%');
		$("#product_description table tr td:first-child").addClass('td_1');
		$("#product_description table tr td:last-child").addClass('td_2');
		
		$(".last_article_summary div").css('padding-top', '3px');
		$(".last_article_summary a, .article_summary a").css('color', '#000');
		
		// moduly w menu bocznym
		
		$(document.body).each
		(
			function()
			{
				var blocks_count = $('.column_header').length;
				
				for (var i=1; i<=blocks_count; i++)
				{
					if($.cookie('block_'+i) == 'zwin')
					{
						$('#block_image_'+i).attr('src', 'images/zwin.gif');
						$('#block_contener_'+i).css('display', 'block');
					}
					else if ($.cookie('block_'+i) == 'rozwin')
					{
						$('#block_image_'+i).attr('src', 'images/rozwin.gif');
						$('#block_contener_'+i).css('display', 'none');
					}
					else
					{
						$('#block_image_'+i).attr('src', 'images/rozwin.gif');
						$('#block_contener_'+i).css('display', 'none');
					}
				}
			}
		);
		
		$('.column_header').click
		(
			function()
			{
				var block_id = $(this).attr('id').split('_')[1];
	
				if($('#block_contener_'+block_id).css('display') == 'block') 
				{ 
					$('#block_image_'+block_id).attr('src', 'images/rozwin.gif');
					$('#block_contener_'+block_id).hide('normal');
					$.cookie('block_'+block_id, null);
					$.cookie('block_'+block_id, 'rozwin', {path: '/'});
				} 
				else 
				{ 
					$('#block_image_'+block_id).attr('src', 'images/zwin.gif');
					$('#block_contener_'+block_id).show('normal');
					$.cookie('block_'+block_id, null);
					$.cookie('block_'+block_id, 'zwin', {path: '/'});
				}
			}
		);
	}
);

function pokaz_form()
{
	document.getElementById('form_cv').style.display='block';
}
function ukryj_form()
{
	document.getElementById('form_cv').style.display='none';
}
