/* Start Menu Hover */
$(document).ready(function() {
	$("ul#menu li a").wrapInner("<span></span>");
	$("ul#menu li a span").css({"opacity" : 0});
	$("ul#menu li a").hover(function(){
		$(this).children("span").animate({"opacity" : 1}, 700);
	}, function(){
		$(this).children("span").animate({"opacity" : 0}, 700);
	});
/* End Menu Hover */
	
	$('#book').slideUp('slow', function() {
    // Animation complete.
  });
	
/* Accordion */
	$('.accordion_content').hide();
		$('.accordion_toggle a').click(function(e){
			if($(this).parent().hasClass('current')) {
				$(this).parent()
					.removeClass('current')
					.next('.accordion_content').slideUp();
			} else {
				$(document).find('.current')
					.removeClass('current')
					.next('.accordion_content').slideUp();

				$(this).parent()
					.addClass('current')
					.next('.accordion_content').slideDown();
			}
			e.preventDefault();
		});
	$('.accordion_content2').hide();
		$('.accordion_toggle2 a').click(function(e){
			if($(this).parent().hasClass('current')) {
				$(this).parent()
					.removeClass('current')
					.next('.accordion_content2').slideUp();
			} else {
				$(this).parent()
					.addClass('current')
					.next('.accordion_content2').slideDown();
			}
			e.preventDefault();
		});		
		
		
	$(".accordion_toggle a span").css({"opacity" : 1});
	$(".accordion_toggle a").hover(function(){
		$(this).children("span").animate({"opacity" : 0}, 700);
	}, function(){
		$(this).children("span").animate({"opacity" : 1}, 700);
	});
	
	$(".accordion_toggle2 a span").css({"opacity" : 1});
	$(".accordion_toggle2 a").hover(function(){
		$(this).children("span").animate({"opacity" : 0}, 700);
	}, function(){
		$(this).children("span").animate({"opacity" : 1}, 700);
	});
	
  $('ul.list3 li, ul.list4 li').hover(function() { //mouse in
    $(this).animate({ paddingLeft: '30px' }, 400);
  }, function() { //mouse out
    $(this).animate({ paddingLeft: '20px' }, 400);
  });

  $('a.size').hover(function() { //mouse in
    $(this).animate({ fontSize: "24px"}, 400);
  }, function() { //mouse out
    $(this).animate({ fontSize: "14px" }, 400);
  });
	
});

		
/* End Accordion */


/* Start Nivo Slider */
$(window).load(function() {
	$('#slider').nivoSlider({
	effect:'sliceUpDownLeft' }
	);
});
/* End Nivo Slider */

/* Rotate
var angle = 0;
setInterval(function(){
      angle+=3;
     $("#img").rotate(angle);
},25);
rotation();
/* End Rotate */
