// JavaScript Document


jQuery(document).ready(function() {
	
	$("#contactform").submit(function(){
							   
	if ($("#Name").val() == "") {
        $("#hideme").slideDown()
        return false;
      }
	if ($("#Email").val() == ""  || $("#Email").val().indexOf("@") == -1) {
        $("#hideme").slideDown()
        return false;
      }
	  
	if ($("#Phone").val() == "") {
        $("#hideme").slideDown()
        return false;
      }	  
});
	



$("#nav li").hover(
	   function () {
$(this).find("ul").stop(true, true).slideDown();	  
						   },
		function () {
$(this).find("ul").stop(true, true).slideUp();
		});		
						   
						   
						   

$('.lightbox').lightbox();
	
	$('#slides').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 6000

	});

    $('#leftslide').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 6000

	});
								
		$("#thumbs li").hover(
						   
	   function () {
		   
      $(this).find(".featuredpic img").stop().animate({"top": "-12px"}, 400);
	  $(this).find(".descline").stop().animate({"bottom": "10px"}, 400);
	  
	  
						   },
		function () {
      $(this).find(".featuredpic img").stop().animate({"top": "0"}, 400);
	  $(this).find(".descline").stop().animate({"bottom": "-25px"}, 400);
	   
						   }	
						   			   
						   
    );
	
	
									
		$(".blogcats a").hover(
						   
	   function () {
		   
      $(this).animate({"paddingLeft": "10px"}, 300);

	  
	  
						   },
		function () {
       $(this).animate({"paddingLeft": "0px"}, 300);
	   
						   }	
						   			   
						   
    );
	
						

$("#thumbs li:last").css({paddingRight: 0});
	
  });


