
/* Header */
function HeaderHome() {
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#FFFFFF'>");
document.write("<tr>");
document.write("<td><a href='/index2.html'><img src='/cec/images/ef_logo.gif' width='179' height='89' border='0'></a></td>");
// document.write("<td width='100%'><img src='/cec/images/clear.gif' width='263' height='1' alt=''></td>");
document.write("<td><a name='top'></a>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<td><img src='/cec/images/clear.gif' width='1' height='23' alt=''></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='100%'><img src='/cec/images/clearheader_cec.gif' width='436' height='1' alt=''></td>");
document.write("<td valign='bottom'><img src='/cec/images/header_screws.jpg' width='83' height='51' border='0'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align='right' valign='bottom'><img src='/cec/images/top_tab_left.gif' width='229' height='16' border='0'></td>");
document.write("<td><a href='/fasteners/index.html'><img src='/cec/images/header_get_fastener.gif' width='83' height='16' border='0'></a></td>");
document.write("</tr>");		
document.write("</table>");		
document.write("</td>");	
document.write("</tr>");
document.write("<tr><td colspan='3' bgcolor='#8d8c8e'><img src='/cec/images/clear.gif' width='1' height='1' alt=''></td></tr>");  
document.write("</table>");
}

function Header() {
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#FFFFFF'>");
document.write("<tr>");
document.write("<td><a href='/index.html'><img src='/cec/images/ef_logo.gif' width='179' height='89' border='0'></a></td>");
// document.write("<td width='100%'><img src='/cec/images/clear.gif' width='263' height='1' alt=''></td>");
document.write("<td><a name='top'></a>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<td><img src='/cec/images/clear.gif' width='1' height='23' alt=''></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='100%'><img src='/cec/images/header_cec.gif' width='436' height='50' alt=''></td>");
document.write("<td valign='bottom'><img src='/cec/images/header_screws.jpg' width='83' height='51' border='0'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align='right' valign='bottom'><img src='/cec/images/top_tab_left.gif' width='229' height='16' border='0'></td>");
document.write("<td><a href='/fasteners/index.html'><img src='/cec/images/header_get_fastener.gif' width='83' height='16' border='0'></a></td>");
document.write("</tr>");		
document.write("</table>");		
document.write("</td>");	
document.write("</tr>");
document.write("<tr><td colspan='3' bgcolor='#8d8c8e'><img src='/cec/images/clear.gif' width='1' height='1' alt=''></td></tr>");  
document.write("</table>");
}

/* Left Columns */
/* function CompanyLeftCol() {
document.write("<td valign='top' bgcolor='#5a595c'><img src='/cec/images/left_col.jpg' width='143' height='200' border='0'></td>");
} */

// IMAGE ROTATION
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] ='/cec/images/left_col_cec.jpg'
theImages[1] ='/cec/images/left_col_cec2.jpg'
theImages[2] ='/cec/images/left_col_cec3.jpg'
theImages[3] ='/cec/images/left_col_cec4.jpg'
theImages[4] ='/cec/images/left_col_cec5.jpg'
//theImages[5] = 'images/left_col_cec6.jpg'
//theImages[6] = 'images/left_col_cec7.jpg'
// do not edit anything below this line
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage()
		{
		document.write('<img src="'+theImages[whichImage]+'">');
		}


function CompanyLeftCol() {
document.write("<td valign='top' bgcolor='#59585c' background='/cec/images/left_col_bg.gif'><script language='JavaScript'>showImage();</script><br><!-- <a href='/cec/request_form.html'><img src='/cec/images/request_cec.gif' width='170' height='400' border='0'></a> --></td>");
}

function WhyCECLeftCol() {
document.write("<td valign='top' bgcolor='#59585c' background='/cec/images/left_col_bg.gif'><script language='JavaScript'>showImage();</script><br><!-- <a href='/cec/request_form.html'><img src='/cec/images/order_cec3.gif' width='116' height='16' border='0' hspace='15'></a> --></td>");
}

function ServicesLeftCol() {
document.write("<td valign='top' bgcolor='#59585c' background='/cec/images/left_col_bg.gif'><script language='JavaScript'>showImage();</script><br><!-- <a href='/cec/request_form.html'><img src='/cec/images/order_cec3.gif' width='116' height='16' border='0' hspace='15'></a> --></td>");
}

function SolutionsLeftCol() {
document.write("<td valign='top' bgcolor='#59585c' background='/cec/images/left_col_bg.gif'><script language='JavaScript'>showImage();</script><br><!-- <a href='/cec/request_form.html'><img src='/cec/images/order_cec3.gif' width='116' height='16' border='0' hspace='15'></a> --></td>");
}

function ContactUsLeftCol() {
document.write("<td valign='top' bgcolor='#59585c' background='/cec/images/left_col_bg.gif'><script language='JavaScript'>showImage();</script></td>");
}


function RightCol() {
document.write("<td valign='top'><br><br><a href='/cec/request_form.html'><img src='/cec/images/right_col_request.gif' width='170' height='400' alt=''></a></td>");
}
/* 
Menu and Nav functions
*/ 

function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();






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 ron_findObj(n){
var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
}else{x=document.getElementById(n)}return x;
}

