//******** p_style var agt = navigator.userAgent.toLowerCase(); var ie_6 = ((agt.indexOf("msie 6.0") != -1)); var ie_7 = ((agt.indexOf("msie 7.0") != -1)); function changeLogoLink(id) { var logo_link = document.getElementById(id); if (logo_link.href != "http://www.partstown.com") logo_link.href = "http://www.partstown.com"; } function style() { if (ie_6) { return ''} else if (ie_7) {return ''} else {return ''} } var countryElement = document.getElementById('country'); var stateElement = document.getElementById('states'); var rememberedStates = [0, 0, 0]; var canadianStates = new Array( 'Select One', 'Alberta', 'British Columbia', 'Manitoba', 'New Brunswick', 'Newfoundland and Labrador', 'Nova Scotia', 'Ontario', 'Prince Edward Island', 'Quebec', 'Saskatchewan', 'Northwest Territories', 'Nunavut', 'Yukon'); var americanStates = new Array( 'Select One', 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'Washington DC', 'West Virginia', 'Wisconsin', 'Wyoming'); function remember_st() { var index = (countryElement.selectedIndex >= 0 && countryElement.selectedIndex <= 2) ? countryElement.selectedIndex : 2; rememberedStates[index] = stateElement.selectedIndex; } function createOption(optionText) { var option = document.createElement('OPTION'); option.text = optionText; if(optionText!="Select One") option.value = optionText; else option.value = ""; return option; } function setStates(states) { for (var i = 0; i < states.length; i++) stateElement.options.add(createOption(states[i])); if (rememberedStates[countryElement.selectedIndex] != 0) stateElement.selectedIndex = rememberedStates[countryElement.selectedIndex] ? rememberedStates[countryElement.selectedIndex] : 0; } function change_states() { stateElement = document.getElementById('states'); if (stateElement == null) return; while (stateElement.options.length > 0) { stateElement.remove(stateElement.length-1); } countryElement = document.getElementById('country'); if (countryElement == null) return; switch (countryElement.selectedIndex) { case 0: setStates(americanStates); break; case 1: setStates(canadianStates); break; default: stateElement.options.add(createOption('N/A')); break; } } document.write(style()); //****** p_cache_js function checkcache(){ x=document.getElementById('flogin'); returnto(x,true); return true; } function checkcache_logout(){ x=document.getElementById('logout_form'); returnto(x,false); } function returnto(x,y){ if(document.getElementById('cache1')!=null){ qq=document.getElementById('cache1').page.value; for (var i=0;i< x.length; i++) { if(x.elements[i].name!='LoginForm_Password' && x.elements[i].name!='LoginForm_Login' && x.elements[i].name!='LoginCalledFromReq' && x.elements[i].name!='remember' && x.elements[i].name!='TemplateName1' && x.elements[i].name!='TargetPipeline1'){ x.elements[i].name="xxx"; x.elements[i].value="yyy"; } if(qq=='Welcome'){ if(x.elements[i].name=='TargetPipeline1'){ x.elements[i].name='TargetPipeline'; x.elements[i].value='Default-Start'; } }else if(qq=='linecard'){ if(x.elements[i].name=='TemplateName1'){ x.elements[i].name='page'; x.elements[i].value='LineCard'; } if(x.elements[i].name=='TargetPipeline1'){ x.elements[i].name='TargetPipeline'; x.elements[i].value='ViewStaticPage-Start'; } }else if(qq=='landing'){ if(x.elements[i].name=='TargetPipeline1'){ x.elements[i].name='TargetPipeline'; x.elements[i].value='ViewLandingPage-Start'; } if(x.elements[i].name=='TemplateName1'){ x.elements[i].name='CatID'; x.elements[i].value=document.getElementById('cache1').pageid.value; } }else if(qq=='pip'){ if(x.elements[i].name=='TargetPipeline1'){ x.elements[i].name='TargetPipeline'; x.elements[i].value='ViewOfferDetail-Start'; } if(x.elements[i].name=='TemplateName1'){ x.elements[i].name='ProductUUID'; x.elements[i].value=document.getElementById('cache1').pageid.value; } }else{ if(x.elements[i].name=='TemplateName1'){ x.elements[i].name='TemplateName'; x.elements[i].value=qq; } if(x.elements[i].name=='TargetPipeline1'){ x.elements[i].name='TargetPipeline'; x.elements[i].value='ptExtraPage-Start'; } } } } if(!y) x.submit(); } // p_show function show(id1, id2) { if (document.getElementById(id1).checked == true) { document.getElementById(id2).style.visibility="visible"; } else { document.getElementById(id2).style.visibility="hidden"; } } function credit_card() { document.getElementById('content_1').style.display="none"; document.getElementById('content').style.display="block"; document.getElementById('card').checked=true; } function bill_account() { document.getElementById('content').style.display="none"; document.getElementById('content_1').style.display="block"; document.getElementById('bill').checked=true; } function setElementVisibleById(id, visible) { var element = document.getElementById(id); if (element) { element.style.display = (!visible) ? 'none' : ((typeof visible).toLowerCase == 'string') ? visible : 'block'; } } var fie = (navigator.userAgent.toLowerCase().indexOf('msie') > 0); function setAddToCatalogMode() { setElementVisibleById('order_confirm_header', false); setElementVisibleById('add_to_cat_header', true); setElementVisibleById('add_to_cat_btn_container', true); var TDs = document.getElementsByTagName('td'); for (var i = 0; i < TDs.length; i++) { if (TDs[i].className.indexOf('selection_column') >= 0) { TDs[i].style.display = (fie ? 'block' : 'table-cell'); } } document.getElementById('order_items_table').style.width = '880px'; document.getElementById('totals_div').style.width = '880px'; document.getElementById('page_header').innerHTML = 'Add to My Catalog'; document.getElementById('breadcrumbs_page_name').innerHTML = 'Add to My Catalog'; } function setOrderConfirmationMode() { setElementVisibleById('order_confirm_header', true); setElementVisibleById('add_to_cat_header', false); setElementVisibleById('add_to_cat_btn_container', false); var TDs = document.getElementsByTagName('td'); for (var i = 0; i < TDs.length; i++) { if (TDs[i].className.indexOf('selection_column') >= 0) { TDs[i].style.display = 'none'; } } document.getElementById('order_items_table').style.width = '880px'; document.getElementById('totals_div').style.width = '880px'; document.getElementById('page_header').innerHTML = 'Order Confirmation'; document.getElementById('breadcrumbs_page_name').innerHTML = '  >  Order Confirmation'; document.getElementById('h51').innerHTML = 'Selected items were successfully added to catalog.'; } function ccinfo(i) { if(i==0){ document.getElementById('saved_card').style.display="none"; document.getElementById('delete').style.display="none"; document.getElementById('type').style.paddingTop="20px"; document.getElementById('bot').style.paddingBottom="30px"; document.getElementById('f1').selectedIndex=0; document.getElementById('f3').value=""; document.getElementById('f4').value=""; document.getElementById('f5').value="1"; document.getElementById('f6').value="2007"; document.getElementById('UpdateOrAdd').value="ADD"; document.getElementById('VerificationCode').value=""; }else{ document.getElementById('saved_card').style.display="none"; document.getElementById('delete').style.display="none"; document.getElementById('type').style.paddingTop="20px"; document.getElementById('bot').style.paddingBottom="30px"; document.getElementById('UpdateOrAdd').value="ADD"; } } function ccinfo_back() { document.getElementById('saved_card').style.display="block"; document.getElementById('UpdateOrAdd').value="UPDATE"; document.getElementById('bock').selectedIndex=0; document.getElementById('delete').style.display="block"; document.getElementById('type').style.paddingTop="0px"; document.getElementById('bot').style.paddingBottom="0px"; } if(window.addEventListener) { window.addEventListener('load', qqqload, false); } else { window.attachEvent('onload', qqqload); } function qqqload(){ countryElement = document.getElementById('country'); stateElement = document.getElementById('states'); } function leftpanheight() { var m=190; var lmenu=document.getElementById('left_bar'); if (lmenu!=null) { var r=parseInt(document.getElementById('main_body_EA').offsetHeight); if(m < r){m=r;} if (m< lmenu) {m=lmenu;} lmenu.style.height=m+'px'; } //alert(lmenu); document.getElementById('lmenu').style.backgroundImage=" http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/left_back.png"; document.getElementById('lmenu').style.backgroundRepeat="repeat-y"; } function showHide(targetName) { var target1; // short list var target2; // full list if( document.getElementById ) { // NS6+ target1 = document.getElementById(targetName + "_short"); target2 = document.getElementById(targetName + "_long"); } else if( document.all ) { // IE4+ target1 = document.all[targetName + "_short"]; target2 = document.all[targetName + "_long"]; } if( target1 && target2 ) { if ( target1.style.display == "none" ) { target1.style.display = "block"; target2.style.display = "none"; } else { target1.style.display = "none"; target2.style.display = "block"; } } return false; } function chkit(){ document.getElementById("frm").submit(); } function click(){ var s1=""; var s2=""; var s3=""; var s4=""; var s5=""; var s6=""; if(document.getElementById("q1").value!="Qty") s1=document.getElementById("q1").value if(document.getElementById("q3").value!="Qty") s3=document.getElementById("q3").value if(document.getElementById("q5").value!="Qty") s5=document.getElementById("q5").value if(document.getElementById("q2").value!="Item") s2=document.getElementById("q2").value if(document.getElementById("q4").value!="Item") s4=document.getElementById("q4").value if(document.getElementById("q6").value!="Item") s6=document.getElementById("q6").value window.location.href="http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/InstantBuy-Start"+"?s1="+s1+"&s2="+s2+"&s3="+s3+"&s4="+s4+"&s5="+s5+"&s6="+s6; } function change_description() { document.getElementById('description').style.backgroundImage="url( http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/grey_tab.gif)"; document.getElementById('description').style.color="#575757"; document.getElementById('description_content').style.display="block"; document.getElementById('specs').style.backgroundImage="none"; document.getElementById('specs').style.color="#898989"; document.getElementById('specs_content').style.display="none"; if(document.getElementById('models') != null){ document.getElementById('models').style.backgroundImage="none"; document.getElementById('models').style.color="#898989"; document.getElementById('models_content').style.display="none"; } } function change_specs() { document.getElementById('specs').style.backgroundImage="url( http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/grey_tab.gif)"; document.getElementById('specs').style.color="#575757"; document.getElementById('specs_content').style.display="block"; document.getElementById('description').style.backgroundImage="none"; document.getElementById('description').style.color="#898989"; document.getElementById('description_content').style.display="none"; if(document.getElementById('models') != null){ document.getElementById('models').style.backgroundImage="none"; document.getElementById('models').style.color="#898989"; document.getElementById('models_content').style.display="none"; } } function change_models(aa) { if(aa==1) document.location.href = '#docs'; document.getElementById('models').style.backgroundImage="url( http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/grey_tab.gif)"; document.getElementById('models').style.color="#575757"; document.getElementById('models_content').style.display="block"; document.getElementById('description').style.backgroundImage="none"; document.getElementById('description').style.color="#898989"; document.getElementById('description_content').style.display="none"; document.getElementById('specs').style.backgroundImage="none"; document.getElementById('specs').style.color="#898989"; document.getElementById('specs_content').style.display="none"; } function createCP(form) { form.FromLP.value = form.txtVal.value; if(form.Manuf.value == ""){ form.Question.value = form.txtVal.value; form.Action.value = ""; form.CategoryPath.value = ""; } else { form.Question.value = form.Manuf.value; if(form.txtVal.value == "Enter keyword or item#"){ form.CategoryPath.value = ""; } else{ form.CategoryPath.value = "All Products////UserSearch=" + form.txtVal.value; } } return true; } function entsub(myform) { if (window.event && window.event.keyCode == 13) myform.submit(); else return true; } function openInfo() { var windowWidth; var windowHeight; var browser = navigator.appName; if ( browser == 'Microsoft Internet Explorer' ) { windowWidth = 525; windowHeight = 340; } else { windowWidth = 505; windowHeight = 320; } var params='width='+windowWidth+',height='+windowHeight+',scrollbars=1'; var secInfo = window.open('http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewCCInfo-Popup','card_security_id_popup',params); } function getCartByAjax(id){ document.getElementById(id).style.visibility="hidden"; if (!xmlhttp){ initXMLHTTP (); //alert('initXMLHTTP'); } xmlhttp.open("GET","http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewCurrentReq-GetCartByAjax",true); xmlhttp.onreadystatechange = function(){if(xmlhttp.readyState == 4){ if ( xmlhttp.responseText.indexOf('invalid') == -1 ) { if (xmlhttp.responseText.indexOf("empty_cart") == -1){ document.getElementById(id).innerHTML = xmlhttp.responseText; document.getElementById(id).style.visibility="visible"; } } } } xmlhttp.send(null); } //***** p_drops var NN = (document.layers) ? true : false; var IE = (document.all) ? true : false; var OP = (window.opera) ? true : false; var DOM = (document.getElementById) ? true : false; var showLayer = NN ? "show" : "visible"; var hideLayer = NN ? "hide" : "hidden"; function hideControls() { if (IE == false) return; var re = new RegExp("select", "i"); var re2 = new RegExp("Manufacturer|Model"); for (var i = 0; i < document.forms.length; i++) { for (var j = 0; j < document.forms[i].length; j++) { var ide = document.forms[i].elements[j].name; if (re.test(document.forms[i].elements[j].type) && !re2.test(ide)) { document.forms[i].elements[j].style.visibility = hideLayer; } } } } function hideControls1() { if (IE == false) return; var re = new RegExp("select", "i"); var re2 = new RegExp("Manufacturer|Model"); for (var i = 0; i < document.forms.length; i++) { for (var j = 0; j < document.forms[i].length; j++) { var ide = document.forms[i].elements[j].name; if (ie_6==true) { document.getElementById('tableidselect').style.visibility="hidden"; } if (re.test(document.forms[i].elements[j].type) && !re2.test(ide)) { document.forms[i].elements[j].style.visibility = hideLayer; } } } } function showControls() { var re = new RegExp("select","i"); var re2 = new RegExp("Manufacturer|Model"); for (var i = 0; i < document.forms.length; i++) { if (i==0) { document.getElementById('tableidselect').style.visibility="visible"; } for (var j = 0; j < document.forms[i].length; j++) { var ide = document.forms[i].elements[j].name; if (re.test(document.forms[i].elements[j].type) && !re2.test(ide)) { document.forms[i].elements[j].style.visibility=showLayer; } } } } /* -------------------------------------- */ /* Sirius Drop Down Menu Configuration */ /* -------------------------------------- */ ////////////////////////////////////////////////// /* -------------------------------------- */ /* General Submenu Settings. */ /* -------------------------------------- */ SDDM_submenu_x = 0; SDDM_submenu_y = 0; SDDM_submenu_width = 300; SDDM_submenu_border = 1; SDDM_submenu_border_color = "#EFEBDF"; SDDM_submenu_item_indent = 5; SDDM_submenu_item_height = 1; SDDM_submenu_item_spacing = 0; SDDM_submenu_item_spacing_color = "#EFEBDF"; SDDM_submenu_background_color = "#EFEBDF"; SDDM_submenu_highlight_color = "#EFEBDF"; SDDM_submenu_font_face = "Verdana"; SDDM_submenu_font_size = "10px"; SDDM_submenu_font_color = "#575757"; SDDM_submenu_text_decoration = "none"; SDDM_submenu_font_highlight_color = "#000000"; SDDM_submenu_url_target = "_self"; SDDM_hide_delay = 200; /* ------------------------------------ */ /* Custom Submenu Settings. */ /* (added by Jon Davis) */ /* ------------------------------------ */ //Menu 1 SDDM_image1_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/replacem_parts.png" SDDM_image1_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/replacem_parts.png" var SDDM_submenu1_properties = new Object(); SDDM_submenu1_properties.used = true; SDDM_submenu1_properties.xOffset = 0; SDDM_submenu1_properties.yOffset = 25; SDDM_submenu1_properties.itemheight = 17; SDDM_submenu1_1_text = "AJ Antunes-Roundup"; SDDM_submenu1_1_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27AJ+ANTUNES+-+ROUNDUP%27"; SDDM_submenu1_2_text = "BKI"; SDDM_submenu1_2_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27BKI%27"; SDDM_submenu1_3_text = "Blodgett"; SDDM_submenu1_3_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27BLODGETT%27"; SDDM_submenu1_4_text = "Frymaster"; SDDM_submenu1_4_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27FRYMASTER%27"; SDDM_submenu1_5_text = "Garland-US Range"; SDDM_submenu1_5_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27GARLAND%27"; SDDM_submenu1_6_text = "Middleby"; SDDM_submenu1_6_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27MIDDLEBY%27"; SDDM_submenu1_7_text = "Nieco"; SDDM_submenu1_7_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27NIECO%27"; SDDM_submenu1_8_text = "Pitco"; SDDM_submenu1_8_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27PITCO%27"; SDDM_submenu1_9_text = "Prince Castle"; SDDM_submenu1_9_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27PRINCE+CASTLE%27"; SDDM_submenu1_10_text = "Randell"; SDDM_submenu1_10_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27RANDELL%27"; SDDM_submenu1_11_text = "Scotsman"; SDDM_submenu1_11_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27SCOTSMAN%27"; SDDM_submenu1_12_text = "Silver King"; SDDM_submenu1_12_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27SILVER+KING%27"; SDDM_submenu1_13_text = "Vulcan Hart"; SDDM_submenu1_13_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_AttributeSelected&Question=Manufacturer%3D%27VULCAN+HART%27"; SDDM_submenu1_14_text = "View All Manufacturers"; SDDM_submenu1_14_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewStaticPage-Start?page=LineCard"; SDDM_submenu1_properties.width = 167; //Menu 2 SDDM_image2_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/accessories_0.gif" SDDM_image2_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/accessories_1.gif" var SDDM_submenu2_properties = new Object(); SDDM_submenu2_properties.used = true; SDDM_submenu2_properties.xOffset = 0; SDDM_submenu2_properties.yOffset = 25; SDDM_submenu2_properties.itemheight = 17; SDDM_submenu2_1_text = "Baffle Grease Filters" SDDM_submenu2_1_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FAccessories%2FSmallwares%2F%2F%2F%2FBaffle+Grease+Filters" SDDM_submenu2_2_text = "Fryer Accessories" SDDM_submenu2_2_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FAccessories%2FSmallwares%2F%2F%2F%2FFryer+Accessories" SDDM_submenu2_3_text = "Health & Safety" SDDM_submenu2_3_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FAccessories%2FSmallwares%2F%2F%2F%2FHealth+%26+Safety" SDDM_submenu2_4_text = "Kitchen Supplies" SDDM_submenu2_4_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FAccessories%2FSmallwares%2F%2F%2F%2FKitchen+Supplies" SDDM_submenu2_5_text = "View All" SDDM_submenu2_5_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FAccessories%2FSmallwares" SDDM_submenu2_properties.width = 215; //Menu 3 SDDM_image3_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/equipment_0.gif" SDDM_image3_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/equipment_1.gif" var SDDM_submenu3_properties = new Object(); SDDM_submenu3_properties.used = true; SDDM_submenu3_properties.xOffset = 0; SDDM_submenu3_properties.yOffset = 25; SDDM_submenu3_properties.itemheight = 17; SDDM_submenu3_1_text = "Blenders"; SDDM_submenu3_1_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FBlenders"; SDDM_submenu3_2_text = "Can Openers"; SDDM_submenu3_2_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FCan+Openers"; SDDM_submenu3_3_text = "Charbroiler Counter Top"; SDDM_submenu3_3_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FCharbroiler+Counter+Top"; SDDM_submenu3_4_text = "Convection Counter Top"; SDDM_submenu3_4_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FConvection+Oven+Counter+Top"; SDDM_submenu3_5_text = "Disposers"; SDDM_submenu3_5_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FDisposers"; SDDM_submenu3_6_text = "Griddle Counter Top"; SDDM_submenu3_6_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FGriddle+Counter+Top"; SDDM_submenu3_7_text = "Hot Dog Cookers "; SDDM_submenu3_7_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FHot+Dog+Cookers"; SDDM_submenu3_8_text = "Hotplate Counter Top"; SDDM_submenu3_8_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FHotplate+Counter+Top"; SDDM_submenu3_9_text = "Ice Machines & Bins"; SDDM_submenu3_9_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FIce+Machines+%26+Bins"; SDDM_submenu3_10_text = "Microwaves"; SDDM_submenu3_10_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FMicrowaves"; SDDM_submenu3_11_text = "Refrigeration"; SDDM_submenu3_11_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FRefrigeration"; SDDM_submenu3_12_text = "Sandwich Grills"; SDDM_submenu3_12_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FSandwich+Grills"; SDDM_submenu3_13_text = "Slicers"; SDDM_submenu3_13_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FSlicers"; SDDM_submenu3_14_text = "Toasters"; SDDM_submenu3_14_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FToasters"; SDDM_submenu3_15_text = "Warmers"; SDDM_submenu3_15_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment%2F%2F%2F%2FWarmers"; SDDM_submenu3_16_text = "View All"; SDDM_submenu3_16_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewEasyAskSearch-Start?Action=CA_CategoryExpand&CategoryPath=All+Products%2F%2F%2F%2FEquipment"; SDDM_submenu3_properties.width = 150; //Menu 4 SDDM_image4_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/manufactures.png" SDDM_image4_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/manufactures.png" var SDDM_submenu4_properties = new Object(); SDDM_submenu4_properties.used = true; SDDM_submenu4_properties.xOffset = 0; SDDM_submenu4_properties.yOffset = 25; SDDM_submenu4_properties.itemheight = 17; SDDM_submenu4_1_text = "Item 4.1" SDDM_submenu4_1_link = "" SDDM_submenu4_2_text = "Item 4.2" SDDM_submenu4_2_link = "" SDDM_submenu4_3_text = "Item 4.3" SDDM_submenu4_3_link = "" SDDM_submenu4_4_text = "Item 4.4" SDDM_submenu4_4_link = "" SDDM_submenu4_5_text = "Item 4.5" SDDM_submenu4_5_link = "" SDDM_submenu4_properties.width = 140; //Menu 5 SDDM_image5_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/resources.png" SDDM_image5_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/resources.png" var SDDM_submenu5_properties = new Object(); SDDM_submenu5_properties.used = true; SDDM_submenu5_properties.xOffset = 0; SDDM_submenu5_properties.yOffset = 25; SDDM_submenu5_properties.itemheight = 17; SDDM_submenu5_1_text = "FAQ's" SDDM_submenu5_1_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=faq" SDDM_submenu5_2_text = "Why Choose Genuine OEM Parts" SDDM_submenu5_2_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=genuineoem" SDDM_submenu5_3_text = "How To Locate Model And Serial#" SDDM_submenu5_3_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=location_of_make" SDDM_submenu5_4_text = "Links To Manufacturer Websites" SDDM_submenu5_4_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=manufacturerlinks" SDDM_submenu5_5_text = "Manufacturer Service Manuals" SDDM_submenu5_5_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewLandingPage-ServiceManualsAndPartsDiagrams" SDDM_submenu5_6_text = "Electronic Manuals (EMWEB)" SDDM_submenu5_6_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-StartLight?TemplateName=emweblogin&ptStartAnchor=" SDDM_submenu5_7_text = "Food Equipment Service Directory" SDDM_submenu5_7_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=food_equipment" SDDM_submenu5_8_text = "Description Of Ice Forms" SDDM_submenu5_8_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=ice_forms" SDDM_submenu5_9_text = "Blog" SDDM_submenu5_9_link = "http://www.partstown.com/blog" SDDM_submenu5_10_text = "Tour the Town" SDDM_submenu5_10_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewLandingPage-Tourthetown" SDDM_submenu5_properties.width = 190; // Menu 6 SDDM_image6_highlight_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/about.png" SDDM_image6_src = " http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/about.png" var SDDM_submenu6_properties = new Object(); SDDM_submenu6_properties.used = true; SDDM_submenu6_properties.xOffset = 0; SDDM_submenu6_properties.yOffset = 25; SDDM_submenu6_properties.width = 130; SDDM_submenu6_properties.itemheight = 17; SDDM_submenu6_1_text = "Parts Town Story" SDDM_submenu6_1_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=story" SDDM_submenu6_2_text = "Parts Town Core Values" SDDM_submenu6_2_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=values" SDDM_submenu6_3_text = "Terms And Conditions" SDDM_submenu6_3_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=terms" SDDM_submenu6_4_text = "Shipping Policy" SDDM_submenu6_4_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=shipping" SDDM_submenu6_5_text = "Privacy Policy" SDDM_submenu6_5_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=privacy" SDDM_submenu6_6_text = "Directions To Our Location" SDDM_submenu6_6_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=directions" SDDM_submenu6_7_text = "Contact Us" SDDM_submenu6_7_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ptExtraPage-Start?TemplateName=contactus" SDDM_submenu6_8_text = "Tour the Town" SDDM_submenu6_8_link = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewLandingPage-Tourthetown" SDDM_submenu6_properties.width = 150; SDDM_browser = "nn3"; SDDM_mac = false; if(document.getElementById) SDDM_browser = "nn6"; if(document.all) SDDM_browser = "ie"; if(document.layers) SDDM_browser = "nn"; if(navigator.userAgent.toLowerCase().indexOf("mac")) SDDM_mac = true; if(navigator.userAgent.toLowerCase().indexOf("ppc")) SDDM_mac = true; if(navigator.userAgent.toLowerCase().indexOf("powerpc")) SDDM_mac = true; document.write(""); //******** p_rollover function highlight(link) {link.className = "nav1_highlighted"; } function fade(link) { link.className = "nav1"; } function highlight_cart(link) { link.className = "nav1_highlighted"; document.cart.src=" http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/cart_dark.gif";} function fade_cart(link) { link.className = "nav1"; document.cart.src=" http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/cart.gif";} function highlight_bg(link) { link.className = "top_nav_link_highlited"; } function fade_bg(link) { link.className = "top_nav_link"; } function change_color_advanced() {document.getElementById("advansed_search").style.color="#FFFFFF"; document.getElementById("a_advansed_search").style.textDecoration="underline"; document.getElementById("a_advansed_search").style.color="#D88E90";} function change_back_adanced() {document.getElementById("advansed_search").style.color="#E9AEAB"; document.getElementById("a_advansed_search").style.textDecoration="none"; document.getElementById("a_advansed_search").style.color="#D5615C";} function change_color_help() {document.getElementById("a_search_help").style.color="#FFFFFF"; document.getElementById("a_search_help").style.textDecoration="underline"; document.getElementById("a_search_help").style.color="#D88E90";} function change_back_help() {document.getElementById("a_search_help").style.color="#E9AEAB"; document.getElementById("a_search_help").style.textDecoration="none"; document.getElementById("a_search_help").style.color="#D5615C";} function change_link(link) {link.style.textDecoration='underline'; link.style.color='#EFC6C7'} function back_change_link(link) {link.style.textDecoration='none'; link.style.color='#D5615C'} function change_span(tagName) {tagName.style.color='#C01d21'; } function back_change_span(tagName) {tagName.style.color='#D5615C'; } function change_manufacturers(tagName) { tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/manufactures.png'; } function back_change_manufacturers(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/manufactures.png'; } function change_inews(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/industry_news.png'; } function back_change_inews(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/hp/industry_news.png'; } function change_resources(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/resources_0.gif'; } function back_change_resources(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/resources_1.gif'; } function change_about_us(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/about_us_0.gif'; } function back_change_about_us(tagName) {tagName.src=' http://download.partstown.com/is-bin/intershop.static/BOS/Reedy-PartsTown-Site/-/en_US/images/top_menu/about_us_1.gif'; } //***** p_myequipment function newOnLoad() { var check = initXMLHTTP(); if (!check) return; isBusy=true; if(document.getElementById('btn1') != null) { document.getElementById('btn1').enabled=false; } } if(window.addEventListener) { window.addEventListener('load', newOnLoad, false); } else { window.attachEvent('onload', newOnLoad); } var xmlhttp; var divelement; var selectelement; function initXMLHTTP () { try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { xmlhttp=false } } if (!xmlhttp) { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp=false; } } return xmlhttp; } var oldQueryString,isBusy,zending; function getXmlHttpRequest(){ var request; try { request = new ActiveXObject("Msxml2.XMLHTTP"); Msxml2.XMLHTTP return request; } catch (e) {} try { request = new ActiveXObject("Microsoft.XmlHttp"); return request; } catch (e) {} try { request = new ActiveXObject("MSXML.XmlHttp"); return request; } catch (e) {} try { request = new ActiveXObject("MSXML3.XmlHttp"); return request; } catch (e) {} if (window.XMLHttpRequest && window.DOMParser && document.implementation && document.implementation.createDocument) { request = new XMLHttpRequest(); return request; } } function doajax() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) {} if (isBusy) { xmlhttp.onreadystatechange = function () {}; xmlhttp.abort(); isBusy = false; } var messageID=document.getElementById('mfr').options[document.getElementById('mfr').selectedIndex].id; if(messageID == ""){ document.getElementById('mtd').style.visibility="hidden"; document.getElementById('mop').style.visibility="hidden"; return; } xmlhttp.open("GET","http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/getEquipment-Start?CSSClass=select_chk"+"&CatId="+messageID,true); var td=document.getElementById('mtd'); td.innerHTML="Loading..."; td.style.visibility="visible"; document.getElementById('btn1').enabled=false; document.getElementById('mop').style.visibility="hidden"; isBusy = true; xmlhttp.onreadystatechange = processResponse; xmlhttp.send(null); } function processResponse() { if ( xmlhttp.readyState == 4 ) { var td=document.getElementById('mtd'); td.style.visibility="hidden"; if ( xmlhttp.responseText.indexOf('invalid') == -1 ) { document.getElementById('btn1').enabled=true; td.style.visibility="visible"; td.innerHTML=xmlhttp.responseText; document.getElementById('mop').style.visibility="visible"; } } } function dosearchajax() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) {} if (isBusy) { xmlhttp.onreadystatechange = function () {}; xmlhttp.abort(); isBusy = false; } document.getElementById('dt').disabled = true; document.getElementById('dt').selectedIndex = 0; document.getElementById('dt').options[0].text = "Document Type"; var index = document.getElementById('manfr').selectedIndex; var messageID=document.getElementById('manfr').options[index].id; if(messageID == "" || index == "0") { document.getElementById('atrg').disabled = true; document.getElementById('atrg').selectedIndex = 0; document.getElementById('go').disabled = true; return; } xmlhttp.open("GET","http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/getEquipment-StartEquipSearch"+"?CatId="+messageID,true); //var td=document.getElementById('modeld'); var td=document.getElementById('selectCatUUID'); td.childNodes[0].nodeValue= "Loading..."; isBusy = true; divelement = 'modeld'; selectelement = 'atrg'; xmlhttp.onreadystatechange = processResp; xmlhttp.send(null); } function processResp() { if ( xmlhttp.readyState == 4 ) { var td=document.getElementById(divelement); if ( xmlhttp.responseText.indexOf('invalid') == -1 ) { td.innerHTML=xmlhttp.responseText; var select=document.getElementById(selectelement); select.disabled = false; if( selectelement == 'atrg') { //document.getElementById(selectelement).onchange=viewalldocs; document.getElementById("selectCatName").childNodes[0].nodeValue = "Document type"; } else { var sel = document.getElementById('dt'); if( sel.length == 2 ) { sel.options[0] = null; } document.getElementById('go').onclick=viewmanual; } Custom.init(); } } } function viewalldocs() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) {} if (isBusy) { xmlhttp.onreadystatechange = function () {}; xmlhttp.abort(); isBusy = false; } var index = document.getElementById('atrg').selectedIndex; var messageID=document.getElementById('atrg').options[index].value; if(messageID == "" || index == "0") { document.getElementById('dt').options[0].text = "Document Type"; document.getElementById('dt').selectedIndex = 0; document.getElementById('dt').disabled=true; document.getElementById('go').disabled=true; return; } xmlhttp.open("GET","http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewAllDocs-Start"+"?CatId="+messageID+"&search=true",true); var td=document.getElementById('selectCatName'); td.childNodes[0].nodeValue= "Loading..."; isBusy = true; divelement = 'typedoc'; selectelement = 'dt'; document.getElementById('go').disabled=false; xmlhttp.onreadystatechange = processResp; xmlhttp.send(null); } function viewmanual() { var index = document.getElementById('dt').selectedIndex; var option = document.getElementById('dt').options[index].text; if(option.indexOf("Document Type") == -1 && option.indexOf("No documents found") == -1) { var value = document.getElementById('dt').options[index].value; var url = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewStaticPage-LoadManual"; //var path='http://download.partstown.com/is-bin/intershop.static/WFS/Reedy-PartsTown-Site/-/en_US/manuals/'+ value; //window.open(path); //Google analytics event tracking for the document finder if(option == "Interactive Parts Diagram") { value1 = jsStringReplace(value,"&","%26"); window.open(url+"?CategoryID="+value1); } else { pageTracker._trackEvent('Document Finder', 'Download', value); value1 = jsStringReplace(value,"&","%26"); window.open(url+"?value="+value1); } } } function searchForModelsAndDocsByManufacturer(catId, textDivId) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) {} if (isBusy) { xmlhttp.onreadystatechange = function () {}; xmlhttp.abort(); isBusy = false; } xmlhttp.open("GET","http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/getEquipment-GetModelsAndManuals"+"?CatId="+catId,true); document.getElementById(textDivId).innerHTML = "

