window.onresize=function (){if(cm){var d=$("image").getDimensions();if(navigator.appName=="Opera"){var _9f3=Number(Position.cumulativeOffset(cm.img)[0]);cm.corners={top:Number(cm.img.offsetTop+1),bot:Number(cm.img.offsetTop+d.height-3),left:Number(_9f3+d.width-1),right:Number(_9f3+1)};} else{cm.corners={top:Number(Position.cumulativeOffset(cm.img)[1]+1),bot:Number(Position.cumulativeOffset(cm.img)[1]+d.height-3),left:Number(getAbsolutePos("Left",cm.img)+d.width-1),right:Number(getAbsolutePos("Left",cm.img)+1)};}for(var i=0;i<cm.comments.length;i++){if(cm.comments[i].hist){cm.comments[i].proxy.dom.style.top=Number(pSt(cm.comments[i].hist.top)+cm.corners.top)+"px";cm.comments[i].proxy.dom.style.left=Number(pSt(cm.comments[i].hist.left)+cm.corners.right)+"px";cm.comments[i].el.dom.style.top=cm.comments[i].proxy.dom.style.top;cm.comments[i].el.dom.style.left=cm.comments[i].proxy.dom.style.left;}}}};getAbsolutePos=function (_9f5,_9f6){var _9f7=0;while (_9f6){_9f7+=_9f6["offset"+_9f5];if(_9f6.tagName=="BODY"){} else{_9f7-=_9f6["scroll"+_9f5];}_9f6=_9f6.offsetParent;}return _9f7;};function addComment(){if(!cm.mode.edit){cm.addComment();}}function elPositionToPoProxy(_9f8){_9f8.proxy.dom.style.top=_9f8.el.dom.style.top;_9f8.proxy.dom.style.left=_9f8.el.dom.style.left;_9f8.proxy.dom.style.width=_9f8.el.dom.style.width;_9f8.proxy.dom.style.height=_9f8.el.dom.style.height;}function saveComment(cp){cm.progress.show();cp.proxy.dom.style.border="1px solid black";$("border_"+cp.id).style.border="1px solid white";elPositionToPoProxy(cp);cp.commentText=cm.comVal.value;cp.el.dom.commentText=cp.commentText;cp.proxy.dom.commentText=cp.commentText;cp.hist={top:Number(pSt(cp.el.dom.style.top)-cm.corners.top)+"px",left:Number(pSt(cp.el.dom.style.left)-cm.corners.right)+"px",width:cp.el.dom.style.width,height:cp.el.dom.style.height,commentText:cp.commentText,baseId:cp.baseId};cm.mode.edit=false;cp.proxy.dom.style.display="block";cp.proxy.dom.style.visibility="visible";cm.comTxt.style.display="none";cp.el.dom.style.display="none";cp.el.dom.style.zIndex=100;var url=MODULES_PATH+"/camps/SavePhotoBubbleMemberProfileProcess.do?isJSonCommand=true";var _9fb={top:Number(pSt(cp.el.dom.style.top)-cm.corners.top),left:Number(pSt(cp.el.dom.style.left)-cm.corners.right),width:pSt(cp.el.dom.style.width),height:pSt(cp.el.dom.style.height),note:unescapeHTML(cp.commentText),id:cp.baseId,photoId:cm.photoId,profileId:cm.profileId};$("comBody").innerHTML=escapeHTML(cp.commentText);var ajax=new Ajax.Updater("ident",url,{method:"post",onSuccess:function (_9fd){executeScript("var json = "+_9fd.responseText);var lg=$("logger");if(json.message.length>15){json.message=json.message.substring(0,15)+"...";}lg.innerHTML=json.message;if(json.resultCode=="-1"){window.location.href=MODULES_PATH+"/camps/SavePhotoBubbleMemberProfileProcess.do?top="+_9fb.top+"&left="+_9fb.left+"&width="+_9fb.width+"&height="+_9fb.height+"&note="+_9fb.note+"&id="+_9fb.id+"&photoId="+_9fb.photoId+"&profileId="+_9fb.profileId;} else{if(json.resultCode=="0"){lg.className="greenLog";cp.baseId=json.bubbleId;cp.hist.baseId=json.bubbleId;} else{if(json.resultCode=="1"){lg.className="greenLog";} else{if(json.resultCode=="2"){lg.className="redLog";}}}}cm.progress.hide();window.setTimeout(function (){lg.innerHTML="&nbsp;";},10000);},parameters:_9fb});}function cancelComment(cp){if(cp.hist){cp.proxy.dom.style.border="1px solid black";$("border_"+cp.id).style.border="1px solid white";cp.el.dom.style.top=Number(pSt(cp.hist.top)+cm.corners.top)+"px";cp.el.dom.style.left=Number(pSt(cp.hist.left)+cm.corners.right)+"px";cp.el.dom.style.width=cp.hist.width;cp.el.dom.style.height=cp.hist.height;cp.el.dom.commentText=cp.hist.commentText;cp.proxy.dom.style.top=Number(pSt(cp.hist.top)+cm.corners.top)+"px";cp.proxy.dom.style.left=Number(pSt(cp.hist.left)+cm.corners.right)+"px";cp.proxy.dom.style.width=cp.hist.width;cp.proxy.dom.style.height=cp.hist.height;cp.commentText=cp.hist.commentText;cp.proxy.dom.commentText=cp.hist.commentText;$("comVal").value=cp.hist.commentText;if(cm.comTxt.id==cp.el.dom.id+"Txt"){cm.comTxt.style.left=cp.el.dom.style.left;if(Number(pSt(cp.el.dom.style.top)+pSt(cm.comTxt.style.height))>cm.corners.top){cm.comTxt.style.top=Number(pSt(cp.el.dom.style.top)+pSt(cp.el.dom.style.height)+10)+"px";}if(Number(pSt(cp.el.dom.style.top)+pSt(cp.el.dom.style.height)+pSt(cm.comTxt.style.height))>cm.corners.bot){cm.comTxt.style.top=Number(pSt(cp.el.dom.style.top)-pSt(cm.comTxt.style.height)-7)+"px";}}cp.proxy.dom.style.display="block";cp.proxy.dom.style.visibility="visible";cp.el.dom.style.display="none";cp.el.dom.style.zIndex=100;} else{cm.removeComment();}cm.mode.edit=false;cm.comTxt.style.display="none";}CommentPanel=function (img){this.img=img;this.imgDiv=img.parentNode;this.imgDiv.owner=this;this.currentEdit=null;this.comTxt=document.createElement("DIV");this.comTxt.style.display="none";this.progress=new ProgressDialog();this.comments=[];var d=$("image").getDimensions();if(navigator.appName=="Opera"){var _a02=Number(Position.cumulativeOffset(this.img)[0]);this.corners={top:Number(this.img.offsetTop+1),bot:Number(this.img.offsetTop+d.height-3),left:Number(_a02+d.width-1),right:Number(_a02+1)};} else{this.corners={top:Number(getAbsolutePos("Top",this.img)+1),bot:Number(getAbsolutePos("Top",this.img)+d.height-3),left:Number(getAbsolutePos("Left",this.img)+d.width-1),right:Number(getAbsolutePos("Left",this.img)+1)};}this.progress.init(this.corners.right,this.corners.top-20,d.width,d.height+20);this.progress.show();this.comTxt.style.position="absolute";this.comTxt.style.filter="alpha(opacity=100)";this.comTxt.style.opacity="1.0";this.comTxt.style.zIndex=2200;this.comTxt.style.width="200px";this.comTxt.style.height="107px";this.comTxt.style.background="transparent";this.comTxt.innerHTML="<div><div id=\"comTxt_l\" style=\"width: 5px; height: 72px; float: left;\"></div>"+"<div style=\"width: 190px; height: 72px; float: left; margin-top: -1px;\"><textarea id=\"comVal\" style=\"border-left: 0px solid white;border-right: 0px solid white;border-top: 5px solid rgb(244,244,244); border-bottom: 5px solid rgb(244,244,244); width: 188px; height: 61px; background-color: rgb(244,244,244);\">__empty__</textarea></div>"+"<div id=\"comTxt_r\" style=\"width: 5px; height: 72px; float: left;\"></div></div>"+"<div><input style=\"float: left;  z-index: 200;margin-top: 3px;\" type=\"button\" value=\"save\" id=\"save\"/>"+"<input style=\"float: left; margin-left: 3px; margin-top: 3px;\" type=\"button\" value=\"cancel\" id=\"cancel\"/>"+"<input style=\"float: left; margin-left: 3px;margin-top: 3px;\" type=\"button\" value=\"delete\" id=\"delete\"/></div>";document.body.appendChild(this.comTxt);$("comTxt_l").style.background="transparent url('"+COMMENT_EFFECTS+"/images/text_border_left.gif') no-repeat";$("comTxt_r").style.background="transparent url('"+COMMENT_EFFECTS+"/images/text_border_right.gif') no-repeat";this.comVal=$("comVal");if(navigator.appName=="Netscape"){this.comVal.style.width="190px";} else{if(navigator.appName=="Microsoft Internet Explorer"){this.comVal.style.borderBottom="3px solid rgb(244,244,244)";}}this.comPU=document.createElement("DIV");this.comPU.style.display="none";this.comPU.style.position="absolute";this.comPU.style.filter="alpha(opacity=100)";this.comPU.style.opacity="1.0";this.comPU.style.zIndex=2200;this.comPU.style.minHeight="20px";this.comPU.style.width="200px";this.comPU.innerHTML="<div id=\"comPU_l_t\" style=\"font-size:0px;float: left;width:5px; height:5px;\"></div><div style=\"font-size:0px;float: left;width:190px; height:5px;background-color:rgb(244,244,244);\"></div><div id=\"comPU_r_t\" style=\"float: left;font-size:0px;width:5px; height:5px;\"></div>"+"<div style=\"width:200px;background-color:rgb(244,244,244); overflow: hidden;\" id=\"comBody\" >dfgdfgdfgdfg</div>"+"<div id=\"comPU_l_b\" style=\"font-size:0px; float: left;width:5px; height:5px;\"></div><div style=\"font-size:0px;float: left;width:190px; height:5px;background-color:rgb(244,244,244);\"></div><div id=\"comPU_r_b\" style=\"font-size:0px;float: left;width:5px; height:5px;\"></div>";document.body.appendChild(this.comPU);this.backOver=true;$("comPU_l_t").style.background="transparent url('"+COMMENT_EFFECTS+"/images/corner_l_t.gif') no-repeat";$("comPU_l_b").style.background="transparent url('"+COMMENT_EFFECTS+"/images/corner_l_b.gif') no-repeat";$("comPU_r_t").style.background="transparent url('"+COMMENT_EFFECTS+"/images/corner_r_t.gif') no-repeat";$("comPU_r_b").style.background="transparent url('"+COMMENT_EFFECTS+"/images/corner_r_b.gif') no-repeat";if(navigator.appName=="Netscape"||navigator.appName=="Opera"){$("comBody").style.marginTop="5px";}this.mode={edit:false,look:false,currentEdit:""};this.imgDiv.display="";this.imgDiv.position="absolute";this.imgDiv.bottom="auto";this.imgDiv.zIndex=1;};CommentPanel.prototype={init:function (){var h=this;Event.observe(this.img,"mouseover",function (e){h.workingMode(e);});Event.observe(this.img,"mouseout",function (e){h.sleepMode(e);});},workingMode:function (_a06){for(var i=0;i<this.comments.length;i++){this.comments[i].proxy.dom.style.display="block";}if(this.mode.edit){this.comTxt.style.display="";}this.imgDiv.style.filter="alpha(opacity=100)";this.imgDiv.style.opacity="1.0";this.imgDiv.style.zIndex=5;this.mode.look=true;this.backOver=true;},sleepMode:function (_a08){if((Event.pointerX(_a08)<this.corners.right)||(Event.pointerY(_a08)<this.corners.top)||(Event.pointerX(_a08)>this.corners.left)||(Event.pointerY(_a08)>this.corners.bot)){this.imgDiv.style.opacity="1.0";this.imgDiv.style.filter="alpha(opacity=100)";this.backOver=false;window.setTimeout(function (){if(!cm.backOver){for(var i=0;i<cm.comments.length;i++){cm.comments[i].proxy.dom.style.display="none";}cm.imgDiv.style.zIndex=5000;if(!cm.mode.edit){cm.comTxt.style.display="none";}}},1000);this.mode.look=false;}},crComDiv:function (){var view=document.createElement("DIV");view.style.top=Number(this.corners.top+5)+"px";view.style.left=Number(this.corners.right+5)+"px";view.style.border="1px dashed black";view.style.cursor="pointer";view.innerHTML="<div style=\"border: 1px dashed white; position: relative; widht:100%; height:100%; margin-bottom:1px;\"></div>";view.style.background="transparent";view.style.zIndex="10";view.id="basic_"+Math.round(Math.random()*1000);return view;},addComment:function (c){cm.mode.edit=true;var view=this.crComDiv();this.comTxt.id=view.id+"Txt";var ths=this;var h=40;this.comTxt.style.top=Number(pSt(view.style.top)+h+10)+"px";this.comTxt.style.left=view.style.left;document.body.appendChild(view);var mass=this.comments;this.mode.currentEdit=view.id;var com={init:function (){var _a11=new Ext.Resizable(view.id,{zIndex:10,width:40,height:h,minWidth:25,minHeight:25,handles:"ne nw se sw",widthIncrement:10,draggable:true});_a11.id=view.id;_a11.createdBy=cm.memberId;_a11.baseId=null;ths.currentEdit=_a11;_a11.proxy.dom.innerHTML="<div id=\"border_"+_a11.id+"\" style=\"border: 1px dashed white; widht:100%; height:100%;\"><div id=\"light_"+_a11.id+"\" style=\"display:none; border: 1px solid yellow; widht:100%; height:100%;\"></div></div>";_a11.proxy.dom.style.top=_a11.el.dom.style.top;_a11.proxy.dom.style.left=_a11.el.dom.style.left;_a11.proxy.dom.style.width=_a11.el.dom.style.width;_a11.proxy.dom.style.height=_a11.el.dom.style.height;_a11.proxy.dom.style.paddingBottom="2px";_a11.proxy.dom.style.visibility="visible";_a11.proxy.dom.style.cursor="pointer";_a11.el.dom.style.background="url('"+COMMENT_EFFECTS+"/transparent_background.gif') repeat-x repeat-y";_a11.proxy.dom.style.background="url('"+COMMENT_EFFECTS+"/transparent_background.gif') repeat-x repeat-y";_a11.proxy.dom.style.border="1px dashed black";_a11.commentText=default_bubble_message;_a11.proxy.dom.commentText=_a11.commentText;_a11.el.dom.commentText=_a11.commentText;ths.comVal.value=unescapeHTML(_a11.commentText);_a11.el.dom.style.position="absolute";_a11.proxy.dom.style.display="none";ths.comTxt.style.display="none";_a11.el.dom.style.display="";_a11.on("resize",limitSizeHandler);mass.push(_a11);_a11.el.dom.style.zIndex=5001;Event.observe(_a11.proxy.dom,"click",function (ev){if(!cm.mode.edit){ths.mode.currentEdit=_a11.id;_a11.proxy.dom.style.border="1px dashed black";$("border_"+_a11.id).style.border="1px dashed white";ths.currentEdit=_a11;ths.currentEdit.el.dom.style.zIndex=5001;setComment(ev,_a11);}});Event.observe(_a11.el.dom,"click",function (ev){elPositionToPoProxy(_a11);ths.comPU.style.display="none";});Event.observe(_a11.proxy.dom,"mouseover",function (ev){onComOver(_a11.proxy.dom,_a11.id);});Event.observe(_a11.proxy.dom,"mouseout",function (ev){onComOut(_a11.proxy.dom,_a11.id,ev);});Event.observe($("save"),"click",function (ev){if(_a11.id==ths.mode.currentEdit){saveComment(_a11);ths.currentEdit=_a11;}});Event.observe($("cancel"),"click",function (ev){if(_a11.id==ths.mode.currentEdit){cancelComment(_a11);}});Event.observe($("delete"),"click",function (ev){if(_a11.id==ths.mode.currentEdit){ths.removeComment();}});}};Ext.EventManager.onDocumentReady(com.init,com,true);},removeComment:function (){this.progress.show();var url=MODULES_PATH+"/camps/DeletePhotoBubbleMemberProfileProcess.do";var _a1a=null;var _a1b=[];var j=0;for(var i=0;i<this.comments.length;i++){if(this.comments[i]&&this.comments[i].id==this.mode.currentEdit){this.comments[i].el.dom.remove();this.comments[i].proxy.dom.remove();this.comments[i];if(this.currentEdit.baseId!=null){_a1a={id:this.currentEdit.baseId};}this.currentEdit=null;this.mode.currentEdit="";delete this.comments[i];this.comTxt.style.display="none";this.mode.edit=false;} else{_a1b[j]=this.comments[i];j++;}}this.comments=_a1b;_a1b=null;if(_a1a){var ajax=new Ajax.Updater("ident",url,{method:"post",onSuccess:function (_a1f){executeScript("var json = "+_a1f.responseText);var lg=$("logger");if(json.message.length>15){json.message=json.message.substring(0,15)+"...";}lg.innerHTML=json.message;if(json.resultCode=="0"){lg.className="greenLog";}if(json.resultCode=="2"){lg.className="redLog";}cm.progress.hide();window.setTimeout(function (){lg.innerHTML="&nbsp;";},10000);},parameters:_a1a});} else{this.progress.hide();}},showComment:function (hist){cm.mode.edit=false;var view=this.crComDiv();this.comTxt.id=view.id+"Txt";var ths=this;var h=100;this.comTxt.style.top=Number(pSt(view.style.top)+h+10)+"px";this.comTxt.style.left=view.style.left;document.body.appendChild(view);var mass=this.comments;var com={init:function (){var _a27=new Ext.Resizable(view.id,{zIndex:10,width:hist.width,height:hist.height,minWidth:30,minHeight:30,handles:"ne nw se sw",widthIncrement:10,draggable:true});_a27.el.dom.style.top=Number(pSt(hist.top)+ths.corners.top)+"px";_a27.el.dom.style.left=Number(pSt(hist.left)+ths.corners.right)+"px";_a27.createdBy=hist.owner;if(_a27.createdBy==cm.memberId){_a27.proxy.dom.style.zIndex=500;} else{_a27.proxy.dom.style.zIndex=300;}_a27.id=view.id;_a27.baseId=hist.id;_a27.hist=hist;_a27.proxy.dom.style.top=_a27.el.dom.style.top;_a27.proxy.dom.style.left=_a27.el.dom.style.left;_a27.proxy.dom.style.width=_a27.el.dom.style.width;_a27.proxy.dom.style.height=_a27.el.dom.style.height;_a27.proxy.dom.style.paddingBottom="2px";_a27.proxy.dom.innerHTML="<div id=\"border_"+_a27.id+"\" style=\"border: 1px solid white; widht:100%; height:100%;\"><div id=\"light_"+_a27.id+"\" style=\"display:none; border: 1px solid yellow; widht:100%; height:100%;\"></div></div>";_a27.commentText=unescapeHTML(hist.commentText);_a27.proxy.dom.style.visibility="visible";_a27.proxy.dom.style.cursor="pointer";_a27.el.dom.style.background="url('"+COMMENT_EFFECTS+"/transparent_background.gif') repeat-x repeat-y";_a27.proxy.dom.style.background="url('"+COMMENT_EFFECTS+"/transparent_background.gif') repeat-x repeat-y";_a27.proxy.dom.style.border="1px solid black";_a27.proxy.dom.commentText=_a27.commentText;_a27.el.dom.commentText=_a27.commentText;_a27.el.dom.style.display="none";_a27.proxy.dom.style.display="block";ths.comVal.value=_a27.commentText;_a27.el.dom.style.position="absolute";_a27.on("resize",limitSizeHandler);mass.push(_a27);Event.observe(_a27.proxy.dom,"click",function (ev){if(!cm.mode.edit&&(_a27.createdBy==cm.memberId)){ths.mode.currentEdit=_a27.id;_a27.proxy.dom.style.border="1px dashed black";$("border_"+_a27.id).style.border="1px dashed white";ths.currentEdit=_a27;ths.currentEdit.el.dom.style.zIndex=5001;setComment(ev,_a27);}});Event.observe(_a27.el.dom,"click",function (ev){elPositionToPoProxy(_a27);});Event.observe(_a27.proxy.dom,"mouseover",function (ev){onComOver(_a27.proxy.dom,_a27.id);});Event.observe(_a27.proxy.dom,"mouseout",function (ev){onComOut(_a27.proxy.dom,_a27.id,ev);});Event.observe($("save"),"click",function (ev){if(_a27.id==ths.mode.currentEdit){saveComment(_a27);}});Event.observe($("cancel"),"click",function (ev){if(_a27.id==ths.mode.currentEdit){cancelComment(_a27);}});Event.observe($("delete"),"click",function (ev){if(_a27.id==ths.mode.currentEdit){ths.removeComment();}});}};Ext.EventManager.onDocumentReady(com.init,com,true);}};function nextEl(e){if(!e){e=window.event;}var _a30=null;if(e.toElement){_a30=e.toElement;} else{_a30=e.relatedTarget;}return _a30;}var toSave=false;function onComOver(el,bId){if(!cm.mode.edit){$("light_"+bId).style.display="";$("light_"+bId).style.height=Number(pSt(el.style.height)-2)+"px";$("comBody").innerHTML=escapeHTML(el.commentText);cm.comPU.style.top=Number(pSt(el.style.top)+pSt(el.style.height)+10)+"px";cm.comPU.style.left=el.style.left;cm.comPU.style.display="";cm.overBubble=true;}}function onComOut(el,bId,ev){if(nextEl(ev)!=null&&(nextEl(ev).tagName!="img"||nextEl(ev).tagName!="div")){cm.sleepMode(ev);}$("light_"+bId).style.display="none";cm.comPU.style.display="none";}function setComment(ev,_a37){cm.comVal.value=_a37.commentText;cm.comTxt.id=_a37.el.dom.id+"Txt";cm.comTxt.style.display="";cm.comTxt.style.left=_a37.el.dom.style.left;if(Number(pSt(_a37.el.dom.style.top)+pSt(cm.comTxt.style.height))>cm.corners.top){cm.comTxt.style.top=Number(pSt(_a37.el.dom.style.top)+pSt(_a37.el.dom.style.height)+10)+"px";}if(Number(pSt(_a37.el.dom.style.top)+pSt(_a37.el.dom.style.height)+pSt(cm.comTxt.style.height))>cm.corners.bot){cm.comTxt.style.top=Number(pSt(_a37.el.dom.style.top)-pSt(cm.comTxt.style.height)-7)+"px";}cm.comTxt.style.left=_a37.el.dom.style.left;_a37.proxy.dom.style.display="none";_a37.el.dom.style.display="";cm.mode.edit=true;}function limitPositionHandler(el,x,y){var r=pSt(el.style.left);var t=pSt(el.style.top);var l=Number(r+pSt(el.style.width));var b=Number(t+pSt(el.style.height));var _a3f=cm.corners.left-pSt(el.style.width);var _a40=cm.corners.bot-pSt(el.style.height);var _a41=false;if(r<cm.corners.right){cm.currentEdit.el.dom.style.left=cm.corners.right+"px";} else{cm.currentEdit.el.dom.style.left=r+"px";el.style.display="none";}if(l>cm.corners.left){cm.currentEdit.el.dom.style.left=_a3f+"px";} else{el.style.display="none";}if(t<cm.corners.top){cm.currentEdit.el.dom.style.top=cm.corners.top+"px";} else{el.style.display="none";cm.currentEdit.el.dom.style.top=t+"px";}if(b>cm.corners.bot){cm.currentEdit.el.dom.style.top=_a40+"px";} else{el.style.display="none";}el.style.visibility="visible";cm.comTxt.style.position="absolute";if(!cm.mode.edit){if((cm.comTxt.id!=el.id.replace("-rzproxy","Txt"))){cm.comTxt.id=el.id.replace("-rzproxy","Txt");cm.comVal.value=el.commentText;}}if((cm.comTxt.id==el.id.replace("-rzproxy","Txt"))){cm.comTxt.style.left=cm.currentEdit.el.dom.style.left;if(Number(pSt(el.style.top)+pSt(cm.comTxt.style.height))>cm.corners.top){cm.comTxt.style.top=Number(pSt(cm.currentEdit.el.dom.style.top)+pSt(cm.currentEdit.el.dom.style.height)+10)+"px";}if(Number(pSt(el.style.top)+pSt(el.style.height)+pSt(cm.comTxt.style.height))>cm.corners.bot){cm.comTxt.style.top=Number(pSt(cm.currentEdit.el.dom.style.top)-pSt(cm.comTxt.style.height)-7)+"px";}}return _a41;}function setToRightPlace(el){var _a43=Number(cm.corners.left-pSt(el._domRef.style.width));var _a44=Number(cm.corners.bot-pSt(el._domRef.style.height));if(pSt(el._domRef.style.left)>_a43){el._domRef.style.left=_a43+"px";}if(pSt(el._domRef.style.top)>_a44){el._domRef.style.top=_a44+"px";}if(pSt(el._domRef.style.left)<cm.corners.right){el._domRef.style.left=cm.corners.right+"px";}if(pSt(el._domRef.style.top)<cm.corners.top){el._domRef.style.top=cm.corners.top+"px";}}function limitSizeHandler(){var r=Position.cumulativeOffset(this.el.dom)[0];var t=Position.cumulativeOffset(this.el.dom)[1];var l=Number(r+pSt(this.el.dom.style.width));var b=Number(t+pSt(this.el.dom.style.height));if(r<cm.corners.right){this.el.dom.style.left=cm.corners.right+"px";this.el.dom.style.width=Number(l-cm.corners.right)+"px";}if(t<cm.corners.top){this.el.dom.style.top=cm.corners.top+"px";this.el.dom.style.height=Number(b-cm.corners.top)+"px";}if(l>cm.corners.left){this.resizeTo(Number(cm.corners.left-r),Number(b-t));}if(b>cm.corners.bot){this.resizeTo(Number(l-r),Number(cm.corners.bot-t));}elPositionToPoProxy(this);cm.comTxt.style.position="absolute";cm.comTxt.id=this.el.dom.id+"Txt";if(!cm.mode.edit){if(cm.comTxt.id!=this.el.dom.id+"Txt"){cm.comTxt.id=this.el.dom.id+"Txt";}}if(cm.comTxt.id==this.el.dom.id+"Txt"){cm.comTxt.style.left=this.el.dom.style.left;if(Number(pSt(this.el.dom.style.top)+pSt(cm.comTxt.style.height))>cm.corners.top){cm.comTxt.style.top=Number(pSt(this.el.dom.style.top)+pSt(this.el.dom.style.height)+10)+"px";}if(Number(pSt(this.el.dom.style.top)+pSt(this.el.dom.style.height)+pSt(cm.comTxt.style.height))>cm.corners.bot){cm.comTxt.style.top=Number(pSt(this.el.dom.style.top)-pSt(cm.comTxt.style.height)-7)+"px";}}}function setNodeStyle(_a49,_a4a){if(_a4a.nodeFloat){_a49.styleFloat=_a4a.nodeFloat;_a49.cssFloat=_a4a.nodeFloat;delete _a4a.nodeFloat;}for(val in _a4a){_a49[val]=_a4a[val];}}function alertObject(obj,_a4c){var str=(_a4c)?_a4c+"\n":"{";for(var el in obj){var _a4f=obj[el];if(typeof _a4f=="function"){_a4f="[<FUNCTION>]";}str+=el+" : "+_a4f+" , ";}str+=" }";alert(str);}function pSt(_a50){return Number(_a50.substring(0,_a50.length-2));}
