var mX,mY,txt,drag,pWin;
var ie=(document.all)?true:false;

window.onload=function()
	{
	if(!ie)document.captureEvents(Event.MOUSEMOVE);
	if(!ie)document.onmousemove=function(e){if(drag){pWin.left-=mX-e.pageX;pWin.top-=mY-e.pageY;}mX=e.pageX;mY=e.pageY;}
	if(ie) document.onmousemove=function(){mX=event.clientX;mY=event.clientY;}
	if(ie){document.onmouseup=function(){if(document.all.serv && document.all.serv.drag){document.all.serv.drag=false}}}
	}
	
function popWin(type)
	{
	if(ie)
		{
		document.all.serv.src=type;
		document.all.serv.style.visibility='visible';
		document.all.servShadow.style.visibility='visible';
		}
	else
		{
		document.layers.serv.src=type;
		document.layers.serv.onload=function(){pWin=document.layers.serv;pWin.clip.height=243;pWin.top=150;dragLayerFunc();}
		}
	}
	
function popPwd(type)
	{
	var requrl=type;
	var w=window.open(requrl,'pwd','toolbars=no,scrollbars=no,resize=yes,status=no,width=238,height=109');
	w.focus();
	}
	
speed=4;
	
function dragLayerFunc()
	{
	txt=pWin.document.layers.layText;
	txt.scrH=txt.clip.height;
	txt.isScrolling=false;
	txt.r=300;
	txt.t=0;
	txt.b=198;
	txt.l=0;
	txt.y=txt.top;
	txt.scrBtm=txt.y+txt.b;
	txt.scrTop=txt.y;
	txt.show=function(){txt.visibility='show';}
	txt.setY=function(newY){txt.top=newY;txt.y=txt.top;}
	txt.setC=function(newT,newB){txt.clip.top=newT;txt.clip.bottom=newB;txt.t=newT;txt.b=newB;}
	txt.scrollUp=function(){if(txt.y+txt.scrH>txt.scrBtm){txt.setY(txt.y-speed);txt.setC(txt.t+speed,txt.b+speed);txt.isScrolling=setTimeout("txt.scrollUp()",20);}}
	txt.scrollDown=function(){if(txt.y<txt.scrTop){txt.setY(txt.y+speed);txt.setC(txt.t-speed,txt.b-speed);txt.isScrolling=setTimeout("txt.scrollDown()",20);}}
	txt.stop=function(){if(txt.isScrolling){clearTimeout(txt.isScrolling);}}
	txt.setC(txt.t,txt.b);
	txt.show();
	}
function closeWin(){pWin.clip.height=0;}