var cvi_szclback,cvi_sztimer,cvi_szactive,cvi_szimage=null,shiftzoom={_shiftzoom:null,version:3.7,released:"2010-10-06 12:00:00",defaultFading:true,defaultButtons:true,defaultOverview:true,defaultNozoom:false,defaultIcons:null,defaultBicubic:false,defaultForcetouchui:false,defaultShowcoords:false,defaultPixelcoords:true,defaultRelativecoords:false,defaultPercentcoords:false,defaultLowres:"",defaultMillisec:40,defaultOpacity:90,defaultOvsfact:25,defaultOvaopac:75,defaultOvacolor:"red",defaultOvbcolor:"white",defaultIntitle:"click or press shift key to zoom in",defaultOuttitle:"click or press alt key to zoom out",defaultInfoblock:'
Mouseover Keyboard Support
Zoom in:
[+] / [PgDn] / [End] (is faster) /
[shift] + left mouse button /
double click + left mouse button /
middle / wheel mouse button /
mouse wheel down

Zoom out:
[–] / [PgUp] / [Home] (is faster) /
[alt] + left mouse button /
right mouse button /
mouse wheel up

Pan / Shift / Move:
[left] / [right] / [down] / [up] arrow buttons
+ [shift] (is faster) and + [alt] (is slower)
',defaultOvborder:"",defaultCurpath:"",defaultZoom:0,defaultXpos:50,defaultYpos:50,gif:"data:image/gif;base64,R0lGODlhAQABAJH/AP///wAAAP///wAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw==",add:function(p,b){function k(r,q){var i=r;if(r>8191&&r<10485){r=r-5000;i=Math.round(r*Math.pow(10,q))/Math.pow(10,q);i=i+5000}else{i=Math.round(r*Math.pow(10,q))/Math.pow(10,q)}return i}function a(){var i=Date.parse(new Date())+Math.floor(Math.random()*100000000000);return i.toString(16)}function j(){var q=false,s=false,r=false,i=false;try{q=(document.body.style.boxShadow!==undefined)}catch(t){}try{s=(document.body.style.MozBoxShadow!==undefined)}catch(t){}try{r=(document.body.style.KhtmlBoxShadow!==undefined)}catch(t){}try{i=(document.body.style.WebkitBoxShadow!==undefined)}catch(t){}return(q||s||r||i?true:false)}if(!p.active){p.style.visibility="hidden";var d={curpath:shiftzoom.defaultCurpath,opacity:shiftzoom.defaultOpacity,millisec:shiftzoom.defaultMillisec,intitle:shiftzoom.defaultIntitle,outtitle:shiftzoom.defaultOuttitle,infoblock:shiftzoom.defaultInfoblock,ovsfact:shiftzoom.defaultOvsfact,ovaopac:shiftzoom.defaultOvaopac,ovacolor:shiftzoom.defaultOvacolor,ovbcolor:shiftzoom.defaultOvbcolor,zoom:shiftzoom.defaultZoom,xpos:shiftzoom.defaultXpos,ypos:shiftzoom.defaultYpos,lowres:shiftzoom.defaultLowres,icons:shiftzoom.defaultIcons,bicubic:shiftzoom.defaultBicubic,forcetouchui:shiftzoom.defaultForcetouchui};if(b){for(var g in d){if(!b[g]){b[g]=d[g]}}}else{b=d}if(document.images&&document.createElement&&document.getElementById&&document.getElementsByTagName){var o,h,l,c=p.parentNode,f=shiftzoom.E("div"),m=shiftzoom.E("img"),n=shiftzoom.E("div");f.xid=(p.id!=""?p.id:p.id=a());c.appendChild(n);n.id=f.xid+"_wrap";n.appendChild(m);n.appendChild(f);f.wrapid=n.id;f.opts=d;f.highres=p.src;if(p.naturalWidth&&p.naturalHeight){f.xfactor=k(p.naturalWidth/p.width,4);f.yfactor=k(p.naturalHeight/p.height,4);f.maxwidth=p.naturalWidth*2;f.maxheight=p.naturalHeight*2}else{var e=new Image;e.src=p.src;f.xfactor=k(e.width/p.width,4);f.yfactor=k(e.height/p.height,4);f.maxwidth=e.width*2;f.maxheight=e.height*2;e=null;delete e}if(p.width>=100&&p.width=100&&p.height=9){o.background="url("+shiftzoom.gif+") transparent"}o.left="0px";o.top="0px";o.width="100%";o.height="100%";o.cursor="crosshair";f.pointer=o.cursor;f.minwidth=n.width;f.hasmoved=false;f.lasttap=0;f.minheight=n.height;f.maxleft=f.maxwidth-f.minwidth;f.maxtop=f.maxheight-f.minheight;p.id="";n.parentNode.removeChild(p);f.id=f.xid;f.aos=navigator.userAgent.match(/android/i);f.ios=navigator.platform.match(/iPad|iPhone|iPod/i);f.stg=typeof(document.ontouchstart)!="undefined"?true:false;f.mtg=typeof(document.ongesturestart)!="undefined"?true:false;f.tod=f.stg&&(f.ios||f.aos||f.forcetouchui)?true:false;if(f.tod){f.buttons=false;f.showcoords=false}f.trident=document.all&&!window.opera&&(!document.documentMode||document.documentMode<9)?1:0;f.chakra=document.all&&document.documentMode&&document.documentMode>=9?1:0;f.notrans=f.trident&&!window.XMLHttpRequest?1:0;if(f.fading){if(f.trident){n.style.filter="alpha(opacity=0)"}else{n.style.opacity=0}}n.style.visibility="visible";f.webkit=window.atob!=undefined&&!window.updateCommands&&!window.opera?1:0;f.divbug=!f.webkit&&navigator.userAgent.indexOf("WebKit")>-1?1:0;f.gecko=navigator.userAgent.indexOf("Gecko")>-1&&window.updateCommands&&!window.opera?1:0;f.presto=window.opera?1:0;f.bshadow=j();f.bmode=(f.trident&&(document.compatMode=="BackCompat"||document.compatMode=="QuirksMode")?true:false);f.active=true;h=shiftzoom.E("img");h.src=f.trident?null:null;h.style.display="none";h.id=f.id+"_isrc";c.appendChild(h);f.isrcid=h.id;h=shiftzoom.E("div");h.id=f.id+"_xyco";o=h.style;if(f.trident){o.backgroundColor="black"}o.height="auto";o.width="auto";o.display="block";o.position="absolute";o.left="0px";o.bottom="0px";o.MozUserSelect=o.KhtmlUserSelect="none";h.unselectable="on";if(f.fading&&f.showcoords||!f.showcoords){o.visibility="hidden"}o.cursor="help";c.appendChild(h);f.xycoid=h.id;if(!f.trident){var l=shiftzoom.E("div");o=l.style;o.height="100%";o.width="100%";o.left="0px";o.bottom="0px";o.position="absolute";o.backgroundColor="black";o.opacity=0.5;h.appendChild(l)}l=shiftzoom.E("div");l.id=f.id+"_cpos";l.innerHTML="x:0 y:0";l.unselectable="on";o=l.style;o.textAlign="left";o.verticalAlign="middle";o.left="0px";o.bottom="0px";o.position="relative";o.display="block";o.color="white";o.fontSize="10px";o.fontFamily="Arial, Helvetica, sans-serif";o.fontStyle="normal";o.fontWeight="bold";o.whiteSpace="nowrap";o.padding="2px 4px";o.textShadow="0px 0px 4px black";h.appendChild(l);f.cposid=l.id;h=shiftzoom.E("div");o=h.style;if(f.fading&&f.buttons||!f.buttons){o.visibility="hidden"}h.id=f.id+"_ctrl";o.height="16px";o.width="42px";o.display="block";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.backgroundColor="#cccccc";if(f.trident){o.filter="alpha(opacity="+f.opacity+")"}else{o.opacity=f.opacity/100}o.cursor="pointer";o.left="0px";o.top="0px";if(f.webkit||f.bshadow){o.boxShadow=o.MozBoxShadow=o.KhtmlBoxShadow=o.WebkitBoxShadow="0px 0px 8px black"}c.appendChild(h);f.ctrlid=h.id;l=shiftzoom.E("div");o=l.style;o.height="2px";o.width="2px";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.left="4px";o.top="3px";o.backgroundColor="black";h.appendChild(l);l=shiftzoom.E("div");o=l.style;o.height="6px";o.width="2px";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.left="4px";o.top="7px";o.backgroundColor="black";h.appendChild(l);l=shiftzoom.E("div");o=l.style;o.height="2px";o.width="8px";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.left="14px";o.top="7px";o.backgroundColor="black";h.appendChild(l);l=shiftzoom.E("div");o=l.style;o.height="8px";o.width="2px";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.left="17px";o.top="4px";o.backgroundColor="black";h.appendChild(l);l=shiftzoom.E("div");o=l.style;o.height="2px";o.width="8px";o.position="absolute";o.lineHeight="1px";o.fontSize="1px";o.left="30px";o.top="7px";o.backgroundColor="black";h.appendChild(l);l=shiftzoom.E("div");l.id=f.id+"_kbin";o=l.style;o.height=(f.bmode?16:14)+"px";o.cursor="help";o.width=(f.bmode?10:8)+"px";o.display="block";o.position="absolute";o.border=f.bc;o.borderBottom=f.dc;o.borderRight=f.dc;o.left="0px";o.top="0px";f.ttipid=f.id+"_ttip";if(f.trident){l.onmouseover=new Function('shiftzoom._showTooltip("'+f.id+'");');l.onmouseout=new Function('shiftzoom._killTooltip("'+f.id+'");')}else{l.setAttribute("onmouseover","shiftzoom._showTooltip('"+f.id+"');");l.setAttribute("onmouseout","shiftzoom._killTooltip('"+f.id+"');")}h.appendChild(l);f.kbinid=l.id;l=shiftzoom.E("div");l.id=f.id+"_zoin";l.title=f.intitle;o=l.style;o.height=(f.bmode?16:14)+"px";o.width=(f.bmode?16:14)+"px";o.display="block";o.position="absolute";o.border=f.bc;o.borderBottom=f.dc;o.borderRight=f.dc;o.left="10px";o.top="0px";if(f.trident){l.onclick=new Function('shiftzoom._setCursor(this,1,"'+f.id+'");')}else{l.setAttribute("onclick","shiftzoom._setCursor(this,1,'"+f.id+"');")}h.appendChild(l);f.zoinid=l.id;l=shiftzoom.E("div");l.id=f.id+"_zout";l.title=f.outtitle;o=l.style;o.height=(f.bmode?16:14)+"px";o.width=(f.bmode?16:14)+"px";o.display="block";o.position="absolute";o.border=f.bc;o.borderBottom=f.dc;o.borderRight=f.dc;o.left="26px";o.top="0px";if(f.trident){l.onclick=new Function('shiftzoom._setCursor(this,0,"'+f.id+'");')}else{l.setAttribute("onclick","shiftzoom._setCursor(this,0,'"+f.id+"');")}h.appendChild(l);f.zoutid=l.id;h=shiftzoom.E("div");h.id=f.id+"_info";o=h.style;o.visibility="hidden";o.height="16px";o.width="7em";o.left=(f.buttons?"42px":"0px");o.top="0px";o.display="block";o.overflow="hidden";o.position="absolute";o.lineHeight="16px";o.fontSize="10px";o.fontFamily="Arial, Helvetica, sans-serif";o.fontStyle="normal";o.fontWeight="bold";o.textShadow="0px 0px 4px black";o.color="#ffffff";if(f.trident){o.filter="alpha(opacity=100)"}else{o.opacity=1}o.cursor="default";c.appendChild(h);f.infoid=h.id;l=shiftzoom.E("div");o=l.style;o.position="absolute";o.height="16px";o.width="7em";o.left="0px";o.top="0px";o.display="block";o.backgroundColor="#000000";if(f.trident){o.filter="alpha(opacity=50)"}else{o.opacity=0.5}h.appendChild(l);l=shiftzoom.E("div");l.id=f.id+"_text";o=l.style;o.position="absolute";o.height="16px";o.width="7em";o.left="0px";o.top="0px";o.textAlign="center";o.verticalAlign="middle";o.overflow="hidden";o.display="block";o.color="#ffffff";if(f.trident){o.filter="alpha(opacity=100)"}h.appendChild(l);f.textid=l.id;l.innerHTML="100 / "+parseInt(f.xfactor*100)+" %";h=shiftzoom.E("div");h.id=f.id+"_over";o=h.style;o.height=(n.height*f.ovsfact)+"px";o.width=(n.width*f.ovsfact)+"px";o.display="block";o.position="absolute";o.bottom="0px";o.right="0px";o.borderLeft=f.ovborder+"px solid "+f.ovbcolor;o.borderTop=f.ovborder+"px solid "+f.ovbcolor;if(f.webkit||f.bshadow){o.borderLeft="0px solid "+f.ovbcolor;o.borderTop="0px solid "+f.ovbcolor;o.WebkitBoxShadow=o.MozBoxShadow=o.KhtmlBoxShadow=o.boxShadow="0px 0px 8px black"}o.MozUserSelect=o.KhtmlUserSelect="none";o.visibility="hidden";h.unselectable="on";c.appendChild(h);l=shiftzoom.E("img");l.id=f.id+"_tumb";l.src=m.src;o=l.style;o.height=(n.height*f.ovsfact)+"px";o.width=(n.width*f.ovsfact)+"px";o.display="block";o.position="absolute";o.bottom="0px";o.right="0px";o.msInterpolationMode=f.bicubic;h.appendChild(l);f.tumbid=l.id;if(!f.tod){l.onmousedown=shiftzoom._catchDrag}l=shiftzoom.E("div");l.id=f.id+"_view";l.maxleft=0;l.maxtop=0;o=l.style;o.lineHeight="1px";o.fontSize="1px";o.display="block";o.position="absolute";o.left="0px";o.top="0px";o.border="1px solid "+f.ovacolor;o.height=parseInt((n.height*f.ovsfact)-(f.bmode?0:2))+"px";o.width=parseInt((n.width*f.ovsfact)-(f.bmode?0:2))+"px";if(f.trident){o.background="url('"+f.curpath+"nop.gif') transparent";o.filter="alpha(opacity="+f.ovaopac+")"}else{o.opacity=f.ovaopac/100}if(f.chakra){o.background="url("+shiftzoom.gif+") transparent"}h.appendChild(l);f.overid=h.id;f.viewid=l.id;cvi_szclback=function(){var i=shiftzoom.G(cvi_szactive);shiftzoom.G(i.textid).innerHTML=parseInt((i.parentNode.width/i.minwidth)*100)+" / "+parseInt(i.xfactor*100)+" %"};if(f.tod){f.ontouchstart=shiftzoom._catchTouch;if(f.mtg){f.ongesturestart=shiftzoom._catchGesture}}else{l.onmousedown=shiftzoom._startMove;f.ondblclick=function(){shiftzoom._setCursor(this,1,f.id)};f.oncontextmenu=function(){return false;shiftzoom._setCursor(this,0,f.id);return false};f.onmousedown=shiftzoom._catchKey;f.onmouseover=shiftzoom._catchOver;f.onmouseout=shiftzoom._catchOut;if(f.showcoords){f.onmousemove=(f.pixelcoords?f.relativecoords?shiftzoom._showPixel:shiftzoom._showCoords:f.percentcoords?shiftzoom._showPercent:shiftzoom._showLatLon)}}if(f.zoom>0&&f.fading&&f.overview){f.overview=false;f.special=true}if(f.zoom>0){shiftzoom.zooming(f,f.zoom)}if(f.xpos!=50||f.ypos!=50){shiftzoom.moveto(f,f.xpos+"%",f.ypos+"%")}if(f.icons){shiftzoom.construct(f,f.icons)}if(f.fading){shiftzoom._fadeImage(f.id,0)}}else{p.parentNode.removeChild(n);p.style.visibility="visible"}}else{p.style.visibility="visible"}}return false},remove:function(b,a){if(b&&typeof(b.ctrlid)==="string"){var c,d=b.parentNode.parentNode;b.onmousedown=null;b.onmousemove=null;document.onmousemove=null;document.onmouseup=null;document.onkeydown=null;document.onkeyup=null;document.onkeypress=null;if(b.gecko){window.removeEventListener("DOMMouseScroll",shiftzoom._catchWheel,false)}else{window.onmousewheel=null}c=shiftzoom.G(b.overid);if(c){d.removeChild(c)}c=shiftzoom.G(b.infoid);if(c){d.removeChild(c)}c=shiftzoom.G(b.ctrlid);if(c){d.removeChild(c)}c=shiftzoom.G(b.xycoid);if(c){d.removeChild(c)}c=shiftzoom.G(b.isrcid);if(c){d.removeChild(c)}c=shiftzoom.E("img");c.id=b.id;b.id="";b.ctrlid=false;c.width=(a?b.maxwidth:b.minwidth);c.height=(a?b.maxheight:b.minheight);c.style.width=(a?b.maxwidth:b.minwidth)+"px";c.style.height=(a?b.maxheight:b.minheight)+"px";c.style.border="0px none";c.style.cursor="default";c.src=b.highres;d.style.width=(a?b.maxwidth:b.minwidth)+"px";d.style.height=(a?b.maxheight:b.minheight)+"px";d.removeChild(b.parentNode);d.appendChild(c)}return false},construct:function(N,o){if(N&&typeof(o)==="object"&&typeof(N.ctrlid)==="string"){var J,M,f,e,j,K,E,D,B,u,L,A,c,H,G,F,b,C,a,k,I=o.length;for(J=0;J=8&&K>=8&&A!=""){f=Math.abs(o[J].x)||0;e=Math.abs(o[J].y)||0;E=Math.max(Math.min(Math.abs(o[J].pos),9),0)||0;c=o[J].src2||0;B=o[J].href||0;u=o[J].title||0;L=o[J].target||0;F=shiftzoom.E("a");b=F.style;if(M){F.id=M}if(B){F.href=B}if(L){F.target=L}F.unselectable="on";b.border="0px none";b.fontSize="0px";b.lineHeight="0px";b.margin="0px";b.padding="0px";b.textDecoration="none";b.mozUserSelect=b.khtmlUserSelect=b.webkitUserSelect="none";N.appendChild(F);C=shiftzoom.E("img");a=C.style;if(N.notrans){C.src=N.curpath+"nop.gif";C.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='scale')"}else{C.src=A}C.width=j;C.height=K;if(u){C.title=u}C.unselectable="on";a.position="absolute";a.margin="0px";a.padding="0px";a.border="0px none";a.width=D?j+"px":(j/(N.maxwidth/100))+"%";a.height=D?K+"px":(K/(N.maxheight/100))+"%";G=(N.maxheight/100);H=(N.maxwidth/100);if(D){a.top=(e?e/G:0)+"%";a.left=(f?f/H:0)+"%"}else{if(!E||E==4||E==5||E==6){a.top=((e?e/G:0)-(parseFloat(a.height)/2))+"%"}else{if(E==7||E==8||E==9){a.top=((e?e/G:0)-parseFloat(a.height))+"%"}else{if(E==1||E==2||E==3){a.top=(e?e/G:0)+"%"}}}if(!E||E==2||E==5||E==8){a.left=((f?f/H:0)-(parseFloat(a.width)/2))+"%"}else{if(E==3||E==6||E==9){a.left=((f?f/H:0)-parseFloat(a.width))+"%"}else{if(E==1||E==4||E==7){a.left=(f?f/H:0)+"%"}}}}a.mozUserSelect=a.khtmlUserSelect=a.webkitUserSelect="none";a.msInterpolationMode=N.bicubic;if(c){C.first=A;C.secnd=c;if(!N.trident){C.setAttribute("onmouseover","this.src=this.secnd;");C.setAttribute("onmouseout","this.src=this.first;")}}F.appendChild(C);if(c&&N.trident){F.onmouseover=shiftzoom._switchOver;F.onmouseout=shiftzoom._switchOut}}}}return false},destruct:function(b,a){if(b&&a&&typeof(b.ctrlid)==="string"){if(typeof(a)==="string"){var c=shiftzoom.G(a);if(c){b.removeChild(c)}}if(typeof(a)==="boolean"){b.innerHTML=""}}return false},moveto:function(b,i,g){if(b&&typeof(b.ctrlid)==="string"){if(b.parentNode.width>b.minwidth||b.parentNode.height>b.minheight){function k(f,h,o){var l=parseFloat(f);if(l>o){l=o}else{if(l0?a/100:0;h=Math.round(d*(b.maxwidth-b.minwidth))+b.minwidth;c=Math.round(d*(b.maxheight-b.minheight))+b.minheight;g=Math.round((h/2)-(b.minwidth/2))*-1;e=Math.round((c/2)-(b.minheight/2))*-1;b.parentNode.style.width=h+"px";b.parentNode.style.height=c+"px";b.parentNode.style.left=g+"px";b.parentNode.style.top=e+"px";b.parentNode.width=h;b.parentNode.height=c;b.parentNode.left=g;b.parentNode.top=e;b.maxleft=b.parentNode.width-b.minwidth;b.maxtop=b.parentNode.height-b.minheight;if(b.parentNode.width>b.minwidth||b.parentNode.height>b.minheight){if(b.trident){b.style.cursor="url('"+b.curpath+"grab.cur'),move"}else{b.style.cursor="move"}if(b.overview){shiftzoom._setOverview(b);shiftzoom.G(b.overid).style.visibility="visible"}}else{b.style.cursor="crosshair";if(b.overview){shiftzoom.G(b.overid).style.visibility="hidden"}}}}return false},kenburns:function(img,obj){if(img&&typeof(img.ctrlid)==="string"){function GNV(v){if(typeof(v)==="number"){v=Math.max(0,Math.min(100,parseFloat(v)))}else{v=0.5}return v}var io=false,x=obj[0],y=obj[1],z=obj[2],p=obj[3]||false,s=obj[4]||false,d=obj[5]||false,b=obj[6]||false,a=obj[7]||false;if(typeof(p)==="number"){if(p==3){io=true}else{if(p==0){p=1}else{p=Math.max(0,Math.min(2,parseFloat(p)))}}}else{p=1}if(typeof(s)==="number"){s=Math.max(10,Math.min(100,parseInt(s)))}if(typeof(d)==="number"){d=Math.max(10,Math.min(100,parseInt(d)))}else{d=30}var fz,mz,ix,iy,wf,hf,sw,sh,sx,sy,ew,eh,ex,ey;x=GNV(x);y=GNV(y);z=GNV(z);fz=z*0.01;if(img.lowres&&img.highres){shiftzoom.source(img,img.lowres,false,true)}img.zoomin=false;img.zoomout=false;if(img.parentNode.width>img.minwidth||img.parentNode.height>img.minheight){if(img.trident){img.style.cursor="url('"+img.curpath+"grab.cur'),move"}else{img.style.cursor="move"}}else{img.style.cursor="crosshair"}ix=(img.maxwidth-img.minwidth)*(x*0.01);iy=(img.maxheight-img.minheight)*(y*0.01);sw=parseInt(img.parentNode.style.width,10);sh=parseInt(img.parentNode.style.height,10);sx=parseInt(img.parentNode.style.left,10);sy=parseInt(img.parentNode.style.top,10);ew=z>-1?Math.round(fz*(img.maxwidth-img.minwidth))+img.minwidth:sw;eh=z>-1?Math.round(fz*(img.maxheight-img.minheight))+img.minheight:sh;wf=parseFloat((ew-img.minwidth)/(img.maxwidth-img.minwidth));hf=parseFloat((eh-img.minheight)/(img.maxheight-img.minheight));ex=Math.max(0,Math.min(ew-img.minwidth,ix*wf))*-1;ey=Math.max(0,Math.min(eh-img.minheight,iy*hf))*-1;if(typeof(s)!=="number"){mz=Math.abs(Math.abs(ex)-Math.abs(sx));mz=Math.max(mz,Math.abs(Math.abs(ey)-Math.abs(sy)));mz=Math.max(mz,Math.abs(Math.abs(ew)-Math.abs(sw)));mz=Math.max(mz,Math.abs(Math.abs(eh)-Math.abs(sh)));s=Math.round(mz/d)}if(img.timer){window.clearInterval(img.timer)}var mx,my,mw,mh,q=0,c=0,t=Math.max(5,s),k=1/t;img.timer=window.setInterval(function(){q=io?((-Math.cos((k*c)*Math.PI)/2)+0.5)||0:Math.pow((k*c),p)||0;mw=Math.ceil(sw+(q*(ew-sw)));mh=Math.ceil(sh+(q*(eh-sh)));mx=Math.ceil(sx+(q*(ex-sx)));my=Math.ceil(sy+(q*(ey-sy)));img.parentNode.style.width=mw+"px";img.parentNode.style.height=mh+"px";img.parentNode.style.left=mx+"px";img.parentNode.style.top=my+"px";img.parentNode.width=mw;img.parentNode.height=mh;img.parentNode.left=mx;img.parentNode.top=my;if(img.divbug){img.parentNode.firstChild.style.width=mw+"px";img.parentNode.firstChild.style.height=mh+"px"}c++;if(c>t){window.clearInterval(img.timer);img.maxleft=img.parentNode.width-img.minwidth;img.maxtop=img.parentNode.height-img.minheight;img.zoomin=false;img.zoomout=false;if(img.lowres&&img.highres){shiftzoom.source(img,img.highres,false,true)}if(img.parentNode.width>img.minwidth||img.parentNode.height>img.minheight){if(img.trident){img.style.cursor="url('"+img.curpath+"grab.cur'),move"}else{img.style.cursor="move"}if(img.overview){shiftzoom._setOverview(img);shiftzoom.G(img.overid).style.visibility="visible"}}else{img.style.cursor="crosshair";if(img.overview){shiftzoom.G(img.overid).style.visibility="hidden"}}if(img.automode){if(b&&typeof(b)==="string"&&eval("typeof "+b)=="function"){window.setTimeout("window['"+b+"']('"+(typeof(a)=="number"||typeof(a)=="string"?a:"")+"')",30)}window.setTimeout("shiftzoom._next(shiftzoom.G('"+img.id+"'))",img.autowait+1000)}else{if(b&&typeof(b)==="string"&&eval("typeof "+b)=="function"){window.setTimeout("window['"+b+"']('"+(typeof(a)=="number"||typeof(a)=="string"?a:"")+"')",200)}}}},d)}return false},play:function(img,d,l,obj,c){if(img&&typeof(img.ctrlid)==="string"){if(!img.automode&&typeof(d)==="number"&&typeof(l)==="boolean"&&typeof(obj)==="object"){if(obj.length>=1){var n=0,mx=3,t=obj.length,i;for(i=0;i=3){img.step=obj;img.cpos=0;img.automode=true;img.autoloop=l;img.autowait=Math.abs(d);img.nozoom=true;if(img.overview){shiftzoom.set(img,"overview",false)}if(img.buttons&&!img.tod){shiftzoom.set(img,"buttons",false)}if(img.showcoords&&!img.tod){shiftzoom.set(img,"showcoords",false)}shiftzoom.kenburns(shiftzoom.G(img.id),img.step[img.cpos])}}}}return false},stop:function(a){if(a&&typeof(a.ctrlid)==="string"){if(a.automode){a.automode=false;if(a.timer){window.clearInterval(a.timer)}a.autoloop=false;a.cpos=0;a.maxleft=a.parentNode.width-a.minwidth;a.maxtop=a.parentNode.height-a.minheight;if(a.lowres&&a.highres){shiftzoom.source(a,a.highres,false,true)}if(a.parentNode.width>a.minwidth||a.parentNode.height>a.minheight){if(a.trident){a.style.cursor="url('"+a.curpath+"grab.cur'),move"}else{a.style.cursor="move"}if(a.overview){shiftzoom._setOverview(a);shiftzoom.G(a.overid).style.visibility="visible"}}else{a.style.cursor="crosshair";if(a.overview){shiftzoom.G(a.overid).style.visibility="hidden"}}if(a.callback){window.setTimeout("window['"+a.callback+"']()",200)}}}return false},source:function(b,e,a,d){if(b&&typeof(b.ctrlid)==="string"){if(typeof(e)==="string"&&typeof(a)==="boolean"){var c=new Image();shiftzoom.G(b.xrefid);c.onload=function(){shiftzoom.G(b.ctrlid).style.visibility="hidden";shiftzoom.G(b.overid).style.visibility="hidden";shiftzoom.G(b.xycoid).style.visibility="hidden";if(a==true){shiftzoom.G(b.isrcid).src=c.src;if(!d){if(b.trident){c.onload="";c=null}delete c}shiftzoom._fadeOut(b.id,100)}else{if(a==false){var f=shiftzoom.G(b.xrefid);f.src=c.src;f.style.msInterpolationMode=b.bicubic;if(!d){shiftzoom.G(b.tumbid).src=f.src;if(b.highres!=f.src){b.highres=f.src}if(b.trident){c.onload="";c=null}delete c}if(b.buttons&&!b.tod){shiftzoom.G(b.ctrlid).style.visibility="visible"}if(b.overview&&(b.parentNode.width>b.minwidth||b.parentNode.height>b.minheight)){shiftzoom.G(b.overid).style.visibility="visible"}if(b.showcoords&&!b.tod){shiftzoom.G(b.xycoid).style.visibility="visible"}}}};c.src=e}}return false},lowsource:function(b,c){if(b&&typeof(b.ctrlid)==="string"){if(typeof(c)==="string"&&!b.automode&&!b.zoomin&&!b.zoomout){var a=new Image();a.onload=function(){b.lowres=a.src;if(b.trident){a.onload="";a=null}delete a};a.src=c}}return false},info:function(b,a){if(b&&typeof(b.ctrlid)==="string"){if(a&&typeof(a)==="string"){b.infoblock=a}else{b.infoblock=b.defblock}}return false},set:function(b,c,a){if(b&&typeof(b.ctrlid)==="string"){if(c&&typeof(a)==="boolean"){switch(c.toLowerCase()){case"overview":if(a==false&&b.overview==true){shiftzoom.G(b.overid).style.visibility="hidden"}else{if(a==true&&b.overview==false){if(b.parentNode.width>b.minwidth||b.parentNode.height>b.minheight){shiftzoom._setOverview(b);shiftzoom.G(b.overid).style.visibility="visible"}else{shiftzoom.G(b.overid).style.visibility="hidden"}}}b.overview=a;break;case"showcoords":if(a==false&&b.showcoords==true){b.onmousemove=null;shiftzoom.G(b.xycoid).style.visibility="hidden"}else{if(a==true&&b.showcoords==false&&!b.tod){shiftzoom.G(b.xycoid).style.visibility="visible";b.onmousemove=shiftzoom._showCoords}}b.showcoords=a;break;case"relativecoords":if(a==false&&b.pixelcoords==true&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showCoords}else{if(a==true&&b.pixelcoords==true&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showPixel}}b.relativecoords=a;break;case"pixelcoords":if(a==false&&b.pixelcoords==true&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showLatLon}else{if(a==true&&b.pixelcoords==false&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showCoords}}b.pixelcoords=a;break;case"percentcoords":if(a==false&&b.percentcoords==true&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showLatLon}else{if(a==true&&b.percentcoords==false&&b.showcoords==true&&!b.tod){b.onmousemove=shiftzoom._showPercent}}b.percentcoords=a;break;case"buttons":if(a==false&&b.buttons==true){shiftzoom.G(b.ctrlid).style.visibility="hidden";shiftzoom.G(b.infoid).style.left="0px"}else{if(a==true&&b.buttons==false&&!b.tod){shiftzoom.G(b.infoid).style.left="42px";shiftzoom.G(b.ctrlid).style.visibility="visible"}}b.buttons=a;break;case"zoomin":if(!b.nozoom&&!b.buttons&&(parseInt(b.parentNode.style.width,10)b.minwidth||parseInt(b.parentNode.style.height,10)>b.minheight)){if(a==true){b.zoomout=true;b.zoomin=false;if(b.gecko){b.style.cursor="-moz-zoom-out"}else{if(b.webkit){b.style.cursor="-webkit-zoom-out"}else{if(b.trident||b.chakra){b.style.cursor="url('"+b.curpath+"zoom-out.cur'),crosshair"}else{b.style.cursor="crosshair"}}}}else{b.zoomout=false}}break;case"nozoom":b.nozoom=a;break}}}return false},get:function(b,f){if(b&&f&&typeof(b.ctrlid)==="string"){if(f.toLowerCase()=="maxzoomx"){return b.xfactor}else{if(f.toLowerCase()=="maxzoomy"){return b.yfactor}else{if(f.toLowerCase()=="maxwidth"){return b.maxwidth}else{if(f.toLowerCase()=="maxheight"){return b.maxheight}else{if(f.toLowerCase()=="playing"){return b.automode}else{if(f.toLowerCase()=="currentxyz"){var c=parseFloat((b.parentNode.width-b.minwidth)/(b.maxwidth-b.minwidth)),e=Math.min(Math.max(c*100,0),100)||0;var a=Math.min(Math.max(((Math.abs(parseFloat(b.parentNode.style.left))/((b.maxwidth-b.minwidth)*c))*100),0),100)||0;var g=Math.min(Math.max(((Math.abs(parseFloat(b.parentNode.style.top))/((b.maxheight-b.minheight)*c))*100),0),100)||0;return{x:a,y:g,z:e}}}}}}}}return false},G:function(a){return(document.getElementById(a))},E:function(a){return(document.createElement(a))},L:function(b,a){b=b.toUpperCase()||"LOG";if(window.console){if(!window.console.warn){window.console.log(b+": "+a)}else{window.console[b.toLowerCase()||"log"](a)}}else{if(window.opera){opera.postError(b+": "+a)}else{window.document.title=b+": "+a}}return false},_next:function(a){if(a&&typeof(a.ctrlid)==="string"){if(a.automode){if(a.autoloop&&a.cpos<(a.step.length-1)){a.cpos=a.cpos+1}else{if(a.autoloop&&a.cpos>=(a.step.length-1)){a.cpos=0}else{if(!a.autoloop&&a.cpos<(a.step.length-1)){a.cpos=a.cpos+1}else{a.cpos=a.step.length}}}if(a.cpos0&&f==g){g-=c}a=self.pageYOffset;if(a>0&&d==e){e-=a}}else{if(document.documentElement){c=document.documentElement.scrollLeft;a=document.documentElement.scrollTop}else{if(document.body){c=document.body.scrollLeft;a=document.body.scrollTop}}}b.ox=c;b.oy=a;b.ex=g;b.ey=e;return b},_showCoords:function(d){if(cvi_szactive!=null){var b,p,l,i,g,f,n=0,j=0,a=shiftzoom.G(cvi_szactive),m=a.parentNode.width,c=a.parentNode.height;d=d?d:window.event;g=d.clientX;f=d.clientY;if(d.pageX||d.pageY){n=d.pageX;j=d.pageY}b=shiftzoom._getMousePos(g,f,n,j);p=shiftzoom._findPosXY(a);l=Math.min(Math.max(b.ex+b.ox-p.x,0),m);i=Math.min(Math.max(b.ey+b.oy-p.y,0),c);shiftzoom.G(a.cposid).innerHTML="x:"+l+" y:"+i+""}return false},_showPixel:function(d){if(cvi_szactive!=null){var b,q,m,j,i,g,f,p=0,l=0,a=shiftzoom.G(cvi_szactive),n=a.parentNode.width,c=a.parentNode.height;d=d?d:window.event;g=d.clientX;f=d.clientY;if(d.pageX||d.pageY){p=d.pageX;l=d.pageY}b=shiftzoom._getMousePos(g,f,p,l);q=shiftzoom._findPosXY(a);i=(a.minwidth/n)*a.xfactor;m=parseInt((Math.min(Math.max(b.ex+b.ox-q.x,0),n)*i),10);j=parseInt((Math.min(Math.max(b.ey+b.oy-q.y,0),c)*i),10);shiftzoom.G(a.cposid).innerHTML="x:"+m+" y:"+j+""}return false},_showPercent:function(f){if(cvi_szactive!=null){var b,r,n,l,j,i,g,q=0,m=0,d=!Number.prototype.toFixed?0:1,a=shiftzoom.G(cvi_szactive),p=a.parentNode.width,c=a.parentNode.height;f=f?f:window.event;i=f.clientX;g=f.clientY;if(f.pageX||f.pageY){q=f.pageX;m=f.pageY}b=shiftzoom._getMousePos(i,g,q,m);r=shiftzoom._findPosXY(a);n=parseFloat((Math.min(Math.max(b.ex+b.ox-r.x,0),p)/p)*100);n=d?n.toFixed(2):parseInt(n);l=parseFloat((Math.min(Math.max(b.ey+b.oy-r.y,0),c)/c)*100);l=d?l.toFixed(2):parseInt(l);j=parseFloat(((p-a.minwidth)/(a.maxwidth-a.minwidth))*100);j=d?j.toFixed(2):parseInt(j);shiftzoom.G(a.cposid).innerHTML="x:"+n+"% y:"+l+"% z:"+j+"%"}return false},_showLatLon:function(i){if(cvi_szactive!=null){function f(h,t){var o,e,k;o=parseInt(h);e=Math.abs(parseFloat(h-o)*60);k=Math.abs(parseFloat(parseInt(e)-e)*60);return Math.abs(o)+"°"+parseInt(e)+"'"+parseInt(k)+"'' "+t}var c,s,p,m,l,a,j,g,r=0,n=0,b=document.getElementById(cvi_szactive),q=b.parentNode.width,d=b.parentNode.height;i=i?i:window.event;j=i.clientX;g=i.clientY;if(i.pageX||i.pageY){r=i.pageX;n=i.pageY}c=shiftzoom._getMousePos(j,g,r,n);s=shiftzoom._findPosXY(b);p=Math.min(Math.max(c.ex+c.ox-s.x,0),q);m=Math.min(Math.max(c.ey+c.oy-s.y,0),d);a=(p*360/q)-180;l=90-(m*180/d);a=f(a,a!=0?(a<0?"W":"E"):"");l=f(l,l!=0?(l<0?"S":"N"):"");shiftzoom.G(b.cposid).innerHTML="Lat: "+l+" • Lon: "+a+""}return false},_killTooltip:function(c){var b,a=shiftzoom.G(c);b=shiftzoom.G(a.ttipid);if(b){document.getElementsByTagName("body")[0].removeChild(b)}return false},_showTooltip:function(d,a,i){a=a||0;i=i||0;var h,l,g=shiftzoom.G(d),e=shiftzoom.G(g.ttipid);if(!e){var m=shiftzoom._findPosXY(g.parentNode.parentNode);h=shiftzoom.E("div");if(g.trident){h.style.backgroundColor="black"}h.id=g.ttipid;h.style.height="auto";h.style.width="auto";h.style.display="block";h.style.position="absolute";h.style.filter="alpha(opacity=0)";h.style.opacity=0;h.style.left=(m.x+10+a)+"px";h.style.top=(m.y+i)+"px";h.style.visibility="visible";h.style.border="solid 2px white";h.style.MozBorderRadius=h.style.KhtmlBorderRadius=h.style.WebkitBorderRadius=h.style.borderRadius="6px";h.unselectable="on";h.style.MozBoxShadow=h.style.WebkitBoxShadow=h.style.KhtmlBoxShadow=h.style.boxShadow="0px 0px 8px black";h.style.MozUserSelect=h.style.KhtmlUserSelect="none";document.getElementsByTagName("body")[0].appendChild(h);h.onclick=function(){document.getElementsByTagName("body")[0].removeChild(this)};if(!g.trident){l=shiftzoom.E("div");l.style.height="100%";l.style.width="100%";l.style.left="0px";l.style.top="0px";l.style.position="absolute";l.style.opacity=0.5;l.style.backgroundColor="black";l.style.MozBorderRadius=l.style.KhtmlBorderRadius=l.style.WebkitBorderRadius=l.style.borderRadius="4px";h.appendChild(l)}l=shiftzoom.E("div");l.style.display="block";l.style.left="0px";l.style.top="0px";l.style.position="relative";l.style.textAlign="left";l.style.verticalAlign="middle";l.style.color="white";l.style.fontSize="12px";l.style.fontFamily="Arial,Helvetica,sans-serif";l.style.fontStyle="normal";l.style.fontWeight="bold";l.style.whiteSpace="nowrap";l.style.textShadow="black 0px 0px 4px";l.style.margin="10px";l.innerHTML=g.infoblock;h.appendChild(l);if(g.timer){window.clearInterval(g.timer)}var b=0,j=0,m=5,f=20;g.timer=window.setInterval(function(){b+=f;h.style.filter="alpha(opacity="+b+")";h.style.opacity=b/100;j++;if(j>m){window.clearInterval(g.timer);h.style.filter="alpha(opacity=100)";h.style.opacity=1}},30)}return false},_setCursor:function(c,e,f){var b=shiftzoom.G(f);if(!b.nozoom){var a=shiftzoom.G(e==1?b.zoutid:b.zoinid).style;b.zoomin=false;b.zoomout=false;c.style.border=b.bc;c.style.borderBottom=b.dc;c.style.borderRight=b.dc;a.border=b.bc;a.borderBottom=b.dc;a.borderRight=b.dc;if(e==1&&(parseInt(b.parentNode.style.width,10)b.minwidth||parseInt(b.parentNode.style.height,10)>b.minheight)){c.style.border=b.bc;c.style.borderTop=b.dc;c.style.borderLeft=b.dc;b.zoomout=true;if(b.gecko){b.style.cursor="-moz-zoom-out"}else{if(b.webkit){b.style.cursor="-webkit-zoom-out"}else{if(b.trident||b.chakra){b.style.cursor="url('"+b.curpath+"zoom-out.cur'),crosshair"}else{b.style.cursor="crosshair"}}}}else{b.style.cursor=b.pointer}}}return false},_zoomIn:function(a,f,q,n,j,e,b,l,i,k,h,d){if(!d){var p,g,o,m,c=shiftzoom.G(a);if(parseInt(c.parentNode.style.width,10)d.minwidth||parseInt(d.parentNode.style.height,10)>d.minheight){clearInterval(cvi_sztimer);g=Math.max(d.minwidth,Math.min(d.maxwidth,Math.round(o*b/l+j)));f=Math.round(n*b/l+i);q=Math.max(d.minheight,Math.min(d.maxheight,Math.round(a*b/l+r)));e=Math.round(m*b/l+h);d.parentNode.style.width=g+"px";d.parentNode.style.height=q+"px";d.parentNode.style.left=f+"px";d.parentNode.style.top=e+"px";b++;if(d.divbug){d.parentNode.firstChild.style.width=g+"px";d.parentNode.firstChild.style.height=q+"px"}shiftzoom.G(d.textid).innerHTML=parseInt((g/d.minwidth)*100)+" / "+parseInt(d.xfactor*100)+" %";cvi_sztimer=setInterval("shiftzoom._zoomOut('"+k+"',"+c+","+b+","+l+","+j+","+o+","+r+","+a+","+i+","+n+","+h+","+m+","+p+")",d.millisec)}else{clearInterval(cvi_sztimer);if(d.webkit&&c){shiftzoom._stopZoom()}}}return false},_stopZoom:function(){var a,c,b=shiftzoom._shiftzoom;document.onmouseup=null;clearInterval(cvi_sztimer);b.zoomin=false;b.zoomout=false;b.parentNode.left=parseInt(b.parentNode.style.left,10);b.parentNode.top=parseInt(b.parentNode.style.top,10);b.parentNode.width=parseInt(b.parentNode.style.width,10);b.parentNode.height=parseInt(b.parentNode.style.height,10);b.maxleft=b.parentNode.width-b.minwidth;b.maxtop=b.parentNode.height-b.minheight;if(b.parentNode.width>b.minwidth||b.parentNode.height>b.minheight){if(b.trident){b.style.cursor="url('"+b.curpath+"grab.cur'),move"}else{b.style.cursor="move"}if(b.overview){shiftzoom._setOverview(b);shiftzoom.G(b.overid).style.visibility="visible"}}else{b.style.cursor="crosshair";if(b.overview){shiftzoom.G(b.overid).style.visibility="hidden"}}c=shiftzoom.G(b.zoinid).style;c.border=b.bc;c.borderBottom=b.dc;c.borderRight=b.dc;c=shiftzoom.G(b.zoutid).style;c.border=b.bc;c.borderBottom=b.dc;c.borderRight=b.dc;b.pointer=b.style.cursor;shiftzoom.G(b.textid).innerHTML=parseInt((b.parentNode.width/b.minwidth)*100)+" / "+parseInt(b.xfactor*100)+" %";if(b.lowres&&b.highres){shiftzoom.source(b,b.highres,false,true)}cvi_sztimer=setInterval("shiftzoom._fadeInfo('"+b.id+"',100)",30);shiftzoom._shiftzoom=null;return false},_catchDrag:function(a){return false},_catchWheel:function(g){var h,f,i,b=0;g=g?g:window.event;if(g.wheelDelta){b=g.wheelDelta/120;h=(b<0?1:0)}else{if(g.detail){b=-g.detail/3;h=(b<0?1:0)}}if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}if(cvi_szactive!=null&&b!=0){cvi_szimage=true;var a=shiftzoom.G(cvi_szactive),c=shiftzoom.G(a.infoid).style;c.visibility="visible";c.opacity=1;f=shiftzoom.get(a,"currentxyz");if(f.z<=0){f.x=50;f.y=50}shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %";i=h<1?Math.max(f.z-20,0):Math.min(f.z+20,100);shiftzoom.kenburns(a,[f.x,f.y,i,3,false,false,"cvi_szclback"]);shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %";shiftzoom._fadeInfo(a.id,100)}return false},_catchOver:function(a){cvi_szactive=this.id;this.focus();if(this.gecko){window.addEventListener("DOMMouseScroll",shiftzoom._catchWheel,false)}else{window.onmousewheel=document.onmousewheel=shiftzoom._catchWheel}document.onkeyup=shiftzoom._upKey;document.onkeypress=shiftzoom._pressKey;document.onkeydown=shiftzoom._downKey;return false},_catchOut:function(){cvi_szactive=null;if(this.gecko){window.removeEventListener("DOMMouseScroll",shiftzoom._catchWheel,false)}else{window.onmousewheel=document.onmousewheel=null}document.onkeydown=null;document.onkeypress=null;document.onkeyup=null;return false},_switchOver:function(a){if(window.XMLHttpRequest){this.firstChild.src=this.firstChild.secnd;return false}else{this.firstChild.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.firstChild.secnd+"', sizingMethod='scale')"}return false},_switchOut:function(a){if(window.XMLHttpRequest){this.firstChild.src=this.firstChild.first;return false}else{this.firstChild.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.firstChild.first+"', sizingMethod='scale')"}return false},_catchKey:function(v){clearInterval(cvi_sztimer);var z=shiftzoom._shiftzoom=this;var f=false,q=false,p,h,s,r,l=0,i=0,g=shiftzoom.G(z.infoid).style;v=v?v:window.event;if(v.which){q=(v.which==2);f=(v.which==3)}else{if(v.button){q=(v.button==4);f=(v.button==2)}}if(z.trident){g.filter="alpha(opacity=100)"}else{g.opacity=1}g.visibility="hidden";s=v.clientX;r=v.clientY;if(v.pageX||v.pageY){l=v.pageX;i=v.pageY}p=shiftzoom._getMousePos(s,r,l,i);h=shiftzoom._findPosXY(z.parentNode.parentNode);z.mouseX=Math.min(Math.max(p.ex+p.ox-h.x,0),z.minwidth);z.mouseY=Math.min(Math.max(p.ey+p.oy-h.y,0),z.minheight);if(((v.altKey&&!v.shiftKey)||f||z.zoomout)&&!z.automode&&!z.nozoom&&(z.parentNode.width>z.minwidth||z.parentNode.height>z.minheight)){var b,n,u,w,a,m,s,j,r,o;if(z.gecko){z.style.cursor="-moz-zoom-out"}else{if(z.webkit){z.style.cursor="-webkit-zoom-out"}else{if(z.trident||z.chakra){z.style.cursor="url('"+z.curpath+"zoom-out.cur'),crosshair"}else{z.style.cursor="crosshair"}}}z.pointer=z.style.cursor;if(!z.zoomout){b=shiftzoom.G(z.zoutid).style;b.border=z.bc;b.borderLeft=z.dc;b.borderTop=z.dc;z.zoomout=true}n=z.parentNode.width;u=(z.parentNode.width-z.minwidth)*-1;w=z.parentNode.height;a=(z.parentNode.height-z.minheight)*-1;m=parseInt(z.parentNode.style.left,10);s=m*-1;j=parseInt(z.parentNode.style.top,10);r=j*-1;o=Math.max(1,Math.round((z.parentNode.width/z.minwidth)*3));document.onmouseup=shiftzoom._stopZoom;g.visibility="visible";if(z.lowres&&z.highres){shiftzoom.source(z,z.lowres,false,true)}cvi_sztimer=setInterval("shiftzoom._zoomOut('"+z.id+"',"+f+","+(z.webkit&&f?1:0)+","+o+","+n+","+u+","+w+","+a+","+m+","+s+","+j+","+r+","+z.nozoom+")",z.millisec)}else{if(((!v.altKey&&v.shiftKey)||q||z.zoomin)&&!z.automode&&!z.nozoom&&(z.parentNode.widthz.minwidth||z.parentNode.height>z.minheight){if(z.automode){shiftzoom.stop(z)}if(z.gecko){z.style.cursor="-moz-grabbing"}else{if(z.trident){z.style.cursor="url('"+z.curpath+"grabbing.cur'),move"}else{z.style.cursor="move"}}var d=parseInt(z.parentNode.style.left,10),c=parseInt(z.parentNode.style.top,10);z.mouseX=v.clientX;z.mouseY=v.clientY;document.onmousemove=shiftzoom._whilePan;document.onmouseup=shiftzoom._stopPan}}}return false},_catchTouch:function(g){if(g.touches.length==1){g.preventDefault();clearInterval(cvi_sztimer);var f=shiftzoom._shiftzoom=g.target;if(f&&typeof(f.ctrlid)==="string"){cvi_sztimer=new Date().getTime();cvi_szactive=f.id;cvi_szimage=true;var d=cvi_sztimer-f.lasttap;if(d<500&&d>0){f.lasttap=0;var a=shiftzoom.get(f,"currentxyz");if(a.z<=0){a.x=50;a.y=50}if(a.z<100){shiftzoom.kenburns(f,[a.x,a.y,100,3])}}else{var b,m,i,h,l=0,j=0,c=shiftzoom.G(f.infoid).style;c.opacity=1;c.visibility="hidden";f.lasttap=cvi_sztimer;i=g.touches[0].clientX;h=g.touches[0].clientY;if(g.touches[0].pageX||g.touches[0].pageY){l=g.touches[0].pageX;j=g.touches[0].pageY}b=shiftzoom._getMousePos(i,h,l,j);m=shiftzoom._findPosXY(f.parentNode.parentNode);f.mouseX=Math.min(Math.max(b.ex+b.ox-m.x,0),f.minwidth);f.mouseY=Math.min(Math.max(b.ey+b.oy-m.y,0),f.minheight);if(f.parentNode.width>f.minwidth||f.parentNode.height>f.minheight){if(f.automode){shiftzoom.stop(f)}f.hasmoved=false;f.mouseX=g.touches[0].clientX;f.mouseY=g.touches[0].clientY;f.ontouchmove=shiftzoom._touchMove;f.ontouchend=shiftzoom._touchEnd}}}}return false},_touchMove:function(c){if(c.touches.length==1){var b=shiftzoom._shiftzoom;if(b&&typeof(b.ctrlid)==="string"){var a=Math.max(0,Math.min(b.maxleft,Math.abs(parseInt(b.parentNode.style.left,10))-(c.touches[0].clientX-b.mouseX)));var d=Math.max(0,Math.min(b.maxtop,Math.abs(parseInt(b.parentNode.style.top,10))-(c.touches[0].clientY-b.mouseY)));b.parentNode.style.left=(a*-1)+"px";b.parentNode.style.top=(d*-1)+"px";b.parentNode.left=(a*-1);b.parentNode.top=(d*-1);b.mouseX=c.touches[0].clientX;b.mouseY=c.touches[0].clientY;b.hasmoved=true}}return false},_touchEnd:function(){var b=shiftzoom._shiftzoom;if(b&&typeof(b.ctrlid)==="string"){clearInterval(cvi_sztimer);b.ontouchmove=null;b.ontouchend=null;if(b.overview){var a=shiftzoom.G(b.viewid).style;a.left=Math.round((Math.abs(parseInt(b.parentNode.style.left,10))/(b.parentNode.width/b.minwidth))*b.ovsfact)-(b.bmode?2:0)+"px";a.top=Math.round((Math.abs(parseInt(b.parentNode.style.top,10))/(b.parentNode.height/b.minheight))*b.ovsfact)-(b.bmode?2:0)+"px"}}cvi_szactive=null;cvi_szimage=false;shiftzoom._shiftzoom=null;return false},_catchGesture:function(c){c.preventDefault();clearInterval(cvi_sztimer);var a=shiftzoom._shiftzoom=c.target;if(a&&typeof(a.ctrlid)==="string"&&!a.zoomin&&!a.zoomout&&!a.automode&&!a.nozoom){cvi_szactive=a.id;cvi_szimage=true;var b=shiftzoom.G(a.infoid).style;b.visibility="hidden";b.opacity=1;b.visibility="visible";shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %";a.ongesturechange=shiftzoom._gestureChange;a.ongestureend=shiftzoom._gestureEnd}return false},_gestureChange:function(d){d.preventDefault();var a=shiftzoom._shiftzoom;if(a&&typeof(a.ctrlid)==="string"){var f,c=shiftzoom.G(a.infoid).style,b=shiftzoom.get(a,"currentxyz");if(b.z<=0){b.x=50;b.y=50}c.visibility="visible";c.opacity=1;shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %";f=d.scale<1?Math.max(b.z-33.333333,0):Math.min(b.z+33.333333,100);shiftzoom.kenburns(a,[b.x,b.y,f,3]);shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %"}return false},_gestureEnd:function(){var a=shiftzoom._shiftzoom;if(a&&typeof(a.ctrlid)==="string"){a.ongesturechange=null;a.ongestureend=null;clearInterval(cvi_sztimer);a.zoomin=false;a.zoomout=false;a.parentNode.left=parseInt(a.parentNode.style.left,10);a.parentNode.top=parseInt(a.parentNode.style.top,10);a.parentNode.width=parseInt(a.parentNode.style.width,10);a.parentNode.height=parseInt(a.parentNode.style.height,10);a.maxleft=a.parentNode.width-a.minwidth;a.maxtop=a.parentNode.height-a.minheight;shiftzoom.G(a.textid).innerHTML=parseInt((a.parentNode.width/a.minwidth)*100)+" / "+parseInt(a.xfactor*100)+" %";if(a.lowres&&a.highres){shiftzoom.source(a,a.highres,false,true)}shiftzoom._fadeInfo(a.id,100)}cvi_szactive=null;cvi_szimage=false;shiftzoom._shiftzoom=null;return false},_downKey:function(j){if(cvi_szactive!=null){j=j?j:window.event;var d=(j.keyCode?j.keyCode:j.which),r=j.shiftKey,m=j.altKey,p=false,b=37,l=38,o=39,f=40,h=36,i=35,c=34,g=33,q=187,n=189;switch(d){case b:cvi_szimage=true;shiftzoom._panKey(8,0,r,m);break;case o:cvi_szimage=true;shiftzoom._panKey(-8,0,r,m);break;case l:cvi_szimage=true;shiftzoom._panKey(0,8,r,m);break;case f:cvi_szimage=true;shiftzoom._panKey(0,-8,r,m);break;case h:if(cvi_szimage==null){cvi_szimage=true;shiftzoom._initZoom(0,1,p)}break;case i:if(cvi_szimage==null){cvi_szimage=true;shiftzoom._initZoom(1,1,p)}break;case n:case g:if(cvi_szimage==null){cvi_szimage=true;shiftzoom._initZoom(0,4,p)}break;case q:case c:if(cvi_szimage==null){cvi_szimage=true;shiftzoom._initZoom(1,4,p)}break}}return false},_pressKey:function(a){return false},_upKey:function(){if(cvi_szactive!=null){cvi_szimage=null}return false},_initZoom:function(g,m,k){var l,h,c,a,j,f,i,e,n,b=shiftzoom.G(cvi_szactive);if(b.automode){shiftzoom.stop(b)}if(g==0&&!b.nozoom&&(parseInt(b.parentNode.style.width,10)>b.minwidth||parseInt(b.parentNode.style.height,10)>b.minheight)){if(b.gecko){b.style.cursor="-moz-zoom-out"}else{if(b.webkit){b.style.cursor="-webkit-zoom-out"}else{if(b.trident||b.chakra){b.style.cursor="url('"+b.curpath+"zoom-out.cur'),crosshair"}else{b.style.cursor="crosshair"}}}b.pointer=b.style.cursor;l=b.parentNode.width;h=(b.parentNode.width-b.minwidth)*-1;c=b.parentNode.height;a=(b.parentNode.height-b.minheight)*-1;j=parseInt(b.parentNode.style.left,10);f=j*-1;i=parseInt(b.parentNode.style.top,10);e=i*-1;n=Math.max(1,Math.round((b.parentNode.width/b.minwidth)*m));if(b.lowres&&b.highres){shiftzoom.source(b,b.lowres,false,true)}shiftzoom._zoomKey(g,(k?1:0),k,n,l,h,c,a,j,f,i,e,b.nozoom)}else{if(g==1&&!b.nozoom&&(parseInt(b.parentNode.style.width,10)u.minwidth||u.parentNode.height>u.minheight){if(u.trident){u.style.cursor="url('"+u.curpath+"grab.cur'),move"}else{u.style.cursor="move"}if(u.overview){shiftzoom._setOverview(u);shiftzoom.G(u.overid).style.visibility="visible"}}else{u.style.cursor="crosshair";if(u.overview){shiftzoom.G(u.overid).style.visibility="hidden"}}u.pointer=u.style.cursor;shiftzoom.G(u.infoid).style.visibility="hidden"}if(q==0&&(parseInt(u.parentNode.style.width,10)>u.minwidth||parseInt(u.parentNode.style.height,10)>u.minheight)){h=Math.max(u.minwidth,Math.min(u.maxwidth,Math.round(o*c/l+k)));g=Math.round(n*c/l+j);r=Math.max(u.minheight,Math.min(u.maxheight,Math.round(b*c/l+s)));f=Math.round(m*c/l+i);u.parentNode.style.width=h+"px";u.parentNode.style.height=r+"px";u.parentNode.style.left=g+"px";u.parentNode.style.top=f+"px";shiftzoom.G(u.infoid).style.visibility="visible";shiftzoom.G(u.textid).innerHTML=parseInt((h/u.minwidth)*100)+" / "+parseInt(u.xfactor*100)+" %";u.parentNode.width=h;u.parentNode.height=r;u.parentNode.left=g;u.parentNode.top=f;u.maxleft=u.parentNode.width-u.minwidth;u.maxtop=u.parentNode.height-u.minheight;c++;if(u.divbug){u.parentNode.firstChild.style.width=h+"px";u.parentNode.firstChild.style.height=r+"px"}if((cvi_szimage||t)&&(u.parentNode.width>u.minwidth||u.parentNode.height>u.minheight)){if(!t){setTimeout("shiftzoom._zoomKey("+q+","+c+","+t+","+l+","+k+","+o+","+s+","+b+","+j+","+n+","+i+","+m+","+p+")",50)}else{a();if(cvi_szactive!=null){cvi_szimage=null}}}else{a()}}else{if(q==1&&(parseInt(u.parentNode.style.width,10)e.minwidth||e.parentNode.height>e.minheight)){var b=Math.max(0,Math.min(e.maxleft,Math.abs(parseInt(e.parentNode.style.left))-(g?4*i:d?i/4:i)));var j=Math.max(0,Math.min(e.maxtop,Math.abs(parseInt(e.parentNode.style.top))-(g?4*f:d?f/4:f)));e.parentNode.style.left=(b*-1)+"px";e.parentNode.style.top=(j*-1)+"px";e.parentNode.left=(b*-1);e.parentNode.top=(j*-1);if(e.overview){var c=shiftzoom.G(e.viewid).style;c.left=Math.round((Math.abs(parseInt(e.parentNode.style.left))/(e.parentNode.width/e.minwidth))*e.ovsfact)-(e.bmode?2:0)+"px";c.top=Math.round((Math.abs(parseInt(e.parentNode.style.top))/(e.parentNode.height/e.minheight))*e.ovsfact)-(e.bmode?2:0)+"px"}if(cvi_szimage){setTimeout("shiftzoom._panKey("+i+","+f+","+g+","+d+")",50)}}}return false},_fadeImage:function(c,b){var a=shiftzoom.G(c);if(b<=100){if(a.trident){a.parentNode.style.filter="alpha(opacity="+b+")"}else{a.parentNode.style.opacity=b/100}b+=10;window.setTimeout("shiftzoom._fadeImage('"+c+"',"+b+")",30)}else{if(a.buttons&&!a.tod){shiftzoom.G(a.ctrlid).style.visibility="visible"}if(a.showcoords&&!a.tod){shiftzoom.G(a.xycoid).style.visibility="visible"}if(a.special&&(a.parentNode.width>a.minwidth||a.parentNode.height>a.minheight)){a.overview=true;a.special=false;shiftzoom._setOverview(a);shiftzoom.G(a.overid).style.visibility="visible"}}return false},_fadeInfo:function(d,c){clearInterval(cvi_sztimer);var a=shiftzoom.G(d),b=shiftzoom.G(a.infoid);if(c>0&&cvi_szactive==a.id&&!a.zoomin&&!a.zoomout){if(a.trident){b.style.filter="alpha(opacity="+c+")"}else{b.style.opacity=c/100}c-=5;cvi_sztimer=setInterval("shiftzoom._fadeInfo('"+d+"',"+c+")",50)}else{if(a.trident){b.style.filter="alpha(opacity=100)"}else{b.style.opacity=1}b.style.visibility="hidden"}return false},_fadeOut:function(d,c){var a=shiftzoom.G(d);if(c>0){if(a.trident){a.parentNode.style.filter="alpha(opacity="+c+")"}else{a.parentNode.style.opacity=c/100}c-=10;window.setTimeout("shiftzoom._fadeOut('"+d+"',"+c+")",30)}else{var b=shiftzoom.G(a.xrefid);b.src=shiftzoom.G(a.isrcid).src;shiftzoom.G(a.tumbid).src=b.src;b.style.msInterpolationMode=a.bicubic;shiftzoom.G(a.isrcid).src=a.trident?null:null;if(a.highres!=b.src){a.highres=b.src}shiftzoom._fadeIn(d,0)}return false},_fadeIn:function(c,b){var a=shiftzoom.G(c);if(b<=100){if(a.trident){a.parentNode.style.filter="alpha(opacity="+b+")"}else{a.parentNode.style.opacity=b/100}b+=10;window.setTimeout("shiftzoom._fadeIn('"+c+"',"+b+")",30)}else{if(a.buttons&&!a.tod){shiftzoom.G(a.ctrlid).style.visibility="visible"}if(a.overview&&(a.parentNode.width>a.minwidth||a.parentNode.height>a.minheight)){shiftzoom.G(a.overid).style.visibility="visible"}if(a.showcoords&&!a.tod){shiftzoom.G(a.xycoid).style.visibility="visible"}}return false},_whilePan:function(c){var b=shiftzoom._shiftzoom;c=c?c:window.event;var a=Math.max(0,Math.min(b.maxleft,Math.abs(parseInt(b.parentNode.style.left))-(c.clientX-b.mouseX)));var d=Math.max(0,Math.min(b.maxtop,Math.abs(parseInt(b.parentNode.style.top))-(c.clientY-b.mouseY)));b.parentNode.style.left=(a*-1)+"px";b.parentNode.style.top=(d*-1)+"px";b.parentNode.left=(a*-1);b.parentNode.top=(d*-1);b.mouseX=c.clientX;b.mouseY=c.clientY;return false},_stopPan:function(){var a,c,b=shiftzoom._shiftzoom;document.onmousemove=null;document.onmouseup=null;if(b.gecko||b.presto){b.style.cursor="move"}else{b.style.cursor=b.pointer}if(b.overview){a=shiftzoom.G(b.viewid).style;a.left=Math.round((Math.abs(parseInt(b.parentNode.style.left))/(b.parentNode.width/b.minwidth))*b.ovsfact)-(b.bmode?2:0)+"px";a.top=Math.round((Math.abs(parseInt(b.parentNode.style.top))/(b.parentNode.height/b.minheight))*b.ovsfact)-(b.bmode?2:0)+"px"}shiftzoom._shiftzoom=null;return false},_startMove:function(d){if(!d){d=window.event;var b=d.srcElement}else{var b=d.target}var a=parseInt(b.style.left),c=parseInt(b.style.top);cvi_szimage=b.id.substring(0,b.id.indexOf("_"));b.style.cursor="default";b.mouseX=d.clientX;b.mouseY=d.clientY;document.onmousemove=shiftzoom._whileMove;document.onmouseup=shiftzoom._stopMove;return false},_whileMove:function(h){if(!h){h=window.event;var c=h.srcElement}else{var c=h.target}var f=c.id.split("_"),d=shiftzoom.G(cvi_szimage);if(c&&f[f.length-1]=="view"&&c.maxleft&&c.maxtop){var b=Math.max(0,Math.min(c.maxleft,Math.abs(parseInt(c.style.left))+(h.clientX-c.mouseX)));var g=Math.max(0,Math.min(c.maxtop,Math.abs(parseInt(c.style.top))+(h.clientY-c.mouseY)));c.style.left=(b-(d.bmode?2:0))+"px";c.style.top=(g-(d.bmode?2:0))+"px";c.mouseX=h.clientX;c.mouseY=h.clientY;var a=Math.max(0,Math.min(d.maxleft,Math.abs(b*(d.parentNode.width/d.minwidth)*(1/d.ovsfact))));var i=Math.max(0,Math.min(d.maxtop,Math.abs(g*(d.parentNode.height/d.minheight)*(1/d.ovsfact))));d.parentNode.style.left=(a*-1)+"px";d.parentNode.style.top=(i*-1)+"px";d.parentNode.left=(a*-1);d.parentNode.top=(i*-1)}else{document.onmousemove=null;document.onmouseup=null;d.onmousedown=shiftzoom._catchKey;cvi_szimage=null}return false},_stopMove:function(){document.onmousemove=null;document.onmouseup=null;shiftzoom.G(cvi_szimage).onmousedown=shiftzoom._catchKey;cvi_szimage=null;return false}};shiftzoom.defaultCurpath="js/lib/shiftzoom/shiftzoom/images/cursors/";