// JavaScript Document

		function poka(){
		//	$("#fla").animate({height:"421px"}, 400);
			//$("#fla").animate({height:"421px"}, {duration: 400, easing: 'easeOutCubic'});
			//$("#fla").animate(height:"421px",{duration: 1000, easing: easeOutCubic});
			
		}
		function schowaj(){
		//	$("#fla").animate({height:"301px" }, 400);
			//$("#fla").animate({height:"301px" }, {duration: 400, easing: 'easeOutCubic'});
			//$("#fla").animate(height:"301px",{duration: 1000, easing: easeOutCubic});
		}
function menu_bg(){
			if (navi()=="MSIE 6.0"){
				$(".k2 a").css("backgroundColor","#fff");
			}
			}
		
function centruj(){
	var big=$(window).width();
	var small=960;
	var x=Math.round((big-960)/2);
	$("#container").css("marginLeft",x);
	$("#mask1").css("left",x);
	if((navi()!='Mozilla')&&(navi()!='Opera')){
	$("#pozycjoner").css("width",big-x);
	}
	}

function scrheight(){
	if((screen.height)<1024){
		//document.getElementById("container").style.position='static';
		$("#pozycjoner").removeClass("pozycjoner_home");
	}
}
function l_menu(){
$(".left_menu ul li a").hover(
				function(){
					  $(this).animate( { backgroundColor: '#b9b9b9' }, 1000)
					},
				function(){
					  $(this).animate( { backgroundColor: '#f0f0f0' }, 1000)
					}			
					);

}
function navi(){
   		 if($.browser.msie){
		nav=("MSIE "+$.browser.version)
		}
		else if($.browser.mozilla ){
		nav=("Mozilla")
		}
		else if($.browser.opera ){
		nav=("Opera")
		;}
		return nav;
}
			function opanBlank(){
				var ref=$(".target").attr("href");
				$(".target").click(
								   function(){
									   window.open(ref);	
									   return false;
								   }
			   );
				}
		 
var navTimeout = null;
$(document).ready(
		function(){
				

			/*paski*/
			//topmenu
			$("#top_mnu li").hover(
				function(){
					ff = $(this).find(".finger");
				  navTimeout = setTimeout("ss(ff)", 60);
				//	ss(this);
				},
				function(){
				  if (navTimeout) clearTimeout(navTimeout);
					hh(this);
				}
			);
			
			$("#logo").hover(
				function(){
					$(this).animate({top:-20},"fast");
				},
				function(){
					$(this).animate({top:-61},"fast");
				}
			);
			//centruj();
			scrheight();
			
			//l_menu();	
				
				$(".target").click(
								   function(){
									  var ref=$(this).attr("href");
									  window.open(ref);
									  var ref=null;
									  return false;
									   
								   }
			   );
			if($.browser.opera ){
				$(document).ready(function(){
									$("#pozycjoner").removeAttr("id");
									
										   });
			}
		}
		
	);
	
function ss(o){
o.animate({top:0}, {duration: 400, easing: 'jswing'});
}	
	
function hh(o){
$(o).find(".finger").animate({top:-56}, {duration: 400, easing: 'jswing'});
}	

