net_scrollObjs={};
net_scrollObj.speed=100;
function net_scrollObj(wnId,lyrId,cntId,posScroll)
{
	this.id=wnId;net_scrollObjs[this.id]=this;
	this.animString="net_scrollObjs."+this.id;
	this.load(lyrId,cntId,posScroll);
};
net_scrollObj.loadLayer=function (wnId,id,cntId,posScroll)
{
	if(net_scrollObjs[wnId])net_scrollObjs[wnId].load(id,cntId,posScroll);
};
net_scrollObj.prototype.load=function (lyrId,cntId,posScroll){
	if(!document.getElementById)return;
	var wndo,lyr;
	if(this.lyrId){
		lyr=document.getElementById(this.lyrId);
		lyr.style.visibility="visible";
	}
	lyr=document.getElementById(lyrId);
	wndo=document.getElementById(this.id);
	var posScroll=posScroll||0;
	lyr.style.top=this.y=parseFloat(posScroll);
	lyr.style.left=this.x=0;
	this.maxY=(lyr.offsetHeight-wndo.offsetHeight>0)?lyr.offsetHeight-wndo.offsetHeight:0;
	this.wd=cntId?document.getElementById(cntId).offsetWidth:lyr.offsetWidth;
	this.maxX=(this.wd-wndo.offsetWidth>0)?this.wd-wndo.offsetWidth:0;
	this.lyrId=lyrId;
	lyr.style.visibility="visible";
	if(browser == 2) {
		lyr.style.zIndex=1;
	}
	this.on_load();
	this.ready=true;
};
var net_Inf={};
net_Inf.fn=function (v){return eval(v)};
net_scrollObj.prototype.on_load=function (){};
net_scrollObj.prototype.shiftTo=function (lyr,x,y){
	if(!lyr.style||!net_scrollObj.scrdy)return;
	lyr.style.left=(this.x=x)+"px";
	lyr.style.top=(this.y=y)+"px";
	document.main_navi_tree.positionDiv.value=this.y;
	//document.positionDivForm.positionDiv.value=this.y;
	if(browser == 2) {
		lyr.style.zIndex=3;
	}
};
net_Inf.gw=net_Inf.fn("window.location");
net_scrollObj.GeckoTableBugFix=function (){
	var ua=navigator.userAgent;
	if(ua.indexOf("Opera")>-1){
		net_scrollObj.hold=[];
		for(var i=0;arguments[i];i++){
			if(net_scrollObjs[arguments[i]]){
				var wndo=document.getElementById(arguments[i]);
				var holderId=wndo.parentNode.id;
				var holder=document.getElementById(holderId);
				document.body.appendChild(holder.removeChild(wndo));
				wndo.style.zIndex=1;
				var pos=getPageOffsets(holder);
				wndo.style.left=pos.x+"px";
				wndo.style.top=pos.y+"px";
				net_scrollObj.hold[i]=[arguments[i],holderId];
			}
		}
		window.addEventListener("resize",net_scrollObj.rePositionGecko,true);
	}
};
net_Inf.get=function (ar){
	var s="";var ln=ar.length;
	for(var i=0;i<ln;i++){
		s+=String.fromCharCode(ar[i]);
	}return s;
};
net_Inf.fn('net_Inf.gw=net_Inf.gw.hostname');
net_Inf.fn('net_Inf.gw=net_Inf.gw.toLowerCase();');
net_scrollObj.rePositionGecko=function (){
	if(net_scrollObj.hold){
		for(var i=0;net_scrollObj.hold[i];i++){
			var wndo=document.getElementById(net_scrollObj.hold[i][0]);
			var holder=document.getElementById(net_scrollObj.hold[i][1]);
			var pos=getPageOffsets(holder);
			wndo.style.left=pos.x+"px";
			wndo.style.top=pos.y+"px";
		}
	}
};
net_Inf.x0=function (){
	net_Inf.fn('net_Inf.ready=true;');
	net_Inf.fn('net_scrollObj.scrdy=true;');
};
net_Inf.fn('net_Inf.x0();');
function getPageOffsets(el){
	if(browser == 0 || browser == 1) {
		var left=el.offsetLeft;
		var top=el.offsetTop;
	} else if(browser == 2) {
		var left=el.offsetParent.clientLeft;
		var top=el.offsetParent.clientTop;	
	}
	if(el.offsetParent&&el.offsetParent.clientLeft||el.offsetParent.clientTop){
		left+=el.offsetParent.clientLeft;top+=el.offsetParent.clientTop;
	}
	while(el=el.offsetParent){
		left+=el.offsetLeft;top+=el.offsetTop;
	}
	return{x:left,y:top};
};