//-- javascript
//-- buttons deployment
var ban=' onMouseOver="swON(this.id);" onMouseOut="swOFF(this.id);"';
var mu ='</div><div class="in1CollM">';
mu+='<a href="index.htm" title="Arfon Home Page" id="mainHere"><img id="mHome"'+ban+' src="inc/img/mHome.jpg" border="0"></a>';

mu+='<a href="about.htm" title="About Arfon"><img id="mAbout" onMouseOver="swON(this.id);gAboutPop();" onMouseOut="swOFF(this.id);" src="inc/img/mAbout.jpg" border="0"></a>';

mu+='<a href="motors.htm" title="Products Page"><img id="mProducts" onMouseOver="swON(this.id);gProdPop();" onMouseOut="swOFF(this.id);" src="inc/img/mProducts.jpg"border="0"></a>';

mu+='<a href="services.htm" title="Arfon Services"><img id="mServices" onMouseOver="swON(this.id);gServPop();" onMouseOut="swOFF(this.id);" src="inc/img/mServices.jpg" border="0"></a>';

mu+='<a href="emergency.htm" title="Emergency"><img id="mEmergency" onMouseOver="swON(this.id);gEmergPop();" onMouseOut="swOFF(this.id);" src="inc/img/mEmergency.jpg" border="0"></a>';

mu+='<a href="contact.htm" title="Contact Details"><img id="mContact" onMouseOver="swON(this.id);gContactPop();" onMouseOut="swOFF(this.id);" src="inc/img/mContact.jpg" border="0"></a>';

mu+='<a href="admin.htm" title="Important Company Information"><img id="mAdmin" onMouseOver="swON(this.id);gAdminPop();" onMouseOut="swOFF(this.id);" src="inc/img/mAdmin.jpg" border="0"></a>';

mu+='<a href="tools.htm" title="Essential Engineering Tools"><img id="mTools" onMouseOver="swON(this.id);gToolPop();" onMouseOut="swOFF(this.id);" src="inc/img/mTools.jpg" border="0"></a>';

mu+='</div>';

document.write(mu);
mu=null;
function swON(it){
	saPullMenu();
	document.getElementById(it).src="inc/img/"+it+"2.jpg";
	}

function swOFF(it){
	document.getElementById(it).src="inc/img/"+it+".jpg";
	}

var gpTop=312;

function gToolPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+558;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	var t2='<div class="saMFull">TOOLS &amp; DOWNLOADS</div>';
	t2+='<div class="saMFull">Energy efficiency</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/CLIMATE LEVY ENERGY EFFICIENT MOTORS & GUIDANCE IN.pdf\');">Climate Levy Energy Efficiency Guidance</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Making the most of the Climate Levy & Enhanced Capitol Allowance Scheme.pdf\');">Making the most of the Climate levy</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'http://catalog.wegelectric.com/RetornoInvestimento.asp\');">Motor payback calculator</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'http://www.carbontrust.co.uk\');">Carbon Trust Website</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'ENERGY STATEMENT.htm\';">Arfon Rewinds Energy Statement</div><br />';
	t2+='<div class="saMFull">AC motors </div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Selecting The Correct Motor Starter Single Phase current ratings.pdf\');">Selecting the correct motor starter single phase</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Selecting The Correct Motor Three Phase Motors current ratings.pdf\');">Selecting the correct motor starter three phase</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/IP Explanation and Ratings.pdf\');">IP explanation and ratings</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Identifying Your Motor.pdf\');">Identifying Your Motor</div><br />';
	t2+='<div class="saMFull">Variable Speed Drives </div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Introduction to Variable Speed Drives (VSDs).pdf\');">Introduction to Variable speed drives</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Variable Speed Drives Motor insulation & PWM Drives.pdf\');">Variable speed drives</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Effects and guidance with Bearing currents with the use of VSDs.pdf\');">Effects and guidance with bearing currents</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Motors & VSDs....Installation Guide for Power Drive Sytems.pdf\');">Motor’s and VSD installation guide </div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/VSD Driven Pumps...Best Practice Guide.pdf\');">VSD driven pumps Best practice guide</div><br />';
	t2+='<div class="saMFull">ATEX</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/ATEX Directive User Guide Power Drives and Motors.pdf\');">Atex directive user guide for Drives &amp; Motors</div><br />';
	t2+='<div class="saMFull">Engineers Tools </div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/dist/ConvertSetup.exe\');">Conversion Programme</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Shaft Dia keys & keyway dimensions.pdf\');">Shaft Diameters, Keys and Keyways</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Arfon RMS Bore and Shaft tolerances.pdf\');">Bore & Shaft Tolerances</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'PUMPS HOW_THEY_WORK.htm\';">PUMPS - How they work</div><br />';

	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
function gAboutPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+64;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	
	var t2='<div class="saMFull">ABOUT US</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_goals.htm\';">Our Goals</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_future.htm\';">A company with a future</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_quality.htm\';">High Quality Solutions</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_service.htm\';">Reliability &amp; service</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_health.htm\';">Health and Safety Statement</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'about_environmental.htm\';">Environmental Statement</div><br />';
	t2+='<div class="saMFull">ACCREDITATIONS</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/AEMT MEMBER CERTIFICATE.pdf\');">AEMT Certificate</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/WEG Distributor Certificate.pdf\');">WEG Distributor Certificate</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/pdf/Lenze Distributor Cert.pdf\');">Lenze Distributor Certificate</div><br />';
	
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
function gProdPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+140;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	
	var t2='<div class="saMFull">PRODUCTS</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'motors.htm\';">Motors</div><br />';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'gears.htm\';">Gears</div><br />';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'servo.htm\';">Servos</div><br />';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'drives.htm\';">Drives</div><br />';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'pumps.htm\';">Pumps</div><br />';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'mechanical.htm\';">Mechanical</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'alternatorgenerator.htm\';">Alternators and Generators</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'forceventfans.htm\';">Force Vent Fans</div><br />';
	
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
function gEmergPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+310;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	
	var t2='<div class="saMFull">EMERGENCY</div>';
	
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'emergency.htm\';">Service</div><br />';
		
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
function gLaunch(url){
	window.open (url,"_blank");
	}
function gServPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+234;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	var t2='<div class="saMFull">REPAIR SERVICES</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'MOTORS_RECONDITIONED AND PRE-OWNED_REPAIR.htm\';">Motor Repair</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'PUMPS_RECONDITIONED AND PRE-OWNED_REPAIR.htm\';">Pump Repair</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'GEARS_RECONDITIONED AND PRE-OWNED_REPAIR.htm\';">Gearbox Repair</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'FAN_repair.htm\';">Fan Repair</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'SERVOS_RECONDITIONED AND PRE-OWNED_REPAIR.htm\';">Servo Repair</div><br />';
	t2+='<div class="saMFull">MAINTENANCE SERVICES</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'dynamibalancing.htm\';">Dynamic Balancing</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'laseralign.htm\';">Laser Alignment</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'conditionmon.htm\';">Condition Monitoring</div><br />';

	
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
function gContactPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+404;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	
	var t2='<div class="saMFull">CONTACT</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'contactguide.htm\';">Quick contact Guide</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'contactmaps.htm\';">Locations</div><br />';
	
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
	
function gAdminPop(){
	var floatit=document.getElementById("srPop");
	var xxx=document.getElementById("mainHere");

	floatit.style.pixelLeft=jfElementPosition(xxx)+480;
	//alert(floatit.innerText);
	floatit.style.pixelTop=gpTop;
	
	var t2='<div class="saMFull">ADMIN</div>';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/certs/ACCOUNTS New Customer - Credit application form.pdf\');">Credit application form</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/certs/ARFON REWINDS LTD STANDARD TERMS & CONDITIONS.pdf\');">Standard terms and conditions </div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/certs/Company Registration Certificate.pdf\');">Company registration cert </div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/certs/Insurance Certificate.pdf\');">Insurance cert </div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="gLaunch(\'inc/certs/VAT Details.pdf\');">VAT number </div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'ecommerce.htm\';">E-Commerce Statement</div><br />';
	t2+='<div class="saMS0" onMouseOver="this.className=\'saMS3\';" onMouseOut="this.className=\'saMS0\';" onClick="location=\'privacy.htm\';">Privacy Statement</div><br />';
	
	floatit.innerHTML=t2;
	floatit.style.display="block";
	t2=null;
	}
	
function saPullMenu(){
	document.getElementById("srPop").style.display="none";
}
function jfElementPosition(thing){
	var objImage = thing;
	var objChild = objImage;
	var TotalLeft = 0;
	// do this as long as the current object is in a container
	while (objChild){
			 TotalLeft = TotalLeft + objChild.offsetLeft;
			 objChild = objChild.offsetParent;
	}
	TotalLeft = TotalLeft + objImage.offsetLeft;
	return TotalLeft;
}

function addtofav(){//linkUrl,linkTitle
   if (!document.all) {
      alert('Please hit ctrl-d to bookmark this page');
   } else {
   	  try {
        external.AddFavorite(location.href,document.title);
	    alert(location.href+", "+document.title+" has been added to favorites.");
		} catch (e) {alert("Sorry! your browser doesn't support automated bookmarks.\nYou'll have to do it manually.");}
	}
}

function jsLocateInArfon(val){
	gLaunch('http://www.google.com/search?q=+site%3Aarfonrewinds.com+'+val); 
	}
function validate_form(frm){
	var vEmail="mailto:enquiry@arfonrewinds.com?subject=RE:"+frm.name+"&body=";
	var vLen = frm.length;
	var vType 
	var vVal
	var vIgnore
	for (var x=0; x<vLen;x++){
		vType=frm.elements[x].type;
		vIgnore=false;
		vVal='';
		switch(vType){
			case "checkbox":
				vVal=frm.elements[x].checked;
				vIgnore=false;
				break;
			case "button":
				vVal='0';
				vIgnore=true;
				break;
			case "submit":
				vVal='';
				vIgnore=true;
				break;
			default:
				vVal=frm.elements[x].value;
				vIgnore=false;
				break;
		}
		if(vIgnore==false){
			vEmail+=frm.elements[x].name+"("+vType+")="+vVal+'%0A%0D';
		}
	}
	location=(vEmail);
}
function reset_form(frm){
	if(confirm("This will clear all the fields in the form \n\nSelect 'OK' to continue.")==true){
		var vLen = frm.length;
		var vType 
		for (var x=0; x<vLen;x++){
			vType=frm.elements[x].type;
			switch(vType){
				case "checkbox":
					frm.elements[x].checked=false;
					break;
				case "button":
					break;
				case "submit":
					break;
				default:
					frm.elements[x].value='';
			}
		}
	}
}
	
var message="Please Contact Arfon Rewinds for a copy of any resources from this website";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// --> 