//Abstract of element- menu item
CME=function(e){
this.ua={};
	  this.CME=function(e){
	  if(typeof(e)=='object')
	  this.r=e;
	  else
		    this.r=document.getElementById(e);
		    var ua=navigator.userAgent.toLowerCase();
		    if(document.all && ua.indexOf('msie')!=-1){
		    this.ua.ie=true;
		    }
		    if(ua.indexOf('opera')!=-1){
		    this.ua.opera=true;
		    }
		    //if(top.cDebug)cDeb.println(this.ua);
		    };
	  this.getX=function(){//alert('getX '+this.r+' '+this.r.style+' '+this.r.style.pixelLeft)
	  
		    return this.r.style.pixelLeft;
		    };
	  this.setX=function(x){//alert('setX '+x)
		    x=x+'px'
		    this.r.style.left=x;
		    };
	  this.getY=function(){
	  if(this.ua.ie)
		    return this.r.style.pixelTop;
		    else{
		    return this.r.offsetTop;
		    }
		    };
	  this.setY=function(y){//logDebug('setY '+this.r.id+' '+y)
	  //if(top.cDebug)cDeb.println('y '+y);
	  if(this.ua.ie){
		    this.r.style.pixelTop=y;
		    }
		    else{
		    y=y+'px'
		    this.r.style.top=y;
		    }
		    };
	  this.getWidth=function(){
	  if(this.ua.ie)
		    return this.r.offsetWidth;
		    else{
		    //if(top.cDebug)cDeb.println('ow '+this.r.offsetWidth);
		    return this.r.offsetWidth;
		    }
		    };
	  this.getHeight=function(){
	  if(this.ua.ie)
		    return this.r.clientHeight;
		    else{
		    //if(top.cDebug)cDeb.println('pad '+(this.r.offsetHeight+this.r.style.paddingTop));
		    return this.r.offsetHeight;
		    }
		    };
	  this.setVisible=function(b){
		  if(b)
			  this.r.style.visibility='visible';
			  else
			  this.r.style.visibility='hidden';
				//alert(this.r.style.visibility)
		  };
				this.getOffsetX=function(){
					var v=this.r.offsetLeft;
					var ob={};ob=this.r;
					//if(top.cDebug)cDeb.println('tn '+ob.tagName.toUpperCase());
					while( ob.tagName.toUpperCase()!='BODY' && ob.offsetParent){
					
					ob=ob.offsetParent;
					//if(top.cDebug)cDeb.println('ol '+ob.offsetLeft);
					v+=ob.offsetLeft;
					}
					return v;
				};
				this.getOffsetY=function(){
					var v=this.r.offsetTop;
					var ob={};ob=this.r;
					while(ob.tagName.toUpperCase()!='BODY' && ob.offsetParent){
					ob=ob.offsetParent;
					v += ob.offsetTop;
					
				
					}
					//if(top.cDebug)cDeb.println('oy '+v);					
					return v;
				};
				
	  this.CME(e);
	  };//end CME

