//Abstract of element- menu item
jslt.Element=function(e){
this.ua={};
	  this.Element=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;
		    }
		    };
	  this.getY=function(){
	  if(this.ua.ie)
		    return this.r.style.pixelTop;
		    else{
		    return this.r.offsetTop;
		    }
		    };
	  this.setY=function(y){
	  if(this.ua.ie){
		    this.r.style.pixelTop=y;
		    }
		    else{
		    y=y+'px'
		    this.r.style.top=y;
		    }
		    };
	  this.getWidth=function(){
	 		return this.r.offsetWidth;
		    };
	  this.getHeight=function(){
	  if(this.ua.ie)
		    return this.r.clientHeight;
		    else{
		    return this.r.offsetHeight;
		    }
		    };
		this.getOffsetX=function(){
			var v=this.r.offsetLeft;
			var ob={};ob=this.r;
			while( ob.tagName.toUpperCase()!='BODY' && ob.offsetParent){
			ob=ob.offsetParent;
			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;
			}				
		return v;
	};
	/*var divRef=document.getElementById("outenerOverPageDiv")
		//window.pageYOffset window.innerHeight
		//document.documentElement.scrollHeight
		//document.body.scrollTop
		
		return[divRef.offsetHeight+" "+document.body.scrollTop]*/
	this.getViewHeight=function(){
		return this.r.offsetHeight
	}
	this.getRequiredSize=function(){
		return [parseInt(this.r.clientWidth),parseInt(this.r.clientHeight)]
	}			
	  this.Element(e);
	  };
	  //self.scrollTo(null,10000)

