/* * @copyright 2010 Advanced Care Solutions * @author Christopher Rahauiser */ window.IMAGE_CACHE=[];document.observe("dom:loaded",function(){var b=$("gallery-image");var a=$("gallery-description");var c=$$("a.gallery-trigger");if(b&&a&&c.length>0){c.each(function(d){window.IMAGE_CACHE.push(new Element("img",{src:d.href}));});c.invoke("observe","click",function(d){d.stop();}).invoke("observe","mouseover",function(e){var d=e.element();if(d.tagName!="A"){d=d.up("a");}b.writeAttribute("src",d.href);a.update(d.down("span").clone(true).show());});}$("gallery-tab-link").addClassName("selected");});