// JavaScript Document
<!--

web_root = "http://www.waytekwire.com/";

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function centerwindow() {
	if(navigator.appName == "Microsoft Internet Explorer") {
		windowWidth = document.body.offsetWidth;
		windowHeight = document.body.offsetHeight;
	}
	else {
		windowWidth = window.outerWidth;
		windowHeight = window.outerHeight;
	}
	
	if(windowHeight > screen.availHeight) {
		window.moveTo(0,0);
		window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else {
		winXpos = (screen.availWidth - windowWidth) / 2;
		winYpos = (screen.availHeight - windowHeight) / 2;
		window.moveTo(winXpos,winYpos);
	}
}	

function Home() {
	window.location = web_root;
}

function AboutWaytek() {
	window.location = web_root+"AboutWaytek.htm";
}

function ContactUs() {
	window.open('http://order.waytekwire.com/contactus.htm','ContactUs','scrollbars=yes,resizable=yes,width=800,height=780');
}

function Features() {
	window.location = web_root+"Features.htm";
}

function CatRequest() {
	window.location = web_root+"CatRequest.htm";
}

function FAQ() {
	window.location = web_root+"FAQ.htm";
}

function CatPDF() {
	window.location = web_root+"CatPDF.htm";
}

function Terms() {
	window.location = web_root+"Terms.htm";
}

function Privacy() {
	window.location = web_root+"Terms.htm#privacy";
}

function Subscribe2Promo() {
	window.open('http://order.waytekwire.com/subrequest.htm','SubScribeForm','scrollbars=yes,resizable=yes,width=800,height=780');
}

function Products() {
	window.location = "http://order.waytekwire.com/cgi-bin/lansaweb?procfun+wordpr01+webfunc+m37+FUNCPARMS+WEBCMP(S0020):01+WEBID(S0020):01";
}

function OrdAccInfo() {
	window.location = "http://order.waytekwire.com/cgi-bin/lansaweb?procfun+wordpr01+webfunc+m37+FUNCPARMS+WEBCMP(S0020):01+WEBID(S0020):01";
}

function TermDim() {
	window.location = web_root+"Dimensions/Dimensions.htm";
}
function EndConnector() {
	window.location = web_root+"Connectors/Connectors.htm";
}

function Dimensions(type) {
	if(type == 'Bullet'){
		window.location = web_root+"Dimensions/Bullet.htm";
	} else if(type == 'Butt'){
		window.location = web_root+"Dimensions/Butt.htm";
	} else if(type == 'Hook'){
		window.location = web_root+"Dimensions/Hook.htm";
	} else if(type == 'Multi_stud'){
		window.location = web_root+"Dimensions/Multi_stud.htm";
	} else if(type == 'Parallel'){
		window.location = web_root+"Dimensions/Parallel.htm";
	} else if(type == 'Pin'){
		window.location = web_root+"Dimensions/Pin.htm";
	} else if(type == 'Push_on'){
		window.location = web_root+"Dimensions/Push_on.htm";
	} else if(type == 'RingFlag'){
		window.location = web_root+"Dimensions/RingFlag.htm";
	} else if(type == 'Ring'){
		window.location = web_root+"Dimensions/Ring.htm";
	} else if(type == 'Spade'){
		window.location = web_root+"Dimensions/Spade.htm";
	} else if(type == 'StarRing'){
		window.location = web_root+"Dimensions/StarRing.htm";
	} else if(type == 'Stock'){
		window.location = web_root+"Dimensions/Stock.htm";
	}
}

//-->