//ICMap, Copyright 2006, clifford L. Collins, Collins Software, all rights reserved, http://collinssoftware.com, not for distribution or resale, use License is required: icindex var tranTimer=null; var activeSelct=''; var tranTimer=null; var tranPercent=50; var tranPercentHotspot=100; var marker_x1=0; var marker_y1=0; var marker_obj=null; var marker_down=false; function updateIndex() { var i; var obj; for(i=0; i =100)return; tranPercent=tranPercent+value; if(tranPercent >100)tranPercent=100; } percent.innerText=tranPercent+' %'; for(i=0; i =100)return; tranPercentHotspot=tranPercentHotspot+value; if(tranPercentHotspot >100)tranPercentHotspot=100; } percentHotspot.innerText=tranPercentHotspot+' %'; for(i=0; i this.width)tx=this.width; rx=(tx*this.upp)+this.xmin return rx; } function $309(sy) { var ry; var ty; ty=sy; if(ty <0)ty=0; if(ty >this.height)ty=this.height; ry=this.ymax-(ty*this.upp); return ry; } function $310(rx) { var sx; var tx; sx=(rx-this.xmin)/this.upp; if(sx <0)sx=0; if(sx >this.width)sx=this.width; return sx; } function $311(ry) { var sy; var ty; sy=(this.ymax-ry)/this.upp; if(sy <0)sy=0; if(sy >this.height)sy=this.height; return sy; } function $312(sx,sy) { var rx,ry; rx=this.screenToX(sx); ry=this.screenToY(sy); this.moveTo(rx,ry); } function $313(rx,ry) { var i; for(i=0; i " this.marker=document.createElement(text); this.marker.onmousedown=markerDown; this.marker.onmouseup=markerUp; this.marker.onmousemove=markerMove; this.marker.tag=this; document.body.appendChild(this.marker); } offX=getLeft(this.img); offY=getTop(this.img); this.marker.style.left=sxmin+offX; this.marker.style.top=symax+offY; this.marker.style.scrollHeight=dy; this.marker.style.scrollWidth=dx; this.marker.style.height=dy; this.marker.style.width=dx; this.marker.style.visibility=''; } function markerDown(e) { marker_x1=event.x; marker_y1=event.y; marker_down=true; marker_obj=window.event.srcElement; window.event.cancelBubble=true; window.event.returnValue=false; } function markerUp(e) { var i; var t,l,h,w; var cx,cy; var ih,iw; if(! marker_down)return; marker_down=false; window.event.cancelBubble=true; window.event.returnValue=false; offX=getLeft(indexList[0].img); offY=getTop(indexList[0].img); t=parseInt(marker_obj.style.top)-offY; l=parseInt(marker_obj.style.left)-offX; h=parseInt(marker_obj.style.height); w=parseInt(marker_obj.style.width); cx=l+Math.round(w/2)+1; cy=t+Math.round(h/2); for(i=0; i ih)t=ih-h; if((l+w)>iw)l=iw-w; if(t