Loading...

"; isBusy = true; xmlhttp.onreadystatechange = function() { if ( xmlhttp.readyState == 4 ) { if ( xmlhttp.responseText.indexOf('invalid') == -1 ) { document.getElementById(textDivId).innerHTML = xmlhttp.responseText; } } }; xmlhttp.send(null); } function viewManualDocs(value) { var url = "http://www.partstown.com/is-bin/INTERSHOP.enfinity/BOS/Reedy-PartsTown-Site/en_US/-/USD/ViewStaticPage-LoadManual"; //Google analytics event tracking for the document finder pageTracker._trackEvent('Document Finder', 'Download', value); value1 = jsStringReplace(value,"&","%26"); window.open(url+"?value="+value1); } function jsStringReplace(text,searchString, replaceString) { lengthSearchString=searchString.length; lengthReplaceString=replaceString.length; rezultText=text; start_poz=0; while ((poz=rezultText.indexOf(searchString,start_poz))!=-1) { firstPart=rezultText.substring(0,poz); lengthRezultText=rezultText.length; endPart=rezultText.substring(poz+lengthSearchString, lengthRezultText ); rezultText=firstPart+replaceString+endPart; start_poz=poz+lengthReplaceString; } return (rezultText); } var scrollTimer; var visno1; var visno2; var visno3; function ScrollFeatures(timer){ if (visno1.css("display") == "block"){ visno1.css("display","none"); visno2.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='2']").addClass("selected"); }else if (visno2.css("display") == "block"){ visno2.css("display","none"); visno3.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='3']").addClass("selected"); }else if (visno3.css("display") == "block"){ visno3.css("display","none"); visno1.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='1']").addClass("selected"); }else{ visno1.css("display","block"); visno2.css("display","none"); visno3.css("display","none"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='1']").addClass("selected"); } if (timer == null){ clearTimeout(scrollTimer); scrollTimer = setTimeout("ScrollFeatures()",10000); } } function ScrollFeaturesPrev(timer){ if (visno1.css("display") == "block"){ visno1.css("display","none"); visno3.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='3']").addClass("selected"); }else if (visno2.css("display") == "block"){ visno2.css("display","none"); visno1.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='1']").addClass("selected"); }else if (visno3.css("display") == "block"){ visno3.css("display","none"); visno2.css("display","block"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='2']").addClass("selected"); }else{ visno1.css("display","block"); visno2.css("display","none"); visno3.css("display","none"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery("#paginate-carouselWrapper > a[rel='1']").addClass("selected"); } if (timer == null){ clearTimeout(scrollTimer); scrollTimer = setTimeout("ScrollFeatures()",10000); } } jQuery(document).ready(function(){ visno1 = jQuery("#visno1"); visno2 = jQuery("#visno2"); visno3 = jQuery("#visno3"); scrollTimer = setTimeout("ScrollFeatures()",10000); jQuery("#paginate-carouselWrapper > a").click(function(){ if (this.rel == "1"){ visno1.css("display","block"); visno2.css("display","none"); visno3.css("display","none"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery(this).addClass("selected"); clearTimeout(scrollTimer); scrollTimer = setTimeout("ScrollFeatures()",10000); }else if(this.rel == "2"){ visno2.css("display","block"); visno1.css("display","none"); visno3.css("display","none"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery(this).addClass("selected"); clearTimeout(scrollTimer); scrollTimer = setTimeout("ScrollFeatures()",10000); }else if(this.rel == "3"){ visno3.css("display","block"); visno2.css("display","none"); visno1.css("display","none"); jQuery("#paginate-carouselWrapper > a").removeClass("selected"); jQuery(this).addClass("selected"); clearTimeout(scrollTimer); scrollTimer = setTimeout("ScrollFeatures()",10000); }else if(this.rel == "prev"){ ScrollFeaturesPrev(); }else if(this.rel == "next"){ ScrollFeatures(); } }); }); var shoppingCartPopupTimer;