﻿/* 
	Copyright (c) Artur Augustyniak 2010 / All Rights Reserved.: slonecznikowy@wp.pl
*/

$(document).ready(function() { 
   
   // $('img.resizer').maxImage({
	//isBackground: true    });
	
//podświetlanie menu
////////////////////////////////////////////
$("li.topmenu1").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu1").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu2").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu2").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu3").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu3").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu4").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu4").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu5").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu5").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu6").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu6").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu7").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu7").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("li.topmenu8").mouseover(
      function () {
        $(this).css({"background":"url(img/menu_bg_hover.jpg) no-repeat scroll 50% 0px transparent"});
      }
    );
	$("li.topmenu8").mouseout(
      function () {
        $(this).css({"background":"none"});
      }
    );
///////////////////////////////////////////

/*Podświetlanie boxów////*/
////////////////////////////////////////////
$("img.box1").mouseover(
      function () {
        $(this).fadeTo("slow", 0.33);
      }
    );
	$("img.box1").mouseout(
      function () {
        $(this).fadeTo("slow", 1.33);
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("img.box2").mouseover(
      function () {
        $(this).fadeTo("slow", 0.33);
      }
    );
	$("img.box2").mouseout(
      function () {
        $(this).fadeTo("slow", 1.33);
      }
    );
///////////////////////////////////////////
////////////////////////////////////////////
$("img.box3").mouseover(
      function () {
        $(this).fadeTo("slow", 0.33);
      }
    );
	$("img.box3").mouseout(
      function () {
        $(this).fadeTo("slow", 1.33);
      }
    );
///////////////////////////////////////////


//o książce akordeon

$(function() {
	$("#accordion").accordion({
			autoHeight: false,
			navigation: true
		});

	});



$(function() {
	$('#gallery a').lightBox({fixedNavigation:true});
});

$(function() {
	$('.lite').lightBox({fixedNavigation:true});
});

//slider
$("#slider").easySlider();
  
//gwiazdki
$(window).load(function () {

        $(".star1").fadeTo("slow", 0.33);
		 $(".star2").fadeTo("slow", 0.33);
		  $(".star3").fadeTo("slow", 0.33);
		   $(".star4").fadeTo("slow", 0.33);
		    $(".star5").fadeTo("slow", 0.33);
			
     
});



/*Podświetlanie boxów////*/
////////////////////////////////////////////
$("#star1").mouseover(
      function () {
        $(this).fadeTo("fast", 1.00);
      }
    );
	$("#star1").mouseout(
      function () {
        $(this).fadeTo("fast", 0.33);
      }
    );
///////////////////////////////////////////

////////////////////////////////////////////
$("#star2").mouseover(
      function () {
        $(this).fadeTo("fast", 1.00);
		   $("#star1").fadeTo("fast", 1.00);
      }
    );
	$("#star2").mouseout(
      function () {
        $(this).fadeTo("fast", 0.33);
		 $("#star1").fadeTo("fast", 0.33);
      }
    );
///////////////////////////////////////////

////////////////////////////////////////////
$("#star3").mouseover(
      function () {
        $(this).fadeTo("fast", 1.00);
		   $(".star1").fadeTo("fast", 1.00);
		    $(".star2").fadeTo("fast", 1.00);
      }
    );
	$(".star3").mouseout(
      function () {
        $(this).fadeTo("fast", 0.33);
		 $(".star1").fadeTo("fast", 0.33);
		 $(".star2").fadeTo("fast", 0.33);
      }
    );
///////////////////////////////////////////

////////////////////////////////////////////
$(".star4").mouseover(
      function () {
        $(this).fadeTo("fast", 1.00);
		   $(".star1").fadeTo("fast", 1.00);
		    $(".star2").fadeTo("fast", 1.00);
			$(".star3").fadeTo("fast", 1.00);
      }
    );
	$(".star4").mouseout(
      function () {
        $(this).fadeTo("fast", 0.33);
		 $(".star1").fadeTo("fast", 0.33);
		 $(".star2").fadeTo("fast", 0.33);
		 $(".star3").fadeTo("fast", 0.33);
      }
    );
///////////////////////////////////////////

////////////////////////////////////////////
$(".star5").mouseover(
      function () {
        $(this).fadeTo("fast", 1.00);
		   $(".star1").fadeTo("fast", 1.00);
		    $(".star2").fadeTo("fast", 1.00);
			$(".star3").fadeTo("fast", 1.00);
			$(".star4").fadeTo("fast", 1.00);
      }
    );
	$(".star5").mouseout(
      function () {
        $(this).fadeTo("fast", 0.33);
		 $(".star1").fadeTo("fast", 0.33);
		 $(".star2").fadeTo("fast", 0.33);
		 $(".star3").fadeTo("fast", 0.33);
		 $(".star4").fadeTo("fast", 0.33);
      }
    );
///////////////////////////////////////////




 $('.box1').cycle({
		fx: 'turnDown' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});



 






   
}); 
