
function addDOMLoadEvent(func){if(!window.__load_events){var init=function(){if(arguments.callee.done)return;arguments.callee.done=true;if(window.__load_timer){clearInterval(window.__load_timer);window.__load_timer=null;}
for(var i=0;i<window.__load_events.length;i++){window.__load_events[i]();}
window.__load_events=null;};if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,false);}
if(/WebKit/i.test(navigator.userAgent)){window.__load_timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){init();}},10);}
window.onload=init;window.__load_events=[];}
window.__load_events.push(func);}
function ProductSearch()
{window.location="http://www.royalcanin.us/products/Retailer.aspx?Zip="+document.getElementById('RetailSearch').value;}
function GoldProductSearch()
{document.all.GoldResultsFrame.src="http://www.royalcanin.us/products/Retailer.aspx?Zip="+document.getElementById('zipcode').value;}
function goBack()
{history.go(-1);}
function onRetailClick()
{var url="http://www.royalcanin.us/products/RetailResults.aspx?Zip="+document.getElementById('zipcode').value;Lightview.show({href:url,rel:'iframe',options:{width:600,height:500}});}
function onRetailFlashClick(zip)
{var url="http://www.royalcanin.us/products/RetailResults.aspx?Zip="+zip;Lightview.show({href:url,rel:'iframe',options:{width:600,height:500}});}
