if(!("console" in window)){window.console={log:function(a){},warn:function(a){},info:function(a){},debug:function(a){},clear:function(a){},error:function(a){}}}var gCheck=new Check();function L(k,pluginName){var obl;if(!pluginName){if(typeof(Elang)==="undefined"){Elang={}}try{obl=Elang}catch(e){return k}}else{try{eval("if (typeof("+pluginName+'Lang) === "undefined") { '+pluginName+"Elang = {}; } obl = "+pluginName+"Lang;")}catch(e){return k}}if(typeof(obl)==="undefined"||typeof(obl[k])==="undefined"){return k}return obl[k]}function enjoy(){}function well(){return false}function g(a){return document.getElementById(a)}function toPx(a){return a+"px"}function formatBytes(d,c,h,e){d=parseInt(d);c=(undefined===c||0>c)?2:c;h=undefined===h?" ":h;var a=["B","KB","MB","GB","TB","PB"];var b=a.length;for(var f=0;f0){return Math.ceil(d)+h+a[f]}else{if(e<0){return Math.floor(d)+h+a[f]}else{return d.toFixed(c)+h+a[f]}}}function htmlSpecialChars(b,a){b=String(b).replace(/&/g,"&").replace(//g,">");switch(a){case"ENT_QUOTES":b=b.replace(/"/g,""").replace(/'/g,"'");break;case"ENT_NOQUOTES":break;case"ENT_COMPAT":default:b=b.replace(/"/g,""");break}return b}function toDate(a,j){if(undefined===j){var o=new Date()}else{var o=new Date(j*1000)}var d=String(a).split("");var m={D:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x:[L("Sunday_c"),L("Monday_c"),L("Tuesday_c"),L("Wednesday_c"),L("Thursday_c"),L("Friday_c"),L("Saturday_c")],l:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],S:["st","nd","rd","th"],M:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F:["January","February","March","April","May","June","July","August","September","October","November","December"],a:["am","pm"],A:["AM","PM"]};var c=o.getDate();var f=o.getDay();var e=o.getFullYear();var n=o.getMonth();var r=o.getHours();var q=o.getMinutes();var l=o.getSeconds();var b="";var h="";for(var k=0;kc?("0"+c):c;break;case"D":h=m.D[f];break;case"x":h=m.x[f];break;case"j":h=c;break;case"N":h=0===f?7:f;break;case"S":h=(0c)?m.S[c-1]:m.S[3];break;case"w":h=f;break;case"F":h=m.F[n];break;case"m":h=10>(n+1)?("0"+(n+1)):(n+1);break;case"M":h=m.M[n];break;case"n":h=n+1;break;case"Y":h=e;break;case"y":h=String(e).substr(2);break;case"a":h=12>r?m.a[0]:m.a[1];break;case"A":h=12>r?m.A[0]:m.A[1];break;case"g":h=12>r?r:r-12;h=0===r?12:r;break;case"G":h=r;break;case"h":h=12>r?r:r-12;h=10>h?("0"+h):h;h="00"===h?"12":h;break;case"H":h=10>r?("0"+r):r;break;case"i":h=10>q?("0"+q):q;break;case"s":h=10>l?("0"+l):l;break;default:}b=b+h}return b}function formatDate(a,e,j){if(e===undefined){timeObj=new Date()}else{timeObj=new Date(e*1000)}nowObj=new Date(a*1000);nowObj=new Date(nowObj.getFullYear(),nowObj.getMonth(),nowObj.getDate(),23,59,59,999);var c=0;var d=["getFullYear","getMonth","getDate"];var b=d.length;for(var f=0;fa)?1:a}function varExport(c,d){var b="";if(typeof(d)==="undefined"){d=0}var e="";for(var a=0;a "+varExport(c[p],d)+"\n"}b+=e+"}\n"}else{if(typeof(c)==="string"){b+="("+typeof(c)+')"'+c+'"'}else{b+="("+typeof(c)+")"+c}}return b}function sprintf(){var a=arguments;var d=arguments.length;if(d===0){return""}var c=a[0]+"";if(d===1){return a[0]}for(var b=1;b"+y+""}}});if(h){var q=self.document.createElement("SPAN");q.innerHTML=v;k.replaceChild(q,m)}}}}}$.each(d,function(){a(this,b,e)})}function getObjectKeys(c,e,a){var d=[];if("undefined"===typeof a){var a=false}for(var b in c){if("undefined"!==typeof e){if(false===a){if(e==c[b]){d.push(b);break}}else{if(e===c[b]){d.push(b);break}}}else{d.push(b)}}return d}function getObjectValues(b){var c=[];for(var a in b){c.push(b[a])}return c}function nl2br(a){return a.replace(/\n|\r\n/g,"
")}function forceWrap2(h,c){if("undefined"===typeof c){var c=5}if(/MSIE 6.0/ig.test(window.navigator.userAgent)){var b="";var j=""}else{var b="​";var j="​"}var k="",a=0,f="";while(true){var f=h.substr(a,c);if(""==f){break}k+=f+b;a+=c}var e=new RegExp("(&\\w*)("+j+")(\\w*;)","ig");f=k.replace(e,"$1$3$2");e=new RegExp("(&(#|\\d)*)("+j+")((#|\\d)*;)","ig");var d=f.replace(e,"$1$4$3");return d}function convertHtmlWrap(a){return forceWrap2(htmlSpecialChars(a))}function _setTimeout(c,a){var b=[];for(i=2;i-1}function showTips(a,l,d,f,r,o){if(d===undefined){d="emtips"}if(f===undefined){f="empos"}if(r===undefined){r=["success","error"]}o=!!o;function j(t,s){var k=s.parentNode;if(k.lastChild==s){k.appendChild(t)}else{k.insertBefore(t,s.nextSibling)}}var m={};var c,b,q,n,h;for(var e=0;e=48&&k<=57){d.push(k)}else{if(k>=65&&k<=90){c.push(k)}else{if(k>=97&&k<=122){h.push(k)}else{e.push(k)}}}b[k]=true}}var l=0;if(d.length>0){l++}if(h.length>0){l++}if(h.length>2){l++}if(c.length>0){l++}if(c.length>2){l++}if(e.length>0){l++}if(e.length>2){l+=2}if(l>4){l=4}return l}function linkAble(c){var k=["https","ftp","http"];var a=new RegExp("("+k.join("|")+"):\\/\\/[^<>\\s\\'\"]+","ig");var b=function(q,m,s){if(document.createRange){var v=document.createRange();v.setStart(q,m);v.setEnd(q,s);var y=v.extractContents();var o=document.createElement("a");o.innerHTML=y.childNodes[0].nodeValue;o.href=y.childNodes[0].nodeValue;o.target="_blank";v.insertNode(o);return[q]}else{var v=document.selection.createRange();var n=document.createElement("span");var x=q.parentNode;var r=q.cloneNode();r.nodeValue="\x01"+r.nodeValue+"\x01";n.appendChild(r);f(x);x.replaceChild(n,q);v.moveToElementText(n);v.moveStart("character",m+1);v.collapse();v.moveEnd("character",s-m+1);v.pasteHTML(''+v.text+"");var w=[];var u;for(var t=0;t0){var f=navigator.plugins["Shockwave Flash"];if(f){a=1;var j=f.description.split(" ");for(var d=0;d0?c:false}function getDeviceType(){var d=window.navigator.userAgent.toLowerCase();var b=["ipad","iphone","android","mobile","symbian","midp","series"];for(var a=0;a2){return 3}else{return a+1}}}var c=/msie (\d+\.\d+)/.test(d)?(document.documentMode||+RegExp["$1"]):undefined;if(c&&c-0<8){return -1}return 0}var changeDevice=function(c,b,a){a=a?a:"/";self.location.href=a+"mobile/?q=change&type="+c+"&module="+b};var bind=function(d,c,b,a){a=!!a;if(a){var e=b}else{var e=function(h){if(d.disabled){if(document.all){h.returnValue=false;h.cancelBubble=true}else{h.preventDefault();h.stopPropagation()}return}var f=b.apply(d,[h]);if(f===false){if(document.all){h.returnValue=false;h.cancelBubble=true}else{h.preventDefault();h.stopPropagation()}}}}if(document.all){d.attachEvent("on"+c,e)}else{d.addEventListener(c,e,false)}return d};function uniqueArr(a){var d={},c=[];for(var b=0;bb||this.ccUserNameLenMaxc||64b||this.ccDomainNameLenMaxd||255,.?\/\]\'\\]*$/;return b.test(c)};this.checkUserPasswordLocal=function(c){var b=String(c).length;if(this.ccUserPassLenMin>b||this.ccUserPassLenMaxb||this.ccMlistPassLenMaxb||this.ccDomainPassLenMaxb||this.ccAdminPassLenMax'}else{e=''}if(1'}else{j=''}if(this.__currentPage'}else{m=''}if(this.__currentPage'}else{c=''}b="";l=[e,j,m,c];f=[];for(d=0;d ');var b="";for(var d=1;d<=this.__numPage;d++){if(d==this.__currentPage){b=" selected"}else{b=""}c.push("")}c.push(" "+L("page"));return c.join("")}}function Index(){var a=this;this.__index={};this.getIndex=function(e){var d,c,f,b;e="array"===getType(e)?e:[];c=this.__index;b=e.length;for(d=0;de.length){return true}b=e.length;c=e.slice(0,b-1);d=e[b-1];indexOp=this.getIndex(c);if(0==getCount(indexOp)){return true}delete indexOp[d];return true};this.addIndex=function(h,c){var f,d,e;if("undefined"===typeof c||"array"!==getType(h)){return true}f=this.__index;var b=h.length;for(d=0;d=document.body.offsetWidth+T){window.scrollBy(10,0)}}if(H<=O){window.scrollBy(0,-10)}else{if(E>=document.body.offsetHeight+O){window.scrollBy(0,10)}}if(typeof x==="function"){x(V,z)}var P=v.length;var Z=false;var G=B;C=null;B=null;for(var S=0;SM[0])&&(R[0]<(M[0]+W))&&(R[1]>M[1])&&(R[1]<(M[1]+I))){Z=true;C=N;B=S;if(typeof q==="function"){q(V,C,z)}}if(S===G&&B!==G){if(typeof r==="function"){r(V,N,z)}}}return false};this.mouseUp=function(E){b=false;c=false;if(!z||!y){return}if(typeof w==="function"){w(E,C)}if(C!==null){if(typeof l==="function"){l(E,C,z)}if(typeof r==="function"){r(E,C,z)}}if(D!=="self"){z.parentNode.removeChild(z)}z=null;C=null;B=-1};this.setDragable=function(E,F){if(!E){return}if(typeof F==="string"&&document.getElementById(F)){F=document.getElementById(F)}else{if(typeof F!=="object"){F=E}}f.push([E,F]);F.onmousedown=function(G){if(!y){return}G=G||window.event;m=k.getMousePosition(G);j=E;c=false;b=true;if(document.all){G.cancelBubble=true}else{G.preventDefault()}return false}};this.unsetDragable=function(E,F){if(!E){return}if(typeof F==="string"&&document.getElementById(F)){F=document.getElementById(F)}else{if(typeof F!=="object"){F=E}}F.onmousedown=null};this.getMouseOffset=function(H,G){G=G||window.event;var F=this.getPosition(H);var E=k.getMousePosition(G);return[E[0]-F[0],E[1]-F[1]]};this.init=function(F){if(F.container){if(typeof F.container==="string"){if(!document.getElementById(F.container)){n=document.body}else{n=document.getElementById(F.container)}}else{if(typeof F.container==="object"){n=F.container}}}else{n=document.body}if(typeof(F.target)==="object"&&F.target.length){var H=F.target;var E=H.length;for(var G=0;G0){e=F.distance}if(document.attachEvent){n.attachEvent("onmousemove",this.mouseMove);n.attachEvent("onmouseup",this.mouseUp)}else{n.addEventListener("mousemove",this.mouseMove,false);n.addEventListener("mouseup",this.mouseUp,false)}this.setEnabled(true)};this.addDropTarget=function(E){v.push(E)};this.setEnabled=function(E){y=!!E};this.destroy=function(){if(document.detachEvent){n.detachEvent("onmousemove",this.mouseMove);n.detachEvent("onmouseup",this.mouseUp)}else{n.removeEventListener("mousemove",this.mouseMove,false);n.removeEventListener("mouseup",this.mouseUp,false)}var E;while(E=f.shift()){this.unsetDragable(E[0],E[1])}this.setEnabled(false)}}function emEditor(){var a;this._=null;this.create=function(d,c,b){if(a){return}a=CKEDITOR.appendTo(d,b);this._=a;if(c){a.setData(c)}};this.replace=function(b){if(a){a.destroy()}a=CKEDITOR.replace(b)};this.setData=function(b){if(!a){return}return a.setData(b)};this.insertHtml=function(b){if(!a){return}return a.insertHtml(b)};this.onComplete=function(b){a.on("instanceReady",function(c){b(c.editor)})};this.insertText=function(b){if(!a){return}return a.insertText(b)};this.resetDirty=function(){if(!a){return}return a.resetDirty()};this.checkDirty=function(){if(!a){return null}return a.checkDirty()};this.execCommand=function(c,b){if(!a){return}return a.execCommand(c,b)};this.openDialog=function(b){if(!a){return}return a.openDialog(b)};this.focus=function(){if(!a){return}return a.focus()};this.getEditorDocument=function(){if(!a){return null}return a.document};this.getSelection=function(){if(!a){return null}return a.getSelection()};this.getData=function(){if(!a){return null}return a.getData()};this.getConfig=function(){if(!a){return null}return a.config};this.getMode=function(){if(!a){return null}return a.mode};this.getName=function(){if(!a){return null}return a.name};this.remove=function(){if(!a){return}var b=a.getData();a.destroy();a=null;return b};this.trigger=function(b){if(!a){return}a.fire(b)};this.on=function(c,b){a.on(c,b)};this.removeListener=function(c,b){a.removeListener(c,b)};this.onApi=function(c,b){CKEDITOR.on(c,b)};this.setHookDialog=function(){CKEDITOR.on("dialogDefinition",function(c){var d=c.data.name;var e=c.data.definition;if(d=="link"){e.removeContents("target");e.removeContents("advanced")}if(d=="image"){var b=e.getContents("info");b.remove("txtBorder");b.remove("txtHSpace");b.remove("txtVSpace");b.remove("cmbAlign");b.remove("txtAlt")}})}}function PopWindow(h){var d=h.pnode;var f=h.boxShadow===undefined?true:h.boxShadow;this.width=200;this.height=100;this.left=0;this.top=0;this.window=null;this.document=null;var a=!!h.isResize;var c=false;var b=null;this.$=null;this.$$=null;var e=this;this.getPosition=function(k){var j=0;var l=0;if(k.getBoundingClientRect){if(k.tagName==="BODY"){return[0,0]}try{var m=k.getBoundingClientRect();return[m.left+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft),m.top+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)]}catch(k){var j=0;var l=0;while(k.offsetParent){j+=k.offsetLeft;l+=k.offsetTop;k=k.offsetParent}j+=k.offsetLeft;l+=k.offsetTop;return[j,l]}}while(k.offsetParent){j+=k.offsetLeft;l+=k.offsetTop;k=k.offsetParent}j+=k.offsetLeft;l+=k.offsetTop;return[j,l]};this.create=function(j){if(j===undefined){j=document.body}else{if(typeof(j)==="string"){j=document.getElementById(j)}}b=document.createElement("IFRAME");b.src="javascript:void(0);";if(h.allowTransparency){b.allowTransparency=true}b.frameBorder="0";b.scrolling="no";b.style.position="absolute";b.style.zIndex=999999999;if(a){e.$=document.createElement("div");e.$$=document.createElement("div");e.$.style.zIndex=999999998;e.$$.style.zIndex=999999999+1;e.$.style.position="absolute";e.$$.style.position="absolute";e.$.style.left="-1000px";e.$.style.top="-1px";e.$.tabIndex=100;if(f){e.$.style.boxShadow="0 1px 3px rgba(0,0,0,.3)"}b.width=b.height="100%";e.$$.style.width=e.$$.style.height="100%";e.$$.style.left="0px";e.$$.style.top="0px";e.$$.style.display="none";b.style.left="0px";b.style.top="0px";e.$.appendChild(b);e.$.appendChild(e.$$);j.appendChild(e.$)}else{b.width=b.height=0;b.style.left="-1px";b.style.top="-1px";if(f){b.style.boxShadow="0 1px 3px rgba(0,0,0,.3)"}j.appendChild(b)}var k="";if(navigator.userAgent.toLowerCase().indexOf(" applewebkit/")>-1){k=''}e.window=b.contentWindow;e.document=e.window.document;var l=e.document;l.open();l.write(""+k+'');l.close();if(document.addEventListener){l.addEventListener("contextmenu",function(m){if(m){m.preventDefault()}},false);e.window.addEventListener("blur",function(){e.hide()},false)}else{if(a){b.attachEvent("onblur",function(){e.timer=setTimeout(function(){e.hide()},100)});e.$.attachEvent("onfocus",function(){clearTimeout(e.timer)});e.$.attachEvent("onblur",function(){e.timer=setTimeout(function(){e.hide()},100)});e.$.attachEvent("onmousedown",function(){e.$.focus()});b.attachEvent("onfocus",function(){clearTimeout(e.timer)})}else{b.attachEvent("onblur",function(){e.hide()})}e.document.attachEvent("oncontextmenu",function(m){return false})}};this.setHtml=function(j){var k=this.document;k.body.innerHTML=j};this.update=function(j,x,r,s){s=!!s;if(r===undefined){r=document.body}this.left=j===undefined?this.left:j;this.top=x===undefined?this.top:x;var q=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);var m=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);var o=this.getPosition(r);var u,n,k=this.left,v=this.top;u=e.document.body.scrollWidth;n=e.document.body.scrollHeight;setTimeout(function(){var z=[u,n];if(s){var t=m;var y=document.body.clientHeight+m;var l=q;var w=q+document.body.clientWidth;if(o[0]+kw){k=w-u-o[0]}}if(o[1]+vy){v=y-n-o[1]}}}if(a){e.$.style.left=k+o[0]+"px";e.$.style.top=v+o[1]+"px"}else{b.style.left=k+o[0]+"px";b.style.top=v+o[1]+"px"}},0)};this.show=function(k,z,j,x,s,u){this.resetIframe();u=!!u;if(s===undefined){s=document.body}this.left=k===undefined?this.left:k;this.top=z===undefined?this.top:z;this.width=j===undefined?this.width:j;this.height=x===undefined?this.height:x;var r=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);var n=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);var q=this.getPosition(s);var v=this.width,o=this.height,m=this.left,y=this.top;setTimeout(function(){if(e.width==="auto"){v=e.document.body.scrollWidth}if(e.height==="auto"){o=e.document.body.scrollHeight}var B=[v,o];if(v>0&&o>0){if(typeof(h.beforeShow)==="function"){B=h.beforeShow(B,e.window);if(false===B){return}v=B[0];o=B[1]}}if(v>0&&o>0){c=true}else{c=false}if(u){var t=n;var A=document.body.clientHeight+n;var l=r;var w=r+document.body.clientWidth;if(q[0]+mw){m=w-v-q[0]}}if(q[1]+yA){y=A-o-q[1]}}}if(a){e.$.style.width=B[0]+"px";e.$.style.height=B[1]+"px";e.$.style.left=m+q[0]+"px";e.$.style.top=y+q[1]+"px"}else{b.style.width=B[0]+"px";b.style.height=B[1]+"px";b.style.left=m+q[0]+"px";b.style.top=y+q[1]+"px"}e.window.focus();if(v>0&&o>0){if(typeof(h.afterShow)==="function"){h.afterShow(e.window)}}},0)};this.hide=function(){c=false;if(a){e.$.style.width=0;e.$.style.height=0;e.$.style.left="-1000px"}else{b.style.width=0;b.style.height=0}if(typeof(h.afterHide)==="function"){h.afterHide(e.window)}};this.resetIframe=function(){if(a){e.$.style.width="1px";e.$.style.height="1px"}else{b.style.width="1px";b.style.height="1px"}};this.isOpen=function(){return c};this.destory=function(){b.parentNode.removeChild(b);if(a){e.$$.parentNode.removeChild(e.$$);e.$.parentNode.removeChild(e.$)}this.window=null;this.document=null};this.resizeStart=function(){if(!a){return}e.$$.style.display=""};this.resizeEnd=function(){if(!a){return}e.$$.style.display="none"};this.create(d)}function EmMenu(){function a(l){var e=null;var h=[];var d=[];var c;var f={items:[],appendTo:document.body,dockPos:4,dockElem:null,cssLink:"",strict:false,triggerElem:null,beforeShow:null,afterShow:null,beforeHide:null,afterHide:null,minWidth:null,minHeight:null};for(var k in f){if(l[k]){f[k]=l[k]}}var j=this;this.getPosition=function(n){var m=0;var o=0;while(n.offsetParent){m+=n.offsetLeft;o+=n.offsetTop;n=n.offsetParent}m+=n.offsetLeft;o+=n.offsetTop;return[m,o]};this.getMousePosition=function(m){if(m.pageX||m.pageY){return[m.pageX,m.pageY]}else{return[m.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft),m.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)]}};this.create=function(){e=new PopWindow({pnode:f.appendTo,boxShadow:false,beforeShow:function(B,y){var z=f.minWidth===null?(f.dockElem!==null?f.dockElem.offsetWidth:null):f.minWidth;var A=f.minHeight;var C=y.document;if(B[0]"}else{if(x.isDisabled){t=w.createElement("DIV");if(x.isChecked){u=w.createElement("STRONG");u.innerHTML="√";t.appendChild(u)}else{r=w.createElement("B");r.innerHTML=" ";t.appendChild(r);if(x.icon&&x.icon.length===2){r.className=x.icon[1]}}v=w.createElement("SPAN");if(x.caption===undefined){v.innerHTML=""}else{v.innerHTML=x.caption.substr(0,1).toUpperCase()+x.caption.substr(1)}t.appendChild(v);if(x.title!==undefined){t.title=x.title}m.appendChild(t)}else{t=w.createElement("A");t.href="javascript:void(0);";if(document.all){t.hideFocus=true}if(x.isChecked){u=w.createElement("STRONG");u.innerHTML="√";t.appendChild(u)}else{r=w.createElement("B");r.innerHTML=" ";t.appendChild(r);if(x.icon&&x.icon.length===2){r.className=x.icon[0]}}v=w.createElement("SPAN");if(x.caption===undefined){v.innerHTML=""}else{v.innerHTML=x.caption.substr(0,1).toUpperCase()+x.caption.substr(1)}t.appendChild(v);if(x.title!==undefined){t.title=x.title}m.appendChild(t);if(typeof(x.click)==="function"){if(document.all){t.attachEvent("onclick",(function(y){return function(){j.hide();y.click.apply(y,[j].concat(y.params))}})(x))}else{t.addEventListener("click",(function(y){return function(){j.hide();y.click.apply(y,[j].concat(y.params))}})(x),false)}}if(typeof(x.mouseover)==="function"){if(document.all){t.attachEvent("onmouseover",(function(y){return function(){y.mouseover.apply(y,[j].concat(y.params))}})(x))}else{t.addEventListener("mouseover",(function(y){return function(){y.mouseover.apply(y,[j].concat(y.params))}})(x),false)}}if(typeof(x.mouseout)==="function"){if(document.all){t.attachEvent("onmouseout",(function(y){return function(){y.mouseout.apply(y,[j].concat(y.params))}})(x))}else{t.addEventListener("mouseout",(function(y){return function(){y.mouseout.apply(y,[j].concat(y.params))}})(x),false)}}if(typeof(x.mousemove)==="function"){if(document.all){t.attachEvent("onmousemove",(function(y){return function(z){y.mousemove.apply(y,[j,z].concat(y.params))}})(x))}else{t.addEventListener("mousemove",(function(y){return function(z){y.mousemove.apply(y,[j,z].concat(y.params))}})(x),false)}}}}}w.body.appendChild(c);if(document.all){e.document.attachEvent("onkeydown",function(y){return false})}else{e.document.addEventListener("keydown",function(y){if(y){y.preventDefault()}},true)}};this.show=function(r){if(!e){return}if(typeof(f.beforeShow)==="function"){if(false===f.beforeShow(r,j)){return}}if(f.dockElem===null){var s=j.getMousePosition(r);e.show(s[0],s[1],"auto","auto",document.body,f.strict)}else{var n,o;var m=e.document.getElementById("tb").scrollWidth;var q=e.document.getElementById("tb").scrollHeight;switch(f.dockPos){case 1:n=0;o=0-q;break;case 2:n=f.dockElem.offsetWidth-m;o=0-q;break;case 3:n=f.dockElem.offsetWidth-m;o=f.dockElem.offsetHeight;break;default:n=0;o=f.dockElem.offsetHeight}e.show(n,o,"auto","auto",f.dockElem,f.strict)}if(typeof(f.afterShow)==="function"){f.afterShow(r,j)}};this.hide=function(){if(!e){return}if(typeof(f.beforeHide)==="function"){f.beforeHide(null,j)}e.hide();var m=g("__focus_frame");if(!m){m=document.createElement("IFRAME");m.src="javascript:void(0);";m.frameBorder="0";m.width=m.height=0;document.body.appendChild(m)}m.contentWindow.focus()};this.setItem=function(q,z){var m=this.getItem(q);var y=e.document;if(false===m){var A=z;var s=c.insertRow(-1);var n=s.insertCell(-1);d.push(A);h.push(s)}else{var A=m[0];var s=c.insertRow(q);var n=s.insertCell(-1);m[1].parentNode.removeChild(m[1]);if(typeof(A)==="string"||typeof(z)==="string"){A=z}else{var r=["title","caption","isDisabled","click","isChecked","params","mouseover","mouseout","mousemove"];var x;for(var o=0;o"}else{if(A.isDisabled){u=y.createElement("DIV");if(A.isChecked){v=y.createElement("STRONG");v.innerHTML="√";u.appendChild(v)}else{t=y.createElement("B");t.innerHTML=" ";u.appendChild(t);if(A.icon&&A.icon.length===2){t.className=A.icon[1]}}w=y.createElement("SPAN");if(A.caption===undefined){w.innerHTML=""}else{w.innerHTML=A.caption.substr(0,1).toUpperCase()+A.caption.substr(1)}u.appendChild(w);if(A.title!==undefined){u.title=A.title}n.appendChild(u)}else{u=y.createElement("A");u.href="javascript:void(0);";if(document.all){u.hideFocus=true}if(A.isChecked){v=y.createElement("STRONG");v.innerHTML="√";u.appendChild(v)}else{t=y.createElement("B");t.innerHTML=" ";u.appendChild(t);if(A.icon&&A.icon.length===2){t.className=A.icon[0]}}w=y.createElement("SPAN");if(A.caption===undefined){w.innerHTML=""}else{w.innerHTML=A.caption.substr(0,1).toUpperCase()+A.caption.substr(1)}u.appendChild(w);if(A.title!==undefined){u.title=A.title}n.appendChild(u);if(typeof(A.click)==="function"){if(document.all){u.attachEvent("onclick",(function(B){return function(){j.hide();B.click.apply(B,[j].concat(B.params))}})(A))}else{u.addEventListener("click",(function(B){return function(){j.hide();B.click.apply(B,[j].concat(B.params))}})(A),false)}}if(typeof(A.mouseover)==="function"){if(document.all){u.attachEvent("onmouseover",(function(B){return function(){B.mouseover.apply(B,[j].concat(B.params))}})(A))}else{u.addEventListener("mouseover",(function(B){return function(){B.mouseover.apply(B,[j].concat(B.params))}})(A),false)}}if(typeof(A.mouseout)==="function"){if(document.all){u.attachEvent("onmouseout",(function(B){return function(){B.mouseout.apply(B,[j].concat(B.params))}})(A))}else{u.addEventListener("mouseout",(function(B){return function(){B.mouseout.apply(B,[j].concat(B.params))}})(A),false)}}if(typeof(A.mousemove)==="function"){if(document.all){u.attachEvent("onmousemove",(function(B){return function(C){B.mousemove.apply(B,[j,C].concat(B.params))}})(A))}else{u.addEventListener("mousemove",(function(B){return function(C){B.mousemove.apply(B,[j,C].concat(B.params))}})(A),false)}}}}if(-1==q){return d.length-1}else{return q}};this.getItem=function(m){if(typeof(d[m])==="undefined"){return false}return[d[m],h[m]]};this.delItem=function(o){var m=this.getItem(o);if(false===m){return}var r=m[1];r.parentNode.removeChild(r);var s=[],n=[];for(var q=0;q
';for(var p in options.params){div+=''}div+="
";_div=document.createElement("div");_div.innerHTML=div;if(options.container){if(typeof(options.container)==="string"){container=document.getElementById(options.container)}else{container=options.container}}else{container=document.body}if(container.tagName==="TABLE"){container.rows[0].cells[0].appendChild(_div)}else{container.appendChild(_div)}div=_div.childNodes[0];div.style.zIndex=9999999999;f=div.getElementsByTagName("form")[0];ipt=f[options.postName],ipt2=f.APC_UPLOAD_PROGRESS;if(options.place){if(typeof(options.place)==="string"){var node=document.getElementById(options.place)}else{var node=options.place}bind(node,"mousemove",function(e){var isFF=$.browser.mozilla;var pos=getPosition(node);var l=0,t=0;var position=$(container).css("position");if(position==="absolute"||position==="relative"||position==="fixed"){var pos1=getPosition(container);l=pos1[0];t=pos1[1]}if(e.clientX-20pos[0]+1+node.offsetWidth){div.style.left=pos[0]+1-l+node.offsetWidth-40+"px"}else{div.style.left=e.clientX-20-l+"px"}}if(e.clientY-10pos[1]+1+node.offsetHeight){div.style.top=pos[1]+1-t+node.offsetHeight-20+"px"}else{div.style.top=e.clientY-10-t+"px"}}});node.style.cursor="default";bind(div,"mouseover",function(e){node.style.textDecoration="underline"});bind(div,"mouseout",function(e){node.style.textDecoration="none";div.style.left="-1000px"})}this.addPostParam=function(k,v){var ipts=f.getElementsByTagName("input");var find=false;for(var i=0;i')}catch(e){var ipt=document.createElement("input");ipt.type="hidden";ipt.name=k}}else{var ipt=document.createElement("input");ipt.type="hidden";ipt.name=k}ipt.value=v;f.appendChild(ipt)}options.params[k]=v};this.setPostParams=function(params){var ipts=f.getElementsByTagName("input");for(var i=0;i')}catch(e){var ipt=document.createElement("input");ipt.type="hidden";ipt.name=p}}else{var ipt=document.createElement("input");ipt.type="hidden";ipt.name=p}ipt.value=params[p];f.appendChild(ipt);options.params[p]=params[p]}};this.reset=function(){f.reset();var fileName="";bind(ipt,"click",function(){if(typeof(options.beforeSelect)==="function"){return options.beforeSelect.apply(ipt,[])}});ipt.onchange=function(){var _uploadKey=options.prefix+""+(new Date()).getTime()+"_"+Math.random();_uploadKey=_uploadKey.replace(/\./g,"_");fileName=ipt.value.lastIndexOf("\\")>-1?ipt.value.substr(ipt.value.lastIndexOf("\\")+1):(ipt.value.lastIndexOf("/")>-1?ipt.value.substr(ipt.value.lastIndexOf("/")+1):ipt.value);fileQueue[_uploadKey]=true;if(typeof(options.onStart)==="function"){if(false===options.onStart.apply(__this,[_uploadKey,fileName])){delete fileQueue[_uploadKey];__this._stop(_uploadKey);__this.reset();return}}if(uploadKey){__this._stop(uploadKey)}var uploadKey2=_uploadKey;uploadKey=uploadKey2;if(resumeUpload){var files=ipt.files;if(files.length>0){var file=files[0];file.id=uploadKey;fileQueue[uploadKey]=file;resumeUpload.uploadFile(file)}__this.reset();return}ipt2.value=uploadKey2;f.setAttribute("action",options.url+(options.url.indexOf("?")>-1?"&":"?")+"X-Progress-Id="+encodeURIComponent(uploadKey2));if(document.all){try{var frm=document.createElement('