


var aO=[];aO.IE=document.all?true:false;aO.mousemove=function(e){if(aO.IE){tempX=event.clientX+document.body.scrollLeft;tempY=event.clientY+document.body.scrollTop;}else{tempX=e.pageX;tempY=e.pageY;}if(tempX<0){tempX=0}if(tempY<0){tempY=0}var flyercount=aO.length;for(i=0;i<flyercount;i++){aO[i].en(tempX,tempY);}};aa=function(startX,startY,ExistingDivIDs,bx,allowDrag,mouseToolTip){var aC=aO.length;this.aC=aC;aO.push(this);if(!startX){startX=100;}if(!startY){startY=100;}if(!bx){this.bx="";this.trackInput=false;}else{this.bx=bx;this.trackInput=true;}if(!ExistingDivIDs){var HTML="";var dk="";if(this.trackInput){dk='<div id="flyingDivInputBox'+aC+'" > '+'<textarea id="flyingDivTextArea'+aC+'" rows="5" cols="36" wrap="soft" onkeyup="aO['+aC+'].SaveInput();" style="width: 147px; height: 127px;"> '+this.bx+' </textarea>'+'</div>'}HTML='<div style="position:  absolute; opacity: 1; top: '+startX+'px; left: '+startY+'px; " id="aa'+aC+'" class="box">'+'<div id="flyingDivHandle'+aC+'" class="handle">'+'<img src="http://code.hotelmapsearch.com/Main21/Style/small_close.gif"  alt="Close" style="border: 0px none ; margin: 0px; padding: 0px; float: right; width: 12px; height: 12px; -moz-user-select: none; cursor: pointer; z-index: 10000;" onclick="javascript:aO['+aC+'].Hide(); document.onmousemove = getMouseXY; return false;" />'+'<div id="flyingDivTitle'+aC+'"style="color:White; text-align: center; font-weight:bold; font-size: 14px"> </div>'+'</div>'+'<div id="flyingDivBody'+aC+'">'+dk;'</div>'+'</div>';if(!mouseToolTip){this.mouseToolTip=false;}else{this.mouseToolTip=true;}var container=document.createElement('div');this.id="aa"+aC;this.handleId='flyingDivHandle'+aC;this.iputId='flyingDivTextArea'+aC;this.ek='flyingDivBody'+aC;this.titleId='flyingDivTitle'+aC;container.style.display=='none';this.visible=false;container.innerHTML=HTML;document.body.appendChild(container);}else{this.id="aa"+aC;var tempElement=document.getElementById(ExistingDivIDs.id);tempElement.id=this.id;this.handleId='flyingDivHandle'+aC;tempElement=document.getElementById(ExistingDivIDs.handleId);tempElement.id=this.handleId;ExistingDivIDs.titleText;tempElement.innerHTML='<img onclick="javascript:flyingDIVS['+aC+'].Hide(); return false;" style="border: 0px none ; margin: 0px; padding: 0px; float: right; width: 12px; height: 12px; -moz-user-select: none; cursor: pointer; z-index: 10000;" alt="Close" src="http://code.hotelmapsearch.com/Main21/Style/small_close.gif"><div style="color: White; text-align: center; font-weight: bold; font-size: 14px;" id="flyingDivTitle'+aC+'">'+ExistingDivIDs.titleText+'</div>';this.ek='flyingDivBody'+aC;tempElement=document.getElementById(ExistingDivIDs.ek);tempElement.id=this.ek;this.titleId='flyingDivTitle'+aC;}this.div=document.getElementById(this.id);this.handle=document.getElementById(this.handleId);this.body=document.getElementById(this.ek);this.title=document.getElementById(this.titleId);if(this.trackInput){this.dA=document.getElementById(this.iputId);}if(!allowDrag){this.allowDrag=false}else{this.allowDrag=true;var drag=v.drag();var group=drag.cz(this.div,this.handle);}this.Hide();};aa.prototype.SetHTML=function(HTML){document.getElementById(this.id).innerHTML=HTML;};aa.prototype.bp=function(eo){this.body.innerHTML=eo;};aa.prototype.bM=function(dM){if(dM){this.body.style['overflow']="auto";}else{this.body.style['overflow']="hidden";}};aa.prototype.bv=function(Y){this.body.style.height=Y+"px";this.div.style.height=Y+"px";};aa.prototype.eI=function(X){this.body.style.width=X+"px";this.div.style.width=X+"px";};aa.prototype.SetHandleWidth=function(width){this.handle.style.width=width+"px";};aa.prototype.SetMainWidth=function(width){this.div.style.width=width+"px";};aa.prototype.bo=function(TitleText){this.title.innerHTML=TitleText;};aa.prototype.Hide=function(){this.visible=false;document.getElementById(this.id).style.display='none';};aa.prototype.Show=function(){this.visible=true;document.getElementById(this.id).style.display='block';};aa.prototype.en=function(bs,bt){if(this.visible&&this.mouseToolTip){this.ak(bs,bt)};};aa.prototype.ak=function(bs,bt){this.div.style['top']=bt+"px";this.div.style['left']=bs+"px";};aa.prototype.ef=function(){};aa.prototype.SaveInput=function(){this.bx=this.dA.value;this.ef();};aa.backgroundColor='#99CCFF';aa.borderColor='#336699';aa.eG=function(color){aa.backgroundColor=color;};aa.eE=function(color){aa.borderColor=color;};
