// JavaScript Document
//HELP SCRIPTS FOR UCOATIT.COM 08

//---------------------------------------------------------------------------------------------BEGIN FUNCTION
function launchHelp(a){
	var tech_div=document.getElementById('tech_div');
	var info_div=document.getElementById('info_div');
	var tech=document.getElementById('tech');
	var info=document.getElementById('info');
	var mymessage=document.getElementById('mymessage');
	if(navigator.family =="nn4"){eval(document.tech.value="0"); eval(document.info.value="0"); document.mymessage.document.write(''); document.mymessage.document.close();}
	if(navigator.family =="ie4" || navigator.family =="gecko"){tech.value="0"; info.value="0"; mymessage.innerHTML='';}
	
	if(a=='info'){
		if(navigator.family =="nn4"){
			eval(document.tech_div.style.display="none"); eval(document.info_div.style.display="");
			
			}
		if(navigator.family =="ie4" || navigator.family =="gecko"){tech_div.style.display="none"; info_div.style.display="";}
	}
	
	if(a=='tech'){
		if(navigator.family =="nn4"){eval(document.tech_div.style.display=""); eval(document.info_div.style.display="none");}
		if(navigator.family =="ie4" || navigator.family =="gecko"){tech_div.style.display=""; info_div.style.display="none";}
	}
	
	if(a=='0'){
		if(navigator.family =="nn4"){eval(document.tech_div.style.display="none"); eval(document.info_div.style.display="none");}
		if(navigator.family =="ie4" || navigator.family =="gecko"){tech_div.style.display="none"; info_div.style.display="none";}
	}
}//--------------------------------------------------------------------------------------------END FUNCTION

//---------------------------------------------------------------------------------------------BEGIN FUNCTION
function techMsg(a){
	var msgs = new Array('','Menu buttons and other features on this site rely on server-side (and to a lesser extant, client-side) Javascript code optimized for the Internet Explorer (IE4) browser and adapted for compatibility with Netscape (NN4) and Gecko language browsers. You may need to lower you Internet security settings to allow for both cookies and javascript for all functions to work properly, if your browser settings are currently set to block these functions.','This site was designed using a standard 800 pixel wide x 600 pixel high format which should be compatible with most systems. If you are experiencing layout problems (pictures/menus off-screen), it could be a coding incompatibility issue with your browser. This site was optimized for Internet Explorer (IE4) and adapted for compatibility with Netscape (NN4) and Gecko-based browsers.','General errors sometimes do occur due to web traffic, server maintenance, or other communication glitches — especially peak internet use times. If you receive a Page Not found error, make sure the address you are typing is correct. Otherwise, please be patient or revisit the website during off-peak internet usage times.','Our UCoat It Picture Gallery uses a Picture viewer that opens in a new window. Some browsers see this new window as a "pop-up" and will block the window from opening. To view, either temporarily allow pop-ups or set you internet security settings to allow pop-ups.','The UCoat It Material Estimator relies on server-side (and to a lesser extant, client-side) Javascript code optimized for the Internet Explorer (IE4) browser and adapted for compatibility with Netscape (NN4) and Gecko language browsers. You may need to lower you Internet security settings to allow for both cookies and javascript for all functions to work properly.','The UCoat It Color Simulator relies on server-side (and to a lesser extant, client-side) Javascript code optimized for the Internet Explorer (IE4) browser and adapted for compatibility with Netscape (NN4) and Gecko language browsers. You may need to lower you Internet security settings to allow for both cookies and javascript for all functions to work properly.','General errors or delays sometimes do occur due to web traffic, server maintenance, or other communication glitches — especially peak internet use times. When processing an order, DO NOT hit the process button more than once. If the page appears to be stuck, or otherwise unresponsive, please be patient. If you continue to get an error or the confirmation page fails to load, please call 1-800-UCoat-It (248-922-6748 outside USA) to place your order with a UCoat It Service Representative.','The Local Dealer earch function relies on server-side (and to a lesser extant, client-side) Javascript code optimized for the Internet Explorer (IE4) browser and adapted for compatibility with Netscape (NN4) and Gecko language browsers. You may need to lower you Internet security settings to allow for both cookies and javascript for all functions to work properly. If you receive a message that no dealer can be found in your area, it may be possible that a dealer may not be located within reasonable driving distance. You may call 1-800-UCoat-It (248-922-6748 outside USA) for an expanded list of dealers in your region.','To view a video from our site, it is recommended that you update your system with the most recent version of Windows Media Player.','UCoat It Instruction Manuals are saved in Adobe PDF format for download, viewing or printing. Adobe PDF Reader is a required browser plug-in to access these files. Adobe PDF Reader is available free for download from Adobe (<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank">click here</a>).');
	a = parseFloat(a);
	var msg= msgs[a];
	return msg;
}//--------------------------------------------------------------------------------------------END FUNCTION

