jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        scroll: 1
    });
	 jQuery("#imageContent .thumbNails ul li a:eq(0)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/Home_Renovation.jpg", title: "Home Renovation Boundary Bay View", alt: "Home Renovation Boundary Bay View" 
        }); return false
    }); 
	jQuery("#imageContent .thumbNails ul li a:eq(1)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/kitchen.jpg", title: "Kitchen", alt: "Kitchen" 
        }); return false
    }); 
	jQuery("#imageContent .thumbNails ul li a:eq(2)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/Stairway.jpg", title: "Stairway", alt: "Stairway" 
        }); return false
    }); 
	jQuery("#imageContent .thumbNails ul li a:eq(3)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/Kitchen_Cabinets.jpg", title: "Kitchen Cabinets and Flooring", alt: "Kitchen Cabinets and Flooring" 
        }); return false
    }); 
	jQuery("#imageContent .thumbNails ul li a:eq(4)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/Ensuite.jpg", title: "Ensuite", alt: "Ensuite" 
        }); return false
    }); 
	jQuery("#imageContent .thumbNails ul li a:eq(5)").click(function () {  
       jQuery("#largeImgSrc").attr({  
          src: "images/Living_Area.jpg", title: "Living Area", alt: "Living Area" 
        }); return false
    }); 
	 $("#imageContent .thumbNails ul li:nth-child(3n)").addClass("third");
});
$(document).ready(function(){
$("#ajax-contact-form").submit(function(){

var str = $(this).serialize();

   $.ajax({
   type: "POST",
   url: "contact.php",
   data: str,
   success: function(msg){
    
$("#note").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
$("#fields").hide();
$(".starMsg").hide();
}
else
{
result = msg;
}

$(this).html(result);

});

}

 });

return false;

});

});
