// JavaScript Document


jQuery(document).ready(function() {
	


						
						
$('#slides').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 8000,
	next:'.next a'
	});

$('#sideimgslide').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 8000,
	next:'.next a'
	});


$('.link2').hover(
  function () {
	  
     $('.link2 ul').animate({height:'280px', paddingTop:'20px'},{queue:false,duration:400});
	 
  }, 
  function () {
    $('.link2 ul').animate({height:'1px', paddingTop:'0px'},{queue:false,duration:500});
  }
  ).stop();


$('.link3').hover(
  function () {
	  
     $('.link3 ul').animate({height:'220px', paddingTop:'20px'},{queue:false,duration:400});
	 
  }, 
  function () {
    $('.link3 ul').animate({height:'1px', paddingTop:'0px'},{queue:false,duration:500});
  }
  ).stop();



$('#sidenav a').hover(
  function () {
	  
     $(this).animate({paddingLeft:'10px'},{queue:false,duration:200});
	 
  }, 
  function () {
    $(this).animate({paddingLeft:'0px'},{queue:false,duration:300});
  }
  );


$("#contactform").submit(function(){
							   
	if ($("#Name").val() == "" || $("#Name").val() == "Name") {
        $("#hideme").slideDown()
        return false;
      }
	if ($("#Email").val() == ""  || $("#Email").val() == "Email") {
        $("#hideme").slideDown()
        return false;
      }
	  
	if ($("#Phone").val() == ""  || $("#Phone").val() == "Phone") {
        $("#hideme").slideDown()
        return false;
      }	  
			   
			if ($("#security_code").val() == "") {
        $("#hideme").slideDown()
        return false;
      }	  					   
	});
	
  });

