/* Author: 

*/




// To initially run the function:

jQuery(document).ready(function(){
												
					
		jQuery("#formID2").validationEngine({
			autoPositionUpdate : true,
		});
		jQuery("#formID3").validationEngine({
			autoPositionUpdate : true,
		});
		jQuery("#formID4").validationEngine({
			autoPositionUpdate : true,
		});
				
				
			
								

		$(".contact-open").click(function(){
		$(".formError").fadeOut(250);
	});
		$("#enquire-open").click(function(){
		$(".formError").fadeOut(250);
	});
		$("#enquire2-open").click(function(){
		$(".formError").fadeOut(250);
	});

		 $(".contact-open").click(function(){
		 $(".contact-open").toggleClass('open');
		 $(".contact").toggleClass('open', 500);
	});
		 $("#enquire-open").click(function(){
		 $("#enquire").toggleClass('open', 500);
		 $(this).toggleClass('arrowdown', 100);
		 return false;
	});
		 $("#enquire2-open").click(function(){
		 $("#enquire2").toggleClass('open', 500);
		 $(this).toggleClass('arrowdown', 100);
		 return false;
	});
		 $(".contact-open").click(function(){
		 $("#enquire").removeClass('open', 500);
		 $("#enquire2").removeClass('open', 500);
	});
		 $("#enquire-open").click(function(){
		 $(".contact").removeClass('open', 500);
		 $("#enquire2").removeClass('open', 500);
	});
		 $("#enquire2-open").click(function(){
		 $(".contact").removeClass('open', 500);
		 $("#enquire").removeClass('open', 500);
	});
										   
		
		$(".tweet").tweet({
            username: "HorizonHolidays",
            join_text: null,
            avatar_size: 0,
            count: 1,
            auto_join_text_default: "we said,", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });


			

	 
		 $("#foo2").carouFredSel({
			circular: true,
			scroll: {
				duration : 1000,
			},
			infinite: false,
			auto : false,
			prev : {	
				button	: "#foo2_prev",
				key		: "left"
			},
			next : { 
				button	: "#foo2_next",
				key		: "right"
			},
			pagination	: "#foo2_pag"
		});
		 

		$("#foo").carouFredSel({
			width: 492,
			align: "left",
			height: 335,
			items: {
				visible: 1,
				width: 492,
				height: 335
			},
			scroll: {
				duration : 800,
				mousewheel: true,
				items: 1,
			},
			auto: {
				auto: true,
				pauseDuration : 4000,
				pauseOnHover: true
			},
				pagination	: "#foo2_pag"
		});

});

   
<!--End-->