//---------------------------------------------------------------------------------------------BEGIN FUNCTION
function infoMsg(a){
	var msgs = new Array(
				'',
				'Product Instructions are available for viewing under the "Technical Information" tab or by clicking <a href="instructions.htm">here</a>. Please note: You will need to have Adobe PDF Reader installed on your machine. PDF Reader is available for free download at Adobe, click <a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank">here</a>.','To locate a dealer in your area, <a href="dealersearch.htm">click here</a> to search by USA Zip code or Canadian Postal Code. If there is not a dealer available in your area, you are welcome to order UCoat It direct by calling 1-800-UCoat-It or online by clicking <a href="cart.htm">here.</a>','You may choose to purchase UCoat It direct and have it shipped to your location. To purchase UCoat It online click here to view your UCoat It cart. If you are a first time customer or are unfamiliar with which materials you will need to purchase, we recommend using our UCoat It Material Estimator (<a href="estimator.htm">click here</a>) to build your product list.','UCoat It is based in Auburn Hills, Michigan approximately 30 miles North of Detroit. Contact us by mail, phone, email, or via our online form &mdash; <a href="contactus.htm">click here.</a>','UCoat It offers a full line of products for do-it-yourself homeowners. <a href="garages.htm">Click here</a> to view our Garage Floor Coating Solutions page for an overview of available products and finishes.','UCoat It systems are sold in kits and material-only extender packs. Actual coverage per kit will vary based on color used, surface porosity and application technique. To figure out how much material you will need for your project, <a href="estimator.htm">click here</a> to use our Material Estimator.','Shipping is available to most North American locations on orders placed through UCoat It.com or by calling 1-800-UCoat-It. Rates vary depending on location, size of the order, and service selected. <a href="ship_policy.htm">Click here</a> to view our Shipping Policies.','We&middot;re sorry you are still unable to find the information you are looking for. You may send us a specific question or information request by using our online Contact Form (<a href="contactus.htm">click here</a>) or you are welcome to call 1-800-UCoat-It (248-545-4055 outside USA) to speak with a UCoat It Customer Representative. Our National Call Center hours of operation are Monday-Friday 9:00AM-6:30PM EST; Closed weekends and major holidays.');
	a = parseFloat(a);
	var msg= msgs[a];
	return msg;
}//--------------------------------------------------------------------------------------------END FUNCTION


//---------------------------------------------------------------------------------------------BEGIN FUNCTION
function techHelp(a){
	var mymessage=document.getElementById('mymessage');	
	if(navigator.family =="nn4") {document.mymessage.document.write(techMsg(a)); document.mymessage.document.close();}
	if(navigator.family =="ie4" || navigator.family =="gecko"){mymessage.innerHTML=techMsg(a);}
}//--------------------------------------------------------------------------------------------END FUNCTION

//---------------------------------------------------------------------------------------------BEGIN FUNCTION
function infoHelp(a){
	var mymessage=document.getElementById('mymessage');
	if(navigator.family =="nn4") {document.mymessage.document.write(infoMsg(a));document.mymessage.document.close();}
	if(navigator.family =="ie4" || navigator.family =="gecko"){mymessage.innerHTML=infoMsg(a);}
}//--------------------------------------------------------------------------------------------END FUNCTION
