/* Copyright (C) Innoetics Ltd. All rights reserved. */if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b){var a=this.length;var c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c<a;c++){if(c in this&&this[c]===b){return c}}return -1}}function i0(c,a,d,b){if(typeof c=="string"){c=document.getElementById(c)}if(c.addEventListener){c.addEventListener(a,d,b)}else{if(c.attachEvent){c.attachEvent("on"+a,d)}}}function e13(){return(typeof kw=="undefined"||kw.length<=0||typeof kv=="undefined"||kv.length<=0)}function n1(b){if(e13()){return false}var g=[];var d=b.match("^\\s+");if(d==null){d=""}var f=b.match("\\s+$");if(f==null){f=""}b=b.replace(/^\s+|\s+$/g,"");var c=kw.indexOf(b);if(c>=0){var a=kv[c];if(a){for(c=0;c<a.length;c++){if(a[c]>=0&&a[c]<kw.length){g[g.length]=d+kw[a[c]]+f}}}}return g}function t14(a){try{return Sys.UI.DomElement.getBounds(a)}catch(b){return false}}function i15(c){try{if(typeof c=="undefined"||c==null){c="divTipMsg"}var b=document.getElementById(c);if(b!=null){b.style.display="none";b.outerHTML=""}}catch(a){}}function c16(d,i,e,j,b){try{if(typeof b=="undefined"||b==null){b="divTipMsg"}var a=document.getElementById(b);var h=t14(d);if(typeof a=="undefined"||a==null){a=document.createElement("div");a.id=b;a.style.width=h.width+"px";a.innerHTML='<span align = "left" style="color:#ffffff; margin:3px">'+e+"</span>";if(i.length>0){document.getElementById(i).appendChild(a)}else{document.body.appendChild(a)}}else{a.innerHTML='<span align = "left" style="color:#ffffff; margin:3px">'+e+"</span>";a.style.display=""}var g=t14(a);if(h&&g){var f=a.style;f.left=(h.x)+"px";f.top=(h.y+h.height-g.height)+"px";f.background="#CF4342";f.position="absolute";setTimeout("i15('"+b+"')",j)}else{i15(b)}}catch(c){}}var n2=function(){this.n10=null;this.n11=null;this.s17=null};n2.prototype={init:function(b,a){this.o12=null;this.s17=a;this.e4(b);if(!e13()){c16(this.n10,this.s17,unescape("%u0394%u03B9%u03C0%u03BB%u03CC%20click%20%u03C3%u03B5%20%u03BC%u03AF%u03B1%20%u03BB%u03AD%u03BE%u03B7%20%u03B3%u03B9%u03B1%20%u03B5%u03BD%u03B1%u03BB%u03BB%u03B1%u03BA%u03C4%u03B9%u03BA%u03AD%u03C2%20..."),2000)}},o3:function(b){if(!this.n11){return}if(!b){b=window.event}var a,c;if(window.opera){a=b.clientX;c=b.clientY}else{if(document.all){a=document.body.scrollLeft+event.clientX;c=document.body.scrollTop+event.clientY}else{if(document.layers||document.getElementById){a=b.pageX;c=b.pageY}}}this.n11.style.top=c+"px";this.n11.style.left=a+"px"},e4:function(a){var c=this;if(!a){return false}else{if(typeof a=="string"){a=document.getElementById(a)}}if(a){this.n10=a;this.n10.ondblclick=function(d){c.t5(d);return false};var b=function(){c.i6()};i0(document,"click",b,true);i0(document,"keydown",b,true)}},t5:function(c){var d=this.s8();if(d){var a=n1(d);if(a&&a.length>0){this.n11=this.c7(a);this.o3(c);var b=null;if(this.s17.length>0){b=document.getElementById(this.s17)}if(b==null){b=document.body}b.appendChild(this.n11)}else{d=d.replace(/^\s+|\s+$/g,"");if(d.length>0&&!e13()){c16(this.n10,this.s17,unescape("%u039A%u03B1%u03BC%u03AF%u03B1%20%u03B5%u03BD%u03B1%u03BB%u03BB%u03B1%u03BA%u03C4%u03B9%u03BA%u03AE%20%u03B3%u03B9%u03B1%20")+"'"+d+"'",1000)}}}},i6:function(){if(this.n11){this.n11.style.display="none";this.n11.outerHTML="";this.n11=null}},c7:function(a){var f=this;var d=document.createElement("div");var e=d.style;if(f.width){e.width=f.width+"px"}if(f.height){e.height=f.height+"px"}e.border="1px solid gray";e.background="#FFFFFF";e.color="#000000";e.position="absolute";e.display="block";e.padding="2px";e.cursor="default";for(var b=0;b<a.length;b++){var c=this.createItem(a[b]);d.appendChild(c)}return d},createItem:function(b){var c=this;var a=document.createElement("div");a.style.padding="4px";i0(a,"click",function(d){return function(){c.i9(b);c.i6()}}(b),true);i0(a,"mouseover",function(d){a.style.background="#B6BDD2"},true);i0(a,"mouseout",function(d){a.style.background="#FFFFFF"},true);a.appendChild(document.createTextNode(b));return a},s8:function(){if(this.n10==null){return false}this.o12=null;if(typeof this.n10.selectionStart=="number"){this.o12=[];this.o12.start=this.n10.selectionStart;this.o12.end=this.n10.selectionEnd;return this.n10.value.substring(this.o12.start,this.o12.end)}else{if(document.selection){this.n10.focus();var a=document.selection.createRange();if(a.parentElement()!=this.n10){return false}if(typeof a.text=="string"){this.o12=a;return a.text}}}return false},i9:function(a){if(this.o12==null||this.n10==null){return}if(typeof this.o12.start=="number"){this.n10.value=this.n10.value.substring(0,this.o12.start)+a+this.n10.value.substring(this.o12.end,this.n10.value.length)}else{this.o12.text=a}}};var cf=new n2();