$(document).ready(function(){
		$('#slider').cycle({ 
    		fx:     'scrollHorz', 
    		speed:  2000, 
    		timeout: 8000, 
    		next:   '#next', 
    		prev:   '#prev' ,
			pager:  '#slider-pager' 
		});
			$('.hover').hover(function() {
			$(this).addClass('active');
			}, function() {
				$(this).removeClass('active');
			}); 
		$("div.featured-page").click(function(){
			window.location=$(this).find("a").attr("href");
			return false;
		});  
		$('.featured-chap7-image').append('<span class="hover_featured-page"></span>').each(function () {
              var $span = $('> span.hover_featured-page', this).css('opacity', 0);
              $('#featured-chap7').hover(function () {
                $span.stop().fadeTo(500, 1);
              }, function () {
                $span.stop().fadeTo(500, 0);

       	});
        });
		$('.featured-chap13-image').append('<span class="hover_featured-page"></span>').each(function () {
              var $span = $('> span.hover_featured-page', this).css('opacity', 0);
              $('#featured-chap13').hover(function () {
                $span.stop().fadeTo(500, 1);
              }, function () {
                $span.stop().fadeTo(500, 0);

     	});
        });
		$('.featured-savehome-image').append('<span class="hover_featured-page"></span>').each(function () {
              var $span = $('> span.hover_featured-page', this).css('opacity', 0);
              $('#featured-savehome').hover(function () {
                $span.stop().fadeTo(500, 1);
              }, function () {
                $span.stop().fadeTo(500, 0);

       	});
        });
		$('.featured-contact-image').append('<span class="hover_featured-page"></span>').each(function () {
              var $span = $('> span.hover_featured-page', this).css('opacity', 0);
              $('#featured-contact').hover(function () {
                $span.stop().fadeTo(500, 1);
              }, function () {
                $span.stop().fadeTo(500, 0);

       	});
  	});
	});
