/* site.js
Instantializes and executes the code for the site.

*/
window.addEvent('domready', function(){ // Wait for the DOM to load before executing any of this code.
				if($('original_form')) {
				new FormValidator($('original_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('original_form'), $('original_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page
				
                                new FormValidator($('original_form2'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('original_form2'), $('original_update2'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page
                                
				new FormValidator($('illuminated_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('illuminated_form'), $('illuminated_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page

				new FormValidator($('decorative_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('decorative_form'), $('decorative_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page

				new FormValidator($('basic_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('basic_form'), $('basic_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page

				new FormValidator($('magnify_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('magnify_form'), $('magnify_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page
				
				new FormValidator($('dial_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('dial_form'), $('dial_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page
				
				new FormValidator($('pot_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('pot_form'), $('pot_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page
					 } else {
				new FormValidator($('bed_form'), {useTitles:true, evaluateFieldsOnBlur:false}); // Validation
				new Fupdate($('bed_form'), $('bed_update'), {'extraData':{'ajax':'1'}}); // use AJAX to deal with the form, and postback to the page		 
					 }



});  // end DomReady addEvent
		