var ns4=document.layers;var ie4=document.all;var ns6=document.getElementById&&!document.all;var dragswitch=0;var nsx;var nsy;var nstemp;function drag_dropns(name){if(!ns4){return}temp=eval(name);temp.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);temp.onmousedown=gons;temp.onmousemove=dragns;temp.onmouseup=stopns}function gons(a){temp.captureEvents(Event.MOUSEMOVE);nsx=a.x;nsy=a.y}function dragns(a){if(dragswitch==1){temp.moveBy(a.x-nsx,a.y-nsy);return false}}function stopns(){temp.releaseEvents(Event.MOUSEMOVE)}function drag_drop(a){if(ie4&&dragapproved){crossobj.style.left=tempx+event.clientX-offsetx;crossobj.style.top=tempy+event.clientY-offsety;return false}else{if(ns6&&dragapproved){crossobj.style.left=tempx+a.clientX-offsetx+"px";crossobj.style.top=tempy+a.clientY-offsety+"px";return false}}}function initializedrag(b){crossobj=ns6?document.getElementById("showimage"):document.all.showimage;var c=ns6?b.target:event.srcElement;var a=ns6?"html":document.compatMode&&document.compatMode!="BackCompat"?"documentElement":"body";while(c.tagName!=a.toUpperCase()&&c.id!="dragbar"){c=ns6?c.parentNode:c.parentElement}if(c.id=="dragbar"){offsetx=ie4?event.clientX:b.clientX;offsety=ie4?event.clientY:b.clientY;tempx=parseInt(crossobj.style.left);tempy=parseInt(crossobj.style.top);dragapproved=true;document.onmousemove=drag_drop}}document.onmouseup=new Function("dragapproved=false");function hidebox(){crossobj=ns6?document.getElementById("showimage"):document.all.showimage;if(ie4||ns6){crossobj.style.visibility="hidden"}else{if(ns4){document.showimage.visibility="hide"}}};