// Pre-load array var Consumer = new Array(); function switchCatalog(activeCatalog) { var BrowseCatalog = "" var tempPageName = activeCatalog; if ( tempPageName.indexOf( "SOUND_AND_VISION_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=SOUND_AND_VISION_GR&xsl=subcatalog.xsl"; BrowseCatalog += " Sound & Vision  " } else { BrowseCatalog += " Sound & Vision  " } if ( tempPageName.indexOf( "TV_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=TV_GR&xsl=subcatalog.xsl"; BrowseCatalog += " TV  " } else { BrowseCatalog += " TV  " } if ( tempPageName.indexOf( "HOME_ENTERTAINMENT_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=HOME_ENTERTAINMENT_GR&xsl=subcatalog.xsl"; BrowseCatalog += " Home entertainment  " } else { BrowseCatalog += " Home entertainment  " } if ( tempPageName.indexOf( "PC_AND_PHONES_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=PC_AND_PHONES_GR&xsl=subcatalog.xsl"; BrowseCatalog += " PC Products & Phones  " } else { BrowseCatalog += " PC Products & Phones  " } if ( tempPageName.indexOf( "PORTABLE_ENTERTAINMENT_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=PORTABLE_ENTERTAINMENT_GR&xsl=subcatalog.xsl"; BrowseCatalog += " Portable entertainment  " } else { BrowseCatalog += " Portable entertainment  " } if ( tempPageName.indexOf( "ACCESSORIES_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=ACCESSORIES_GR&xsl=subcatalog.xsl"; BrowseCatalog += " Accessories  " } else { BrowseCatalog += " Accessories  " } if ( tempPageName.indexOf( "PHILIPS_GEN_GR" ) > -1 ) { window.location.href = "#../~scripts/xsltransform.asp?url=http://www.sms.philips.com/catalogue/list?sid=SMS||type=Magnavox||locale=us_en||mode=cats||item=PHILIPS_GEN_GR&xsl=subcatalog.xsl"; BrowseCatalog += " Other products  " } else { BrowseCatalog += " Other products  " } document.getElementById("p-catalog-items").innerHTML = BrowseCatalog }