// JavaScript Document
jQuery.noConflict();

jQuery(document).ready(function() {
	jQuery('.fade').innerfade({ animationtype: 'fade', speed: 1000, timeout: 10000, type: 'random', containerheight: '180px' }); 
	//jQuery("#frmQuote").validate();
	jQuery('div.buttonSubmit').hover(function() {
        jQuery(this).addClass('buttonSubmitHover');
    }, function() {
        jQuery(this).removeClass('buttonSubmitHover');
    });
	//jQuery('#frmQuote').ajaxForm(function() { 
	//	alert("Thank you for your comment!"); 
	//}); 
});

function remClass (elem) {
	jQuery(elem).removeClass("form-error");
}

jQuery(function(){
	jQuery("#frmQuote").formwizard({ 
	  //form wizard settings
	  historyEnabled : true, 
	  formPluginEnabled: true, 
	  validationEnabled : true},
	 {
	   //validation settings
	 },
	 {
	   success: function(data){alert(data.registration.statusMessage);},
						beforeSubmit: function(data){alert("about to send the following data: \n\n" + $.param(data))},
						dataType: 'json',
						resetForm: false

	 }
	);
});




