//for loading_bar layer
	function Browser(){
	  this.dom = document.getElementById?1:0;
	  this.ie4 = (document.all && !this.dom)?1:0;
	  this.ns4 = (document.layers && !this.dom)?1:0;
	  this.ns6 = (this.dom && !document.all)?1:0;
	  this.ie5 = (this.dom && document.all)?1:0;
	  this.ok = this.dom || this.ie4 || this.ns4;
	  this.platform = navigator.platform;
	}

var xx,yy;
xx=360;
yy=200;



var isIE=document.all;
var isNN=!document.all&&document.getElementById;
var isN4=document.layers;
var isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}
function showMe(divid,pos){
if (isIE||isNN) 
{	
	var Element = document.getElementById(divid);
	var le="";
	var tp="";
	switch(pos)
	{
	 case 'p':
	   {
		 le=(Element.offsetLeft)+30;
		 tp=(Element.offsetTop)+50;
		 break;   
	   }
	 case 'm':
	   {
		 le=(Element.offsetLeft)-150;
		 tp=(Element.offsetTop)+50;
		 break;   
	   }	   
     default:
	   {
		 le=Element.offsetLeft
		 tp=Element.offsetTop;
	   }
	}
	
	whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
	
	whichDog.style.visibility="visible";
	
	whichDog.style.left=le;
	whichDog.style.top=tp;
//	whichDog.style.left=(screen.width) ? (screen.width-250)/2 : 0;
//	whichDog.style.top=(screen.height) ? (screen.height-250)/2 : 0;
}
  else if (isN4) 
  {
  document.theLayer.visibility="show";
  }
}

function hideMe(){
	whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  	
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}
document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");
//loading bar end



