$(document).ready(function(){  var arr = [ "#twojsamochod", "#twojapodroz" ]; var main_shadow = "shadow-pilot.jpg";  $(".tresc").hide(); $("#onas").show('blind', 1000); $("#bk-foto").css("background" ,  "#eeeeee url(images/"+main_shadow+") no-repeat 90% 50%");  var bkhistory; $(".short-left").hover(function(){ var index = $(".short-left").index(this)+1; switch (index) { case 1: fota = "shadow-house.jpg"; break; case 2: fota = "shadow-car.jpg"; break; case 3: fota = "shadow-family.jpg"; break; case 4: fota = "shadow-travel.jpg"; break; case 5: fota = "shadow-company.jpg"; break; } bkhistory = $("#bk-foto").css("background-image"); $("#bk-foto").css( "background" , "#eeeeee url(images/"+fota+") no-repeat 90% 50%"); },function(){ $("#bk-foto").css({ "background-color" : "#eeeeee", "background-image" : bkhistory, "background-repeat" : "no-repeat", "background-position" : "90% 50%" }); });  var pozycja2 = 0; $("#menu li").bind('click', function(){ var index = $("li").index(this)+1; switch (index) { case 1: pozycja2 = "0"; break; case 2: pozycja2 = "87px"; break; case 3: pozycja2 = "183px"; break; case 4: pozycja2 = "283px"; break; case 5: pozycja2 = "385px"; break; } $("#main-middle .ui-effects-wrapper").stop(true,true); $(".tresc").hide(); var tresc = $(this).children("a").attr("href"); $(tresc).show('blind', 1000); $("#bk-foto").css("background" , "#eeeeee url(images/"+main_shadow+") no-repeat 90% 50%"); $("#bk-foto").removeClass("active"); });  $(".short-left").bind('click', function(){ var index = $(".short-left").index(this)+1; bkhistory = $("#bk-foto").css("background-image"); $("#main-middle .ui-effects-wrapper").stop(true,true); $(".tresc").hide(); var tresc = "#tresc-"+$(this).attr("id"); $(tresc).show('blind', 1000); window.location.hash = $(this).attr("id"); });  var pozycja = 0; $("#menu li").mouseover(function(){ var index = $("li").index(this)+1; switch (index) { case 1: pozycja = "0"; break; case 2: pozycja = "87px"; break; case 3: pozycja = "183px"; break; case 4: pozycja = "283px"; break; case 5: pozycja = "385px"; break; } $("#menu-pasekbg").stop().animate({ left : pozycja }, 600); }).mouseout(function(){ $("#menu-pasekbg").stop().animate({ left : pozycja2 }, 600); });  if(window.location.hash) { var hash = window.location.hash; if(jQuery.inArray(hash, arr) != "-1"){ $(hash).trigger("click"); }else{ $("a[href="+hash+"]").parent("li").trigger("click"); $("a[href="+hash+"]").parent("li").trigger("mouseover"); } }  $('#slider').nivoSlider({ effect: 'random', slices: 25, boxCols: 12, boxRows: 6, animSpeed: 700, pauseTime: 5000, startSlide: 0, directionNav: false, directionNavHide: true, controlNav: true, controlNavThumbs: false, controlNavThumbsFromRel: false, controlNavThumbsSearch: '.jpg', controlNavThumbsReplace: '_thumb.jpg', keyboardNav: true, pauseOnHover: false, manualAdvance: false, captionOpacity: 0.8, prevText: 'Prev', nextText: 'Next', beforeChange: function(){}, afterChange: function(){}, slideshowEnd: function(){}, lastSlide: function(){}, afterLoad: function(){} });  $(".widget_social").hover(function(){ $(".widget_social").stop(true, false).animate({right:"-12"},"medium"); },function(){ $(".widget_social").stop(true, false).animate({right:"-205"},"medium"); },500);  });
