makeCM.prototype.autoSize=null
makeCM.prototype.onconstruct='this.AutoSizeMenu()'
makeCM.prototype.AutoSizeMenu = function(){
	
  if (this.autoSize){
    for (var menu in this.m) {
     // alert(this.m[menu].w);
  
      if (( this.m[ menu ].parent )){
        var tempId = 'MenuHidde_' + menu;
        cm_divCreate( tempId ,'clHidden',this.m[ menu ].txt,1,1);
        var tempDiv = bw.dom?document.getElementById(tempId):bw.ie4?doc.all[tempId]:bw.ns4?eval("document." +tempId):0;
        var tempWidth = bw.dom?tempDiv.offsetWidth:bw.ie4?tempDiv.offsetWidth:bw.ns4?tempDiv.clip.width:0;
        //alert( tempWidth + this.m[ menu ].txt);
        tempHeight = this.m[menu].h;
		tempWidth = tempWidth-80;
		this.m[menu].h = this.m[menu].h * (Math.ceil(tempWidth / (this.m[menu].w)));
		if(this.m[menu].h <= tempHeight){
		  this.m[menu].h = tempHeight;
		}
		else{
		  this.m[menu].h = this.m[menu].h - 6;
		}
		
		
      }
    }
  }
}
