$(document).ready(function(){


$("#mycarousel li").click(function(){
	$("#facebox").width($(window).width());
	
	$("#facebox").addClass("contact-width");
	
	$("#facebox .popup").addClass("contact-centered");

	});

	//$('#contactus a').facebox();
		$(document).bind('reveal.facebox', function(data){
		// jquery.validate and jquery.form
		$("form#contact_us").validate({
		    rules: {
		      name: "required",    // simple rule, converted to {required: true}
		      email: {             // compound rule
		      	required: true,
		      	email: true
		      },
		      telephone: {
			        required: true
			  },
		      subject: {
		        required: true
		      },
		      message: {
		        required: true
		      }
		    },
		    messages: {
		      message: "Please enter a message."
		    },
		    submitHandler: function(form) {
		    	pageTracker._trackPageview('/message/send'); // Google Analytics
		    	$(form).ajaxSubmit({target:"#contact_us_form"});
		    	return false;
		    }

		  });
	});


// FREE ENQUIRY 		


//Footer Tool Tip

//Tool Tip Effect 1


	
//Tool Tip Effect 2
	
	$(".footer-body li").hover(function() {
	  $(this).find(".tweet-box").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).find(".tweet-box").animate({opacity: "hide"}, "fast");
	});
	
	$(".footer-body li").hover(function() {
	  $(this).find(".blog-box").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).find(".blog-box").animate({opacity: "hide"}, "fast");
	});

	$(".footer-body li").hover(function() {
	  $(this).find(".fb-box").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).find(".fb-box").animate({opacity: "hide"}, "fast");
	});
	

	
});

// ENQUIRY CLICK FORM CALL*/


// ENQUIRY CLICK FORM CALL END
// FOR CAROUSEL ON CLICK POSITION FROM Left EFFECT 



				


	
