
//		$(".teaser_box").css('zIndex',1);
//		$(".section_top").css('zIndex',1);
//		$(".wa_box").css('zIndex',1);
//		$(".userpanel").css('zIndex',1);
$(document).ready(function(){
	$(".second_menu_item").mouseout( function() {
		$(this).removeClass('active');
		$(this).children(".menu-scroll");
	});
	$(".second_menu_item").mouseover( function() {
		$(this).addClass('active');
		$(this).children(".menu-scroll").css('zIndex',10);
	});

	$(".teaser_button").click(function(){
		$("#teasers").tabs( "rotate" , 0 );
	});
	$("#teasers").tabs().tabs("rotate", 4000,10);
	//{fx:{opacity: "toggle"}}
});
// funkcja ruchomego topu
$(document).ready(function(){
	$("body").mousemove(function(e){
		$w=$("body").width();
		$ws=$w/2;
		$h=$("body").height();
		$h=780;
		$hs=$h/2;

		$wstep=((1200-980)/2)/$ws;
		$rhs=400-177;
		$hstep=($rhs/2)/$hs;
		$x=(($ws-e.pageX)*$wstep)-110;
		$(".floating > .section_top_photo").css({'left':$x});
		if(e.pageY<$h){
			$y=(($hs-e.pageY)*$hstep)-110;
			$(".floating > .section_top_photo").css({'top':$y});
		}else{
			$(".floating > .section_top_photo").css({'top':-220});
		}
	});
});

$(document).ready(function(){
	$("#a-48").click(function(){
		//alert("uwaga");
		//$("#wheater-48").html("cos");
	});
});

function getWeather(lid) {
	$.post("/pogoda/fp/"+lid + "-", {queryString: "" + lid + ""}, function(data){
		$('#wheater-' + lid).html(data);
		
	});
}
