<!--
var thislayer;
var thisstyle;
//document.onmouseup = mouseup;
var domsup = 0;
var stdomsup = 0;
var iedomsup = 0;
var nsdomsup = 0;
if (document.getElementById) {stdomsup = 1; domsup = 1;}
else { if (document.all) {iedomsup = 1; domsup = 1;}
else {bver = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (bver ==4))
{nsdomsup = 1; domsup = 1;}}}

function whatdom(objId) {
if (stdomsup) {return (document.getElementById(objId));}
if (iedomsup) {return (document.all[objId]);}
if (nsdomsup) {return (document.layers[objId]);}
}

function getleft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset : document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;}
function gettop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;}

document.onmouseup=mouseup;
function Dragg(e,tit){
   if (e == null) { e = window.event;}
   var tar = (typeof( window.event ) != "undefined" ) ? e.srcElement : e.target;
	if (tar.id==tit)
	{
	 mouseover=true;
    curX=parseInt(thisstyle.left);
    curY=parseInt(thisstyle.top);
    offsetx=e.clientX;
    offsety=e.clientY;
    document.onmousemove=drg;
    return false;
   }
	 else { return false; }
}

function drg(e){
   if (e == null) { e = window.event;}
   var coorl=curX+e.clientX-offsetx;
   var coort=curY+e.clientY-offsety;
   if (coorl<0){coorl=0;}
   if (coort<0) {coort=0;}
	thisstyle.left=coorl+"px"; 
	thisstyle.top=coort+"px";
	return false;  
}

function mouseup(e)
{
	document.onmousemove=null;
}

function HideLayer(){
  if (thisstyle.visibility=="visible")
  {
  thisstyle.visibility="hidden";
  thisstyle=undefined;
}}
	
function ShowLayer(lay,tit,x0,y0){
  if (thisstyle!=undefined)
  {HideLayer();}
  thislayer = whatdom(lay);
  thisstyle=thislayer.style;
  document.getElementById(tit).style.cursor="move";
  if (thisstyle.visibility!="visible")
   {
   thisstyle.left=x0+"px";
	thisstyle.top=y0+"px";
	thisstyle.position="fixed";
   thisstyle.visibility="visible";
}}

function backbutOver()
{
 document.getElementById("backbut").style.color="#FF0000";
}
 function backbutOut()
{
document.getElementById("backbut").style.color="#0000FF";
}
//-->
