jQuery(document).ready(function($){
	
	// ----------------
	// JQ Zoom for Images
	// ----------------
	var options = {
		zoomWidth: 322,
		zoomHeight: 322,
		xOffset: 10,
		yOffset: 0,
		title: false,
		lens: true,
		position: "right",
		showEffect: "show",
		hideEffect: "fadeout",
		fadeoutSpeed: "slow"//and MORE OPTIONS
		};
	$(".jqzoom").jqzoom(options);
	
	$("#image0").css("z-index","50");
	$("#image0").css("display","block");
	$("#image0").css("position","absolute");
	
	
	// ----------------
	// Product Message Box Animation
	// ----------------
	$.fn.pause = function(duration) {
    $(this).animate({ dummy: 1 }, duration);
    return this;
	};
	
	$("div.cart ul.messages ").pause(5000).fadeOut("slow");


  //--------------------------
        // Carousel Hover states
        //---------------------------
       $(".jcarousel-prev").live({
        mouseenter:
           function()
           {
               $(this).addClass('jc-prev-hover');
           },
        mouseleave:
           function()
           {
                $(this).removeClass('jc-prev-hover');
           }
       }
    );
        
    $(".jcarousel-next").live({
        mouseenter:
           function()
           {
               $(this).addClass('jc-next-hover');
           },
        mouseleave:
           function()
           {
                $(this).removeClass('jc-next-hover');
           }
       }
    );
	/*$(".cms-interior-design-projects-the-manor-somerset .main-img img").hide();*/
	$(".cms-interior-design-projects-the-manor-somerset .thumbnails img").hover(function(){
		var id = $(this).attr('id');
$(".cms-interior-design-projects-the-manor-somerset .main-img img").hide();
		$('#main-'+id).show();
	});

$(".cms-interior-design-projects-the-lake-house .thumbnails img").hover(function(){
		var id = $(this).attr('id');
$(".cms-interior-design-projects-the-lake-house .main-img img").hide();
		$('#main-'+id).show();
	});

$(".cms-raft-eco-project .thumbnails img").hover(function(){
		var id = $(this).attr('id');
$(".cms-raft-eco-project .main-img img").hide();
		$('#main-'+id).show();
	});


	
});


jQuery.noConflict();

