var a,txtAreas={};
function Box_show(b,c,d,e,f,g,l,k,m){var h=b.height,j=b.width,p=b.titleCss;k=b.visible;var n=document.createTextNode(b.title);b=document.createElement("TABLE");var o=document.createElement("TBODY"),t=document.createElement("DIV");t.className=p;t.setAttribute("id",c+"supText");t.appendChild(n);b.style.width=j+"px";b.style.height=h+"px";b.border=0;b.cellpadding=0;b.cellspacing=0;b.className="eyeBoxTable";h=document.createElement("TR");j=document.createElement("TD");j.className="eyeBoxSupCent";j.appendChild(t);
h.appendChild(j);o.appendChild(h);j=document.createElement("TD");h=document.createElement("TR");j.className="eyeBoxCent";j.width="100%";j.setAttribute("id",c);h.appendChild(j);o.appendChild(h);if(!IEversion||IEversion>8){j=document.createElement("TD");h=document.createElement("TR");j.className="eyeBoxBottCent";j.width="100%";h.appendChild(j);o.appendChild(h)}b.appendChild(o);createWidget(c+"_Container",d,b,g,l,e,f,-1,-1,"eyeBoxContainer",m,"px",k,"Box")}
function Line_show(b,c,d,e,f,g,l,k,m){k=b.width;var h=b.height;b=b.visible;var j=document.createElement("div");j.setAttribute("id",c);j.className="eyeLine";j.style.fontSize="1px";j.style.width=k+"px";j.style.height=h+"px";createWidget(c+"_Container",d,j,g,l,e,f,-1,-1,"eyeLineContainer",m,"px",b,"Line")}
function File_show(b,c,d,e,f,g,l,k,m){var h=b.callback,j=b.filename,p=b.visible,n=b.multiple;b=b.pid;var o=document.createElement("iframe"),t="250px",q="90px";if(n==1){t="300px";q="350px"}o.setAttribute("id",c);o.style.width=t;o.style.height=q;o.style.border="none";o.frameBorder="no";n==1?o.setAttribute("src","index.php?version="+EXTERN_CACHE_VERSION+"&extern=libs/eyeWidgets/getMultipleFile.eyecode&type=dynamic&params[]="+k+"&params[]="+h+"&params[]="+j+"&params[]="+b):o.setAttribute("src","index.php?version="+
EXTERN_CACHE_VERSION+"&extern=libs/eyeWidgets/getFile.eyecode&type=dynamic&params[]="+k+"&params[]="+h+"&params[]="+j+"&params[]="+b);createWidget(c+"_Container",d,o,g,l,e,f,-1,-1,"eyeLineContainer",m,"px",p,"File")}
function Simplebox_show(b,c,d,e,f,g,l,k,m){k=b.height;var h=b.width,j=b.visible,p=document.createElement("div");p.setAttribute("id",c);p.style.width=h+"px";p.style.height=k+"px";if(b.border==1)p.className="eyeSimplebox";createWidget(c+"_Container",d,p,g,l,e,f,-1,-1,"eyeSimpleboxNoBorder",m,"px",j,"Simplebox")}
function Listbox_show(b,c,d,e,f,g,l,k,m){k=b.height;var h=b.width,j=b.visible,p=b.orientation,n=document.createElement("div");n.setAttribute("id",c);n.setAttribute("lastFocus","");n.setAttribute("orientation",p);n.style.width=h+"px";n.style.height=k+"px";n.className="eyeListbox_box";b.border==1?createWidget(c+"_Container",d,n,g,l,e,f,-1,-1,"eyeSimplebox",m,"px",j,"Listbox"):createWidget(c+"_Container",d,n,g,l,e,f,-1,-1,"eyeSimpleboxNoBorder",m,"px",j,"Listbox")}
function Listbox_addItem(b,c,d,e,f,g,l,k,m){var h=document.getElementById(b+"_"+c);if(h.getAttribute("orientation")=="vertical"){h.style.overflowX="hidden";h.style.overflowY="auto";c=document.createElement("div");c.setAttribute("id",b+"_"+k);c.style.height=f+"px";c.style.width="100%";if(m!=0){f=document.createElement("img");f.setAttribute("src",m);f.setAttribute("id","img_"+k);f.className="eyeListbox_img";f.style.marginTop=parseInt(c.style.height,10)*3/10+"px";c.appendChild(f)}if(l){m=document.createElement("div");
m.appendChild(document.createTextNode(l));m.className="eyeListbox_txt";m.setAttribute("id","txt_"+k);c.appendChild(m)}h.appendChild(c);c.onmouseover=function(){var j=h.getAttribute("lastfocus");if(j.length===0||j!=k)this.className="eyeListbox_over"};c.onmouseout=function(){var j=h.getAttribute("lastfocus");if(j.length===0||j!=k)this.className="eyeListbox_out"};c.onmousedown=function(){var j=h.getAttribute("lastfocus");if(j.length!==0)document.getElementById(b+"_"+j).className="eyeListbox_out";h.setAttribute("lastfocus",
k);this.className="eyeListbox_focus"};if(g==0)c.onmouseup=function(){sendMsg(d,e,eyeParam("id",k))}}else{h.style.overflowY="hidden";h.style.overflowX="auto";c=document.createElement("div");c.setAttribute("id",b+"_"+k);c.style.width=f+"px";c.style.height="100%";if(m){f=document.createElement("img");f.setAttribute("src",m);f.setAttribute("id","img_"+k);f.className="eyeListbox_img";c.appendChild(f)}if(l){m=document.createElement("div");m.appendChild(document.createTextNode(l));m.className="eyeListbox_txt";
m.setAttribute("id","txt_"+k);c.appendChild(m)}h.appendChild(c);c.onmouseover=function(){var j=h.getAttribute("lastfocus");if(j.length===0||j!=k)this.className="eyeListbox_over"};c.onmouseout=function(){var j=h.getAttribute("lastfocus");if(j.length===0||j!=k)this.className="eyeListbox_out"};c.onmousedown=function(){var j=h.getAttribute("lastfocus");if(j.length!==0)document.getElementById(b+"_"+j).className="eyeListbox_out";h.setAttribute("lastfocus",k);this.className="eyeListbox_focus"};if(!g)c.onmouseup=
function(){sendMsg(d,e,eyeParam("id",k))}}}function Listbox_selectItem(b,c,d){var e=document.getElementById(b+"_"+d);if(!e)return false;c=document.getElementById(b+"_"+c);var f=c.getAttribute("lastfocus");if(f.length!==0)document.getElementById(b+"_"+f).className="eyeListbox_out";c.setAttribute("lastfocus",d);e.className="eyeListbox_focus";typeof e.onmouseup=="function"&&e.onmouseup()}
function Listbox_sort(b,c,d){b=document.getElementById(b+"_"+c).childNodes;c=b.length;d=[];for(var e=0;e<c;++e)d.push(b[e].firstChild.firstChild.nodeValue)}
function Button_show(b,c,d,e,f,g,l,k,m){var h=b.highlight,j=b.caption,p=b.enabled,n=b.visible,o=b.sync,t=b.disablemsg,q=b.signal,u=b.width,v=b.height,A=b.img,s=parseInt(b.imgX,10),x=b.imgWidth,B=b.imgHeight;b=b.forceMsg;s+=5;var C=document.createElement("div");C.setAttribute("id",c+"_GlobalContainer");var w,z;if(A!=null){w=document.createElement("img");w.src=A;w.setAttribute("id",c+"_cpt_img");if(x>0)w.style.width=x+"px";if(B>0)w.style.height=B+"px";z=document.createElement("div");z.innerHTML=j;z.setAttribute("id",
c+"_cpt");z.style.position="absolute"}else{w=document.createElement("button");w.setAttribute("id",c);j=tinyMCE.entityDecode(j);w.appendChild(document.createTextNode(j))}if(h==1)w.style.fontWeight="bold";if(p==0)w.disabled=1;if(u>0)if(A!=null){C.style.width=u+"px";z.style.width=u-x+"px"}else w.style.width=u+"px";if(v>0)if(A!=null)C.style.height=v+"px";else w.style.height=v+"px";if(A){z.style.top="2px";z.style.left=s+"px";C.style.cursor="Pointer"}else w.className="eyeButtonClass";if(t==0)if(b==0)C.onclick=
function(){sendMsg(k,q,eval(o))};else{var y=eyeParam(q,b);C.onclick=function(){sendMsg(k,q,y)}}C.appendChild(w);z&&C.appendChild(z);createWidget(c+"_Container",d,C,g,l,e,f,u,v,"eyeButton",m,"px",n,"Button");A!=null&&fixPNG(w)}
function Calendar_show(b,c,d,e,f,g,l,k,m){function h(){G.removeChild(P);if(w===0){w=11;y-=1;B.setFullYear(y)}else w-=1;B.setMonth(w);P=q();G.appendChild(P);var r=document.getElementById(c+"dateMiddle").firstChild;r.replaceData(0,r.length,F[w]+" "+y);r=new Date;r.setMonth(w);r.setYear(y);r.setDate(z);s!==""&&sendMsg(k,s,eyeParam("date",r.getTime()))}function j(){G.removeChild(P);if(w==11){w=0;y+=1;B.setFullYear(y)}else w+=1;B.setMonth(w);P=q();G.appendChild(P);var r=document.getElementById(c+"dateMiddle").firstChild;
r.replaceData(0,r.length,F[w]+" "+y);r=new Date;r.setMonth(w);r.setYear(y);r.setDate(z);s!==""&&sendMsg(k,s,eyeParam("date",r.getTime()))}function p(){var r=document.createElement("div");r.setAttribute("id",c+"rowsAndDate");r.style.color=b.rowsAndDate;r.className="calendar_rowsAndDate";var D=document.createElement("div");D.setAttribute("id",c+"rowLeft");D.className="calendar_rowLeft";xAddEventListener(D,"click",h);var L=document.createTextNode("<<");D.appendChild(L);var E=document.createElement("div");
E.setAttribute("id",c+"dateMiddle");E.className="calendar_dateMiddle";L=document.createTextNode(F[w]+" "+y);E.appendChild(L);var I=document.createElement("div");I.setAttribute("id",c+"rowRight");I.className="calendar_rowRight";xAddEventListener(I,"click",j);L=document.createTextNode(">>");I.appendChild(L);r.appendChild(D);r.appendChild(E);r.appendChild(I);return r}function n(){var r=document.createElement("div");r.setAttribute("id",c+"weekDaysNames");r.className="calendar_weekDaysNames";r.style.backgroundColor=
b.backgroundNames;var D=document.createElement("div");D.style.textAlign="center";for(var L=11,E=0;E<7;E++){var I=document.createElement("div");I.style.left=L+"%";I.style.color=b.dayName;I.className="calendar_dayName";var N=document.createTextNode(J[E]);I.appendChild(N);D.appendChild(I);L+=12}r.appendChild(D);return r}function o(r){if(r==3||r==5||r==8||r==10)return 30;else if(r==1){r=new Date;r.setMonth(2);r.setDate(0);return r.getDate()}else return 31}function t(r){r=(new xEvent(r)).target;if(b.drawOnClick!=
0){if(M!==false){if(!M.current)M.style.border="";if(M.parentNode&&!M.parentNode.current){M.parentNode.style.backgroundColor="";M.parentNode.style.border=""}}if(!r.current){r.style.borderStyle="solid";r.style.borderColor=b.clickedBorder;r.style.borderWidth="1px"}if(!r.parentNode.current){r.parentNode.style.borderStyle="solid";r.parentNode.style.borderColor=b.clickedWeek;r.parentNode.style.borderWidth="1px";r.parentNode.style.backgroundColor=b.clickedWeek}}M=r;z=r=r.day;var D=new Date;D.setMonth(w);
D.setYear(y);D.setDate(r);s!==""&&sendMsg(k,s,eyeParam("date",D.getTime()))}function q(){var r=new Date;r.setMonth(w);r.setYear(y);r.setDate(1);var D=r.getDay(),L=document.createElement("div");L.className="calendar_calendarBody";var E=o(w-1),I=o(w),N=new Array(0),O=new Array(0),Q=new Array(0);if(K==1)if(D===0)D=6;else D--;for(i=D-1;i>=0;i--){N.push(E-i);Q.push(c+"_"+(E-i)+"_pre");O.push(b.preMonthDays)}for(i=1;i<=I;i++){N.push(i);Q.push(c+"_"+i+"_current");r.setDate(i);r.getDay()===0||r.getDay()==
6?O.push(b.weekEnd):O.push(b.workDays)}r=42-N.length;for(i=1;i<=r;i++){N.push(i);Q.push(c+"_"+i+"_rest");O.push(b.nextMonthDays)}r=7.5;for(i=D=0;i<6;i++){E=document.createElement("div");E.className="calendar_weekMonth";E.style.top=r+"%";I=11;for(var R=new Date,S=0;S<7;S++){var H=document.createElement("div");H.className="calendar_weekDay";H.style.left=I+"%";H.style.color=O[D];H.setAttribute("id",Q[D]);if(O[D]!=b.preMonthDays&&O[D]!=b.nextMonthDays){H.style.cursor="pointer";if(N[D]==R.getDate()&&w==
R.getMonth()&&y==R.getFullYear()){H.className="calendar_weekDayToday";H.style.borderColor=b.todayBorder;H.style.color=b.todayFontColor;H.style.backgroundColor=b.todayBackground;E.className="calendar_weekMonthToday";E.style.backgroundColor=b.toWeekBackground;E.style.borderColor=b.toWeekBackground;E.current=true;H.current=true;x=0}if(C!=="")if(N[D]==C.getDate()&&w==C.getMonth()&&y==C.getFullYear()){H.className="calendar_weekDayClicked";H.style.borderColor=b.clickedBorder;E.className="calendar_weekMonthClicked";
E.style.backgroundColor=b.clickedWeek;E.style.borderColor=b.clickedWeek;M=H}}else H.style.cursor="default";H.day=N[D];var T=document.createTextNode(N[D]);O[D]!=b.preMonthDays&&O[D]!=b.nextMonthDays&&xAddEventListener(H,"click",t);H.appendChild(T);E.appendChild(H);D++;I+=12}L.appendChild(E);r+=17}return L}var u=b.width,v=b.height,A=b.visible,s=b.selectFunc,x=false,B=new Date;b.forceDate!==""&&B.setTime(b.forceDate);var C="";if(b.drawServerDate!==""){C=new Date;C.setTime(b.drawServerDate)}var w=B.getMonth(),
z=B.getDate(),y=B.getFullYear(),F=getArrayArg(b.monthNames),J=getArrayArg(b.weekDays),K=b.startMonday,G=document.createElement("div"),M=false;G.setAttribute("id",c+"calendarBase");G.style.width=u+"px";G.style.height=v+"px";G.style.position="absolute";var U=p(),V=n(),P=q(B);G.appendChild(U);G.appendChild(V);G.appendChild(P);createWidget(c+"_Container",d,G,g,l,e,f,u,v,"eyeCalendar",m,"px",A,"Calendar",1)}
function Checkbox_show(b,c,d,e,f,g,l,k,m){k=tinyMCE.entityDecode(b.text);var h=b.checked,j=b.enabled,p=b.visible;b=b.width;var n=document.createElement("input");n.setAttribute("type","checkbox");var o=document.createElement("div");o.setAttribute("id",c+"_textContainer");if(h==1)if(IEversion&&IEversion<8)n.defaultChecked=true;else n.setAttribute("checked",true);if(j==0)n.disabled=1;if(b>0)o.style.width=b+"px";n.setAttribute("id",c);n.className="eyeCheckbox";o.appendChild(n);o.className="eyeCheckboxText";
o.appendChild(document.createTextNode(k));createWidget(c+"_Container",d,o,g,l,e,f,-1,-1,"eyeCheckboxContainer",m,"px",p,"Checkbox")}function Container_show(b,c,d,e,f,g,l,k,m){k=parseInt(b.height,10);var h=parseInt(b.width,10),j=b.unit;b=b.visible;var p=document.createElement("div");if(k>0)p.style.height=k+j;if(h>0)p.style.width=h+j;p.setAttribute("id",c);createWidget(c+"_Container",d,p,g,l,e,f,-1,-1,"eyeContainerContainer",m,j,b,"Container")}
function Flash_show(b,c,d,e,f,g,l,k,m){k=b.height;var h=b.width,j=b.src,p=b.visible,n=getArrayArg(b.flashParamsNames),o=getArrayArg(b.flashParamsValues),t="",q;for(q in n)if(n[q].toLowerCase()=="flashvars")t="?"+o[q];if(!IEversion||IEversion>7){b=document.createElement("object");b.setAttribute("width",h);b.setAttribute("height",k);b.setAttribute("data",j);b.setAttribute("type","application/x-shockwave-flash");b.setAttribute("id",c);t=document.createElement("param");t.setAttribute("name","src");t.setAttribute("value",
j);b.appendChild(t);for(q in n){t=document.createElement("param");t.setAttribute("name",n[q]);t.setAttribute("value",o[q]);b.appendChild(t)}}else{b=document.createElement("div");b.setAttribute("id",c);b.setAttribute("width",h);b.setAttribute("height",k);q=document.createElement("embed");q.setAttribute("src",j+t);q.setAttribute("quality","high");q.setAttribute("width",h);q.setAttribute("height",k);q.setAttribute("type","application/x-shockwave-flash");q.setAttribute("style","position: absolute; top: 0; right: 0;");
b.appendChild(q)}createWidget(c+"_Container",d,b,g,l,e,f,h,k,"eyeFlash",m,"px",p,"Flash")}function Hidden_show(b,c,d,e,f,g,l,k,m){b=b.text;k=document.createElement("input");k.setAttribute("type","hidden");if(b)k.value=b;k.setAttribute("id",c);k.className="eyeHidden";createWidget(c+"_Container",d,k,g,l,e,f,-1,-1,"eyeTextboxContainer",m,"Hidden")}
function Icon_show(b,c,d,e,f,g,l,k){var m=b.text,h=b.image,j=b.draggable,p=b.onclick,n=b.content,o=b.width,t=b.height,q=b.visible,u=b.myonload,v=b.realname,A=b.overBorder,s=b.overBorderBg,x=b.overBorderColor,B=b.textColor,C=b.useClass,w=b.overClass,z=document.createElement("div");z.style.width="65px";z.setAttribute("id",c+"_globalContainer");b=document.createElement("img");if(u!=null)b.onload=function(){eval(u)};b.src=h;b.setAttribute("id","img_"+c);b.className="eyeIcon_Image";o>0&&b.setAttribute("width",
o);t>0&&b.setAttribute("height",t);var y=document.createElement("div");y.className="eyeIcon_Text";y.setAttribute("align","center");y.setAttribute("id",c+"_text");y.style.width="65px";m=tinyMCE.entityDecode(m);h=document.createTextNode(m);y.appendChild(h);z.appendChild(b);z.appendChild(y);h=document.createElement("input");h.setAttribute("type","hidden");h.setAttribute("id",c+"_Content");h.value=n;z.appendChild(h);v=tinyMCE.entityDecode(v);if(A!=0)if(IEversion&&IEversion<7)z.style.border="none";else{z.onmouseover=
function(){z.style.backgroundColor=s;z.style.border=x;y.innerHTML="";y.appendChild(document.createTextNode(v))};z.onmouseout=function(){z.style.border="1px solid transparent";z.style.backgroundColor="transparent";y.innerHTML="";y.appendChild(document.createTextNode(m))};z.style.border="1px solid transparent"}if(C!=0){z.onmouseover=function(){y.innerHTML="";y.appendChild(document.createTextNode(v))};z.onmouseout=function(){y.innerHTML="";y.appendChild(document.createTextNode(m))}}createWidget(c+"_Container",
d,z,g,l,e,f,-1,-1,"eyeIcon_blank",0,"px",q,"Icon");xGetElementById(c+"_globalContainer").className=w;e=xGetElementById(c+"_Container");e.checknum=k;e.style.color=B;j==1&&makeDrag(c+"_Container",d,"iconDragUpdate",k,n,1);if(p==1)z.onclick=function(){var F=getArrayArg(n),J="";for(var K in F)J+=eyeParam("arg"+K,tinyMCE.entityDecode(F[K]));sendMsg(k,"Icon_Clicked",J)};else if(p==2)z.ondblclick=function(){var F=getArrayArg(n),J="";for(var K in F)J+=eyeParam("arg"+K,tinyMCE.entityDecode(F[K]));sendMsg(k,
"Icon_Clicked",J)};fixPNG(b)}var widgetDrop_behaviours=[],dropIndex=400;
function WidgetDrop_show(b,c,d,e,f,g,l,k){function m(t,q,u,v,A,s,x,B){if(typeof t=="string")try{eval(t)}catch(C){}else t(q,u,v,A,s,x,B)}d=xGetElementById(d);if(d.xDropEnabled)return false;var h=b.cOrder,j=b.callback,p=b.signal,n=b.sender,o=b.mySelf;xEnableDrop(d,function t(q,u,v,A,s){if(u.id&&q.id)if(u.id==q.id&&!o)return true;if((h==1||h==3)&&j)m(j,q,u,v,A,s,k,1);var x,B,C;if(p)if(q.content){x=getArrayArg(q.content);B="";for(C in x)B+=eyeParam("arg"+C,tinyMCE.entityDecode(x[C]));sendMsg(k,p,B)}if(n)if(u.content){x=
getArrayArg(u.content);B="";for(C in x)B+=eyeParam("arg"+C,tinyMCE.entityDecode(x[C]));sendMsg(u.checknum,n,B)}if(widgetDrop_behaviours[c])try{eval("var behaviour = new "+widgetDrop_behaviours[c][0]+"('"+c+"');");behaviour.start(q,u,v,A,s,k)}catch(w){}if((h==2||h==3)&&j)m(j,q,u,v,A,s,k,2)})}function addDropBehaviour(b,c,d){try{widgetDrop_behaviours[c]=[];widgetDrop_behaviours[c][0]=d;widgetDrop_behaviours[c][1]=b}catch(e){try{console.log(e)}catch(f){}}}
function hideSimpleMenu(b){if(document.getElementById(b))document.getElementById(b).style.display="none"}var lastMenu="";function showSimpleMenu(b,c,d){lastMenu!==""&&hideSimpleMenu(lastMenu);lastMenu=c;var e=b.pageY,f=b.pageX;if(IEversion&&IEversion<7){d=document.getElementById(d);e=b.offsetY;f=b.offsetX;e+=xTop(d);f+=xLeft(d)}b=document.getElementById(c);b.style.top=e+"px";b.style.left=f+"px";b.style.display="block"}
function widgetDrop_simpleMenu(b){this.params=widgetDrop_behaviours[b][1];this.start=function c(d,e,f,g,l,k){this.action(d,e,f,g,l,k)};this.action=function(c,d,e,f,g,l){if(c.father==d.father)return false;c="";e=1;var k;if(d.content){d=getArrayArg(d.content);for(k in d){c+=eyeParam("arg"+e,tinyMCE.entityDecode(d[k]));e++}}if(this.params.content){d=getArrayArg(this.params.content);for(k in d){c+=eyeParam("arg"+e,tinyMCE.entityDecode(d[k]));e++}}sendMsg(l,this.params.signal,c);showSimpleMenu(g,this.params.widgetId)}}
function widgetDrop_simpleMsg(b){this.params=widgetDrop_behaviours[b][1];this.start=function c(d,e,f,g,l,k){this.action(d,e,f,g,l,k)};this.action=function(c,d,e,f,g,l){if(c.father==d.father||!d.myPid)return false;c="";e=0;if(d.content){d=getArrayArg(d.content);for(var k in d){c+=eyeParam("arg"+e,tinyMCE.entityDecode(d[k]));e++}}if(this.params.content)c+=eyeParam("arg"+e,tinyMCE.entityDecode(this.params.content));sendMsg(l,this.params.signal,c)}}
function moveAndClick(b){this.params=widgetDrop_behaviours[b][1];this.start=function c(d,e,f,g,l,k){if(!e.myPid)return false;this.params.pid==e.myPid?this.moveAction(d,e,f,g,l,k):this.menuAction(d,e,f,g,l,k)};this.moveAction=function c(d,e,f,g,l,k){this.params.moveType<2&&this.moveUpdate(e.id,xLeft(e),xTop(e),e.diffX,e.diffY,e.checknum,e.content);if(this.params.moveType<3){e.style.left=e.diffX+"px";e.style.top=e.diffY+"px"}};this.menuAction=function c(d,e,f,g,l,k){d="";f=0;if(e.content){e=getArrayArg(e.content);
for(var m in e){d+=eyeParam("arg"+f,tinyMCE.entityDecode(e[m]));f++}}if(this.params.content)d+=eyeParam("arg"+f,tinyMCE.entityDecode(this.params.content));sendMsg(k,this.params.signal,d)};this.moveUpdate=function c(d,e,f,g,l,k,m){d=g-e;f=l-f;m=getArrayArg(m);if(d>0||d<0||f>0||f<0){if(!this.params.moveMaster)this.params.moveMaster=0;g=eyeParam("eyeArg",eyeParam("content",m[this.params.moveMaster])+eyeParam("newX",g)+eyeParam("newY",l)+eyeParam("rName",m[4]),1);sendMsg(k,"Icon_Moved",g)}}}
function _execDragCallback(b,c,d,e,f){if(typeof callback=="string")try{eval(callback)}catch(g){}else callback(c,d,e,f)}
function WidgetDrag_show(b,c,d,e,f,g,l,k,m){var h=xGetElementById(d),j=xGetElementById(d).cloneNode(true),p=getArrayArg(b.dragCssNames),n=getArrayArg(b.dragCssContent),o=b.content,t=b.clickCallback,q=b.clickSignal,u=b.cursor,v=b.cursorPos,A=b.dragAlpha;h.myPid=b.myPid;h.drag=j;h.father=d;h.content=o;var s=0,x=0,B=h.style.left,C=h.style.top,w=false;xEnableDrag(h,function z(y,F,J,K){j.style.left=B;j.style.top=C;x=s=0;h.diffX=xLeft(h);h.diffY=xTop(h);w=false;(y=xLeft("eyeApps"))||(y=0);var G=xTop("eyeApps");
G||(G=0);F-=y;J-=G;if(v==0){s=F-K.offsetX;x=J-K.offsetY}else if(v==1){s=F;x=J}},function z(y,F,J,K,G){if(w){h.diffX+=F;h.diffY+=J;xMoveTo(j,xLeft(j)+F,xTop(j)+J)}else{w=true;y=xGetElementById("eyeApps");y.style.cursor=u;j.style.cursor=u;xMoveTo(j,s,x);j.setAttribute("id",d+"_drag");y.appendChild(j);xZIndex(h,zindex);zindex++;xZIndex(j,zindex);zindex++;if(p)for(var M in p)updateCss(j.id,p[M],n[M]);A&&updateOpacityOnce(A,j.id)}},function z(y,F,J,K){if(w)j.parentNode.removeChild(j);else{t&&_execDragCallback(t,
y,F,J,K);y=getArrayArg(o);F="";for(var G in y)F+=eyeParam("arg"+G,tinyMCE.entityDecode(y[G]));q&&sendMsg(k,q,F)}xGetElementById("eyeApps").style.cursor=""},"eyeApps")}
function iconDragUpdate(b,c,d,e,f,g,l){c=e-c;d=f-d;var k=getArrayArg(l),m="";for(var h in k)m+=eyeParam("arg"+h,tinyMCE.entityDecode(k[h]));xZIndex(xGetElementById(b),zindex);zindex++;if(c<1&&c>-1&&d<1&&d>-1)sendMsg(g,"Icon_Clicked",m);else{b=eyeParam("eyeArg",eyeParam("content",l)+eyeParam("newX",e)+eyeParam("newY",f),1);sendMsg(g,"Icon_Moved",b)}}
function Iframe_show(b,c,d,e,f,g,l,k,m){k=b.url;var h=b.height,j=b.width,p=b.visible;b=b.scroll;var n=document.createElement("iframe");n.setAttribute("id",c);n.setAttribute("name",c);n.setAttribute("src",k);n.setAttribute("width",j);n.setAttribute("height",h);n.style.border="0px solid black";n.frameBorder="no";b==0&&n.setAttribute("scrolling","no");createWidget(c+"_Container",d,n,g,l,e,f,-1,-1,"eyeIframe",m,"px",p,"Iframe")}
function Imagebox_show(b,c,d,e,f,g,l,k,m){var h=b.url,j=b.visible,p=b.alt,n=b.width,o=b.height,t=b.cssClass,q=b.signal,u=b.sync;b=b.disableMsg;var v=document.createElement("img");v.src=h;v.setAttribute("alt",p);n>0&&v.setAttribute("width",n);o>0&&v.setAttribute("height",o);v.setAttribute("id",c);if(b==0)v.onclick=function(){sendMsg(k,q,eval(u))};t!=""?createWidget(c+"_Container",d,v,g,l,e,f,n,o,t,m,"px",j,"Imagebox"):createWidget(c+"_Container",d,v,g,l,e,f,n,o,"eyeImagebox",m,"px",j,"Imagebox");fixPNG(v)}
function Label_show(b,c,d,e,f,g,l,k,m){var h=b.text,j=b.visible,p=b.sync,n=b.disablemsg,o=b.signal;b=document.createElement("div");b.setAttribute("id",c);if(n==0)b.onclick=function(){sendMsg(k,o,eyeParam(c,h)+eval(p))};h=tinyMCE.entityDecode(h);b.appendChild(document.createTextNode(h));createWidget(c+"_Container",d,b,g,l,e,f,-1,-1,"eyeLabel",m,"px",j,"Label")}
function Radio_show(b,c,d,e,f,g,l,k,m){k=b.checked;var h=b.enabled,j=b.visible,p=b.group;b=b.text;var n=document.createElement("div"),o=document.createElement("input");n.setAttribute("id",c+"_textContainer");o.setAttribute("name",p);o.setAttribute("id",c);o.setAttribute("type","radio");n.appendChild(o);if(IEversion&&IEversion<8)o.onclick=function(){this.checked=1;for(var t=document.getElementsByTagName("input"),q=0;q<t.length;q++)if(t[q].type=="radio"&&t[q].name==this.name&&t[q].id!=this.id)t[q].checked=
0};n.appendChild(document.createTextNode(b));if(k==1){o.setAttribute("checked","checked");o.setAttribute("defaultChecked","true")}h==0&&o.setAttriute("disabled","true");createWidget(c+"_Container",d,n,g,l,e,f,-1,-1,"eyeRadio",m,"px",j,"Radio")}
function Select_show(b,c,d,e,f,g,l,k,m){k=b.visible;var h=b.width;b=b.enabled;var j=document.createElement("select");if(b==0)j.disabled=true;if(h>0)j.style.width=h+"px";j.setAttribute("id",c);j.className="eyeSelect";createWidget(c+"_Container",d,j,g,l,e,f,-1,-1,"",m,"px",k,"Select")}function Sortabletable_updateHeight(b,c){c.style.height="auto";var d=xHeight(b);b=xHeight(b.parentNode);if(d>b)c.style.height=String(b-(d-xHeight(c)))+"px"}
function Sortabletable_show(b,c,d,e,f,g,l,k,m){var h=b.visible,j=getArrayArg(b.theader),p=b.width,n=b.height,o=b.sizeUnit,t=b.signal,q=b.doubleClickSignal,u=getArrayArg(b.sortypes),v=b.master,A=b.realName,s=b.border;b=b.sync;var x=document.createElement("TABLE"),B=document.createElement("THEAD"),C=document.createElement("TBODY"),w=document.createElement("div");w.style.width=p+o;w.style.height=n+o;w.className="sort-table-container";w.setAttribute("id",c+"_generalContainer");if(s!=1)w.style.border=
"0px";var z;n="[";s=[];for(z in u){s[z]=u[z]=="Hidden"?1:0;n+=n=="["?'"'+u[z]+'"':',"'+u[z]+'"'}n+="]";u=document.createElement("TR");for(var y=0;y<j.length;y++)if(s[y]==0){z=document.createElement("TD");z.innerHTML=j[y];u.appendChild(z)}B.appendChild(u);x.appendChild(B);C.setAttribute("id",c+"_Body");x.appendChild(C);x.style.width=p+o;x.setAttribute("id",c);x.className="sort-table";w.appendChild(x);createWidget(c+"_Container",d,w,g,l,e,f,-1,-1,"eyeTable",m,o,h,"SortableTable");eval("table_"+c+' = new SortableTable(document.getElementById("'+
c+'"),'+n+',"'+t+'","'+v+'","'+A+'","'+k+'","'+c+'","'+q+'", "'+escape(b)+'");');C.style.width=p+o;Sortabletable_updateHeight(x,C)}
function SortableTable(b,c,d,e,f,g,l,k,m){this.sortTypes=c||[];this.normalSort=c;this.lastClick=this.descending=this.sortColumn=null;this.mySignal=d;this.mydSignal=k;this.myMaster=e;this.realName=f;this.mysync=unescape(m);this.mychecknum=g;this.entName=l;this.lastID=0;var h=this;this._headerOnclick=function(j){h.headerOnclick(j)};this._bodyOnclick=function(j){h.bodyOnclick(j)};this._bodyOndblclick=function(j){h.bodyOndblclick(j)};if(b){this.setTable(b);this.document=b.ownerDocument||b.document}else this.document=
document;b=this.document.defaultView||this.document.parentWindow;this._onunload=function(){h.destroy()};b&&typeof b.attachEvent!="undefined"&&b.attachEvent("onunload",this._onunload)}SortableTable.gecko=navigator.product=="Gecko";SortableTable.msie=/msie/i.test(navigator.userAgent);SortableTable.removeBeforeSort=SortableTable.gecko;a=SortableTable.prototype;a.onsort=function(){};a.defaultDescending=false;a._sortTypeInfo={};
a.setTable=function(b){this.tHead&&this.uninitHeader();this.element=b;this.setTHead(b.tHead);this.setTBody(b.tBodies[0])};a.setTHead=function(b){this.tHead&&this.tHead!=b&&this.uninitHeader();this.tHead=b;this.initHeader(this.sortTypes)};
a.addEntry=function(b){var c=getArrayArg(b),d=this.lastID;this.lastID++;b=document.createElement("TR");b.setAttribute("id",this.entName+"_row_"+d);var e=0;d=this.normalSort;var f=[],g=[];for(var l in d){f[l]=d[l]=="Hidden"?1:0;g[l]=d[l]=="Html"?1:d[l]=="HtmlButNoSort"?1:0}for(d=0;d<c.length;d++){e=document.createElement("TD");c[d]=tinyMCE.entityDecode(c[d]);if(g[d]==1)e.innerHTML=c[d];else e.appendChild(document.createTextNode(c[d]));if(f[d]==1)e.style.display="none";b.appendChild(e)}(l=document.getElementById(this.entName+
"_Body"))&&l.appendChild(b);Sortabletable_updateHeight(this.element,this.tBody,this.tHead)};a.delEntry=function(b){for(var c=document.getElementById(this.entName).rows,d=0;d<c.length;d++){var e=c[d].cells;e[this.myMaster]&&e[this.myMaster].innerHTML==b&&c[d].parentNode.removeChild(c[d])}Sortabletable_updateHeight(this.element,this.tBody,this.tHead)};
a.setTBody=function(b){this.tBody=b;if(typeof b.addEventListener!="undefined"){b.addEventListener("click",this._bodyOnclick,false);b.addEventListener("dblclick",this._bodyOndblclick,false)}else if(typeof b.attachEvent!="undefined"){b.attachEvent("onclick",this._bodyOnclick);b.attachEvent("ondblclick",this._bodyOndblclick)}else{b.onclick=this._bodyOnclick;b.ondblclick=this._bodyOndblclick}};a.setSortTypes=function(b){this.tHead&&this.uninitHeader();this.sortTypes=b||[];this.tHead&&this.initHeader(this.sortTypes)};
a.initHeader=function(b){if(this.tHead){var c=this.tHead.rows[0].cells,d=this.tHead.ownerDocument||this.tHead.document;this.sortTypes=b||[];for(var e=c.length,f,g,l=0;l<e;l++){g=c[l];if(this.sortTypes[l]!==null&&this.sortTypes[l]!="None"&&this.sortTypes[l]!="HtmlButNoSort"){f=d.createElement("IMG");f.src="index.php?version="+EXTERN_CACHE_VERSION+"&theme=1&extern=images/widgets/blank.png";g.appendChild(f);if(this.sortTypes[l]!=null)g._sortType=this.sortTypes[l];if(typeof g.addEventListener!="undefined")g.addEventListener("click",
this._headerOnclick,false);else if(typeof g.attachEvent!="undefined")g.attachEvent("onclick",this._headerOnclick);else g.onclick=this._headerOnclick}else{g.setAttribute("_sortType",b[l]);g._sortType=this.sortTypes[l]!=null?"None":this.sortTypes[l]}}this.updateHeaderArrows()}};
a.uninitHeader=function(){if(this.tHead)for(var b=this.tHead.rows[0].cells,c=b.length,d,e=0;e<c;e++){d=b[e];if(d._sortType!==null&&d._sortType!="None"&&d._sortType!="HtmlButNoSort"){d.removeChild(d.lastChild);if(typeof d.removeEventListener!="undefined")d.removeEventListener("click",this._headerOnclick,false);else typeof d.detachEvent!="undefined"&&d.detachEvent("onclick",this._headerOnclick);d._sortType=null;d.removeAttribute("_sortType")}}};
a.updateHeaderArrows=function(){if(this.tHead)for(var b=this.tHead.rows[0].cells,c=b.length,d,e=0;e<c;e++)if(b[e]._sortType!==null&&b[e]._sortType!="None"&&b[e]._sortType!="HtmlButNoSort"){d=b[e].lastChild;d.className=e==this.sortColumn?"sort-arrow "+(this.descending?"descending":"ascending"):"sort-arrow"}};a.getSelectValue=function(b){return this.lastClick?html_entity_decode(this.lastClick.childNodes.item(b).innerHTML):""};
a.bodyOndblclick=function(b){for(b=b.target||b.srcElement;b.tagName!="TR";)b=b.parentNode;if(this.lastClick)this.lastClick.className="";this.lastClick=b;b.className="sort-table-select";this.mydSignal&&sendMsg(this.mychecknum,this.mydSignal,eyeParam(this.realName,this.getSelectValue(this.myMaster))+eval(this.mysync))};
a.bodyOnclick=function(b){for(b=b.target||b.srcElement;b.tagName!="TR";)b=b.parentNode;if(this.lastClick)this.lastClick.className="";this.lastClick=b;b.className="sort-table-select";this.mySignal&&sendMsg(this.mychecknum,this.mySignal,eyeParam(this.realName,this.getSelectValue(this.myMaster))+eval(this.mysync))};a.headerOnclick=function(b){for(b=b.target||b.srcElement;b.tagName!="TD";)b=b.parentNode;this.sort(SortableTable.msie?SortableTable.getCellIndex(b):b.cellIndex)};
SortableTable.getCellIndex=function(b){for(var c=b.parentNode.childNodes,d=c.length,e=0;c[e]!=b&&e<d;e++);return e};a=SortableTable.prototype;a.getSortType=function(b){return this.sortTypes[b]||"String"};
a.sort=function(b,c,d){if(this.tBody){if(d==null)d=this.getSortType(b);if(!(d=="None"||d=="HtmlButNoSort")){this.descending=c==null?this.sortColumn!=b?this.defaultDescending:!this.descending:c;this.sortColumn=b;typeof this.onbeforesort=="function"&&this.onbeforesort();c=this.getSortFunction(d,b);b=this.getCache(d,b);d=this.tBody;var e,f;b.sort(c);this.descending&&b.reverse();if(SortableTable.removeBeforeSort){e=d.nextSibling;f=d.parentNode;f.removeChild(d)}c=b.length;for(var g=0;g<c;g++)d.appendChild(b[g].element);
SortableTable.removeBeforeSort&&f.insertBefore(d,e);this.updateHeaderArrows();this.destroyCache(b);typeof this.onsort=="function"&&this.onsort()}}};a.asyncSort=function(b,c,d){var e=this;this._asyncsort=function(){e.sort(b,c,d)};window.setTimeout(this._asyncsort,1)};a.getCache=function(b,c){if(!this.tBody)return[];for(var d=this.tBody.rows,e=d.length,f=new Array(e),g,l=0;l<e;l++){g=d[l];f[l]={value:this.getRowValue(g,b,c),element:g}}return f};
a.destroyCache=function(b){for(var c=b.length,d=0;d<c;d++){b[d].value=null;b[d].element=null;b[d]=null}};a.getRowValue=function(b,c,d){if(this._sortTypeInfo[c]&&this._sortTypeInfo[c].getRowValue)return this._sortTypeInfo[c].getRowValue(b,d);b=b.cells[d];return this.getValueFromString(typeof b.innerText!="undefined"?b.innerText:SortableTable.getInnerText(b),c)};
SortableTable.getInnerText=function(b){var c="";b=b.childNodes;for(var d=b.length,e=0;e<d;e++)switch(b[e].nodeType){case 1:c+=SortableTable.getInnerText(b[e]);break;case 3:c+=b[e].nodeValue;break}return c};a=SortableTable.prototype;a.getValueFromString=function(b,c){if(this._sortTypeInfo[c])return this._sortTypeInfo[c].getValueFromString(b);return b};a.getSortFunction=function(b){if(this._sortTypeInfo[b])return this._sortTypeInfo[b].compare;return SortableTable.basicCompare};
a.destroy=function(){this.uninitHeader();var b=this.document.parentWindow;b&&typeof b.detachEvent!="undefined"&&b.detachEvent("onunload",this._onunload);this.onsort=this._asyncsort=this.sortTypes=this._headerOnclick=this.document=this.tBody=this.tHead=this.element=this._onunload=null};a.addSortType=function(b,c,d,e){this._sortTypeInfo[b]={type:b,getValueFromString:c||SortableTable.idFunction,compare:d||SortableTable.basicCompare,getRowValue:e}};a.removeSortType=function(b){delete this._sortTypeInfo[b]};
SortableTable.basicCompare=function(b,c){if(b.value<c.value)return-1;if(c.value<b.value)return 1;return 0};SortableTable.idFunction=function(b){return b};SortableTable.toUpperCase=function(b){return b.toUpperCase()};SortableTable.toDate=function(b){b=b.split("-");var c=new Date(0);c.setFullYear(b[0]);c.setDate(b[2]);c.setMonth(b[1]-1);return c.valueOf()};SortableTable.prototype.addSortType("Number",Number);SortableTable.prototype.addSortType("CaseInsensitiveString",SortableTable.toUpperCase);
SortableTable.prototype.addSortType("Date",SortableTable.toDate);SortableTable.prototype.addSortType("String");
function Tab_show(b,c,d,e,f,g,l,k,m){var h=parseInt(b.height,10),j=parseInt(b.width,10),p=b.signal,n=document.createElement("div");n.setAttribute("id",c);n.useDisplay=b.useDisplay;n.className="eyeTab";if(j>0)n.style.width=j+"px";if(h>0)n.style.height=h+"px";createWidget(c+"_Container",d,n,g,l,e,f,-1,-1,"eyeTabContainer",m,"Tab");eval("tab_"+c+' = new eyeTab(document.getElementById("'+c+'"),"'+p+'","'+k+'","'+parseInt(b.tabwidth,10)+'");')}
function eyeTab(b,c,d,e){this.csignal=c;this.checknum=d;this.lastClick=null;this.tabWidth=e;this.initialOffset=0;this.tabHeight=23;this.myName=b.id;this.moTab=b;this.myTabs=[];var f=this;c=document.createElement("div");c.setAttribute("id",b.id+"_header");c.className="eyeTabHeader";c.style.width=xWidth(b)-9+"px";d=document.createElement("div");e=document.createElement("div");d.className="eyeTabArrowLeft";e.className="eyeTabArrowRight";d.setAttribute("id",b.id+"_buttonLeft");d.onmousedown=function(){this.interval=
setInterval('document.getElementById("'+b.id+'_header").scrollLeft-=10',50)};d.onmouseup=function(){clearTimeout(this.interval)};d.onmouseout=function(){clearTimeout(this.interval)};e.setAttribute("id",b.id+"_buttonRight");e.onmousedown=function(){this.interval=setInterval('document.getElementById("'+b.id+'_header").scrollLeft+=10',50)};e.onmouseup=function(){clearTimeout(this.interval)};e.onmouseout=function(){clearTimeout(this.interval)};d.style.display="none";e.style.display="none";b.appendChild(d);
b.appendChild(c);b.appendChild(e);this.oHeader=c;this.oHeader.onclick=function(g){f.headerClick(g)};this._onunload=function(){f.destroy()}}a=eyeTab.prototype;a.getCurrentTab=function(){return this.lastClick};a.headerClick=function(b){b=new xEvent(b);if(b.target.className=="eyeTabText")b.target=b.target.parentNode;if(b.target.className=="eyeTabSelected"||b.target.className=="eyeTabNotSelected")this.selectTab(b.target.id)};
a.addTab=function(b,c,d){var e=this,f=document.createElement("div"),g=document.createElement("div");g.innerHTML=b;g.className="eyeTabText";f.className="eyeTabNotSelected";f.setAttribute("id",this.myName+"_"+c);f.style.width=this.tabWidth+"px";f.style.position="absolute";f.style.top="0px";f.style.height=this.tabHeight+"px";var l=1;if(IEversion&&IEversion<7)l=0;c=c*(Number(this.tabWidth)+l)+this.initialOffset;f.style.left=c+"px";f.appendChild(g);this.oHeader.appendChild(f);g=document.createElement("div");
g.setAttribute("id",f.id+"_Content");g.className="eyeTabBody";g.style.width=xWidth(this.moTab)+"px";l=xHeight(this.moTab)-xHeight(this.oHeader);g.style.height=l+"px";this.moTab.appendChild(g);this.selectTab(f.id);if(!d){d=document.createElement("div");d.setAttribute("id",b.id+"_cross");d.className="eyeTabCross";d.onclick=function(){sendMsg(e.checknum,e.csignal,eyeParam("arg",f.id))};f.appendChild(d)}this.myTabs[f.id]=c;if(this.oHeader.childNodes.length*this.tabWidth>xWidth(this.oHeader)){document.getElementById(this.moTab.id+
"_buttonLeft").style.display="block";document.getElementById(this.moTab.id+"_buttonRight").style.display="block"}};a.removeTab=function(b){var c=document.getElementById(b);if(c){for(var d in this.myTabs)if(this.myTabs[d]>this.myTabs[b]){this.myTabs[d]-=this.tabWidth;document.getElementById(d).style.left=this.myTabs[d]+"px"}d=document.getElementById(c.id+"_Content");this.oHeader.removeChild(c);this.moTab.removeChild(d);this.myTabs[b]=null}};
a.selectTab=function(b){var c=document.getElementById(b);if(c)if(c.id!=this.lastClick){c.className="eyeTabSelected";c=document.getElementById(c.id+"_Content");if(this.moTab.useDisplay)c.style.display="block";else c.style.visibility="visible";if(this.lastClick)if(c=document.getElementById(this.lastClick)){c.className="eyeTabNotSelected";c=document.getElementById(c.id+"_Content");if(this.moTab.useDisplay)c.style.display="none";else c.style.visibility="hidden"}this.lastClick=b}};
function Textarea_show(b,c,d,e,f,g,l,k,m){var h=b.width,j=b.height,p=b.rich,n=b.code,o=b.lang,t=b.rows,q=b.cols,u=b.enabled,v=b.cssClass,A=b.visible;b=b.language;var s=document.createElement("textarea");if(n==1){s.id=c+"_cp";s.name=c+"_cp"}else{s.setAttribute("id",c);s.setAttribute("name",c)}t&&s.setAttribute("rows",t);q&&s.setAttribute("cols",q);if(h>0)s.style.width=h+"px";if(j>0)s.style.height=j+"px";if(!u)s.readOnly=1;if(v){s.className=v;createWidget(c+"_Container",d,s,g,l,e,f,h,j,v,m,"px",A,"Textarea")}else{s.className=
"eyeTextarea";createWidget(c+"_Container",d,s,g,l,e,f,h,j,"eyeTextareaContainer",m,"px",A,"Textarea")}if(p==1){txtAreas[c+"_objTxt"]=new tinymce.Editor(c,{mode:"specific_textareas",theme:"advanced",plugins:"safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|formatselect,fontselect,fontsizeselect,|,tablecontrols",
theme_advanced_buttons2:"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",auto_reset_designmode:true,theme_advanced_statusbar_location:"bottom",theme_advanced_path:false,skin:"o2k7",skin_variant:"silver",language:b});txtAreas[c+"_objTxt"].render()}else if(p==
2){txtAreas[c+"_objTxt"]=new tinymce.Editor(c,{mode:"specific_textareas",theme:"advanced",plugins:"safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",theme_advanced_buttons1:"newdocument,open,save,saveAs,print,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|formatselect,fontselect,fontsizeselect,|,tablecontrols",
theme_advanced_buttons2:"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor,|,zoomselect",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",auto_reset_designmode:true,theme_advanced_statusbar_location:"bottom",theme_advanced_path:false,skin:"o2k7",skin_variant:"silver",save_onsavecallback:function(x){sendMsg(k,"Save",eyeParam(c.substring(6),
Base64.encode(x.getContent()))+eyeParam("md5",md5(x.getContent())))},language:b});txtAreas[c+"_objTxt"].addButton("open",{title:"Open File",image:"index.php?version="+EXTERN_CACHE_VERSION+"&extern=libs/eyeWidgets/tiny_mce/themes/advanced/img/open.png",onclick:function(){sendMsg(k,"Open","")}});txtAreas[c+"_objTxt"].addButton("saveAs",{title:"Save as",image:"index.php?version="+EXTERN_CACHE_VERSION+"&extern=libs/eyeWidgets/tiny_mce/themes/advanced/img/saveAs.png",onclick:function(){sendMsg(k,"saveAs",
eyeParam(c.substring(6),Base64.encode(txtAreas[c+"_objTxt"].getContent()))+eyeParam("md5",md5(txtAreas[c+"_objTxt"].getContent())))}});txtAreas[c+"_objTxt"].checknum=k;txtAreas[c+"_objTxt"].render();txtAreas[c+"_objTxt"].onInit.add(function(x){document.getElementById(c+"_path_row").innerHTML="";x=document.getElementById(c+"_ifr");if(IEversion==6)x.parentNode.style.textAlign="center";x.style.width="650px";x.style.marginLeft="auto";x.style.marginRight="auto";x.style.height=xHeight(x)-50+"px";x.style.marginTop=
"49px";enableShadow(x.id)})}else if(n==1){s.className="codepress "+o;eval("cp_"+c+" = new CodePress('"+s.id+"');");CodePress.path="index.php?version="+EXTERN_CACHE_VERSION+"&extern=libs/eyeWidgets/codepress/";s.parentNode.insertBefore(eval("cp_"+c),s)}}
function Textbox_show(b,c,d,e,f,g,l,k,m){k=tinyMCE.entityDecode(b.text);var h=b.enabled,j=b.visible,p=b.password,n=b.width;b=b.noborder;var o=document.createElement("input");p?o.setAttribute("type","password"):o.setAttribute("type","text");if(k)o.value=k;if(n)o.style.width=n+"px";h||o.setAttribute("disabled",1);if(b==1){o.style.border=0;o.style.backgroundColor="transparent"}o.setAttribute("id",c);o.className="eyeTextbox";createWidget(c+"_Container",d,o,g,l,e,f,-1,-1,"eyeTextboxContainer",m,"px",j,
"Textbox")}
var Windows={Infos:{},List:{},Clear:function(b){if(b=document.getElementById(b+"_Content"))b.innerHTML=""},Close:function(b,c,d){if(!c)c=Windows.List[b].closingType;!d&&typeof Windows.List[b].closeMessage!="undefined"&&sendMsg(Windows.List[b].checknum,Windows.List[b].closeMessage,eval(Windows.List[b].closeEvalParam));if(c==1){(c=document.getElementById(b))&&c.parentNode.removeChild(c);Taskbars.RemoveEntry(b);Windows.List[b]=0}else c!=2&&Windows.Hide(b)},CloseButton:function(b,c){if(b=document.getElementById(b+"_WindowCloseButton"))b.style.display=
c==2&&b.style.display!="none"||typeof c!="undefined"&&!c?"none":"block"},Create:function(b,c,d){Windows.List[b]={};Windows.List[b].checknum=c;Windows.List[b].closeEvalParam=d.sync;Windows.List[b].closingType=d.removeWin;Windows.List[b].dragBgAlpha=d.dragBgAlpha;Windows.List[b].dragBgColor=d.dragBgColor;Windows.List[b].maxHeight=d.maxHeight;Windows.List[b].maxWidth=d.maxWidth;Windows.List[b].maximized=0;Windows.List[b].minHeight=d.minHeight;Windows.List[b].minWidth=d.minWidth;Windows.List[b].minimized=
0;Windows.List[b].noDrag=d.nodrag;Windows.List[b].noResize=d.noresize;Windows.List[b].noZIndex=d.noZindex;Windows.List[b].resizing=0;Windows.List[b].showDragContent=d.showDragContent;if(d.closeElement)d.closeElement.onclick=function(){Windows.Close(b)};if(d.maxElement)d.maxElement.onclick=function(){Windows.Maximize(b)};if(d.resizeElement){xEnableDrag(d.resizeElement,function(){Windows.ResizeBefore(b,1,1)},function(f,g,l){Windows.ResizeEvent(b,1,g,1,l)},function(){Windows.ResizeAfter(b,1,1)});var e=
document.getElementById(b+"_WindowBottom_left");e.style.cursor="sw-resize";xEnableDrag(e,function(){Windows.ResizeBefore(b,2,1)},function(f,g,l){Windows.ResizeEvent(b,2,g,1,l)},function(){Windows.ResizeAfter(b,2,1)});e=document.getElementById(b+"_WindowBottom_center");e.style.cursor="s-resize";e.ondblclick=function(){Windows.MaxHeight(b)};xEnableDrag(e,function(){Windows.ResizeBefore(b,0,1)},function(f,g,l){Windows.ResizeEvent(b,0,g,1,l)},function(){Windows.ResizeAfter(b,0,1)});e=document.getElementById(b+
"_WindowBottom_right");e.style.cursor="se-resize";xEnableDrag(e,function(){Windows.ResizeBefore(b,1,1)},function(f,g,l){Windows.ResizeEvent(b,1,g,1,l)},function(){Windows.ResizeAfter(b,1,1)});e=document.getElementById(b+"_WindowLeft");e.style.cursor="w-resize";e.ondblclick=function(){Windows.MaxWidth(b)};xEnableDrag(e,function(){Windows.ResizeBefore(b,2,0)},function(f,g,l){Windows.ResizeEvent(b,2,g,0,l)},function(){Windows.ResizeAfter(b,2,0)});e=document.getElementById(b+"_WindowRight");e.style.cursor=
"e-resize";e.ondblclick=function(){Windows.MaxWidth(b)};xEnableDrag(e,function(){Windows.ResizeBefore(b,1,0)},function(f,g,l){Windows.ResizeEvent(b,1,g,0,l)},function(){Windows.ResizeAfter(b,1,0)});e=document.getElementById(b+"_WindowTitle_border_left");e.style.cursor="nw-resize";xEnableDrag(e,function(){Windows.ResizeBefore(b,2,2)},function(f,g,l){Windows.ResizeEvent(b,2,g,2,l)},function(){Windows.ResizeAfter(b,2,2)});e=document.getElementById(b+"_WindowTitle_border_right");e.style.cursor="ne-resize";
xEnableDrag(e,function(){Windows.ResizeBefore(b,1,2)},function(f,g,l){Windows.ResizeEvent(b,1,g,2,l)},function(){Windows.ResizeAfter(b,1,2)});e=document.getElementById(b+"_WindowTitle_center");e.style.cursor="n-resize";e.ondblclick=function(){Windows.MaxHeight(b)};xEnableDrag(e,function(){Windows.ResizeBefore(b,0,2)},function(f,g,l){Windows.ResizeEvent(b,0,g,2,l)},function(){Windows.ResizeAfter(b,0,2)});if(d.titleElement)d.titleElement.ondblclick=function(f){f=new xEvent(f);f.target.id!=b+"_WindowTitle_center"&&
Windows.Maximize(b)}}if(d.sendCloseMsg)Windows.List[b].closeMessage=d.sigClose;if(d.savePosition)if(d.saveFunc){Windows.List[b].moveChecknum=c;Windows.List[b].moveMessage=d.saveFunc}else{Windows.List[b].moveChecknum=d.xChecknum;Windows.List[b].moveMessage="saveWinPosition"}if(d.sendResizeMsg)Windows.List[b].resizeMessage=d.sigResize;d.titleElement&&!d.allDrag&&xEnableDrag(d.titleElement,function(){Windows.MoveBefore(b)},function(f,g,l){Windows.MoveEvent(b,g,l)},function(){Windows.MoveAfter(b)});d.allDrag&&
xEnableDrag(b,function(){Windows.MoveBefore(b)},function(f,g,l){Windows.MoveEvent(b,g,l)},function(){Windows.MoveAfter(b)});if(d.minElement&&d.listed&&document.getElementById(b).parentNode.id=="eyeApps"){d.minElement.onclick=function(){Windows.Minimize(b)};Taskbars.AddEntry(b,d.title,"Windows.OnClickTaskbar('"+b+"');")}document.getElementById(b).onmousedown=function(){Windows.Focus(b)};Windows.Focus(b)},DragAfter:function(b){if(!Windows.List[b].showDragContent){document.getElementById(b+"_Content").style.display=
"block";var c=document.getElementById(b);c.className="eyeWindowMain";if(Windows.List[b].dragBgColor)c.style.backgroundColor="transparent";if(!IEversion||IEversion>6)updateOpacityOnce(100,b)}},DragBefore:function(b){if(!Windows.List[b].showDragContent){document.getElementById(b+"_Content").style.display="none";var c=document.getElementById(b);c.className="eyeWindowMainDrag";if(Windows.List[b].dragBgColor)c.style.backgroundColor=Windows.List[b].dragBgColor;if(!IEversion||IEversion>6)updateOpacityOnce(Windows.List[b].dragBgAlpha,
b)}},Focus:function(b){var c=document.getElementById(b);if(b&&c){if(c.parentNode.id=="eyeApps"){Windows.Unfocus(Windows.Infos.focus);Windows.Infos.focus=b;Taskbars.FocusEntry(b)}if(!Windows.List[b].noZIndex){xZIndex(b,zindex);zindex++}c=document.getElementById(b+"_WindowTitle");var d=document.getElementById(b+"_WindowTitle_border_left");b=document.getElementById(b+"_WindowTitle_border_right");if(c&&d&&b){c.className="activeWindow";d.className="activeWindow_border_left";b.className="activeWindow_border_right"}}},
Hide:function(b){var c=document.getElementById(b);if(c){if(Windows.List[b].showDragContent)c.style.visibility="hidden";else c.style.display="none";if(IEversion&&IEversion<7){b=c.getElementsByTagName("select");for(c=0;c<b.length;c++)if(b[c].style.visibility!="hidden"){b[c].name="visible";b[c].style.visibility="hidden"}}}},MaxHeight:function(b){var c=document.getElementById(b);if(c&&!Windows.List[b].noResize&&Windows.List[b].maximized!=2){var d;if(Windows.List[b].maximized){c=Windows.List[b].height;
Windows.SetHeight(b,c,1);d=Windows.List[b].width;Windows.SetWidth(b,d,1);Windows.SetX(b,Windows.List[b].x);Windows.SetY(b,Windows.List[b].y);Windows.List[b].maximized=0}else{if(!Windows.List[b].maximized){Windows.List[b].height=xHeight(b);Windows.List[b].width=xWidth(b);Windows.List[b].x=xLeft(b);Windows.List[b].y=xTop(b)}c=xHeight(c.parentNode);Windows.SetHeight(b,c,2);d=Windows.List[b].width;Windows.SetY(b,0,1);Windows.List[b].maximized=1}typeof Windows.List[b].resizeMessage!="undefined"&&sendMsg(Windows.List[b].checknum,
Windows.List[b].resizeMessage,eyeParam("arg",d)+eyeParam("arg",c))}},Maximize:function(b){var c=document.getElementById(b);if(c&&!Windows.List[b].noResize){var d;if(Windows.List[b].maximized==2){d=Windows.List[b].height;Windows.SetHeight(b,d,1);c=Windows.List[b].width;Windows.SetWidth(b,c,1);Windows.SetX(b,Windows.List[b].x);Windows.SetY(b,Windows.List[b].y);Windows.List[b].maximized=0}else{if(!Windows.List[b].maximized){Windows.List[b].height=xHeight(b);Windows.List[b].width=xWidth(b);Windows.List[b].x=
xLeft(b);Windows.List[b].y=xTop(b)}d=xHeight(c.parentNode);Windows.SetHeight(b,d,2);c=xWidth(c.parentNode);Windows.SetWidth(b,c,2);Windows.SetX(b,0,1);Windows.SetY(b,0,1);Windows.List[b].maximized=2}typeof Windows.List[b].resizeMessage!="undefined"&&sendMsg(Windows.List[b].checknum,Windows.List[b].resizeMessage,eyeParam("arg",c)+eyeParam("arg",d))}},MaximizeButton:function(b,c){if(b=document.getElementById(b+"_WindowMaxButton"))b.style.display=c==2&&b.style.display!="none"||typeof c!="undefined"&&
!c?"none":"block"},MaxWidth:function(b){var c=document.getElementById(b);if(c&&!Windows.List[b].noResize&&Windows.List[b].maximized!=2){var d;if(Windows.List[b].maximized){d=Windows.List[b].height;Windows.SetHeight(b,d,1);c=Windows.List[b].width;Windows.SetWidth(b,c,1);Windows.SetX(b,Windows.List[b].x);Windows.SetY(b,Windows.List[b].y);Windows.List[b].maximized=0}else{if(!Windows.List[b].maximized){Windows.List[b].height=xHeight(b);Windows.List[b].width=xWidth(b);Windows.List[b].x=xLeft(b);Windows.List[b].y=
xTop(b)}d=Windows.List[b].height;c=xWidth(c.parentNode);Windows.SetWidth(b,c,2);Windows.SetX(b,0,1);Windows.List[b].maximized=1}typeof Windows.List[b].resizeMessage!="undefined"&&sendMsg(Windows.List[b].checknum,Windows.List[b].resizeMessage,eyeParam("arg",c)+eyeParam("arg",d))}},Minimize:function(b,c){Windows.List[b].minimized=c?2:1;Windows.Hide(b);Taskbars.UnfocusEntry(b)},MinimizeButton:function(b,c){if(b=document.getElementById(b+"_WindowMinimizeButton"))b.style.display=c==2&&b.style.display!=
"none"||typeof c!="undefined"&&!c?"none":"block"},MinMaxAll:function(){var b;if(Windows.List[Windows.Infos.focus].minimized){for(b in Windows.List)if(Windows.List[b]&&Windows.List[b].minimized==2&&document.getElementById(b).parentNode.id=="eyeApps"){Windows.List[b].minimized=0;Windows.Unhide(b)}Windows.Focus(Windows.Infos.focus)}else for(b in Windows.List)Windows.List[b]&&document.getElementById(b).parentNode.id=="eyeApps"&&Windows.Minimize(b,1)},MoveAfter:function(b){if(!Windows.List[b].noDrag){Windows.DragAfter(b);
if(!Windows.List[b].maximized&&typeof Windows.List[b].moveMessage!="undefined")Windows.List[b].moveChecknum==Windows.List[b].checknum?sendMsg(Windows.List[b].checknum,Windows.List[b].moveMessage,eyeParam("x",xLeft(b))+eyeParam("y",xTop(b))+eyeParam("winName",b)):sendMsg(Windows.List[b].moveChecknum,"saveWinPosition",eyeParam("left",xLeft(b))+eyeParam("top",xTop(b))+eyeParam("winName",b)+eyeParam("appChecknum",Windows.List[b].checknum))}},MoveBefore:function(b){if(!Windows.List[b].noDrag&&Windows.List[b].maximized!=
2){Windows.List[b].x2=xLeft(b);Windows.List[b].y2=xTop(b);Windows.DragBefore(b)}},MoveEvent:function(b,c,d){if(!Windows.List[b].noDrag&&Windows.List[b].maximized!=2&&!Windows.List[b].resizing){Windows.List[b].maximized=0;Windows.List[b].x2+=c;Windows.List[b].y2+=d;Windows.SetX(b,Windows.List[b].x2);Windows.SetY(b,Windows.List[b].y2)}},OnClickTaskbar:function(b){if(Windows.List[b].minimized){Windows.List[b].minimized=0;Windows.Unhide(b);Windows.Focus(b)}else Windows.Infos.focus==b?Windows.Minimize(b):
Windows.Focus(b)},ResizeAfter:function(b,c,d){if(!Windows.List[b].noResize){Windows.DragAfter(b);if(!Windows.List[b].maximized){Windows.List[b].resizing=0;typeof Windows.List[b].resizeMessage!="undefined"&&sendMsg(Windows.List[b].checknum,Windows.List[b].resizeMessage,eyeParam("arg",xWidth(b))+eyeParam("arg",xHeight(b)));if((c==2||d==2)&&typeof Windows.List[b].moveMessage!="undefined")Windows.List[b].moveChecknum==Windows.List[b].checknum?sendMsg(Windows.List[b].checknum,Windows.List[b].moveMessage,
eyeParam("x",xLeft(b))+eyeParam("y",xTop(b))+eyeParam("winName",b)):sendMsg(Windows.List[b].moveChecknum,"saveWinPosition",eyeParam("left",xLeft(b))+eyeParam("top",xTop(b))+eyeParam("winName",b)+eyeParam("appChecknum",Windows.List[b].checknum))}}},ResizeBefore:function(b,c,d){if(!Windows.List[b].noResize&&Windows.List[b].maximized!=2){Windows.List[b].resizing=1;if(c){Windows.List[b].width2=xWidth(b);if(c==2)Windows.List[b].x2=xLeft(b)}if(d){Windows.List[b].height2=xHeight(b);if(d==2)Windows.List[b].y2=
xTop(b)}Windows.DragBefore(b)}},ResizeButton:function(b,c){if(b=document.getElementById(b+"_WindowResizeButton"))b.style.display=c==2&&b.style.display!="none"||typeof c!="undefined"&&!c?"none":"block"},ResizeEvent:function(b,c,d,e,f){if(!Windows.List[b].noResize&&Windows.List[b].maximized!=2){Windows.List[b].maximized=0;if(c==2){Windows.List[b].width2-=d;Windows.SetWidth(b,Windows.List[b].width2);Windows.List[b].x2+=d;Windows.SetX(b,Windows.List[b].x2)}else if(c){Windows.List[b].width2+=d;Windows.SetWidth(b,
Windows.List[b].width2)}if(e==2){Windows.List[b].height2-=f;Windows.SetHeight(b,Windows.List[b].height2);Windows.List[b].y2+=f;Windows.SetY(b,Windows.List[b].y2)}else if(e){Windows.List[b].height2+=f;Windows.SetHeight(b,Windows.List[b].height2)}}},SetHeight:function(b,c,d){var e=document.getElementById(b),f=xHeight(e.parentNode);if((typeof d=="undefined"||!d)&&c>f)c=f;if((typeof d=="undefined"||!d)&&c<50)c=50;if(d<2&&Windows.List[b].minHeight&&c<Windows.List[b].minHeight)c=Windows.List[b].minHeight;
if(d<2&&Windows.List[b].maxHeight&&c>Windows.List[b].maxHeight)c=Windows.List[b].maxHeight;if(e)e.style.height=c+"px"},SetRawContent:function(b,c,d){if(b=document.getElementById(b+"_Content")){if(d)c=Base64.decode(c);b.innerHTML=c}},SetTitle:function(b,c){var d=document.getElementById(b+"_WindowTitle_text");if(d)d.innerHTML=c;Taskbars.RenameEntry(b,c)},SetWidth:function(b,c,d){var e=document.getElementById(b),f=xWidth(e.parentNode);if((typeof d=="undefined"||!d)&&c>f)c=f;if((typeof d=="undefined"||
!d)&&c<100)c=100;if(d<2&&Windows.List[b].minWidth&&c<Windows.List[b].minWidth)c=Windows.List[b].minWidth;if(d<2&&Windows.List[b].maxWidth&&c>Windows.List[b].maxWidth)c=Windows.List[b].maxWidth;if(e)e.style.width=c+"px"},SetX:function(b,c,d){b=document.getElementById(b);var e=xWidth(b);if(typeof d=="undefined"||!d){d=b.parentNode.id;var f=xWidth(b.parentNode);if(d!="eyeApps")if(c<0)c=0;else{if(c>f-e)c=f-e}else if(c<25-e)c=25-e;else if(c>f-25)c=f-25}if(b)b.style.left=c+"px"},SetY:function(b,c,d){b=
document.getElementById(b);if(typeof d=="undefined"||!d)if(c<0)c=0;else{d=b.parentNode.id;var e=xHeight(b),f=xHeight(b.parentNode);if(d!="eyeApps"&&c>f-e)c=f-e;else if(c>f-25)c=f-25}if(b)b.style.top=c+"px"},SplitX:function(b){for(var c=xHeight("eyeApps"),d=xWidth("eyeApps")/b.length,e=0,f=0;f<b.length;f++){Windows.SetHeight(b[f],c);Windows.SetWidth(b[f],d);Windows.SetX(b[f],e);Windows.SetY(b[f],0);e+=d}},SplitY:function(b){for(var c=xHeight("eyeApps")/b.length,d=xWidth("eyeApps"),e=0,f=0;f<b.length;f++){Windows.SetHeight(b[f],
c);Windows.SetWidth(b[f],d);Windows.SetX(b[f],0);Windows.SetY(b[f],e);e+=c}},Unfocus:function(b){var c=document.getElementById(b);if(b&&c&&c.parentNode.id=="eyeApps"){c=document.getElementById(b+"_WindowTitle");var d=document.getElementById(b+"_WindowTitle_border_left"),e=document.getElementById(b+"_WindowTitle_border_right");if(c&&d&&e){c.className="inactiveWindow";d.className="inactiveWindow_border_left";e.className="inactiveWindow_border_right"}Taskbars.UnfocusEntry(b);if(b==Windows.Infos.focus)Windows.Infos.focus=
0}},Unhide:function(b){var c=document.getElementById(b);if(c){if(Windows.List[b].showDragContent)c.style.visibility="visible";else c.style.display="block";if(IEversion&&IEversion<7){b=c.getElementsByTagName("select");for(c=0;c<b.length;c++)if(b[c].name=="visible")b[c].style.visibility="visible"}}}};Windows.Infos.focus=0;
function Window_show(b,c,d,e,f,g,l,k,m){b.closeElement=0;b.maxElement=0;b.minElement=0;b.resizeElement=0;b.titleElement=0;var h=document.createTextNode("");d=createWidget(c,d,h,g,l,e,f,b.width,b.height,b.wMain,m,null,null,"Window");d.xDropEnabled=false;xEnableDrag.drops[xEnableDrag.drops.length]={e:d};if(b.type==2){createWidget(c+"_Content",c,h,0,0,-1,-1,-1,-1,"eyeWindowContentInvisible",0);b.allDrag=0;b.nodrag=1;b.listed=0}else if((b.type==3||b.type==4)&&b.background){h=document.createElement("img");
h.id=c+"_background";h.src=b.background;h.style.position="static";h.style.width=b.width+"px";d=document.createElement("div");d.style.overflow="hidden";d.appendChild(h);createWidget(c+"_Content",c,d,0,0,-1,-1,-1,-1,"eyeWindowContentInvisible",0);b.nodrag=0;b.listed=b.type==3?1:0;fixPNG(h,"crop")}else{createWidget(c+"_WindowBottom_center",c,h,0,0,-1,-1,-1,-1,b.wBottomCenter,0);createWidget(c+"_WindowBottom_left",c,h,0,0,-1,-1,-1,-1,b.wBottomLeft,0);createWidget(c+"_WindowBottom_right",c,h,0,0,-1,-1,
-1,-1,b.wBottomRight,0);createWidget(c+"_Content",c,h,0,0,-1,-1,-1,-1,b.wContent,0);createWidget(c+"_WindowLeft",c,h,0,0,-1,-1,-1,-1,b.wLeft,0);createWidget(c+"_WindowRight",c,h,0,0,-1,-1,-1,-1,b.wRight,0);b.titleElement=createWidget(c+"_WindowTitle",c,h,0,0,-1,-1,-1,-1,b.wTitle,0);createWidget(c+"_WindowTitle_border_left",c+"_WindowTitle",h,0,0,-1,-1,-1,-1,b.wTitleLeft,0);createWidget(c+"_WindowTitle_border_right",c+"_WindowTitle",h,0,0,-1,-1,-1,-1,b.wTitleRight,0);createWidget(c+"_WindowTitle_center",
c+"_WindowTitle",h,0,0,-1,-1,-1,-1,b.wTitleCenter,0);createWidget(c+"_WindowTitle_text",c+"_WindowTitle",document.createTextNode(tinyMCE.entityDecode(b.title)),0,0,-1,-1,-1,-1,b.wTitleText,0);if(b.min)b.minElement=createWidget(c+"_WindowMinimizeButton",c,h,1,0,b.min_pos*23-16,-1,-1,-1,"eyeWindowMinimizeButton",0);if(b.max)b.maxElement=createWidget(c+"_WindowMaxButton",c,h,1,0,b.max_pos*23-16,-1,-1,-1,"eyeWindowMaxButton",0);if(b.close)b.closeElement=createWidget(c+"_WindowCloseButton",c,h,1,0,b.close_pos*
23-15,-1,-1,-1,"eyeWindowCloseButton",0);if(b.resize)b.resizeElement=createWidget(c+"_WindowResizeButton",c,h,0,0,-1,-1,-1,-1,"eyeWindowResizeButton",0);if(!b.showtitle)b.titleElement=0}Windows.Create(c,k,b)}
function ProgressBar_show(b,c,d,e,f,g,l,k,m){k=b.visible;var h=b.width,j=b.progress;b=document.createElement("div");if(h)b.style.width=h+"px";b.setAttribute("id",c);b.className="eyeProgress";var p=document.createElement("div");p.setAttribute("id",c+"_bar");p.className="eyeProgressBar";p.style.height="100%";p.style.width=j+"%";var n=document.createElement("div");n.setAttribute("id",c+"_txt");n.className="eyeProgressText";n.innerHTML=j+"%";j=document.createElement("center");j.style.position="absolute";
j.style.top="2px";j.style.width=h+"px";j.appendChild(n);b.appendChild(p);b.appendChild(j);createWidget(c+"_Container",d,b,g,l,e,f,-1,-1,"eyeProgressContainer",m,"px",k,"ProgressBar")}function Toolbar_show(b,c,d,e,f,g,l,k,m){if(d=document.getElementById(d)){e=document.createElement("div");e.setAttribute("id",c);e.className="blockbar";e.paintClick=b.paintOnClick;e.pressed=b.pressed;e.select=b.select;e.widgetType="Toolbar";d.appendChild(e)}}
function Toolbar_groups(b,c,d,e){for(var f,g,l=b.length,k,m=0;m<l;m++){f=document.getElementById(d+"_"+b[m]+"_Container");f.onmousedown=function(){for(var h=0;h<l;h++){g=document.getElementById(d+"_"+b[h]+"_Container");if(g.className=="blockbarItemPress_right")g.className="blockbarItem_right";else if(g.className=="blockbarItemPress")g.className="blockbarItem"}if(this.className=="blockbarItem_right")this.className="blockbarItemPress_right";else if(f.className=="blockbarItem")this.className="blockbarItemPress";
for(var j in e)if(j==this.id){k=Base64.decode(e[j]);sendMsg(c,this.getAttribute("name"),eval(k))}};f.onmouseup=function(){}}}function Toolbar_pressed(b,c){b=document.getElementById(b);if(c)if(b.className=="blockbarItem_right")b.className="blockbarItemPress_right";else{if(b.className=="blockbarItem")b.className="blockbarItemPress"}else if(b.className=="blockbarItemPress_right")b.className="blockbarItem_right";else if(b.className=="blockbarItemPress")b.className="blockbarItem"}
function addLineToBar(b,c,d){b=document.getElementById(b);var e=document.createElement("div");if(c)e.id=c;e.className="blockbarline";if(d)e.className="blockbarline_right";e.innerHTML="&nbsp;";b.appendChild(e)}
function addItemToBar(b,c,d,e,f,g,l,k,m,h){b=document.getElementById(b);var j=b.paintClick,p=document.createElement("div"),n=Base64.decode(f);p.setAttribute("id",h+"_"+c+"_Container");p.setAttribute("name",c);p.className=m==1?"blockbarItem_right":"blockbarItem";if(j==1){p.onmousedown=function(){p.className=m==1?"blockbarItemPress_right":"blockbarItemPress"};p.onmouseup=function(){p.className=m==1?"blockbarItem_right":"blockbarItem";sendMsg(g,c,eval(n))}}f=document.createElement("img");f.setAttribute("id",
c+"_img");f.className="blockbarImg";f.setAttribute("src",d);if(l>0)f.style.height=l+"px";if(k>0)f.style.width=k+"px";p.appendChild(f);d=document.createElement("div");d.setAttribute("id",c+"_txt");d.className="blockbarText";d.innerHTML=e;p.appendChild(d);b.appendChild(p);fixPNG(f)}function Tree_show(b,c,d,e,f,g,l,k,m){eval("tree_"+c+' = new Tree("'+d+'","'+b.signal+'","'+k+'","'+c+'",'+b.height+","+b.width+","+e+","+f+',"'+b.clickTree+'","'+b.sync+'");')}
var treeClass="mktree",nodeClosedClass="liClosed",nodeOpenClass="liOpen",nodeBulletClass="liBullet",nodeLinkClass="bullet",preProcessTrees=true;
function Tree(b,c,d,e,f,g,l,k,m,h){this.father=b;this.name=e;this.myHeight=f;this.myWidth=g;this.h=l;this.v=k;this.mySignal=c;this.myChecknum=d;this.myClickTree=m;this.mySync=h;this.widgetType="Tree";var j=this;this._listOnClick=function(p){j.listOnClick(p)};if(b=document.getElementById(this.father)){c=document.createElement("ul");c.setAttribute("id",this.name);c.className="mktree";c.style.position="absolute";c.style.top=this.v+"px";c.style.left=this.h+"px";c.style.height=this.myHeight+"px";c.style.width=
this.myWidth+"px";b.appendChild(c);this.setLBody(c)}}Tree.prototype.setLBody=function(b){this.lBody=b;if(typeof b.addEventListener!="undefined")b.addEventListener("click",this._listOnClick,false);else if(typeof b.attachEvent!="undefined")b.attachEvent("onclick",this._listOnClick);else b.onclick=this._listOnClick};
Tree.prototype.getValue=function(){if(this.lastClick){var b=this.lastClick,c="";if(b.tagName!="SPAN"){c=b.innerHTML;c=c=c.replace(/^<[^>]+>[^>]+>/i,"")}b=b.parentNode;for(var d="";b.tagName=="UL"||b.tagName=="LI"||b.tagName=="SPAN";){if(b.tagName=="LI")if(b.childNodes.item(0).innerHTML){d=b.childNodes.item(0).innerHTML;d=d.substr(0,6)!="&nbsp;"?d.substr(1):d.substring(6,d.length);c=d+"/"+c}b=b.parentNode}return c}return false};
Tree.prototype.listOnClick=function(b){var c=b.target||b.srcElement;this.selectItem(c);b=this.getValue();if(this.myClickTree==1){c=c.tagName=="LI"?c.id.substring(6,c.id.length):c.parentNode.id.substring(6,c.parentNode.id.length);b!==false&&sendMsg(this.myChecknum,this.mySignal,eval(this.mySync)+eyeParam("itemName",c))}};
Tree.prototype.selectItem=function(b){if(b.tagName!="LI"&&b.tagName!="SPAN")return true;if(b.parentNode.className=="liBullet")b=b.parentNode;if(this.lastClick)this.lastClick.style.backgroundColor="";this.lastClick=b;b.style.backgroundColor=""};
function expandCollapseList(b,c,d){if(!b.childNodes||b.childNodes.length===0)return false;for(var e=0;e<b.childNodes.length;e++){var f=b.childNodes[e];if(d&&f.id==d)return true;if(f.nodeName=="LI"){for(var g=false,l=0,k=0;k<f.childNodes.length;k++){var m=f.childNodes[k];if(m.nodeName=="UL"){if(m.childNodes.length>0)l=m.childNodes.length;g=true;m=expandCollapseList(m,c,d);if(d&&m){f.className=c;xGetElementById("background").style.border="0px solid";return true}}else if(m.nodeName=="LI")l=1}if(l&&g&&
!d){f.className=c;xGetElementById("background").style.border="0px solid"}}}}function expandToItem(b,c){b=document.getElementById(b);if(!b)return false;expandCollapseList(b,nodeOpenClass,c)}function selectTreeItem(b,c){var d=document.getElementById(c);if(!d)return false;if(d.className=="liOpen"||d.className=="liClosed")for(var e=0;e<d.childNodes.length;e++)if(d.childNodes[e].tagName=="SPAN")break;expandToItem(b,c);eval("tree_"+b+".selectItem(item)")}
function addSubList(b,c){b=document.getElementById(b);var d=document.createElement("ul");d.setAttribute("id",c);b.appendChild(d)}function addItem(b,c,d){b=document.getElementById(b);var e=document.createElement("li");e.setAttribute("id",c);e.innerHTML=d;b.appendChild(e)}function removeItem(b){b=document.getElementById(b);if(!b)return false;b.parentNode.removeChild(b)}function expandTree(b){b=document.getElementById(b);if(!b)return false;expandCollapseList(b,nodeOpenClass)}
function collapseTree(b){b=document.getElementById(b);if(!b)return false;expandCollapseList(b,nodeClosedClass)}
function processList(b){if(!(!b.childNodes||b.childNodes.length===0))for(var c=0;c<b.childNodes.length;c++){var d=b.childNodes[c];if(d.nodeName=="LI"){for(var e=false,f=0;f<d.childNodes.length;f++){var g=d.childNodes[f];if(g.nodeName=="UL"){e=true;processList(g)}}f=document.createElement("SPAN");g="\u00a0";f.className=nodeLinkClass;if(e){if(!d.className||d.className==="")d.className=nodeClosedClass;if(d.firstChild.nodeName=="#text"){g+=d.firstChild.nodeValue;d.removeChild(d.firstChild)}f.onclick=
function(){this.parentNode.className=this.parentNode.className==nodeOpenClass?nodeClosedClass:nodeOpenClass;return false}}else{d.className=nodeBulletClass;f.onclick=function(){return false}}f.appendChild(document.createTextNode(g));d.insertBefore(f,d.firstChild)}}}
function SimpleMenu_show(b,c,d,e,f,g,l,k,m){b=b.mFather;d=document.getElementById(d);if(!d)return false;e=document.createElement("div");e.setAttribute("id",c);e.widgetType="SimpleMenu";e.className="eyeContextMenu";e.style.display="none";e.style.position=IEversion&&IEversion<7?"absolute":"fixed";e.style.zIndex=9E6;b?document.getElementById(b).appendChild(e):d.appendChild(e);EventHandler.Add("mousedown",c,'hideSimpleMenu("'+c+'");',true)}
function addSimpleMenuEntry(b,c,d,e,f,g,l){var k=document.getElementById(b);if(!k)return false;var m=document.createElement("div");m.setAttribute("id",d);m.className="eyeContextMenuEntry";m.innerHTML=c;m.onclick=function(){sendMsg(f,e,g);hideSimpleMenu(b)};k.appendChild(m);fixPNG(l)}function hideContextMenu(b){if(document.getElementById(b))document.getElementById(b).style.display="none"}
function showContextMenu(b,c){lastMenu!==""&&hideContextMenu(lastMenu);lastMenu=c;var d=b.pageX;b=b.pageY;c=document.getElementById(c);c.style.display="block";var e=xWidth(c),f=xWidth("eyeApps"),g=xLeft("eyeApps");if(d<g+5)d=g+5;if(d>g+f-e-5){d=g+f-e-5;if(d<0)d=0}e=xHeight(c);f=xHeight("eyeApps");g=xTop("eyeApps");if(b<g+5)b=g+5;if(b>g+f-e-5){b=g+f-e-5;if(b<0)b=0}if(IEversion&&IEversion<7){d-=xPageX(c.parentNode);b-=xPageY(c.parentNode)}c.style.left=d+"px";c.style.top=b+"px"}
function ContextMenu_show(b,c,d,e,f,g,l,k,m){var h=b.sFather;b=b.mFather;e=document.getElementById(d);if(!e)return false;f=document.createElement("div");f.setAttribute("id",c);f.className="eyeContextMenu";f.widgetType="ContextMenu";f.style.display="none";f.style.position=IEversion&&IEversion<7?"absolute":"fixed";f.style.zIndex=9E6;b?document.getElementById(b).appendChild(f):e.appendChild(f);e.oncontextmenu=function(j){j=new xEvent(j);if(j.target.id==d||j.target.parentNode.id==d&&h==1){showContextMenu(j,
c);return false}};e.onmousemove=function(j){if(eyeKeyDown==17){j=new xEvent(j);if(j.target.id==d||j.target.parentNode.id==d&&h==1){showContextMenu(j,c);eyeKeyDown=0;return false}}};EventHandler.Add("mousedown",c,'hideContextMenu("'+c+'");',true)}
function addContextEntry(b,c,d,e,f,g,l){var k=document.getElementById(b);if(!k)return false;var m=document.createElement("div");m.setAttribute("id",d);m.className="eyeContextMenuEntry";m.innerHTML=c;m.onclick=function(){sendMsg(f,e,g);hideContextMenu(b)};k.appendChild(m);IEversion&&IEversion<7&&fixPNG(l)}
function Applet_show(b,c,d,e,f,g,l,k,m){k=b.height;var h=b.width,j=b.codebase,p=b.visible,n=getArrayArg(b.appletParamsNames);b=getArrayArg(b.appletParamsValues);var o,t;if(!IEversion||IEversion>8){o=document.createElement("embed");o.setAttribute("type","application/x-java-applet");o.setAttribute("width",h);o.setAttribute("height",k);o.setAttribute("id",c);for(t in n)o.setAttribute(n[t],b[t])}else{o=document.createElement("object");o.setAttribute("width",h);o.setAttribute("height",k);o.setAttribute("id",
c);for(t in n){var q=document.createElement("param");q.setAttribute("name",n[t]);q.setAttribute("value",b[t]);o.appendChild(q)}}j&&o.setAttribute("codebase",j);createWidget(c+"_Container",d,o,g,l,e,f,h,k,"eyeApplet",m,"px",p,"Applet")}
function Split_show(b,c,d,e,f,g,l,k,m){var h=b.height,j=b.width,p=parseInt(b.orientation,10),n=b.position,o=b.visible,t=b.sigResize,q=document.createElement("div");q.className="eyeSplit";q.setAttribute("id",c+"_split");q.style.position="absolute";q.style.display=o==1?"block":"none";q.style.width=j+"px";q.style.height=h+"px";var u=document.createElement("div");u.className="eyeSplitPanel";u.setAttribute("id",c+"_first");u.style.position="absolute";var v=document.createElement("div");v.className="eyeSplitPanel";
v.setAttribute("id",c+"_last");v.style.position="absolute";b=document.createElement("div");b.className="eyeSplitter";b.setAttribute("id",c+"_splitter");b.style.position="absolute";if(p==1){b.className="eyeSplitter_vertical";u.style.height=h+"px";u.style.left="0px";u.style.top="0px";v.style.height=h+"px";v.style.right="0px";v.style.top="0px";b.style.height=h+"px";b.style.top="0px";b.style.cursor="w-resize";var A=j-3;b.style.left=n+"px";u.style.width=A-(A-n)+"px";v.style.width=A-n-1+"px"}else{b.className=
"eyeSplitter_horizontal";u.style.width=j+"px";u.style.top="0px";u.style.left="0px";v.style.width=j+"px";v.style.bottom="0px";v.style.left="0px";b.style.width=j+"px";b.style.left="0px";b.style.zIndex="1";b.style.cursor="s-resize";var s=h-3;b.style.top=n+"px";u.style.height=s-(s-n)+"px";v.style.height=s-n-1+"px"}q.appendChild(u);q.appendChild(v);q.appendChild(b);xEnableDrag2(b,function(x,B,C,w){u.style.display="none";v.style.display="none"},null,function(x,B,C,w){B=x.style.top;B=parseInt(B.substring(0,
B.length-2),10);x=x.style.left;x=parseInt(x.substring(0,x.length-2),10);if(p==1){n=x;A=q.style.width;A=parseInt(A.substring(0,A.length-2),10)-3;u.style.width=A-(A-n)+"px";v.style.width=A-n-1+"px";sendMsg(k,t,eyeParam("arg",A-(A-n))+eyeParam("arg",A-n))}else{n=B;s=q.style.height;s=parseInt(s.substring(0,s.length-2),10)-3;u.style.height=s-(s-n)+"px";v.style.height=s-n-1+"px";sendMsg(k,t,eyeParam("arg",s-(s-n))+eyeParam("arg",s-n))}u.style.display="block";v.style.display="block"},q);createWidget(c+"_Container",
d,q,g,l,e,f,-1,-1,"eyeSplitContainer",m,"px",o)}
function splitter_setPosition(b,c,d,e,f){c=parseInt(c,10);var g=document.getElementById(b+"_split"),l=document.getElementById(b+"_first"),k=document.getElementById(b+"_last");b=document.getElementById(b+"_splitter");if(d==1){b.style.left=c+"px";totalWidth=g.style.width;totalWidth=parseInt(totalWidth.substring(0,totalWidth.length-2),10)-3;l.style.width=totalWidth-(totalWidth-c)+"px";k.style.width=totalWidth-c-1+"px";sendMsg(e,f,eyeParam("arg",totalWidth-(totalWidth-c))+eyeParam("arg",totalWidth-c))}else{b.style.top=
c+"px";totalHeight=g.style.height;totalHeight=parseInt(totalHeight.substring(0,totalHeight.length-2),10)-3;l.style.height=totalHeight-(totalHeight-c)+"px";k.style.height=totalHeight-c-1+"px";sendMsg(e,f,eyeParam("arg",totalHeight-(totalHeight-c))+eyeParam("arg",totalHeight-c))}}function increaseWidth(b,c){b=document.getElementById(b);var d=b.style.width;d=parseInt(d.substring(0,d.length-2),10);b.style.width=d+c+"px"}
function increaseHeight(b,c){b=document.getElementById(b);var d=b.style.height;d=parseInt(d.substring(0,d.length-2),10);b.style.height=d+c+"px"};
