/**
 * shiftzoom.js 1.0 (28-Jun-2008)
 * (c) by Christian Effenberger 
 * All Rights Reserved
 * Source: shiftzoom.netzgesta.de
 * Distributed under Netzgestade Software License Agreement
 * http://www.netzgesta.de/cvi/LICENSE.txt
 * License permits free of charge
 * use on non-commercial and 
 * private web sites only 
 * syntax:
	shiftzoom.defaultFading = true;		//BOOLEAN startup fading
	shiftzoom.defaultOpacity = 90;		//INT 0-100 (%) zoom button opacity
	shiftzoom.defaultMillisec = 40;		//INT 5-100 zoom interval delay
	shiftzoom.defaultIntitle = '';		//STR 'click or press shift key to zoom in'
	shiftzoom.defaultOuttitle = '';		//STR 'click or press alt key to zoom out'
	shiftzoom.defaultCurpath = '';		//STR cursor path (*.cur) IE only
	shiftzoom.defaultOverview = true;	//BOOLEAN show overview
	shiftzoom.defaultOvsfact = 25;		//INT 10-50 (%) overview size factor
	shiftzoom.defaultOvaopac = 75;		//INT 0-100 (%) overview area opacity
	shiftzoom.defaultOvacolor = 'red';	//STR overview area css color 
	shiftzoom.defaultOvbcolor = 'white';//STR overview border css color
	shiftzoom.defaultOvborder = '';		//INT 0-20 (px) or "" overview border width
	shiftzoom.add( image, options );
	shiftzoom.add( image, { fading: value, overview: value, curpath: value, intitle: value, outtitle: value, millisec: value, ovaopac: value, opacity: value, ovborder: value, ovacolor: value, ovbcolor: value, ovsfact: value } );
	shiftzoom.remove( image );
 *
**/

