// JavaScript DocumentIE=document.all;isOver=false;posLeft = 0;posTop = 0;thisLayer = '';thisID = 0;X = 0Y = 0function getMouseX(event) {  if (IE) {    X = event.clientX + document.body.scrollLeft  } else {    X = event.pageX  }  return X += 2;}function getMouseY(event) {  if (IE) {    Y = event.clientY + document.body.scrollLeft  } else {    Y = event.pageY  }  return Y += 2;}function dragInit(e){  Tag=isIE ? "BODY" : "HTML";  Ele=isIE ? document.all.theLayer : document.getElementById("theLayer");    thisLayer=isIE ? event.srcElement : e.target;    while (thisLayer.id!="titleBar"&&thisLayer.tagName!=Tag){    thisLayer=isIE ? thisLayer.parentElement : thisLayer.parentNode;  }    if (thisLayer.id=="titleBar"){	offsetx=IE ? event.clientX : e.clientX;    offsety=IE ? event.clientY : e.clientY;    currentX=parseInt(Ele.style.left);    currentY=parseInt(Ele.style.top);	posLeft = currentX;	posRight = currentY;	currentWidth=parseInt(Ele.style.width);    currentHeight=parseInt(Ele.style.height);	    dragEnabled=true;    document.onmousemove=drag;  }}function drag(e){	winWidth = IE ? document.body.offsetWidth : window.innerWidth;	winHeight = IE ? document.body.offsetHeight : window.innerHeight;	winScrollY = IE ? document.body.scrollLeft : window.scrollMaxY;	winScrollX = IE ? document.body.scrollTop : window.scrollMaxX;		if (winScrollY == 0 && !IE) {widthScroll = 5;} else if (IE) {widthScroll = 26;} else {widthScroll = 21;}	if (winScrollX == 0 && !IE) {heightScroll = 5;} else if (winScrollX == 0 && IE) {heightScroll = 10;} else if (IE) {heightScroll = 26;} else {heightScroll = 21;}	winBorderLeft = IE ? currentX+event.clientX-offsetx : currentX+e.clientX-offsetx;	winBorderRight = IE ? currentWidth-(offsetx-currentX)+event.clientX+widthScroll : currentWidth-(offsetx-currentX)+e.clientX+widthScroll;	winBorderTop = IE ? currentY+event.clientY-offsety : currentY+e.clientY-offsety;	winBorderBottom = IE ? currentHeight-(offsety-currentY)+event.clientY+heightScroll : currentHeight-(offsety-currentY)+e.clientY+heightScroll;  	if (!dragEnabled) return;	if (winBorderLeft > 0 && winBorderRight < winWidth){	posLeft=IE ? currentX+event.clientX-offsetx : currentX+e.clientX-offsetx; 	} else if (winBorderLeft <= 0) {	posLeft=5;	} else if (winBorderRight >= winWidth) {	posLeft=winWidth-currentWidth-widthScroll;	}	if (winBorderTop > 0 && winBorderBottom < winHeight){	posTop=IE ? currentY+event.clientY-offsety : currentY+e.clientY-offsety;	} else if (winBorderTop <= 0) {	posTop=5;	} else if (winBorderBottom >= winHeight) {	posTop=(winHeight+winScrollY)-currentHeight-heightScroll;	}	document.cookie = "navLoc=" + posLeft + "," + posTop;		Ele.style.left=posLeft;	Ele.style.top=posTop;	  return false;}document.onmousedown=dragInit;document.onmouseup=Function("dragEnabled=false;document.getElementById('Body').style.MozUserSelect = '';");