/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


function DynLayer(id,_2,_3){
if(is_nav){
if(is_nav6up){
this.elmt=document.getElementById(id);
this.css=this.elmt.style;
this.doc=document;
this.w=this.elmt.offsetWidth;
this.h=this.elmt.offsetHeight;
}
this.x=this.css.left;
this.y=this.css.top;
}else{
if(is_ie){
this.elmt=this.event=document.all[id];
this.css=this.elmt.style;
this.doc=document;
this.x=this.elmt.offsetLeft;
this.y=this.elmt.offsetTop;
this.w=(is_ie4)?this.css.pixelWidth:this.elmt.offsetWidth;
this.h=(is_ie4)?this.css.pixelHeight:this.elmt.offsetHeight;
}
}
this.id=id;
this.obj=id+"DynLayer";
eval(this.obj+"=this");
};
DynLayer.prototype.moveTo=function(x,y){
if(x!=null){
this.x=x;
if(is_nav6up){
this.css.left=this.x+"px";
}else{
this.css.pixelLeft=this.x;
}
}
if(y!=null){
this.y=y;
if(is_nav6up){
this.css.top=this.y+"px";
}else{
this.css.pixelTop=this.y;
}
}
};
DynLayer.prototype.moveBy=function(x,y){
if(x!=null){
this.x+=x;
if(is_nav){
this.css.left=this.x;
}else{
this.css.pixelLeft=this.x;
}
}
if(y!=null){
this.y+=y;
if(is_nav){
this.css.top=this.y;
}else{
this.css.pixelTop=this.y;
}
}
};
DynLayer.prototype.show=function(){
this.css.visibility="visible";
};
DynLayer.prototype.hide=function(){
this.css.visibility="hidden";
};