function CECComShowHideLayers() {
var i,p,v,obj,args=CECComShowHideLayers.arguments;if(document.getElementById){
for (i=0; i<(args.length-2); i+=3){ obj=ron_findObj(args[i]);v=args[i+2];
v=(v=='show')?'visible':(v='hide')?'hidden':v;
if(obj)obj.style.visibility=v;}} else{
for (i=0; i<(args.length-2); i+=3) if ((obj=findOron(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
}

function findOron(n, d) { //v4.0
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=findOron(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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];}
}



/* 
Intrapage functions
*/ 


function CECCom_Paging(theURL) { // v.EF2004
window.location=(theURL);}


function CECCom_toggletext(id, ronsayschange) { // v.EF2006 - ron
if (document.getElementById) {
document.getElementById(id).style.fontSize = ronsayschange;
}
}

function CECCom_Copyright() { // v.EF2004
CECCom_fulldate=new Date();
CECCom_autoupdateyear=CECCom_fulldate.getFullYear();
document.write('Copyright &copy; 2001-');
document.write(CECCom_autoupdateyear);
document.write('&nbsp;EF Inc., all rights reserved.&nbsp;&nbsp;&#149;&nbsp;&nbsp;80 Weston Street&nbsp;&nbsp;&#149;&nbsp;&nbsp;Hartford, CT 06120<br>');
document.write('Phone: 800.243.9981&nbsp;&nbsp;&#149;&nbsp;&nbsp;860.246.7411&nbsp;&nbsp;&#149;&nbsp;&nbsp;Fax: 860.247.1649');
}



function CECCom_Footer_Home() { 
document.write("<table width='100%' cellpadding=0 cellspacing=0 border='0'>");
document.write("<tr>");
document.write("<td bgcolor='#5a595c' valign=top><br><br><img src='/cec/images/clear.gif' width='143' height='1' alt=''></td>");
document.write("<td bgcolor='#FFFFFF' valign=bottom width='100%'><img src='/cec/images/left_angle.gif' width='36' height='35' border='0'></td>");
document.write("</tr></table>");
document.write("<table width='100%' cellpadding=0 cellspacing=0 border='0'>");
document.write("<tr><td valign=top rowspan='2'><img src='images/clear.gif' width='195' height='1' alt=''></td>");
document.write("<td width='100%' valign=top class=footertextHome><br><a href='/cec/index.html' class=footertext>Home</a> &nbsp; | &nbsp; <a href='/cec/company/index.html' class=footertext>Company</a> &nbsp; | &nbsp; <a href='/cec/why_ef/index.html' class=footertext>Why E&F?</a> &nbsp; | &nbsp; <a href='/cec/components/index.html' class=footertext>Products</a> &nbsp; | &nbsp; <a href='/cec/contact_us.html' class=footertext>Contact Us</a><br></td></tr>");
document.write("<tr><td valign=top class=footertextHome>");
CECCom_Copyright();
document.write("</td></tr></table>");
}

function CECCom_Footer() { 
document.write("<table width='100%' cellpadding=0 cellspacing=0 border='0'>");
document.write("<tr>");
document.write("<td bgcolor='#5a595c' valign=top><br><br><img src='/cec/images/clear.gif' width='150' height='1' alt=''></td>");
document.write("<td bgcolor='#FFFFFF' valign=bottom width='100%'><img src='/cec/images/left_angle.gif' width='36' height='35' border='0'></td>");
document.write("</tr></table>");
document.write("<table width='100%' cellpadding=0 cellspacing=0 border='0'>");
document.write("<tr><td valign=top rowspan='2'><img src='images/clear.gif' width='180' height='1' alt=''></td>");
document.write("<td width='100%' valign=top class=footertextHome><br><a href='/cec/index.html' class=footertext>Home</a>&nbsp;&nbsp;&#149;&nbsp;&nbsp;<a href='/cec/company/index.html' class=footertext>Company</a>&nbsp;&nbsp;&#149;&nbsp;&nbsp;<a href='/cec/why_ef/index.html' class=footertext>Why E&F?</a>&nbsp;&nbsp;&#149;&nbsp;&nbsp;<a href='/cec/components/index.html' class=footertext>Products</a>&nbsp;&nbsp;&#149;&nbsp;&nbsp;<a href='/cec/contact_us.html' class=footertext>Contact Us</a><br></td></tr>");
document.write("<tr><td valign=top class=footertextHome>");
CECCom_Copyright();
document.write("</td></tr></table>");
}

function CECCom_Copyright_Home() { // v.EF2004
CECCom_fulldate=new Date();
CECCom_autoupdateyear=CECCom_fulldate.getFullYear();
document.write('We want you to know&reg; &nbsp; | &nbsp; Copyright &copy; 2001-');
document.write(CECCom_autoupdateyear);
document.write('&nbsp;EF Inc., all rights reserved. 80 Weston Street&nbsp;&nbsp;&#149;&nbsp;&nbsp;Hartford, CT 06120<br>');
document.write('Phone: 800.243.9981&nbsp;&nbsp;&#149;&nbsp;&nbsp;Fax: 860.247.1649');
}


/* 
Window functions
*/ 

function CECCom_PopWindow(theURL,winName,features) { //v.EF2004
window.open(theURL,winName,'status=yes,scrollbars=yes,menubar=yes,width=700,height=450,top=6,left=6');}

function CECCom_CloseWindow() { // v.EF2004
window.close();}

function CECCom_PrintWindow() { // v.EF2004
window.print();}

