 jQuery.noConflict();



function tab1() {

jQuery('div.fpanel').hide();

jQuery('div.p1').fadeIn(400);

}

function tab2() {

jQuery('div.fpanel').hide();

jQuery('div.p2').fadeIn(400);

}

function tab3() {

jQuery('div.fpanel').hide();

jQuery('div.p3').fadeIn(400);

}

function tab4() {

jQuery('div.fpanel').hide();

jQuery('div.p4').fadeIn(400);

}

function tab5() {

jQuery('div.fpanel').hide();

jQuery('div.p5').fadeIn(400);

}



// The following will run as soon as the page is loaded and the DOM is ready, but images might still be loading.

jQuery(function(){	 

		   

		   jQuery("#bookingForm").validate();



jQuery('#gCourse').accordion({ 

    autoHeight: false ,

	active:false

});



jQuery("#a_day").datepicker({

	dateFormat: 'dd/mm/yy',

	altField: '#a_alt', 

	altFormat: '@',

	changeMonth: true,

	changeYear: true,

	minDate: 0,

	maxDate: '+1Y',

	showOn: 'both', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

})

	

jQuery("#b_day").datepicker({

	dateFormat: 'dd/mm/yy',

	altField: '#b_alt', 

	altFormat: '@',

	changeMonth: true,

	changeYear: true,

	minDate: 0,

	maxDate: '+1Y',

	showOn: 'both', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});



jQuery("#br1_day").datepicker({

	dateFormat: 'd/m/y',

	changeMonth: true,

	changeYear: true,

	minDate: 0,

	showOn: 'button', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});

jQuery("#br2_day").datepicker({

	dateFormat: 'd/m/yy',

	changeMonth: true,

	changeYear: true,

	minDate: 0,

	showOn: 'button', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});

jQuery("#br3_day").datepicker({

	dateFormat: 'd/m/y',

	changeMonth: true,

	changeYear: true,

	minDate: 0,

	showOn: 'button', 

	buttonImage: 'assets/images/calendar.png', 

	buttonImageOnly: true

});





jQuery("#tabs").tabs({ fx: { opacity: 'toggle' } }).tabs();



jQuery("#tabs ul li").hover(

			function() {

				jQuery(this).animate({marginTop:'-12px'}, 400);

			},

			function() {

				jQuery(this).animate({marginTop:'0'}, 400);

			}

		);







jQuery('a#openclose').click(function() {

    jQuery('#quickFindDirectory #inner').slideToggle(400);

	jQuery(this).text(jQuery(this).text() == 'Click to close' ? 'Click to open' : 'Click to close'); // <- HERE

	jQuery(this).toggleClass('up');

    return false; 

  });



jQuery('div.fpanel').hide();

jQuery('div.p1').show();









jQuery('a.fTab1').click(function() {

	jQuery('div.fpanel').hide();

	jQuery('div.p1').fadeIn(400);

    return false; 

  });

jQuery('a.fTab2').click(function() {

	jQuery('div.fpanel').hide();

	jQuery('div.p2').fadeIn(400);

    return false; 

  });

jQuery('a.fTab3').click(function() {

	jQuery('div.fpanel').hide();

	jQuery('div.p3').fadeIn(400);

    return false; 

  });

jQuery('a.fTab4').click(function() {

	jQuery('div.fpanel').hide();

	jQuery('div.p4').fadeIn(400);

    return false; 

  });

jQuery('a.fTab5').click(function() {

	jQuery('div.fpanel').hide();

	jQuery('div.p5').fadeIn(400);

    return false; 

  });





jQuery("#panelHolder div:odd").addClass("alt");





jQuery('.rmv-dft-val').click(

	function() {

	if (this.value == this.defaultValue) {

	this.value = '';

	}

});

jQuery('.rmv-dft-val').blur(

	function() {

	if (this.value == '') {

	this.value = this.defaultValue;

	}

});



// jQuery("#header ul a").hover(function() {

//	jQuery(this).animate({marginTop:'-4px' , paddingBottom:'16px' , backgroundColor:'#ffffff' }, 300);

//	},

//	function() {

//		jQuery(this).animate({marginTop:'0'  , paddingBottom:'12px' , backgroundColor:'#96bddc' }, 300);

//	}

// );



jQuery('#quoteHolder').innerfade({ speed: 'slow', timeout: 10000, type: 'sequence', containerheight:'140px'}); 





});




