function init() { if (arguments.callee.done) return; arguments.callee.done = true; //STARTUP - CALL THESE FUNCTIONS OnDOMload (onWindowLoad) //Add pop up product showcase handlers -Product Page var product_holder= document.getElementById('pro_holder'); if (!product_holder) return true; var product_image_array= product_holder.getElementsByTagName('IMG'); for (var i= 0; i < product_image_array.length; i++) { product_image_array[i].style.cursor= 'pointer'; var className= product_image_array[i].getAttribute('className'); if (!className || className == '') { className= product_image_array[i].getAttribute('class'); } var url= '/product_showcase/p' + className.substring(9) + '.html'; product_image_array[i].onclick= function() { window.open(url,'','width=480,height=588,top=50,left=100,menubar=no,location=no,resizable=yes,scrollbars=no,status=no'); return true; } } }; /* for Mozilla */ if (document.addEventListener) { document.addEventListener("DOMContentLoaded", init, false); } // for Internet Explorer if(window.attachEvent) { window.attachEvent('onload', init); } /* for Opera */ if (/WebKit/i.test(navigator.userAgent)) { var _timer = setInterval(function() { if (/loaded|complete/.test(document.readyState)) { clearInterval(_timer); init(); } }, 10); } /* for other browsers */ window.onload = init;