// GOOGLE ADSENSE // DYNAMIC-FUNCTIONS /** * bookmark * * @param url The url to bookmark * @param description Associate this description with the URL */ function addBookmark(url, description) { if(url != null) { if(navigator.appName=='Microsoft Internet Explorer') { window.external.AddFavorite(url, description); } else if (navigator.appName=='Netscape') { alert("Please press CTRL+D to bookmark this page"); } } } /** * setHomePage * * @param url The url to use as the home page */ function setHomePage(ref, url) { if(url != null) { if(navigator.appName=='Microsoft Internet Explorer') { ref.style.behavior='url(#default#homepage)'; ref.setHomePage(window.location); } else if (navigator.appName=='Netscape') { alert("Click 'Edit->Preferences' and then choose the 'Navigator' tag and click 'Use Current Page'"); } } } function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,'; else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,'; else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,'; else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,'; else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+','; if(h!="") windowProperties+='height='+h; if(windowProperties!="") { if( windowProperties.charAt(windowProperties.length-1)==',') windowProperties=windowProperties.substring(0,windowProperties.length-1); } window.open(url,name,windowProperties); } function gotoPage1(varItem) { switch(varItem) { case 0: window.parent.self.status="Goes Nowhere"; break; case 1: window.parent.self.status="Goes Nowhere"; break; case 2: window.open("http://www.nationwide-hygiene.com/index.htm", target="_blank"); break; case 3: window.open("http://www.nationwide-hygiene.com/GDContacts.htm", target="_blank"); break; case 4: window.open("http://www.streetmap.co.uk/newmap.srf?x=514232&y=168174&z=0&sv=kt8+0dx&st=2&pc=kt8+0dx&mapp=newmap.srf&searchp=newsearch.srf", target="_blank"); break; case 5: window.open("http://www.nationwide-hygiene.com/GDMembers.htm", target="_blank"); break; case 6: window.open("http://www.nationwide-hygiene.com/GDTraderlink.htm", target="_blank"); break; case 7: window.open("http://www.nationwide-hygiene.com/GDInpacs.htm", target="_blank"); break; } } function gotoPage2(varItem) { switch(varItem) { case 0: window.parent.self.status="Goes Nowhere"; break; case 1: window.parent.self.status="Goes Nowhere"; break; case 2: window.open("http://www.nationwide-hygiene.com/PDWipersWashroomPaper.htm", target="_blank"); break; case 3: window.open("http://www.nationwide-hygiene.com/PDHandwashingSkincare.htm", target="_blank"); break; case 4: window.open("http://www.nationwide-hygiene.com/PDHousekeepingLaundry.htm", target="_blank"); break; case 5: window.open("http://www.nationwide-hygiene.com/PDFloorcare.htm", target="_blank"); break; case 6: window.open("http://www.nationwide-hygiene.com/PDJanitorial.htm", target="_blank"); break; case 7: window.open("http://www.nationwide-hygiene.com/PDKitchenHygiene.htm", target="_blank"); break; case 8: window.open("http://www.nationwide-hygiene.com/PDCateringDisposables.htm", target="_blank"); break; case 9: window.open("http://www.nationwide-hygiene.com/PDProtectiveClothing.htm", target="_blank"); break; case 10: window.open("http://www.nationwide-hygiene.com/PDHealthcareSafety.htm", target="_blank"); break; } } /* http://www.alistapart.com/articles/zebratables/ */ function removeClassName (elem, className) { elem.className = elem.className.replace(className, "").trim(); } function addCSSClass (elem, className) { removeClassName (elem, className); elem.className = (elem.className + " " + className).trim(); } String.prototype.trim = function() { return this.replace( /^\s+|\s+$/, "" ); } function stripedTable() { if (document.getElementById && document.getElementsByTagName) { var allTables = document.getElementsByTagName('table'); if (!allTables) { return; } for (var i = 0; i < allTables.length; i++) { if (allTables[i].className.match(/[\w\s ]*scrollTable[\w\s ]*/)) { var trs = allTables[i].getElementsByTagName("tr"); for (var j = 0; j < trs.length; j++) { removeClassName(trs[j], 'alternateRow'); addCSSClass(trs[j], 'normalRow'); } for (var k = 0; k < trs.length; k += 2) { removeClassName(trs[k], 'normalRow'); addCSSClass(trs[k], 'alternateRow'); } } } } } window.onload = function() { stripedTable(); }