function EmbeddedImageViewer(r){var e,g,h,b,q,p=0,a=0,c;if(typeof r=="string"){r=document.getElementById(r)}var k;for(k=0;k<r.childNodes.length;k++){if(/\bthumbnails\b/.test(r.childNodes[k].className)){h=r.childNodes[k]}if(/\bmedimage\b/.test(r.childNodes[k].className)){e=r.childNodes[k].firstChild;while(e&&e.nodeType==3){e=e.nextSibling}g=e.firstChild;while(g&&g.nodeType==3){g=g.nextSibling}}}b=h&&h.getElementsByTagName("li");r.ondragstart=r.onselectstart=function(i){i=i||event;i.cancelBubble=true;return i.returnValue=false};var m;var j=function(i){return i.replace(/eivthumb\..../,"eivmed.jpg")};var o=function(i){i.stopPropagation&&i.stopPropagation();i.preventDefault&&i.preventDefault();i.cancelBubble=true;return i.returnValue=false};var n=function(t,i){var s=t.target||t.srcElement;while(s&&s!==q){if(s.tagName.toLowerCase()==i){return s}s=s.parentNode}};e.onclick=function(y){y=y||event;var t=(typeof self.screenLeft=="undefined")?self.screenX:self.screenLeft;var s=(typeof self.screenTop=="undefined")?self.screenY:self.screenTop;var v=self.outerWidth||(document.documentElement.clientWidth+20);var z=self.outerHeight||(document.documentElement.clientHeight+50);var i=835,u=580;var x="left="+Math.round(t+(v-i)/2)+",top="+Math.round(s+(z-u)/3)+",width="+i+",height="+u+",toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes";win=window.open(this.href,"_blank",x);if(win&&win.opener){return o(y)}};if(b&&b[0]){q=b[0].parentNode;q.onmouseover=function(t){t=t||event;var s=t.target||t.srcElement;if(s&&s.src){var i=new Image();i.src=j(s.src)}};q.onclick=function(y){y=y||event;var x=n(y,"a");if(x){x.focus&&x.focus();if(m){if(window.opera){q.scrollLeft=0}var w=x.offsetLeft;if(window.opera){q.scrollLeft=a}m((-74+w-p)/2);f()}var v=x.getElementsByTagName("img")[0];var u=j(v.src);if(g.src!=u){var s=document.createElement("img");s.src=g.src;s.alt="";s.className="fadeout";s.style.position="absolute";e.appendChild(s);e.href=x.href;g.alt=v.alt;g.title=v.title;e.title=x.title;g.src=u;g.style.opacity="0";try{if(!g.setStyle){g.setStyle=function(){}}if(!s.setStyle){s.setStyle=function(){}}if(!g.currentStyle){g.currentStyle={}}if(!s.currentStyle){s.currentStyle={}}}catch(y){}Effect.Fade(s,{from:0.99,to:0,duration:0.3});var i=function(){setTimeout(function(){if(s){s.parentNode.removeChild(s);s=null}},150);if(t){t=null;try{Effect.Appear($(g),{from:0.3,to:1,duration:0.2})}catch(z){}}};var t=setTimeout(i,2000);g.onload=i;g.onerror=i}return o(y)}};if(b.length>4){r.className+=" eiv-scroll";h.onmousedown=function(s){window.onmouseup=document.onmouseup=function(t){document.onmousemove=window.onmouseup=document.onmouseup=null;f()};s=s||event;var i=s.clientX;document.onmousemove=function(u){u=u||event;var t=i-u.clientX;m(t);i=u.clientX};return o(s)};var f=function(){p=44*Math.round((p)/44);m(0)};m=function(s){p+=s;while(p<0){var i=q.lastChild;while(i&&i.nodeType==3){i=i.previousSibling}q.insertBefore(i,q.firstChild);p+=44;a+=44}while(p>3*44){var t=q.firstChild;while(t&&t.nodeType==3){t=t.nextSibling}q.appendChild(t);p-=44;a-=44}q.scrollLeft=a;if(!c&&p!=a){c=setInterval(function(u){a=(a*6+p)/7;if(Math.round(a)==p){a=p}m(0)},25)}else{if(c&&p==a){clearInterval(c);c=null}}};var d;d=document.createElement("span");d.setAttribute("tabindex","-1");d.className="prev";d.appendChild(document.createTextNode("\u00AB"));d.setAttribute("title","Scroll left");d.onselectstart=function(){return false};d.onmousedown=function(i){i=i||event;m(-40);f()};h.insertBefore(d,h.firstChild);d=document.createElement("span");d.appendChild(document.createTextNode("\u00BB"));d.setAttribute("tabindex","-1");d.setAttribute("title","Scroll right");d.className="next";d.onselectstart=function(){return false};d.onmousedown=function(i){i=i||event;m(40);f()};h.insertBefore(d,h.firstChild);var l;q.onmousewheel=function(i){i=i||event;if(!l){var s=i.wheelDelta||-i.detail;if(s){l=true;m(s<0?40:-40);f();setTimeout(function(){l=false},50)}}return o(i)};if(q.addEventListener){q.addEventListener("DOMMouseScroll",q.onmousewheel,false)}}}}function LargeImageViewer(d,c){if(!d||!c){return}var e=c.getElementsByTagName("img");if(!e||e.length<2){return}var b=function(f){return(""+f).replace(/@[a-z]+\.[a-z]+/,"@eivmain.jpg")};for(var a=0;a<e.length;a++){e[a].parentNode.onmouseover=(function(f){return function(h){var g=new Image();g.src=b(f.src)}})(e[a]);e[a].parentNode.onclick=(function(f){return function(h){d.src=b(f.src);d.alt=f.alt;d.title=f.title;for(var g=0;g<e.length;g++){if(e[g]!==f){e[g].parentNode.className=""}}f.parentNode.className="active";return false}})(e[a])}}function init_special_offers(a){var b=1;try{var d=/offers$/.test(location.hash);a.select("div.terms").each(function(i){var h=i.up("li");var g=h.down(".offer");var j=g.down("p");var f=g.down("h5");var k=document.createElement("span");k.className="closelink";k.appendChild(document.createTextNode("close"));i.appendChild(k);i.setAttribute("aria-live","assertive");f.tabIndex="0";f.setAttribute("role","button");k.tabIndex="0";var l=function(){f.setAttribute("aria-checked","true");Effect.BlindDown(i,{duration:0.2,afterFinish:function(){h.addClassName("open")}});Effect.Appear(j,{duration:0.2})};var e=function(){f.setAttribute("aria-checked","false");Effect.BlindUp(i,{duration:0.2,afterFinish:function(){h.removeClassName("open")}});Effect.Fade(j,{duration:0.2})};if(b){h.openoffer=l}f.onclick=k.onclick=function(){if(!h.hasClassName("open")){l()}else{e()}if(b){var o=1,m=function(n){if(n.openoffer&&!n.hasClassName("open")){setTimeout(n.openoffer,100*o++)}};h.nextSiblings().each(m);h.up().nextSiblings().each(function(n){n.childElements().each(m)})}return false};if(d){l()}else{j.hide();i.hide()}});a.addClassName("dynamic")}catch(c){a.show();throw c}a.show()};
