/* * @copyright 2010 Advanced Care Solutions * @author Christopher Rahauiser */ document.observe("dom:loaded",function(){$$("a.newwin").invoke("observe","click",function(c){window.open(this.href);c.stop();});if(Prototype.Browser.IE){$$("#nav li").each(function(c){c.onmouseover=function(){this.addClassName("sfhover");}.bind(c);c.onmouseout=function(){this.removeClassName("sfhover");}.bind(c);});$$("#nav span").invoke("observe","mouseover",function(c){c.element().addClassName("span-hover");}).invoke("observe","mouseout",function(c){c.element().removeClassName("span-hover");});$$("#product-page-list > li").invoke("observe","mouseover",function(d){var c=d.element();if(c.tagName!="LI"){c=c.up("li");}c.addClassName("arrow-hover");}).invoke("observe","mouseout",function(d){var c=d.element();if(c.tagName!="LI"){c=c.up("li");}c.removeClassName("arrow-hover");});}var a=$("finddealer");if(a){a.observe("focus",function(){if($F(this)=="Enter Zip Code"){this.value="";}}.bind(a)).observe("blur",function(){if($F(this).blank()){this.value="Enter Zip Code";}}.bind(a));}var b=$("price-note");if(b){b.observe("click",function(c){window.open(this.href,"price_note","width=310,height=140,left=450, top=400,scrollbars=1");c.stop();});}$$("a.close-window").invoke("observe","click",function(c){window.close();c.stop();});});