﻿//一个MCMS具体的javascript对象
function McmsItem(name,path){
       this.childs=new Array();
       this.name=name;
       this.path=path;
       this.parent=null;
       this.addChild=function(item){
          item.parent=this;
          this.childs[this.childs.length]=item;
       }
}
//js
function GetObj(objName){
	if(document.getElementById){
		return eval('document.getElementById("' + objName + '")');
	}else if(document.layers){
		return eval("document.layers['" + objName +"']");
	}else{
		return eval('document.all.' + objName);
	}
}
		
function AdMouseOver(object){
     var sn=object.id.substr(0,object.id.lastIndexOf("m")); 
     for(var i=0;i<19;i++){
        var ms=GetObj(sn+"m"+i);
        var mcon=GetObj(sn+"con"+i);
        if(ms&&mcon){
			ms.className = "ADmenuOff";
			mcon.style.display = 'none';
		}
     }
     var re = /m/g;  
     GetObj(object.id.replace(re,"con")).style.display = 'block';
     object.className = "ADmenuOn";
}

function openBrWindow( param )
{   
    if( param=="0" )
       return false ;
    StaNavi = window.open( param );
    StaNavi.opener=self;
    if(navigator.appVersion.charAt >=3)
    {
       StaNavi.focus();
    } 
}

