var buttonFolder = "http://www.interstateccs.com/btn/";
upSources = new Array("spacer.gif","spacer.gif","spacer.gif","ht.gif","cv.gif","hl.gif","au.gif","ht.gif","br.gif","btnmacct_off.gif","btnmm_off.gif","btnpr_off.gif");
overSources = new Array("spacer.gif","spacer.gif","spacer.gif","ht_on.gif","cv_on.gif","hl_on.gif","au_on.gif","ht_on.gif","br_on.gif","btnmacct_on.gif","btnmm_on.gif","btnpr_on.gif");
subInfo = new Array();
subInfo[1] = new Array();
subInfo[2] = new Array();
subInfo[3] = new Array();
subInfo[4] = new Array();
subInfo[5] = new Array();
subInfo[6] = new Array();
subInfo[7] = new Array();
subInfo[8] = new Array();
subInfo[9] = new Array();
subInfo[10] = new Array();
subInfo[11] = new Array();
subInfo[12] = new Array();
subInfo[13] = new Array();
subInfo[1][1] = new Array("NC Sales","http://www.interstateccs.com/nc_sales.cfm","");
subInfo[1][2] = new Array("SC Sales","http://www.interstateccs.com/sc_sales.cfm","");
subInfo[2][1] = new Array("About ICCS","http://www.interstateccs.com/aboutus.cfm","");
subInfo[2][2] = new Array("Testimonials","http://www.interstateccs.com/testimonials.cfm","");
subInfo[2][3] = new Array("Contact Us","http://www.interstateccs.com/contactus.cfm","");
subInfo[2][4] = new Array("Client Listing","http://www.interstateccs.com/client_listing.cfm","");
var xSubOffset=1;var ySubOffset=7;var overSub=false;var delay=500;var delay2=6000;totalButtons=upSources.length;for(x=0;x<totalButtons;x++){if(subInfo[x+1].length<1){document.write("<div id=\"submenu"+(x+1)+"\">");}else{document.write("<div id=\"submenu"+(x+1)+"\" class=\"dropmenu\" ");document.write("onmouseover=\"overSub=true;");document.write("setOverImg('"+(x+1)+"','');\"");document.write("onmouseout=\"overSub=false;");document.write("setTimeout('hideSubMenu(\\'submenu"+(x+1)+"\\')',delay);");document.write("setOutImg('"+(x+1)+"','');\">");document.write("<ul>");for(k=0;k<subInfo[x+1].length-1;k++){document.write("<li>");document.write("<a href=\""+subInfo[x+1][k+1][1]+"\" ");document.write("target=\""+subInfo[x+1][k+1][2]+"\">");document.write(subInfo[x+1][k+1][0]+"</a>");document.write("</li>");}document.write("</ul>");}document.write("</div>");}function preload(){for(x=0;x<totalButtons;x++){buttonUp=new Image();buttonUp.src=buttonFolder+upSources[x];buttonOver=new Image();buttonOver.src=buttonFolder+overSources[x];}}function setOverImg(_1,ID){document.getElementById("nav"+_1+ID).src=buttonFolder+overSources[_1-1];}function setOutImg(_3,ID){document.getElementById("nav"+_3+ID).src=buttonFolder+upSources[_3-1];}function getElement(id){return document.getElementById?document.getElementById(id):document.all?document.all(id):null;}function getRealLeft(id){var el=getElement(id);if(el){xPos=el.offsetLeft;tempEl=el.offsetParent;while(tempEl!=null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent;}return xPos;}}function getRealTop(id){var el=getElement(id);if(el){yPos=el.offsetTop;tempEl=el.offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent;}return yPos;}}function moveObjectTo(_a,x,y){var el=getElement(_a);el.style.left=x+"px";el.style.top=y+"px";show(_a);}function moveObjectToX(_e,x,y){var el=getElement(_e);el.style.left=x+"px";el.style.top=y+"px";show(_e);var obj=findObj("FixIt");if(navigator.appVersion.indexOf("MSIE")>0){if(_e=="submenu1"||_e=="submenu2"||_e=="submenu3"){try{obj.style.visibility="hidden";obj.style.display="block";}catch(e){}}}obj = findObj("newsCover");	if (_e=="submenu6" || _e=="submenu7" || _e=="submenu9"){try{obj.style.visibility = "hidden";obj.style.display = "block";}catch(e){}}}function showSubMenu(_13,_14){hideAllSubMenus();butX=getRealLeft(_14);butY=getRealTop(_14);moveObjectToX(_13,butX+xSubOffset,butY+ySubOffset);}function hideAllSubMenus(){for(x=0;x<totalButtons;x++){moveObjectTo("submenu"+(x+1)+"",-500,-500);}}function hideSubMenu(_15){if(overSub==false){moveObjectTo(_15,-500,-500);var obj=findObj("FixIt");if(navigator.appVersion.indexOf("MSIE")>0){if(_15=="submenu1"||_15=="submenu2"||_15=="submenu3"){try{obj.style.visibility="visible";obj.style.display="";}catch(e){}}}obj = findObj("newsCover");	if (_15=="submenu6" || _15=="submenu7" || _15=="submenu9"){try{obj.style.visibility = "visible";obj.style.display = "";}catch(e){}}}}
var dom=document.getElementById?1:0;var ie=document.all?1:0;var ns=document.layers?1:0;var searchResultsHTML="";function showObject(_1){var a=_1.split(",");for(var i=0;i<a.length;i++){show(a[i]);}}function hideObject(_4){var a=_4.split(",");for(var i=0;i<a.length;i++){hide(a[i]);}}function show(_7){_7=findObj(_7);if(!_7){return;}if(dom||ie){_7.style.visibility="visible";_7.style.display="";}else{if(ns){if(document.layers[_7]){_7.visibility="show";_7.display="";}}}}function hide(_8){_8=findObj(_8);if(!_8){return;}if(dom||ie){_8.style.visibility="hidden";_8.style.display="none";}else{if(ns){if(document.layers[_8]){_8.visibility="hide";_8.display="none";}}}}function findObj(_9){var p,i,found,doc;doc=document;if(!(found=doc[_9])&&ie){found=doc.all[_9];}for(i=0;!found&&i<doc.forms.length;i++){found=doc.forms[i][_9];}for(i=0;!found&&ns&&i<doc.layers.length;i++){found=find(_9,doc.layers[i].document);}if(!found&&dom){found=document.getElementById(_9);}return found;}function getObj(_b){if(document.getElementById){this.obj=document.getElementById(_b);this.style=document.getElementById(_b).style;}else{if(document.all){this.obj=document.all[_b];this.style=document.all[_b].style;}else{if(document.layers){this.obj=document.layers[_b];this.style=document.layers[_b];}}}}function isDHTML(){var _c=(document.getElementById||document.all||document.layers);return _c;}