var cvi_sztimer, shiftzoom = { _shiftzoom : null,
	defaultFading : true, defaultOverview : true,		 
	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',
	defaultOvborder : '',defaultCurpath : '',
	add : function(img,opts) {
		function roundTo(val,dig) {var num=val; if(val>8191&&val<10485) {val=val-5000; num=Math.round(val*Math.pow(10,dig))/Math.pow(10,dig); num=num+5000;}else {num=Math.round(val*Math.pow(10,dig))/Math.pow(10,dig);} return num;}
		function uniqueID() {var val=Date.parse(new Date())+Math.floor(Math.random()*100000000000); return val.toString(16);}
		if(!img.ctrlid) {
			var defopts={"curpath" : shiftzoom.defaultCurpath, "opacity" : shiftzoom.defaultOpacity, "millisec" : shiftzoom.defaultMillisec, "intitle" : shiftzoom.defaultIntitle, "outtitle" : shiftzoom.defaultOuttitle, "ovsfact" : shiftzoom.defaultOvsfact, "ovaopac" : shiftzoom.defaultOvaopac, "ovacolor" : shiftzoom.defaultOvacolor, "ovbcolor" : shiftzoom.defaultOvbcolor };
			if(opts) {for(var i in defopts){if(!opts[i]){opts[i]=defopts[i];}}}else{opts=defopts;}
			if(document.images&&document.createElement&&document.getElementById) {img.opts=defopts;
				if(img.naturalWidth && img.naturalHeight) {img.xfactor=roundTo(img.naturalWidth/img.width,4); img.yfactor=roundTo(img.naturalHeight/img.height,4); img.maxwidth=img.naturalWidth; img.maxheight=img.naturalHeight;}
				else {var tmp=new Image; tmp.src=img.src; img.xfactor=roundTo(tmp.width/img.width,4); img.yfactor=roundTo(tmp.height/img.height,4); img.maxwidth=tmp.width; img.maxheight=tmp.height; delete tmp;}
				if(img.width>=64&&img.width<img.maxwidth&&img.height>=64&&img.height<img.maxheight){
					img.fading=(typeof opts['fading']==='boolean'?opts['fading']:shiftzoom.defaultFading);
					img.overview=(typeof opts['overview']==='boolean'?opts['overview']:shiftzoom.defaultOverview);
					img.curpath=(typeof opts['curpath']==='string'?opts['curpath']:img.opts['curpath']);
					img.intitle=(typeof opts['intitle']==='string'?opts['intitle']:img.opts['intitle']);
					img.outtitle=(typeof opts['outtitle']==='string'?opts['outtitle']:img.opts['outtitle']);
					img.ovacolor=(typeof opts['ovacolor']==='string'?opts['ovacolor']:img.opts['ovacolor']);
					img.ovbcolor=(typeof opts['ovbcolor']==='string'?opts['ovbcolor']:img.opts['ovbcolor']);
					img.ovsfact=(typeof opts['ovsfact']==='number'?parseInt(Math.min(Math.max(10,opts['ovsfact']),50)):img.opts['ovsfact'])/100;
					img.millisec=(typeof opts['millisec']==='number'?parseInt(Math.min(Math.max(5,opts['millisec']),100)):img.opts['millisec']);
					img.ovaopac=(typeof opts['ovaopac']==='number'?parseInt(Math.min(Math.max(0,opts['ovaopac']),100)):img.opts['ovaopac']);
					img.opacity=(typeof opts['opacity']==='number'?parseInt(Math.min(Math.max(0,opts['opacity']),100)):img.opts['opacity']);
					img.ovborder=(typeof opts['ovborder']==='number'?parseInt(Math.min(Math.max(0,opts['ovborder']),20)):Math.min(Math.round(img.width/100),Math.round(img.height/100)));
					img.opts=null; defopts=null; img.bc="1px white solid"; img.dc="1px gray solid"; img.zoomin=false; img.zoomout=false;
					if(img.fading) {if(img.trident) {img.style.filter="alpha(opacity=0)";}else{img.style.opacity=0;}} img.style.visibility='visible';
					img.parentNode.style.position=(img.parentNode.style.position=='static'||img.parentNode.style.position==''?'relative':img.parentNode.style.position);
					img.parentNode.style.height=img.height+'px'; img.parentNode.style.width=img.width+'px'; img.parentNode.style.padding='0px'; img.parentNode.style.overflow='hidden';
					img.parentNode.style.MozUserSelect="none"; img.parentNode.style.KhtmlUserSelect="none"; img.parentNode.unselectable="on";
					img.style.MozUserSelect="none"; img.style.KhtmlUserSelect="none"; img.unselectable="on"; img.style.display="block";
					img.style.position="absolute"; img.left=0; img.top=0; img.style.left='0px'; img.style.top='0px';
					img.minwidth=img.width; img.minheight=img.height; img.maxleft=img.maxwidth-img.minwidth; img.maxtop=img.maxheight-img.minheight;
					img.style.width=img.width+'px'; img.style.height=img.height+'px'; img.style.cursor="crosshair"; img.pointer=img.style.cursor;
					img.trident=document.all&&!window.opera?1:0; img.webkit=window.atob!=undefined&&!window.updateCommands?1:0; 
					img.gecko=navigator.userAgent.indexOf('Gecko')>-1&&window.updateCommands?1:0; img.presto=window.opera?1:0;
					img.bmode=(document.compatMode=='BackCompat'||document.compatMode=='QuirksMode'?true:false);
					if(img.id!=""){}else {img.id=uniqueID();}
					var over=document.createElement('div'); if(img.fading) {over.style.visibility='hidden';} 
					over.id=img.id+'_ctrl'; over.style.height='16px'; over.style.width='32px'; over.style.display="block"; over.style.position='absolute';
					over.style.lineHeight='1px'; over.style.fontSize='1px'; over.style.backgroundColor="#cccccc";
					if(img.trident) {over.style.filter="alpha(opacity="+img.opacity+")";}else{over.style.opacity=img.opacity/100;}
					over.style.cursor='pointer'; over.style.left='0px'; over.style.top='0px';
					over.style.boxShadow="0px 0px 8px black"; over.style.MozBoxShadow="0px 0px 8px black"; over.style.KhtmlBoxShadow="0px 0px 8px black"; over.style.WebkitBoxShadow="0px 0px 8px black";
					img.parentNode.appendChild(over); img.ctrlid=over.id;
					var view=document.createElement('div'); view.style.height='2px'; view.style.width='8px'; view.style.position='absolute'; view.style.lineHeight='1px'; 
					view.style.fontSize='1px'; view.style.left='4px'; view.style.top='7px'; view.style.backgroundColor="black"; over.appendChild(view);
					view=document.createElement('div'); view.style.height='8px'; view.style.width='2px'; view.style.position='absolute'; view.style.lineHeight='1px'; 
					view.style.fontSize='1px'; view.style.left='7px'; view.style.top='4px'; view.style.backgroundColor="black"; over.appendChild(view);
					view=document.createElement('div'); view.style.height='2px'; view.style.width='8px'; view.style.position='absolute'; view.style.lineHeight='1px'; 
					view.style.fontSize='1px'; view.style.left='20px'; view.style.top='7px'; view.style.backgroundColor="black"; over.appendChild(view);
					view=document.createElement('div'); view.id=img.id+'_zoin'; view.title=img.intitle; view.style.height=(img.bmode?16:14)+'px';
					view.style.width=(img.bmode?16:14)+'px'; view.style.display="block"; view.style.position='absolute'; view.style.border=img.bc;
					view.style.borderBottom=img.dc; view.style.borderRight=img.dc; view.style.left='0px'; view.style.top='0px';
					if(img.trident) {view.onclick=new Function('shiftzoom._setCursor(this,1,"'+img.id+'");');}else {view.setAttribute("onclick","shiftzoom._setCursor(this,1,'"+img.id+"');");}
					over.appendChild(view); img.zoinid=view.id;
					view=document.createElement('div'); view.id=img.id+'_zout'; view.title=img.outtitle; view.style.height=(img.bmode?16:14)+'px';
					view.style.width=(img.bmode?16:14)+'px'; view.style.display="block"; view.style.position='absolute'; view.style.border=img.bc;
					view.style.borderBottom=img.dc; view.style.borderRight=img.dc; view.style.left='16px'; view.style.top='0px';
					if(img.trident) {view.onclick=new Function('shiftzoom._setCursor(this,0,"'+img.id+'");');}else {view.setAttribute("onclick","shiftzoom._setCursor(this,0,'"+img.id+"');"); }
					over.appendChild(view); img.zoutid=view.id;
					if(img.overview) {
						over=document.createElement('div'); over.id=img.id+'_over'; over.style.height=(img.height*img.ovsfact)+'px'; 
						over.style.width=(img.width*img.ovsfact)+'px'; over.style.display="block"; over.style.position='absolute'; over.style.bottom='0px'; 
						over.style.right='0px';	over.style.borderLeft=img.ovborder+'px solid '+img.ovbcolor; over.style.borderTop=img.ovborder+'px solid '+img.ovbcolor;
						if(img.webkit) {over.style.borderLeft='0px solid '+img.ovbcolor; over.style.borderTop='0px solid '+img.ovbcolor; over.style.WebkitBoxShadow="0px 0px 8px black"; over.style.KhtmlBoxShadow="0px 0px 8px black";}
						over.style.MozUserSelect="none"; over.style.KhtmlUserSelect="none"; over.style.visibility="hidden"; over.unselectable="on"; img.parentNode.appendChild(over);
						view=document.createElement('img'); view.src=img.src; view.style.height=(img.height*img.ovsfact)+'px'; view.style.width=(img.width*img.ovsfact)+'px';
						view.style.display="block"; view.style.position='absolute'; view.style.bottom='0px'; view.style.right='0px'; over.appendChild(view);
						view.onmousedown=shiftzoom._catchDrag; view=document.createElement('div'); view.id=img.id+'_view'; view.maxleft=0; view.maxtop=0;
						view.style.lineHeight='1px'; view.style.fontSize='1px'; view.style.height=parseInt((img.height*img.ovsfact)-2)+'px'; view.style.width=parseInt((img.width*img.ovsfact)-2)+'px';
						view.style.display="block"; view.style.position='absolute'; view.style.left='0px'; view.style.top='0px'; view.style.border='1px solid '+img.ovacolor;
						if(img.trident) {view.style.filter="alpha(opacity="+img.ovaopac+")";}else{view.style.opacity=img.ovaopac/100;}
						over.appendChild(view); img.overid=over.id; img.viewid=view.id;
					}img.onmousedown=shiftzoom._catchKey; if(img.fading) {shiftzoom._fadeImage(img.id,0);}
				}else {img.style.visibility='visible';}
			}else {img.style.visibility='visible';}
		} return false;
	},
	remove : function(img) {
		if(img&&typeof(img.ctrlid)==="string") {var ele,obj=img.parentNode;
			img.onmousedown=null; document.onmousemove=null; document.onmouseup=null; 
			ele=document.getElementById(img.overid); if(ele) {obj.removeChild(ele);}
			ele=document.getElementById(img.ctrlid); if(ele) {obj.removeChild(ele);}
			img.width=img.minwidth; img.height=img.minheight; img.left=0; img.top=0;
			img.style.width=img.minwidth+'px'; img.style.height=img.minheight+'px'; 
			img.style.left='0px'; img.style.top='0px'; img.style.cursor="default";
			img.ctrlid=false;
		}return false;
	},
	_setCursor : function(ele,d,id) {
		var img=document.getElementById(id), butt=document.getElementById(d==1?img.zoutid:img.zoinid).style;
		img.zoomin=false; img.zoomout=false; 
		ele.style.border=img.bc; ele.style.borderBottom=img.dc; ele.style.borderRight=img.dc;
		butt.border=img.bc; butt.borderBottom=img.dc; butt.borderRight=img.dc;
		if(d==1&&(parseInt(img.style.width)<img.maxwidth||parseInt(img.style.height)<img.maxheight)) {
			ele.style.border=img.bc; ele.style.borderTop=img.dc; ele.style.borderLeft=img.dc; img.zoomin=true;
			if(img.gecko) {img.style.cursor="-moz-zoom-in";}else if(img.webkit) {img.style.cursor="-webkit-zoom-in";}
			else if(img.trident) {img.style.cursor="url('"+img.curpath+"zoom-in.cur'),crosshair";}else {img.style.cursor="crosshair";}  
		}else if(d==0&&(parseInt(img.style.width)>img.minwidth||parseInt(img.style.height)>img.minheight)) {
			ele.style.border=img.bc; ele.style.borderTop=img.dc; ele.style.borderLeft=img.dc; img.zoomout=true;
			if(img.gecko) {img.style.cursor="-moz-zoom-out";}else if(img.webkit) {img.style.cursor="-webkit-zoom-out";}
			else if(img.trident) {img.style.cursor="url('"+img.curpath+"zoom-out.cur'),crosshair";}else {img.style.cursor="crosshair";}
		}else {img.style.cursor=img.pointer;}
	},
	_zoomIn : function(id,ct,st,sw,ew,sh,eh,sx,ex,sy,ey) {
		var mw,mh,mx,my,obj=document.getElementById(id); 
		if(parseInt(obj.style.width)<obj.maxwidth||parseInt(obj.style.height)<obj.maxheight) {clearInterval(cvi_sztimer);
			mw=Math.max(obj.minwidth,Math.min(obj.maxwidth,Math.round(ew*ct/st+sw))); mx=Math.round(ex*ct/st+sx);
			mh=Math.max(obj.minheight,Math.min(obj.maxheight,Math.round(eh*ct/st+sh))); my=Math.round(ey*ct/st+sy);
			obj.style.width=mw+'px'; obj.style.height=mh+'px'; obj.style.left=mx+'px'; obj.style.top=my+'px'; ct++;
			cvi_sztimer=setInterval("shiftzoom._zoomIn('"+id+"',"+ct+","+st+","+sw+","+ew+","+sh+","+eh+","+sx+","+ex+","+sy+","+ey+")",obj.millisec);
		}else {clearInterval(cvi_sztimer);}
	},
	_zoomOut : function(id,ct,st,sw,ew,sh,eh,sx,ex,sy,ey) {
		var mw,mh,mx,my,obj=document.getElementById(id); 
		if(parseInt(obj.style.width)>obj.minwidth||parseInt(obj.style.height)>obj.minheight) {clearInterval(cvi_sztimer);
			mw=Math.max(obj.minwidth,Math.min(obj.maxwidth,Math.round(ew*ct/st+sw))); mx=Math.round(ex*ct/st+sx); 
			mh=Math.max(obj.minheight,Math.min(obj.maxheight,Math.round(eh*ct/st+sh))); my=Math.round(ey*ct/st+sy);
			obj.style.width=mw+'px'; obj.style.height=mh+'px'; obj.style.left=mx+'px'; obj.style.top=my+'px'; ct++;
			cvi_sztimer=setInterval("shiftzoom._zoomOut('"+id+"',"+ct+","+st+","+sw+","+ew+","+sh+","+eh+","+sx+","+ex+","+sy+","+ey+")",obj.millisec);
		}else {clearInterval(cvi_sztimer);}
	},
	_stopZoom : function() {
		var view, butt, img=shiftzoom._shiftzoom; document.onmouseup=null;
		clearInterval(cvi_sztimer); img.zoomin=false; img.zoomout=false;
		img.left=parseInt(img.style.left); img.top=parseInt(img.style.top);
		img.width=parseInt(img.style.width); img.height=parseInt(img.style.height);
		img.maxleft=img.width-img.minwidth; img.maxtop=img.height-img.minheight;
		if(img.width>img.minwidth||img.height>img.minheight) {
			if(img.trident) {img.style.cursor="url('"+img.curpath+"grab.cur'),move";}else {img.style.cursor="move";}
			if(img.overview) {view=document.getElementById(img.viewid);
				view.style.width=(Math.round((img.ovsfact*img.minwidth)/(img.width/img.minwidth))-(img.bmode?0:2))+'px';
				view.style.height=(Math.round((img.ovsfact*img.minheight)/(img.height/img.minheight))-(img.bmode?0:2))+'px';
				view.style.left=Math.round((Math.abs(img.left)/(img.width/img.minwidth))*img.ovsfact)-(img.bmode?2:0)+'px';
				view.style.top=Math.round((Math.abs(img.top)/(img.height/img.minheight))*img.ovsfact)-(img.bmode?2:0)+'px';
				view.maxleft=(img.minwidth*img.ovsfact)-(img.bmode?0:2)-parseInt(view.style.width); 
				view.maxtop=(img.minheight*img.ovsfact)-(img.bmode?0:2)-parseInt(view.style.height);
				document.getElementById(img.overid).style.visibility="visible";
			}
		}else {img.style.cursor="crosshair"; if(img.overview) {document.getElementById(img.overid).style.visibility="hidden";}}
		butt=document.getElementById(img.zoinid).style; butt.border=img.bc; butt.borderBottom=img.dc; butt.borderRight=img.dc;
		butt=document.getElementById(img.zoutid).style; butt.border=img.bc; butt.borderBottom=img.dc; butt.borderRight=img.dc;
		img.pointer=img.style.cursor; shiftzoom._shiftzoom=null;
	},
	_catchDrag : function(e) {return false; },
	_catchKey : function(e) {		
		var img=shiftzoom._shiftzoom=this; var t,ox,oy,ex,ey,px=0,py=0; e=e?e:window.event; 
		function findPosXY(ele) {var t,d={x:ele.offsetLeft, y:ele.offsetTop}; if(ele.offsetParent) { t=findPosXY(ele.offsetParent); d.x+=t.x; d.y+=t.y;} return d;}
		t=findPosXY(img.parentNode); ex=e.clientX; ey=e.clientY; if(e.pageX||e.pageY) {px=e.pageX; py=e.pageY;} 
		if(self.pageXOffset||self.pageYOffset) {ox=self.pageXOffset; if(ox>0&&px==ex) {ex-=ox;} oy=self.pageYOffset; if(oy>0&&py==ey) {ey-=oy;}}else 
		if(document.documentElement) {ox=document.documentElement.scrollLeft; oy=document.documentElement.scrollTop;}else 
		if(document.body) {ox=document.body.scrollLeft; oy=document.body.scrollTop;} 
		img.mouseX=Math.min(Math.max(ex+ox-t.x,0),img.minwidth); img.mouseY=Math.min(Math.max(ey+oy-t.y,0),img.minheight);
		if(((e.altKey&&!e.shiftKey)||img.zoomout)&&(img.width>img.minwidth||img.height>img.minheight)) {
			var butt,sw,ew,sh,eh,sx,ex,sy,ey,st; if(img.gecko) {img.style.cursor="-moz-zoom-out";}else if(img.webkit) {img.style.cursor="-webkit-zoom-out";}
			else if(img.trident) {img.style.cursor="url('"+img.curpath+"zoom-out.cur'),crosshair";}else {img.style.cursor="crosshair";}img.pointer=img.style.cursor;
			if(!img.zoomout) {butt=document.getElementById(img.zoutid).style; butt.border=img.bc; butt.borderLeft=img.dc; butt.borderTop=img.dc; img.zoomout=true;}
			sw=img.width; ew=(img.width-img.minwidth)*-1; sh=img.height; eh=(img.height-img.minheight)*-1; sx=parseInt(img.style.left); ex=sx*-1; sy=parseInt(img.style.top); ey=sy*-1;
			st=Math.max(1,Math.round((img.width/img.minwidth)*3)); document.onmouseup=shiftzoom._stopZoom;
			cvi_sztimer=setInterval("shiftzoom._zoomOut('"+img.id+"',0,"+st+","+sw+","+ew+","+sh+","+eh+","+sx+","+ex+","+sy+","+ey+")",img.millisec);
		}else if(((!e.altKey&&e.shiftKey)||img.zoomin)&&(img.width<img.maxwidth||img.height<img.maxheight)) {
			var butt,sw,ew,sh,eh,sx,ex,sy,ey,st; if(img.gecko) {img.style.cursor="-moz-zoom-in";}else if(img.webkit) {img.style.cursor="-webkit-zoom-in";}
			else if(img.trident) {img.style.cursor="url('"+img.curpath+"zoom-in.cur'),crosshair";}else {img.style.cursor="crosshair";}img.pointer=img.style.cursor; 
			if(!img.zoomin) {butt=document.getElementById(img.zoinid).style; butt.border=img.bc; butt.borderLeft=img.dc; butt.borderTop=img.dc; img.zoomin=true;}
			sw=img.width; ew=img.maxwidth-img.width; sh=img.height; eh=img.maxheight-img.height; sx=parseInt(img.style.left); sy=parseInt(img.style.top);
			ex=Math.max(0,Math.min(ew,Math.round(((img.mouseX-sx)*(img.maxwidth/img.width))-(img.minwidth*0.5)+sx)))*-1; 
			ey=Math.max(0,Math.min(eh,Math.round(((img.mouseY-sy)*(img.maxheight/img.height))-(img.minheight*0.5)+sy)))*-1; 
			st=Math.max(1,Math.round((img.maxwidth/img.width)*3)); document.onmouseup=shiftzoom._stopZoom;
			cvi_sztimer=setInterval("shiftzoom._zoomIn('"+img.id+"',0,"+st+","+sw+","+ew+","+sh+","+eh+","+sx+","+ex+","+sy+","+ey+")",img.millisec);
		}else if(img.width>img.minwidth||img.height>img.minheight) {			
			if(img.gecko) {img.style.cursor="-moz-grabbing";}else if(img.trident) {img.style.cursor="url('"+img.curpath+"grabbing.cur'),move";}else {img.style.cursor="move";}
			var x=parseInt(img.style.left), y=parseInt(img.style.top); img.mouseX=e.clientX; img.mouseY=e.clientY;
			document.onmousemove=shiftzoom._whilePan; document.onmouseup=shiftzoom._stopPan;
		}return false;
	},
	_fadeImage : function(id,o) {
		var img=document.getElementById(id); if(o<=100) {
			if(img.trident) {img.style.filter="alpha(opacity="+o+")";}
			else {img.style.opacity=o/100;} o+=10;
			window.setTimeout("shiftzoom._fadeImage('"+id+"',"+o+")",30);
		}else {document.getElementById(img.ctrlid).style.visibility='visible';}
	},
	_whilePan : function(e) {
		var img=shiftzoom._shiftzoom; e=e?e:window.event;
		var x=Math.max(0,Math.min(img.maxleft,Math.abs(parseInt(img.style.left))-(e.clientX-img.mouseX)));
		var y=Math.max(0,Math.min(img.maxtop,Math.abs(parseInt(img.style.top))-(e.clientY-img.mouseY)));
		img.style.left=(x*-1)+'px'; img.style.top=(y*-1)+'px'; img.mouseX=e.clientX; img.mouseY=e.clientY;
		return false;
	},
	_stopPan : function() {
		var view, butt, img=shiftzoom._shiftzoom; document.onmousemove=null; document.onmouseup=null;
		if(img.gecko||img.presto) {img.style.cursor="move";} else {img.style.cursor=img.pointer;}if(img.overview) {
			view=document.getElementById(img.viewid).style;
			view.left=Math.round((Math.abs(parseInt(img.style.left))/(img.width/img.minwidth))*img.ovsfact)-(img.bmode?2:0)+'px';
			view.top=Math.round((Math.abs(parseInt(img.style.top))/(img.height/img.minheight))*img.ovsfact)-(img.bmode?2:0)+'px';
		} shiftzoom._shiftzoom=null;
	}
}

