//FootballTables.js start
/*
	provided by: www.wbweb.co.uk
	functions/variables for the FOOTBALLTABLES folder
*/

	function Offer(){
		/**
			provide flashing text if offer or sale items
		**/
		if(pageObjects["offer"]){
			var ANIMATE_1 = new Animate(200, "SPECIAL OFFER", "#C1C7E7", "#000000", "offer",
																	"AT1", ";font-size:15pt;font-family:stone temple fs,adamsky fs;",
																	0, 0, "", 0, 0);
			ANIMATE_1.AnimateText();
		}
		if(pageObjects["sale"]){
			var ANIMATE = new Animate(200, "SALE", "#C1C7E7", "#000000", "sale",
																"AT", ";font-size:15pt;font-family:stone temple fs,adamsky fs;",
																0, 0, "", 0, 0);
			ANIMATE.AnimateText();
		}
	}	//Offer end

	function Order(){
		/**
			provide flashing text
		**/
		if(pageObjects["order"]){
			var ANIMATE_2 = new Animate(200, "To Order: Call 0191 297 0262", "#C1C7E7", "#000000", "order",
																	"AT2", ";font-size:15pt;font-family:stone temple fs,adamsky fs;",
																	0, 0, "", 0, 0);
			ANIMATE_2.AnimateText();
		}
	}	//Order end

	function Resubmit(form, page, value, option, make, type, staticvalue){
		/**
			@param string form: form id
			@param string page; the page which has changed the <option>
			@param string value; the 'option' which has been picked
			@param string option; the option which has changed ie the finish or size
			@param string make; the make of the football table
			@param string type; the type of football table
			@param string staticvalue: the value of the 'option' which has not changed
		**/
		var where = "Resubmit(" + form + "," + page + "." + value + "," + option + "," + make + "," + type + "," + staticvalue + ")";
		var checkId;
		if(!pageObjects[form]){
			ErrorHandler(where, "form, " + form + ", does not exist");
			return false;
		}
		if(page.indexOf("stock") == -1){	//static page
			if(option == "finish"){
				pageObjects[form].Action(page+"?"+option+"="+value+"&make="+make+"&type="+type+"&size="+staticvalue);
			}
			else{
				pageObjects[form].Action(page+"?"+option+"="+value+"&make="+make+"&type="+type+"&finish="+staticvalue);
			}
		}
		else{	//virtual page
			if(option == "finish"){
				pageObjects[form].Action(page+"&"+option+"="+value+"&make="+make+"&type="+type+"&size="+staticvalue);
			}
			else{
				pageObjects[form].Action(page+"&"+option+"="+value+"&make="+make+"&type="+type+"&finish="+staticvalue);
			}
		}
		pageObjects[form].Submit();
	}	//Resubmit end
	
//FootballTables.js end
