// JavaScript Document
var objWish=null;
var index=100;
function pr(e){
	e = window.event||e;
	pXX = e.x||e.pageX;
	pYY = e.y||e.pageY;
	return [pXX,pYY]
	}
function MDown(obj,event){
	if(obj.style.zIndex!=index){
		index = index + 2;
		obj.style.zIndex=index;
		}
	objWish=obj;
	if(document.all){objWish.setCapture();}
	else {window.captureEvents(Event.MOUSEMOVE);}
	pX = pr(event)[0]-parseInt(objWish.style.left);
	pY = pr(event)[1]-parseInt(objWish.style.top);
	
	}
document.onmouseup=function (){
	if(objWish!==null){
		if(document.all){objWish.releaseCapture();}
		else {window.releaseEvents(Event.MOUSEMOVE);}
		objWish=null;
		}
	}
document.onmousemove=function (event){
	if(objWish!==null){
		objWish.style.left=pr(event)[0]-pX+"px";
		objWish.style.top=pr(event)[1]-pY+"px";
		}
	}

