TME.Hoverer=function(params){this.hoverMark=0;this.storage={};this.currentlyShowing=null;this.effect='fade';this.animSpeed=9;if(params!=null){this.effect=params['effect']||this.effect;this.animSpeed=params['animSpeed']||this.animSpeed;}}
TME.Hoverer.prototype.show=function(anchorRef){if(anchorRef==this.currentlyShowing||anchorRef==null||this.storage[anchorRef.__tme_hovermark]==null){return;}
if(this.currentlyShowing!=null){this.storage[this.currentlyShowing.__tme_hovermark].origdisplay=this.storage[this.currentlyShowing.__tme_hovermark].style.display
this.storage[this.currentlyShowing.__tme_hovermark].style.display='none';}
this.currentlyShowing=anchorRef;this.storage[this.currentlyShowing.__tme_hovermark].style.display=this.storage[this.currentlyShowing.__tme_hovermark].origdisplay;TME.Effects.show(this.storage[this.currentlyShowing.__tme_hovermark],this.animSpeed,this.effect);}
TME.Hoverer.prototype.addElement=function(params){var anchorRef=params['anchorRef'];if(typeof(anchorRef)=='string'){anchorRef=document.getElementById(anchorRef);}
if(anchorRef==null||this.storage[anchorRef.__tme_hovermark]!=null){return;}
var targetRef=params['targetRef'];if(typeof(targetRef)=='string'){targetRef=document.getElementById(targetRef);}
if(targetRef==null){return;}
anchorRef.__tme_hovermark=this.hoverMark++;this.storage[anchorRef.__tme_hovermark]=targetRef;targetRef.origdisplay=anchorRef.style.display;if(this.currentlyShowing==null||params['isDefault']==true){if(this.currentlyShowing!=null){this.storage[this.currentlyShowing.__tme_hovermark].style.display='none';}
this.currentlyShowing=anchorRef;}else{targetRef.style.display='none';}
var _this=this;anchorRef.onmouseout=function(){if(this.running){this.origbackground=this.origbackgroundcolor;}else{this.style.backgroundColor=this.origbackgroundcolor;TME.Effects.hide(this,10,'highlight');}};anchorRef.onmouseover=function(){if(!this.running){this.origbackgroundcolor=this.style.backgroundColor;this.style.backgroundColor="#FFFFFF";}else{this.origbackground="#FFFFFF";}
_this.show(this)};};