
function txt(pageurl) {  varpopwin=window.open(pageurl,"popWin4","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,top=50,left=150,width=320,height=432");}
function xglrc(pageurl) {  varpopwin=window.open(pageurl,"popWin3","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,top=50,left=150,width=320,height=215");}
function xglrc_another(pageurl) {  varpopwin=window.open(pageurl,"popWin3","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,top=50,left=150,width=320,height=260");}
function pop7(pageurl) {  varpopwin=window.open(pageurl,"popWin7","scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,top=150,left=150,width=310,height=195");  return false;}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,t,l,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3){
   if ((obj=MM_findObj(args[i]))!=null) { 
   		v=args[i+2];
	    if (obj.style){ 
			v=(v=='show')?'visible':(v='hide')?'hidden':v; 
		}
		if(v=='visible'){
			//
			if(obj.id=='Layer00'){
				obj.style.left=getLeft(document.all.smenu00)-6;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
			if(obj.id=='Layer01'){
				obj.style.left=getLeft(document.all.smenu00)-6;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
			if(obj.id=='Layer02'){
				obj.style.left=getLeft(document.all.smenu00)+136;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
			if(obj.id=='Layer03'){
				obj.style.left=getLeft(document.all.smenu00)+207;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
			if(obj.id=='Layer04'){
				obj.style.left=getLeft(document.all.smenu00)+278;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
			if(obj.id=='Layer05'){
				obj.style.left=getLeft(document.all.smenu00)+349;
				obj.style.top=getTop(document.all.smenu00)+25;
			}
		}

    	obj.style.visibility=v;
	}
  }
}

function getTop(e){
	var t=e.offsetTop;
	while(e=e.offsetParent){
		t+=e.offsetTop;
	}
	return t;
}
function getLeft(e){
	var l=e.offsetLeft;
	while(e=e.offsetParent){
		l+=e.offsetLeft;

	}
	return l;
}

var currentpos,timer;

function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
