(function(){var b=/msie/.test(navigator.userAgent.toLowerCase())&&!/opera/.test(navigator.userAgent.toLowerCase());$(function(){$("#page-body .layout-main").css("max-width","none").find(".content").css("max-width",800);$("#xray").each(function(){var g=$(this),f=g.find("img")[0],h=document.createElement("DIV");h.className="loupe";h.innerHTML='<div class="l"><img alt="" src="/i/loupe.png" class="png" width="140" height="161" /></div>';var d=new Image(),e=0;var c=my.getXY(g[0]).x,i=my.getXY(g[0]).y;$(d).load(function(){g.append(h);h=$(h);var l,n,j=0,k=0;g.mousemove(function(s){var r=s.pageX-57-c,t=s.pageY-49-i;if(t<f.clientHeight-100&&t>0&&r>0&&r<f.clientWidth-50){h.css("top",t).css("left",r);if(b){l.position=((-r+10)/90)+","+(-t/90);}else{l.beginPath();l.arc(46,46,46,0,Math.PI*2,true);l.clip();l.drawImage(d,-r+10,-t,d.width,d.height);}if(j&&!k){n(1);}}else{if(k){n(0);}}});var q=[],p=0;var m=function(){p=0;if(q.length>0){n(q.pop());}};if(b){var o=document.createElement("v:oval");o.className="canvas";o.strokeweight="0px";o.style.width="90px";o.style.height="90px";l=document.createElement("v:fill");l.type="tile";l.src=d.src;h.append(o);o.appendChild(l);}else{var o=document.createElement("div");o.className="canvas";l=document.createElement("canvas");l.width=92;l.height=92;o.appendChild(l);h.append(o);l=l.getContext("2d");}n=function(r){if(r){h.show();k=1;g.addClass("nocursor");}else{h.hide();k=0;g.removeClass("nocursor");}};h.hide();g.hover(function(){j=1;},function(){if(j){n(0);}});});d.src="/i/x-ray.jpg";});});if(b&&!document.namespaces["v"]){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a=document.createStyleSheet();if(/msie 8/.test(navigator.userAgent.toLowerCase())){a.cssText="v\\:line, v\\:fill, v\\:oval{behavior:url(#default#VML);display:inline-block}";}else{a.cssText="v\\:* {behavior:url(#default#VML);display:inline-block}";}}})();
