window._dUnixtime_Start=new Date();var CONSTANTS=function(){var CONSTANTS_EN={DBFIELD_Unknown:0,DBFIELD_Integer:1,DBFIELD_String:2,DBFIELD_Date:3,DOMHANDLER_FADE_EFFECT_NAME:"Fading",DOMHANDLER_SHIFT_EFFECT_NAME:"Shifting",DOMHANDLER_DEFAULT_FADE_TIME:20,DOMHANDLER_DEFAULT_FADE_STEP_TIME:5,DOMHANDLER_DEFAULT_FADE_STEP_VALUE:5,DOMHANDLER_DEFAULT_SHIFT_TIME:20,DOMHANDLER_DEFAULT_SHIFT_STEP_TIME:5,DOMHANDLER_DEFAULT_SHIFT_STEP_VALUE:1,DOMHANDLER_SCROLLMOVE_TIME:50,DOMHANDLER_DEFAULT_TOPMOST_ZINDEX:1000,DOMHANDLER_DEGREE_IN_RAD:0,pDOMComponent__onclick_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onclick) is disabled.",pDOMComponent__onsubmit_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onsubmit) is disabled.",pDOMComponent__onfocus_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onfocus) is disabled.",pDOMComponent__onblur_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onblur) is disabled.",pDOMComponent__onkeyup_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onkeyup) is disabled.",pDOMComponent__onmouseover_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onmouseover) is disabled.",pDOMComponent__onchange_HTML_ELEMENT_IS_DISABLED:"The HTML document element (DOM id: %s, JSO name: %s, onchange) is disabled.",pDOMComponent_link_COMPONENT_ALREADY_IS_LINKED:"The component object (name: '%s') is already linked to the HTML DOM object.",pDOMComponent_link_COMPONENT_IS_NOT_LINKED:"The component object (name: '%s') is not linked to the HTML DOM object.",DOUBLE_CLICK_SPEED:200,aEventNames:[],sLOG_PANEL_DIV_ID:"LogPanel_Area_div",sLOG_TEXTAREA_ID:"LogDisplay_TextArea",LOG_TYPE_GENERAL:2,LOG_TYPE_DEBUG_INFO:4,LOG_LEVEL_GENERAL:3,LOG_LEVEL_DEBUG_INFO:5,LOG_TEXT_DIRECTION:"up",bIS_NETSCAPE:null};return CONSTANTS_EN;}();if(navigator.appName=="Netscape")CONSTANTS.bIS_NETSCAPE=true;else CONSTANTS.bIS_NETSCAPE=false;CONSTANTS.aEventNames=new Array("onclick","onsubmit","onkeyup","onmouseover","onfocus","onblur");var LOG_MODE=1|CONSTANTS.LOG_TYPE_GENERAL|CONSTANTS.LOG_TYPE_DEBUG_INFO;oBase={sBrowser:"",bNetscape:false,bIE:false,_getIDString:function()
{return"3G_Base object.";},init:function()
{this.sBrowser=navigator.appName;if(this.sBrowser=="Netscape")this.bNetscape=true;else this.bNetscape=false;if(this.sBrowser.search(/microsoft/i)<0)this.bIE=false;else this.bIE=true;}};oBase.init();Function.prototype.extend=function(sParentProtoFuncName,oExtends)
{var _fCreateProtoObject=new Function(" return new p"+sParentProtoFuncName+";");this.prototype=_fCreateProtoObject();this._parent_prototype_=window["p"+sParentProtoFuncName].prototype;for(var sProperty in oExtends)
{this.prototype[sProperty]=oExtends[sProperty];}
var _sName=window["o"+sParentProtoFuncName].sName;for(var _sGlobalName in window)
{if(window[_sGlobalName]==this)
{this.prototype["__"+_sGlobalName+"_parent__"]=new Function("return o"+sParentProtoFuncName+";");return;}}}
function _sprintf()
{if(!arguments||arguments.length<1||!RegExp)
{return;}
var str=arguments[0];var re=/([^%]*)%('.|0|\x20)?(-)?(\d+)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/;var a=b=[],numSubstitutions=0,numMatches=0;while(a=re.exec(str))
{var leftpart=a[1],pPad=a[2],pJustify=a[3],pMinLength=a[4];var pPrecision=a[5],pType=a[6],rightPart=a[7];numMatches++;if(pType=='%')
{subst='%';}
else
{numSubstitutions++;if(numSubstitutions>=arguments.length)
{alert('Error! Not enough function arguments ('+(arguments.length-1)+', excluding the string)\nfor the number of substitution parameters in string ('+numSubstitutions+' so far).');}
var param=arguments[numSubstitutions];var pad='';if(pPad&&pPad.substr(0,1)=="'")pad=leftpart.substr(1,1);else if(pPad)pad=pPad;var justifyRight=true;if(pJustify&&pJustify==="-")justifyRight=false;var minLength=-1;if(pMinLength)minLength=parseInt(pMinLength);var precision=-1;if(pPrecision&&pType=='f')precision=parseInt(pPrecision.substring(1));var subst=param;if(pType=='b')subst=parseInt(param).toString(2);else if(pType=='c')subst=String.fromCharCode(parseInt(param));else if(pType=='d')subst=parseInt(param)?parseInt(param):0;else if(pType=='u')subst=Math.abs(param);else if(pType=='f')subst=(precision>-1)?Math.round(parseFloat(param)*Math.pow(10,precision))/Math.pow(10,precision):parseFloat(param);else if(pType=='o')subst=parseInt(param).toString(8);else if(pType=='s')subst=param;else if(pType=='x')subst=(''+parseInt(param).toString(16)).toLowerCase();else if(pType=='X')subst=(''+parseInt(param).toString(16)).toUpperCase();}
str=leftpart+subst+rightPart;}
return str;}
function sprintf(fstring)
{var pad=function(str,ch,len)
{var ps='';for(var i=0;i<Math.abs(len);i++)ps+=ch;return len>0?str+ps:ps+str;}
var processFlags=function(flags,width,rs,arg)
{var pn=function(flags,arg,rs)
{if(arg>=0)
{if(flags.indexOf(' ')>=0)rs=' '+rs;else if(flags.indexOf('+')>=0)rs='+'+rs;}
else
rs='-'+rs;return rs;}
var iWidth=parseInt(width,10);if(width.charAt(0)=='0')
{var ec=0;if(flags.indexOf(' ')>=0||flags.indexOf('+')>=0)ec++;if(rs.length<(iWidth-ec))rs=pad(rs,'0',rs.length-(iWidth-ec));return pn(flags,arg,rs);}
rs=pn(flags,arg,rs);if(rs.length<iWidth)
{if(flags.indexOf('-')<0)rs=pad(rs,' ',rs.length-iWidth);else rs=pad(rs,' ',iWidth-rs.length);}
return rs;}
var converters=new Array();converters['c']=function(flags,width,precision,arg)
{if(typeof(arg)=='number')return String.fromCharCode(arg);if(typeof(arg)=='string')return arg.charAt(0);return'';}
converters['d']=function(flags,width,precision,arg)
{return converters['i'](flags,width,precision,arg);}
converters['u']=function(flags,width,precision,arg)
{return converters['i'](flags,width,precision,Math.abs(arg));}
converters['i']=function(flags,width,precision,arg)
{var iPrecision=parseInt(precision);var rs=((Math.abs(arg)).toString().split('.'))[0];if(rs.length<iPrecision)rs=pad(rs,' ',iPrecision-rs.length);return processFlags(flags,width,rs,arg);}
converters['E']=function(flags,width,precision,arg)
{return(converters['e'](flags,width,precision,arg)).toUpperCase();}
converters['e']=function(flags,width,precision,arg)
{iPrecision=parseInt(precision);if(isNaN(iPrecision))iPrecision=6;rs=(Math.abs(arg)).toExponential(iPrecision);if(rs.indexOf('.')<0&&flags.indexOf('#')>=0)rs=rs.replace(/^(.*)(e.*)$/,'$1.$2');return processFlags(flags,width,rs,arg);}
converters['f']=function(flags,width,precision,arg)
{iPrecision=parseInt(precision);if(isNaN(iPrecision))iPrecision=6;rs=(Math.abs(arg)).toFixed(iPrecision);if(rs.indexOf('.')<0&&flags.indexOf('#')>=0)rs=rs+'.';return processFlags(flags,width,rs,arg);}
converters['G']=function(flags,width,precision,arg)
{return(converters['g'](flags,width,precision,arg)).toUpperCase();}
converters['g']=function(flags,width,precision,arg)
{iPrecision=parseInt(precision);absArg=Math.abs(arg);rse=absArg.toExponential();rsf=absArg.toFixed(6);if(!isNaN(iPrecision))
{rsep=absArg.toExponential(iPrecision);rse=rsep.length<rse.length?rsep:rse;rsfp=absArg.toFixed(iPrecision);rsf=rsfp.length<rsf.length?rsfp:rsf;}
if(rse.indexOf('.')<0&&flags.indexOf('#')>=0)rse=rse.replace(/^(.*)(e.*)$/,'$1.$2');if(rsf.indexOf('.')<0&&flags.indexOf('#')>=0)rsf=rsf+'.';rs=rse.length<rsf.length?rse:rsf;return processFlags(flags,width,rs,arg);}
converters['o']=function(flags,width,precision,arg)
{var iPrecision=parseInt(precision);var rs=Math.round(Math.abs(arg)).toString(8);if(rs.length<iPrecision)rs=pad(rs,' ',iPrecision-rs.length);if(flags.indexOf('#')>=0)rs='0'+rs;return processFlags(flags,width,rs,arg);}
converters['X']=function(flags,width,precision,arg)
{return(converters['x'](flags,width,precision,arg)).toUpperCase();}
converters['x']=function(flags,width,precision,arg)
{var iPrecision=parseInt(precision);arg=Math.abs(arg);var rs=Math.round(arg).toString(16);if(rs.length<iPrecision)rs=pad(rs,' ',iPrecision-rs.length);if(flags.indexOf('#')>=0)rs='0x'+rs;return processFlags(flags,width,rs,arg);}
converters['s']=function(flags,width,precision,arg)
{var iPrecision=parseInt(precision);var rs=arg;if(rs.length>iPrecision)rs=rs.substring(0,iPrecision);return processFlags(flags,width,rs,0);}
farr=fstring.split('%');retstr=farr[0];fpRE=/^([-+ #]*)(\d*)\.?(\d*)([cdieEfFgGosuxX])(.*)$/;for(var i=1;i<farr.length;i++)
{fps=fpRE.exec(farr[i]);if(!fps)continue;if(arguments[i]!=null)retstr+=converters[fps[4]](fps[1],fps[2],fps[3],arguments[i]);retstr+=fps[5];}
return retstr;}
var oUTF8={encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;},decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}}
function hexStr(decimal)
{var hexchars="0123456789ABCDEFabcdef";return"%"+hexchars.charAt(decimal>>4)+hexchars.charAt(decimal&0xF);};function urlencode(str){var ret='',unreserved=/[\w.-]/;str=(str+'').toString();for(var i=0,dl=str.length;i<dl;i++){var ch=str.charAt(i);if(unreserved.test(ch)){ret+=ch;}
else{var code=str.charCodeAt(i);if(0xD800<=code&&code<=0xDBFF){ret+=((code-0xD800)*0x400)+(str.charCodeAt(i+1)-0xDC00)+0x10000;i++;}
else if(code===32){ret+='+';}
else if(code<128){ret=ret+hexStr(code);}
else if(code>=128&&code<2048){ret+=hexStr((code>>6)|0xC0);ret+=hexStr((code&0x3F)|0x80);}
else if(code>=2048){ret+=hexStr((code>>12)|0xE0);ret+=hexStr(((code>>6)&0x3F)|0x80);ret+=hexStr((code&0x3F)|0x80);}}}
return ret;}
if(!Array.prototype.remove){Array.prototype.remove=function(idx){this.splice(idx,1);}};if(!Array.prototype.mergesort){Array.prototype.mergesort=function(fCompare,oScope){var _fMerge=function(_aL,_aR,oScope){var _aRes=[];while((_aL.length>0)&&(_aR.length>0))
if(fCompare.call(oScope,_aL[0],_aR[0]))_aRes.push(_aL.shift());else _aRes.push(_aR.shift());_aRes=_aRes.concat(_aL,_aR);return _aRes;};if(!oScope)oScope=window;if(this.length<2)return this;var _iHalf=Math.ceil(this.length/2);return _fMerge(this.slice(0,_iHalf).mergesort(fCompare,oScope),this.slice(_iHalf).mergesort(fCompare,oScope),oScope);};};if(!Date.prototype.Clock){Date.prototype.Clock=function(){hour=this.getHours();minute=this.getMinutes();second=this.getSeconds();temp=((hour<10)?"0"+hour:hour);temp+=((minute<10)?":0":":")+minute;temp+=((second<10)?":0":":")+second;return temp;}};function instanceOf(object,constructor){while(object!=null){if(object==constructor.prototype)
return true;object=object.__proto__;}
return false;};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(eName){this._a_idx=-1;if(this.length>0){this._a_i=0;while((this._a_i<this.length)&&(this._a_idx<0)){if(this[this._a_i]==eName)this._a_idx=this._a_i;this._a_i++;}}
return this._a_idx;}};String.prototype.parseJSON=function(filter){var j;if(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(this.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,''))){j=eval('('+this+')');return j;}
throw new SyntaxError('parseJSON');};sha={hex_chr:"0123456789abcdef",hex:function(num)
{var str="";for(var j=7;j>=0;j--)str+=this.hex_chr.charAt((num>>(j*4))&0x0F);return str;},str2blks_SHA1:function(str)
{var nblk=((str.length+8)>>6)+1;var blks=new Array(nblk*16);for(var i=0;i<nblk*16;i++)blks[i]=0;for(i=0;i<str.length;i++)
blks[i>>2]|=str.charCodeAt(i)<<(24-(i%4)*8);blks[i>>2]|=0x80<<(24-(i%4)*8);blks[nblk*16-1]=str.length*8;return blks;},add:function(x,y)
{var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);},rol:function(num,cnt)
{return(num<<cnt)|(num>>>(32-cnt));},ft:function(t,b,c,d)
{if(t<20)return(b&c)|((~b)&d);if(t<40)return b^c^d;if(t<60)return(b&c)|(b&d)|(c&d);return b^c^d;},kt:function(t)
{return(t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514;},calcSHA1:function(str)
{var x=this.str2blks_SHA1(str);var w=new Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16)
{var olda=a;var oldb=b;var oldc=c;var oldd=d;var olde=e;for(var j=0;j<80;j++)
{if(j<16)w[j]=x[i+j];else w[j]=this.rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);t=this.add(this.add(this.rol(a,5),this.ft(j,b,c,d)),this.add(this.add(e,w[j]),this.kt(j)));e=d;d=c;c=this.rol(b,30);b=a;a=t;}
a=this.add(a,olda);b=this.add(b,oldb);c=this.add(c,oldc);d=this.add(d,oldd);e=this.add(e,olde);}
return this.hex(a)+this.hex(b)+this.hex(c)+this.hex(d)+this.hex(e);}};if(!this.JSON){this.JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x26\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}
if(typeof JSON.isJSON!=='function'){JSON.isJSON=function(text){if(typeof(text)!='string')return false;var str=text.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,'');return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);};}}());sLogBuffer=[];function syLog(sTxt,iMode)
{if((typeof iMode!="number")||((iMode<1)||(iMode>65535)))var _iMode=CONSTANTS.LOG_LEVEL_GENERAL;else var _iMode=iMode;if((_iMode&LOG_MODE)>0)
{if(typeof jso_LogHandler!="undefined")
{for(i=0;i<sLogBuffer.length;i++)
jso_LogHandler.addLine(sLogBuffer[i]);sLogBuffer=[];jso_LogHandler.addLine(sTxt);}
else
{sLogBuffer.push(sTxt);}}};function syLogf()
{if(arguments.length<1)return;if(arguments.length>2)iMode=arguments[arguments.length-1];if((typeof iMode!="number")||((typeof iMode=="number")&&((iMode<1)||(iMode>65535))))iMode=CONSTANTS.LOG_TYPE_GENERAL;sTxt=sprintf.apply(window,arguments);syLog(sTxt,iMode);};function debug(txt)
{syLog(txt,CONSTANTS.LOG_TYPE_GENERAL);}
function setCookie(sCookieName,mValue,iExpireDays)
{var _dExpdate=new Date();_dExpdate.setDate(_dExpdate.getDate()+iExpireDays);document.cookie=sCookieName+"="+escape(mValue)+((iExpireDays==null)?"":";expires="+_dExpdate.toUTCString());}
function getCookie(sCookieName)
{if(document.cookie.length>0)
{var _iStart=document.cookie.indexOf(sCookieName+"=");if(_iStart!=-1)
{_iStart=_iStart+sCookieName.length+1;var _iEnd=document.cookie.indexOf(";",_iStart);if(_iEnd==-1)_iEnd=document.cookie.length;return unescape(document.cookie.substring(_iStart,_iEnd));}}
return null;}
function deleteCookie(sCookieName)
{if(getCookie(sCookieName))
document.cookie=sCookieName+"=0"+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}
function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)
elements.push($(arguments[i]));return elements;}
return document.getElementById(element);}
window._getPageXOffset=function()
{var _scrOfX=0;if(typeof(window.pageXOffset)=='number')
scrOfX=window.pageXOffset;else if(document.body&&(document.body.scrollLeft))
scrOfX=document.body.scrollLeft;else if(document.documentElement&&(document.documentElement.scrollLeft))
scrOfX=document.documentElement.scrollLeft;return _scrOfX;},window._getPageYOffset=function()
{var _scrOfY=0;if(typeof(window.pageYOffset)=='number')
_scrOfY=window.pageYOffset;else if(document.body&&(document.body.scrollTop))
_scrOfY=document.body.scrollTop;else if(document.documentElement&&(document.documentElement.scrollTop))
_scrOfY=document.documentElement.scrollTop;return _scrOfY;},window._getWindowHeight=function()
{if(typeof(window.innerHeight)=='number')
return window.innerHeight;else if(document.documentElement&&(document.documentElement.clientHeight))
return document.documentElement.clientHeight;else if(document.body&&(document.body.clientHeight))
return document.body.clientHeight;return screen.height;},window._getWindowWidth=function()
{if(typeof(window.innerWidth)=='number')
return window.innerWidth;else if(document.documentElement&&(document.documentElement.clientWidth))
return document.documentElement.clientWidth;else if(document.body&&(document.body.clientWidth))
return document.body.clientWidth;return screen.width;},window._setCenter=function(oDOMBox)
{if((oDOMBox)&&(oDOMBox.style))
{oDOMBox._iX=this._getPageXOffset()+((this._getWindowWidth()-oDOMBox.clientWidth)/2);oDOMBox._iY=this._getPageYOffset()+((this._getWindowHeight()-oDOMBox.clientHeight)/2);oDOMBox.style.left=oDOMBox._iX+"px";oDOMBox.style.top=oDOMBox._iY+"px";}}
function PriorityQueue(fnCompare){this._items=new Array();if(typeof fnCompare=="function"){this._compare=fnCompare;}}
PriorityQueue.prototype={_compare:function(oValue1,oValue2){if(oValue1<oValue2){return-1;}else if(oValue1>oValue2){return 1;}else{return 0;}},get:function(){return this._items.shift();},item:function(iIndex){return this._items[iIndex];},peek:function(){return this._items[0];},prioritize:function(){this._items.sort(this._compare);},put:function(oValue){this._items.push(oValue);this.prioritize();},remove:function(oValue){for(var i=0;i<this._items.length;i++){if(this._items[i]===oValue){this._items.splice(i,1);return true;}}
return false;},size:function(){return this._items.length;}};var RequestManager=function(){var oManager={AGE_LIMIT:60000,DEFAULT_PRIORITY:10,INTERVAL:100,_active:new Array(),_pending:new PriorityQueue(function(oRequest1,oRequest2){return oRequest1.priority-oRequest2.priority;}),_bTimerStatus:false,_agePromote:function(){for(var i=0;i<this._pending.size();i++){var oRequest=this._pending.item(i);oRequest.age+=this.INTERVAL;if(oRequest.age>=this.AGE_LIMIT){oRequest.age=0;oRequest.priority--;}}
this._pending.prioritize();},_checkActiveRequests:function(){var oRequest=null;var oTransport=null;for(var i=this._active.length-1;i>=0;i--){oRequest=this._active[i];oTransport=oRequest.transport;if(oTransport.readyState==4){oRequest.active=false;this._active.splice(i,1);var fnCallback=null;if(oTransport.status>=200&&oTransport.status<300){if(typeof oRequest.onsuccess=="function"){fnCallback=oRequest.onsuccess;}}else if(oTransport.status==304){if(typeof oRequest.onnotmodified=="function"){fnCallback=oRequest.onnotmodified;}}else{if(typeof oRequest.onfailure=="function"){fnCallback=oRequest.onfailure;}}
if(fnCallback!=null){setTimeout((function(fnCallback,oRequest,oTransport){return function(){fnCallback.call(oRequest.scope||window,{status:oTransport.status,data:oTransport.responseText,request:oRequest});}})(fnCallback,oRequest,oTransport),1);}}}},_createTransport:function(){if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest();}else if(typeof ActiveXObject!="undefined"){var http=null;try{http=new ActiveXObject("Msxml2.XMLHTTP.6.0");return http;}catch(ex){try{http=new ActiveXObject("Msxml2.XMLHTTP.3.0");return http;}catch(ex2){try{http=new ActiveXObjct("Microsoft.XMLHTTP");return http;}catch(ex3){throw Error("Cannot create XMLHttp object.");}}}}},_sendNext:function(){if(this._active.length<2){var oRequest=this._pending.get();if(oRequest!=null){this._active.push(oRequest);oRequest.transport=this._createTransport();if(oRequest.type=="POST")
{oRequest.transport.open("POST",oRequest.url,true);oRequest.transport.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");oRequest.transport.setRequestHeader("Call-type","ajax");oRequest.transport.send(oRequest.data);}
else
{oRequest.transport.open("GET",oRequest.url+"?"+oRequest.data,true);oRequest.transport.send();}
oRequest.active=true;}}
if((this._active.length>0)&&(!this._bTimerStatus))
this._setTimer();},_doTimerFunction:function(){this._checkActiveRequests();this._sendNext();this._agePromote();},_setTimer:function(){setTimeout(function(){syLog("waiting for server response...");RequestManager.clearTimerStatus();RequestManager._doTimerFunction();},this.INTERVAL);this._bTimerStatus=true;},hasXHR:function()
{try
{http=this._createTransport();return true;}
catch(ex3)
{return false;}},getTimerStatus:function()
{return this._bTimerStatus;},clearTimerStatus:function()
{this._bTimerStatus=false;},cancel:function(oRequest){if(!this._pending.remove(oRequest)){oRequest.transport.abort();if(this._active[0]===oRequest){this._active.shift();}else if(this._active[1]===oRequest){this._active.pop();}
if(typeof oRequest.oncancel=="function"){oRequest.oncancel.call(oRequest.scope||window,{request:oRequest});}}},poll:function(oRequest){oRequest.priority=3;this.send(oRequest);},prefetch:function(oRequest){oRequest.priority=5;this.send(oRequest);},send:function(oRequest){if(typeof oRequest.priority!="number"){oRequest.priority=this.DEFAULT_PRIORITY;}
oRequest.active=false;oRequest.age=0;this._pending.put(oRequest);this._doTimerFunction();if(!this._bTimerStatus)
this._setTimer();},submit:function(oRequest){oRequest.priority=0;this.send(oRequest);},submitPart:function(oRequest){oRequest.priority=2;this.send(oRequest);}};return oManager;}();function makeoRequest(oScope,iPri,sURL,sData)
{return{priority:iPri,type:"POST",url:sURL,data:sData,oncancel:function(){},onsuccess:function(oResponse){var result="";if(oResponse.data)
{result=oResponse.data.replace(/[\n\r]/g,"");alert(result);if(result.substr(0,1)=="{")
{respondObject=result.parseJSON(function(key,value){return key.indexOf('date')>=0?new Date(value):value;});if((typeof respondObject=='object')&&(respondObject.hasOwnProperty("results")))
{if((respondObject.results)&&(respondObject.results.hasOwnProperty("length")))
{for(rOx=0;rOx<respondObject.results.length;rOx++)
{resultObject=respondObject.results[rOx];if((resultObject)&&(resultObject.type))
{switch(resultObject.type)
{case"STR":if(resultObject.name)
var _fResSTR=new Function(resultObject.name+".onStringData(resultObject.str)");_fResSTR();break;case"JSC":var _fResJSC=new Function(resultObject.jsC);_fResJSC();break;case"SQL":if(resultObject.name)
var _fResSQL=new Function(resultObject.name+".onServerData(resultObject.rows)");_fResSQL();break;default:this.xhrcallback(resultObject);break;}}}}}
else
alert("AJAX unknown object: "+respondObject+" "+typeof respondObject);}
else
{alert("AJAX error, unknown answer: "+result);}}
else
alert("AJAX error: No HTTP response text!");},onnotmodified:function(){},onfailure:function(){},scope:oScope};};var oMeta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var ComponentCommMgr=function(){var oCCManager={_aReqs:new Array(),_bPageLoaded:false,_bTimerStatus:false,_comNum:0,_iMinVersion:101,_processReadyState:function(oResponse)
{if(!oResponse.data)
throw Error("AJAX error: No HTTP response text!");_aResult=oResponse.data.replace(/[\n\r]/g,"").split("#@#@#",2);var _sLogLine="server response: ";if(_aResult[0].length>0)
{if(_aResult[0]==String.fromCharCode(239)+String.fromCharCode(187)+String.fromCharCode(191))_sLogLine+="(BOM-8) ";else if(_aResult[0]==String.fromCharCode(254)+String.fromCharCode(255))_sLogLine+="(BOM-16) ";else _sLogLine+="(Invalid characters, "+_aResult[0].length+", "+JSON.stringify(_aResult[0])+") ";}
syLog(_sLogLine+_aResult[1],CONSTANTS.LOG_LEVEL_DEBUG_INFO);if(!((typeof(JSON.isJSON)=="function")&&(JSON.isJSON(_aResult[1]))))
throw Error("AJAX error, unknown answer (not a JSON string): "+result);respondObject=JSON.parse(_aResult[1]);if(!((typeof respondObject=='object')&&(respondObject.aResults)))
throw Error("AJAX unknown object: "+respondObject+" "+typeof respondObject);if(respondObject.sMsg.length>0)
alert(respondObject.sMsg);if(respondObject.v<this._iMinVersion)
throw Error("AJAX version error: server gave V"+respondObject.v+" but javascript expected minimum V"+this._iMinVersion);for(rOx=0;rOx<respondObject.aResults.length;rOx++)
{if((respondObject.aResults[rOx])&&(respondObject.aResults[rOx].cn))
{var oTObj=window[respondObject.aResults[rOx].cn];if(typeof oTObj==="object")
{_sDName=respondObject.aResults[rOx].dn;oTObj.setComponentUserData(respondObject.aResults[rOx].ud);syLog(oTObj.sName+" has received server data "+_sDName,CONSTANTS.LOG_LEVEL_DEBUG_INFO);if(!(typeof _sDName==="string"))
_sDName="data";oTObj[_sDName]=respondObject.aResults[rOx].cd;oTObj.preprocessServerData(_sDName);}
else
syLog("Target JSO Object doesn't exists!");}
else
syLog("Unknown AJAX respond data structure has arrived from the server.");}},_make_oRequest:function(oScope,iPri,sURL,sData)
{return{priority:iPri,type:"POST",url:sURL,data:sData,oncancel:function(){},onsuccess:ComponentCommMgr._processReadyState,onnotmodified:function(){if(typeof jso_LogHandler=="object")jso_LogHandler.addLine("Answer from server: Not modified.");},onfailure:ComponentCommMgr._onCommunicationFailure,scope:oScope};},_onCommunicationFailure:function(oData)
{if(typeof jso_LogHandler=="object")
jso_LogHandler.addLine("Communication failure with server, notifying the caller module(s).");oRequest=JSON.parse(oData.request.data.substr(3))[0];if(!((typeof oRequest=='object')&&(oRequest.data)))
throw Error("AJAX unknown request object.");var oTObj=null;for(var _sX in oRequest.data)
if((oRequest.data[_sX].cn)&&(typeof jso_LogHandler=="object")&&(oTObj=window[oRequest.data[_sX].cn])&&(oTObj.onServerError))
oTObj.onServerError(oRequest.data[_sX].mn);},rEscapable:/[\x00-\x1f\x26\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_quote:function(sTxt)
{this.rEscapable.lastIndex=0;return this.rEscapable.test(sTxt)?sTxt.replace(this.rEscapable,function(a){var c=oMeta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);}):sTxt;},_encodeServerData:function(sData)
{var _oServerData=[{info:{v:101,href:window.location.href},data:sData}];return JSON.stringify(_oServerData).replace(/[&]/g,'\\u0026');},_decodeServerData:function(sData)
{return sData;},_doRequests:function()
{if(this._aReqs.length==0)return;if(!this._bPageLoaded)
{setTimeout(function(){ComponentCommMgr._doRequests.call(ComponentCommMgr);},50);return;}
var _sServerData=this._encodeServerData(this._aReqs);RequestManager.submit(this._make_oRequest(this,1,window.location.href,"do="+_sServerData));syLog("Sent data to server: "+_sServerData);this._aReqs=[];this._bTimerStatus=false;},_setTimer:function()
{if(this._bTimerStatus)return;setTimeout(function(){ComponentCommMgr._doRequests.call(ComponentCommMgr);},50);this._bTimerStatus=true;},getPageLoaded:function(){return this._bPageLoaded;},setPageLoaded:function(){syLog("HTML Page is loaded, allowing to send AJAX requests.");this._bPageLoaded=true;},putReq:function(oComp,sDataName,mData,mUD)
{if((oComp.sName)&&(oComp.sType))
this._aReqs.push({cn:oComp.sName,ct:oComp.sType,dn:sDataName,cd:mData,ud:mUD});this._setTimer();},putCall:function(oComp,sFunc,aArgs,mUD)
{if((oComp.sName)&&(oComp.sType))
this._aReqs.push({cn:oComp.sName,ct:oComp.sType,mn:sFunc,cd:aArgs,ud:mUD});this._setTimer();}};return oCCManager;}();window.pClientComponent=function(sName,sType)
{this.sName=sName;this.sType=sType;this._aRegisteredProperties=[];this._aRegisteredCallbacks={};this._oEvents={};if(sName)
syLog(sName+" ClientComponent object was created ("+this._getIDString()+").",CONSTANTS.LOG_TYPE_DEBUG_INFO);};pClientComponent.prototype={sName:"pClientComponent",sType:"pClientComponent",_oEvents:null,_aRegisteredCallbacks:null,_private:function(oEvent)
{return"pClientComponent object.";},_getIDString:function()
{return"pClientComponent object.";},_setEventHandler:function(oHTMLObject,sEventName,fEventHandler,oScope)
{if(jso_EventHandler)
jso_EventHandler.addEventHandler(oHTMLObject,sEventName,fEventHandler,oScope||this);else
{if(typeof oHTMLObject!="object")return false;if(!(sObjectName=this.getNameFromGlobal()))
sObjectName=this.sName;this["_default_"+sEventName+"_"+sObjectName+"_Handler"]=function(oEvent){return this[sEventHandlerName](oEvent);};if(CONSTANTS.bIS_NETSCAPE)
oHTMLObject.setAttribute(sEventName,'return '+this.sName+'._default_'+sEventName+'_'+sObjectName+'_Handler(event || window.event)');else
oHTMLObject[sEventName]=new Function('event','return '+this.sName+'._default_'+sEventName+'_'+sObjectName+'_Handler(event || window.event);');this._oEvents[sEventName]=true;}},_unsetEventHandler:function(oHTMLObject,sEventName,fEventHandler)
{if(jso_EventHandler)
jso_EventHandler.removeEventHandler(oHTMLObject,sEventName,fEventHandler);else
{if(typeof oHTMLObject!=="object")return false;if(CONSTANTS.bIS_NETSCAPE)
oHTMLObject.setAttribute(sEventName,null);else
oHTMLObject[sEventName]=null;this._oEvents[sEventName]=false;}},_callRegisteredCallback:function(sCategory)
{if((this._aRegisteredCallbacks[sCategory])&&(this._aRegisteredCallbacks[sCategory].aHandlers))
for(i=0;i<this._aRegisteredCallbacks[sCategory].aHandlers.length;i++)
this._aRegisteredCallbacks[sCategory].aHandlers[i].fHandler.call(this._aRegisteredCallbacks[sCategory].aHandlers[i].oScope);},_replaceSystemVar:function(sVarname)
{var _mValue=this[sVarname];if(!_mValue)return;var _aDOMobjects=document.getElementsByTagName("span")
for(i=0;i<_aDOMobjects.length;i++)
if(_aDOMobjects[i].name=="SYSTEM_VAR_"+sVarname)
_aDOMobjects[i].innerHTML=_mValue;var _aDOMobjects=document.getElementsByName("SYSTEM_VAR_"+sVarname)
for(i=0;i<_aDOMobjects.length;i++)
_aDOMobjects[i].innerHTML=_mValue;},_setTimer:function(fFunction,iMSeconds)
{setTimeout(fFunction,iMSeconds);},setAttribute:function(sAttributeName,sAttributeFunction)
{if(typeof sAttributeFunction=="string")
var _fAttributeFunction=new Function(sAttributeFunction);else
if(typeof sAttributeFunction=="function")
var _fAttributeFunction=sAttributeFunction;this[sAttributeName]=_fAttributeFunction;},registerCallback:function(sCategory,fCallbackFunction,oScope)
{if(!this._aRegisteredCallbacks[sCategory])
{this._aRegisteredCallbacks[sCategory]={aHandlers:[]};syLogf(this.sName+": a callback function was registered for '%s' category.",sCategory);}
this._aRegisteredCallbacks[sCategory].aHandlers.push({fHandler:fCallbackFunction,oScope:oScope||window});},setVar:function(sVarname,sValue)
{this[sVarname]=sValue;this._replaceSystemVar(sVarname);}};pClientComponent.prototype.__parents__={};pClientComponent.prototype.extend=function(oSuper)
{for(var sProperty in oSuper){this[sProperty]=oSuper[sProperty];}
this._parent_prototype_=oSuper.prototype;}
pClientComponent.prototype.getNameFromGlobal=function()
{for(var sProperty in window)
if(window[sProperty]==this)return sProperty;return false;}
pClientComponent.prototype.getPropertyName=function(mPropertyValue)
{for(var sProperty in this)
if(this[sProperty]==mPropertyValue)return sProperty;return false;}
pClientComponent.prototype.__component_parent__=function()
{_sGlobalName=this.getNameFromGlobal();return this.__parents__[window[_sGlobalName].sType];}
window.oClientComponent=new pClientComponent("oClientComponent","pClientComponent");window.pComponent=function(sName,sType)
{pClientComponent.call(this,sName,sType);this._oEvents={};if(sName)
syLog(sName+" Component object was created ("+this._getIDString()+").",CONSTANTS.LOG_TYPE_DEBUG_INFO);};pComponent.extend("ClientComponent",{sName:"pComponent",sType:"pComponent",_aRegisteredProperties:null,_mComponentUserData:0,_private:function(oEvent)
{return"pComponent object.";},_getIDString:function()
{return"pComponent object.";},_regComponentData:function(sPropertyName)
{if(this._aRegisteredProperties.indexOf(sPropertyName)==-1)
this._aRegisteredProperties.push(sPropertyName);},_unregComponentData:function(sPropertyName)
{if((_iPropIndex=this._aRegisteredProperties.indexOf(sPropertyName))>0)
this._aRegisteredProperties.slice(_iPropIndex);},_sendData:function()
{if(!ComponentCommMgr)throw Error("No component communication object is exists.");for(_cI=0;_cI<this._aRegisteredProperties.length;_cI++)
ComponentCommMgr.putReq(this,this._aRegisteredProperties[_cI],this[this._aRegisteredProperties[_cI]],this._mComponentUserData);},_call:function()
{if(!ComponentCommMgr)throw Error("No component communication object is exists.");if(arguments.length<1)throw Error("No parameters for invoking a server components method.");var sFunctionName=arguments[0];var args=new Array();for(cI=1;cI<arguments.length;cI++)
args.push(arguments[cI]);ComponentCommMgr.putCall(this,sFunctionName,args,this._mComponentUserData);},isPropertyRegistered:function(sPropertyName)
{return(this._aRegisteredProperties.indexOf(sPropertyName)!=-1)},preprocessServerData:function(sDName)
{this.processServerData(sDName);},processServerData:function(sDName)
{return;},getComponentUserData:function()
{return this._mComponentUserData;},setComponentUserData:function(mUserData)
{this._mComponentUserData=mUserData;},onServerError:function(sMethodName)
{return;},submit:function()
{return;}});window.oComponent=new pComponent("oComponent","pComponent");window.pDOMComponent=function(sName,sType)
{pComponent.call(this,sName,sType);this._aEventHandlers=[];};pDOMComponent.extend('Component',{_oDOMObject:null,_bMouseClick:false,_bOrigDisabled:false,_aEventHandlers:null,_bLinked:false,_getIDString:function()
{return"JSO general DOM Component object.";},_onclick:function(oEvent)
{result=false;if((this._oDOMObject)&&(!this._oDOMObject.disabled))
{if(this._bMouseClick)
{this.clearMouseClick();result=this.ondoubleclick(oEvent);}
else
{this._bMouseClick=true;result=this.onclick(oEvent);syLogf("    - setting mouseclick to true for %d ms. %s (%s)",CONSTANTS.DOUBLE_CLICK_SPEED,this.sName,this.sType,CONSTANTS.LOG_TYPE_DEBUG_INFO);eval("setTimeout( function(){ "+this.sName+".clearMouseClick(); }, CONSTANTS.DOUBLE_CLICK_SPEED );");}}
else
syLogf(CONSTANTS.pDOMComponent__onclick_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return result;},_onsubmit:function(oEvent)
{if(!this._oDOMObject.disabled)
return this.onsubmit(oEvent);else
syLogf(CONSTANTS.pDOMComponent__onsubmit_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},_onfocus:function(oEvent)
{if(!this._oDOMObject.disabled)
return this.onfocus(oEvent);else
syLogf(CONSTANTS.pDOMComponent__onfocus_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},_onblur:function(oEvent)
{if(!this._oDOMObject.disabled)
return this.onblur();else
syLogf(CONSTANTS.pDOMComponent__onblur_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},_onkeyup:function(oEvent)
{if(!this._oDOMObject.disabled)
return this.onkeyup(oEvent);else
syLogf(CONSTANTS.pDOMComponent__onkeyup_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},_onmouseover:function(oEvent)
{if(!this._oDOMObject.disabled)
return this.onmouseover(oEvent);else
syLogf(CONSTANTS.pDOMComponent__onmouseover_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},_onchange:function(oEvent)
{if(!this._oDOMObject.disabled){this._bEdited=true;return this.onchange(oEvent);}
else
syLogf(CONSTANTS.pDOMComponent__onchange_HTML_ELEMENT_IS_DISABLED,this._oDOMObject.id,this.sName,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},addEventHandler:function(sEvent,fHandler)
{if(typeof sEvent==="string")
{if(this._aEventHandlers.indexOf(sEvent)==-1)
{this._aEventHandlers.push(sEvent);jso_EventHandler.addEventHandler(this._oDOMObject,sEvent,fHandler,this);};};},clearMouseClick:function()
{this._bMouseClick=false;syLog("clearing mouseclick status. "+this.sName+" ("+this.sType+")",CONSTANTS.LOG_TYPE_DEBUG_INFO);},link:function(sDOMName,oEvents)
{if(this._bLinked)
{syLogf(CONSTANTS.pDOMComponent_link_COMPONENT_ALREADY_IS_LINKED,this.sName)
return false;}
if(this._oDOMObject=document.getElementById(sDOMName))
{this._bOrigDisabled=this._oDOMObject.disabled;for(_lX=0;_lX<CONSTANTS.aEventNames.length;_lX++){if(oEvents[CONSTANTS.aEventNames[_lX]])
this._setEventHandler(this._oDOMObject,CONSTANTS.aEventNames[_lX],this["_"+CONSTANTS.aEventNames[_lX]]);}
this._bLinked=true;}
else
throw Error("DOMComponent ("+this.sType+") bindDOMObject failed: HTML element does not exists. name name:"+sDOMName);return true;},unlink:function()
{if(!this._bLinked)
{syLogf(CONSTANTS.pDOMComponent_link_COMPONENT_IS_NOT_LINKED,this.sName)
return false;}
if(this._oDOMObject=document.getElementById(sDOMName))
{for(_lX=0;_lX<this._oEvents.length;_lX++){if(oEvents[this._oEvents[_lX]])
this._setEventHandler(this._oDOMObject,this._oEvents[_lX],this["_"+this._oEvents[_lX]]);}
this._bLinked=false;this._oDOMObject=null;};return true;},enable:function()
{if(this._oDOMObject)
this._oDOMObject.disabled=false;},disable:function()
{if(this._oDOMObject)
this._oDOMObject.disabled=true;},restoreDisabled:function()
{if(this._oDOMObject)
this._oDOMObject.disabled=this._bOrigDisabled;},isDisabled:function()
{return(this._oDOMObject?this._oDOMObject.disabled:false);},isEdited:function()
{return this._bEdited;},clearEdited:function()
{this._bEdited=false;},putinFocus:function()
{if(this._oDOMObject)this._oDOMObject.focus();},hide:function()
{if(this._oDOMObject)
{this._oDOMObject.style.visibility="hidden";}},show:function()
{if(this._oDOMObject)
{this._oDOMObject.style.visibility="visible";if(this._oDOMObject.style.display=="none")
this._oDOMObject.style.display="block";}},onsubmit:function(oEvent)
{syLog(" - DOMComponent onsubmit event. "+this.sName);return true;},onchange:function(oEvent)
{syLog(" - DOMComponent onchange event. "+this.sName);return true;},onclick:function(oEvent)
{syLog(" - DOMComponent onclick event. "+this.sName);return true;},ondoubleclick:function(oEvent)
{syLog(" - DOMComponent ondoubleclick event. "+this.sName);return true;},onkeyup:function(oEvent)
{syLog(" - DOMComponent onkeyup event. "+this.sName+" ("+this.sType+") keycode: "+oEvent.keyCode);return true;},onmouseover:function(oEvent)
{syLog(" - DOMComponent onmouseover event. "+this.sName);return true;},onfocus:function(oEvent)
{syLog(" - DOMComponent onfocus event. "+this.sName);return true;},onblur:function(oEvent)
{syLog(" - DOMComponent onblur event. "+this.sName);return true;}});window.oDOMComponent=new pDOMComponent("oDOMComponent","pDOMComponent");jso_ErrorHandler=new pComponent("jso_ErrorHandler","jso_ErrorHandler");jso_ErrorHandler.extend({_sErrorMsg:"NO ERROR",_getIDString:function()
{return"Server exceptions - error handler object.";},processServerData:function(sDName)
{throw Error("Error message from the server:\n"+this._sErrorMsg);},handleDocumentErrors:function(sErrorMsg,sURL,iLineNum)
{syLogf("JavaScript error occured, ErrorMsg: '%s', URL: '%s', line number: '%d'",sErrorMsg,sURL,iLineNum);alert("JavaScript error occured.\n     ErrorMsg: '"+sErrorMsg+"'\n             URL: '"+sURL+"'\n line number: '"+iLineNum+"'");return true;}});jso_ErrorHandler._regComponentData("_sErrorMsg");syLog("jso_ErrorHandler object is created.",CONSTANTS.LOG_TYPE_DEBUG_INFO);jso_JSExecutor=new pComponent("jso_JSExecutor","jso_JSExecutor");jso_JSExecutor.extend({_jsC:"",_getIDString:function()
{return"JS Executor object.";},processServerData:function(sDName)
{var _fToExecute=new Function(this._jsC);_fToExecute();}});jso_JSExecutor._regComponentData("_jsC");jso_EventHandler=new pComponent("jso_EventHandler","jso_EventHandler");jso_EventHandler.extend({_oEventHandlers:{},_iID:0,_getIDString:function()
{return"EventHandler object.";},_centralizedEventHandler:function(oEvent,sEventName,iDOMIndex)
{result=true;if((this._oEventHandlers[sEventName])&&(this._oEventHandlers[sEventName][iDOMIndex]))
{var _oTarget;if(oEvent.target)_oTarget=oEvent.target;else if(oEvent.srcElement)_oTarget=oEvent.srcElement;if(_oTarget&&(_oTarget.nodeType)&&(_oTarget.nodeType==3))
_oTarget=_oTarget.parentNode;var i=0;var _iLen=this._oEventHandlers[sEventName][iDOMIndex].aHandlers.length;while(i<_iLen)
{if(this._oEventHandlers[sEventName][iDOMIndex].aHandlers[i])
result=result&&this._oEventHandlers[sEventName][iDOMIndex].aHandlers[i].fHandler.call(this._oEventHandlers[sEventName][iDOMIndex].aHandlers[i].oScope,oEvent,_oTarget);i++;}}
else
syLogf("EventHandler error: no registered event handler function for the occured event (%s, %d)",sEventName,iDOMIndex);return result;},addEventHandler:function(oDOMObject,sEventName,fEventHandler,oScope)
{if(!oDOMObject)return;if(!this._oEventHandlers[sEventName])
{this._oEventHandlers[sEventName]={length:0};syLogf("EventHandler info: new entry object was created for '%s' event.",sEventName);}
iDOMIndex=false;for(var i in this._oEventHandlers[sEventName])
if(this._oEventHandlers[sEventName][i].oDOMObject==oDOMObject)iDOMIndex=i;if(iDOMIndex==false)
{iDOMIndex=this._iID++;this._oEventHandlers[sEventName][iDOMIndex]={oDOMObject:oDOMObject,aHandlers:[]};}
this._oEventHandlers[sEventName].length++;this._oEventHandlers[sEventName][iDOMIndex].aHandlers.push({fHandler:fEventHandler,oScope:oScope||window});if((CONSTANTS.bIS_NETSCAPE)&&(oDOMObject!=window))
oDOMObject.setAttribute(sEventName,'return jso_EventHandler._centralizedEventHandler.call( jso_EventHandler, event || window.event, "'+sEventName+'", '+iDOMIndex+' )');else
if(oDOMObject==window)
oDOMObject[sEventName]=new Function('event','return jso_EventHandler._centralizedEventHandler.call( jso_EventHandler, { target:document.body }, "'+sEventName+'", '+iDOMIndex+' );');else
oDOMObject[sEventName]=new Function('event','return jso_EventHandler._centralizedEventHandler.call( jso_EventHandler, event || window.event, "'+sEventName+'", '+iDOMIndex+' );');syLogf("EventHandler info: an '%s' event handler registered from '%s' object into '%s' DOM object.",sEventName,oScope.sName||"--NO NAME--",oDOMObject.id||"--NO ID, '"+oDOMObject.tagName+"' OBJECT--");},removeEventHandler:function(oDOMObject,sEventName,fEventHandler)
{if(this._oEventHandlers[sEventName])
{for(var iProp in this._oEventHandlers[sEventName])
if((iProp!='length')&&(this._oEventHandlers[sEventName][iProp].oDOMObject==oDOMObject))
for(j=0;j<this._oEventHandlers[sEventName][iProp].aHandlers.length;j++)
if(this._oEventHandlers[sEventName][iProp].aHandlers[j].fHandler==fEventHandler)
{oScope=this._oEventHandlers[sEventName][iProp].aHandlers[j].oScope;this._oEventHandlers[sEventName][iProp].aHandlers.remove(j);if(this._oEventHandlers[sEventName][iProp].aHandlers.length==0)
{if(CONSTANTS.bIS_NETSCAPE)
this._oEventHandlers[sEventName][iProp].oDOMObject.setAttribute(sEventName,null);else
this._oEventHandlers[sEventName][iProp].oDOMObject[sEventName]=null;delete(this._oEventHandlers[sEventName][iProp]);if(--this._oEventHandlers[sEventName].length==0)
delete(this._oEventHandlers[sEventName]);}
syLogf("EventHandler info: an event handler from '%s' object for '%s' event at '%s' DOM object is removed.",sEventName,oScope.sName||"--NO NAME--",oDOMObject.id||"--NO ID, '"+oDOMObject.tagName+"' OBJECT--");return true;}
syLogf("EventHandler warning: DOM Object (%s) not found in event handlers target list (event: '%s')",oDOMObject.id||"--NO ID FOR "+oDOMObject.tagName+" OBJECT--",sEventName);}
else
syLogf("EventHandler warning: no previously defined event handler for '%s' event.",sEventName);},removeEventHandlers:function()
{for(var sEventName in this._oEventHandlers)
{for(var iProp in this._oEventHandlers[sEventName])
{if(CONSTANTS.bIS_NETSCAPE)
this._oEventHandlers[sEventName][iProp].aDOMObject.setAttribute(sEventName,null);else
this._oEventHandlers[sEventName][iProp].aDOMObject[sEventName]=null;}
delete(this._oEventHandlers[sEventName]);}}});jso_EventHandler._regComponentData("_s");syLog("jso_EventHandler object is created.",CONSTANTS.LOG_TYPE_DEBUG_INFO);jso_Parameterizer=new pDOMComponent("jso_Parameterizer","jso_Parameterizer");jso_Parameterizer.extend({_getIDString:function()
{return"JSO Parameterizer.";}});syLog("jso_Parameterizer object was created.",CONSTANTS.LOG_TYPE_DEBUG_INFO);jso_DOMHandler=new pComponent("jso_DOMHandler","jso_DOMHandler");jso_DOMHandler.extend({_oDOMObjects:{},_getIDString:function()
{return"JSO DOMHandler object.";},_getStyle:function(sDOMObjectID,sStyleProp)
{var oElement=document.getElementById(sDOMObjectID);if(oElement.currentStyle)
var mValue=oElement.currentStyle[sStyleProp];else if(window.getComputedStyle)
var mValue=document.defaultView.getComputedStyle(oElement,null).getPropertyValue(sStyleProp);return mValue;},_findPos:function(oDOMElement)
{if(oDOMElement)
{var _aParentPos=this._findPos(oDOMElement.offsetParent);return[_aParentPos[0]+oDOMElement.offsetLeft,_aParentPos[1]+oDOMElement.offsetTop];}
else
return[0,0];},_isSet:function(sDOMObjectID)
{return(typeof(this._oDOMObjects[sDOMObjectID])!="undefined");},_getZIndex:function(oDOMObject)
{if((oDOMObject)&&(typeof oDOMObject.isHidden=="function"))
{return oDOMObject.style['z-index'];}},_getOpacity:function(oDOMObject)
{if((oDOMObject)&&(typeof oDOMObject.isHidden=="function"))
{if(oBase.bIE)
{if((typeof(oDOMObject.currentStyle.filter)=="string")&&(oDOMObject.currentStyle.filter.search(/opacity/i)>0))
var _iOpacity=oDOMObject.currentStyle.filter.match(/\d+/i)*1;else if(oDOMObject.isHidden()&&(oDOMObject.oDOMHandler)&&(oDOMObject.oDOMHandler.originalStyle))
var _iOpacity=oDOMObject.oDOMHandler.originalStyle.opacity;else var _iOpacity=100;}
else
{if((typeof(oDOMObject.style.opacity)=="string")&&(oDOMObject.style.opacity.length>0))
var _iOpacity=oDOMObject.style.opacity*1;else if(oDOMObject.isHidden()&&(oDOMObject.oDOMHandler)&&(oDOMObject.oDOMHandler.originalStyle))
var _iOpacity=oDOMObject.oDOMHandler.originalStyle.opacity;else var _iOpacity=1;}
return _iOpacity;}
return false;},_setOpacity:function(oDOMElement,iOpacity)
{if((oDOMElement)&&(oDOMElement.style))
{if(oBase.bIE)
oDOMElement.style.filter="alpha(opacity="+iOpacity+")";else
oDOMElement.style.opacity=iOpacity;}},_setXY:function(sDOMObjectID)
{if(!this._oDOMObjects[sDOMObjectID].bPositioned)
return false;var _oDOMBox=document.getElementById(sDOMObjectID);if(_oDOMBox)
{if(_oDOMBox._tTimeoutID)
delete _oDOMBox._tTimeoutID;_oDOMBox.style.position="absolute";if(this._oDOMObjects[sDOMObjectID].bCentered)
window._setCenter(_oDOMBox);else
{_oDOMBox._iX=window._getPageXOffset()+this._oDOMObjects[sDOMObjectID].iX;_oDOMBox._iY=window._getPageYOffset()+this._oDOMObjects[sDOMObjectID].iY;_oDOMBox.style.left=_oDOMBox._iX+"px";_oDOMBox.style.top=_oDOMBox._iY+"px";}}},_setTimedXY:function(sDOMObjectID,imSeconds)
{var _oDOMBox=document.getElementById(sDOMObjectID);if(_oDOMBox)
{if(_oDOMBox._tTimeoutID)
{clearTimeout(_oDOMBox._tTimeoutID);delete _oDOMBox._tTimeoutID;}
_oDOMBox._tTimeoutID=setTimeout(new Function("jso_DOMHandler._setXY('"+sDOMObjectID+"');"),(imSeconds>0?imSeconds:50));}},_onBrowserScroll:function(oEvent,oTarget)
{for(var sDOMObjectID in jso_DOMHandler._oDOMObjects)
{if((jso_DOMHandler._oDOMObjects[sDOMObjectID].bPositioned)&&(!(jso_DOMHandler._oDOMObjects[sDOMObjectID].bHidden)))
jso_DOMHandler._setTimedXY(sDOMObjectID,jso_DOMHandler._oDOMObjects[sDOMObjectID].iScrollMoveTime);}},_onBrowserResize:function(oEvent,oTarget)
{for(var sDOMObjectID in jso_DOMHandler._oDOMObjects)
{if((jso_DOMHandler._oDOMObjects[sDOMObjectID].bPositioned)&&(!(jso_DOMHandler._oDOMObjects[sDOMObjectID].bHidden)))
jso_DOMHandler._setTimedXY(sDOMObjectID,jso_DOMHandler._oDOMObjects[sDOMObjectID].iScrollMoveTime);}},_triggerEvent:function(sEventName,sDOMElementID)
{var _oDOMElement=document.getElementById(sDOMElementID);if(_oDOMElement)
{if(typeof(_oDOMElement[sEventName])=="function")
{_oDOMElement[sEventName]({target:_oDOMElement});}}},init:function()
{this._setEventHandler(window,"onscroll",this._onBrowserScroll);this._setEventHandler(window,"onresize",this._onBrowserResize);CONSTANTS.DOMHANDLER_DEGREE_IN_RAD=Math.PI/180;syLog("jso_DOMHandler object has been initialized.",CONSTANTS.LOG_TYPE_DEBUG_INFO);},set:function(sDOMObjectID)
{if(!this._isSet(sDOMObjectID))
{var _oDOMObject=document.getElementById(sDOMObjectID);if(_oDOMObject)
{this._oDOMObjects[sDOMObjectID]={tID:null,bHidden:(_oDOMObject.style.display=="none"),bPositioned:false,bCentered:false,iX:0,iY:0,iScrollMoveTime:CONSTANTS.DOMHANDLER_SCROLLMOVE_TIME};_oDOMObject.bJso_handled=true;_oDOMObject.show=new Function('iSeconds','jso_DOMHandler.show.call( jso_DOMHandler, this.id, iSeconds );');_oDOMObject.hide=new Function('jso_DOMHandler.hide.call( jso_DOMHandler, this.id );');_oDOMObject.isHidden=new Function('return jso_DOMHandler.isHidden.call( jso_DOMHandler, this.id );');_oDOMObject.fadeIn=new Function('imSec','jso_DOMHandler.fadeIn.call( jso_DOMHandler, this.id, imSec );');_oDOMObject.fadeOut=new Function('imSec','jso_DOMHandler.fadeOut.call( jso_DOMHandler, this.id, imSec );');_oDOMObject.shiftIn=new Function('sShiftingType','imSec','iStartSec','jso_DOMHandler.shiftIn.call( jso_DOMHandler, this.id, sShiftingType, imSec, iStartSec );');_oDOMObject.shiftOut=new Function('sShiftingType','imSec','iStartSec','jso_DOMHandler.shiftOut.call( jso_DOMHandler, this.id, sShiftingType, imSec, iStartSec );');_oDOMObject.oDOMHandler={originalStyle:{visibility:_oDOMObject.style.visibility,opacity:this._getOpacity(_oDOMObject),zindex:this._getZIndex(_oDOMObject),position:_oDOMObject.style.position,height:_oDOMObject.style.height,width:_oDOMObject.style.width},clientHeight:_oDOMObject.clientHeight,clientWidth:_oDOMObject.clientWidth};if(_oDOMObject.isHidden())
{_oDOMObject.style.visibility="hidden";_oDOMObject.style.position="absolute";_oDOMObject.show();_oDOMObject.oDOMHandler.clientHeight=_oDOMObject.clientHeight;_oDOMObject.oDOMHandler.clientWidth=_oDOMObject.clientWidth;_oDOMObject.oDOMHandler.originalStyle.opacity=(oBase.bIE?100:1);_oDOMObject.hide();_oDOMObject.style.position=_oDOMObject.oDOMHandler.originalStyle.position;_oDOMObject.style.visibility=_oDOMObject.oDOMHandler.originalStyle.visibility;}
_oDOMObject.style.visibility="visible";return true;}
else
return false;}
syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" has already been set in this handler.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},unset:function(sDOMObjectID)
{if(this._isSet(sDOMObjectID))
{var _oDOMObject=document.getElementById(sDOMObjectID);if(_oDOMObject)
{if(this._oDOMObjects[sDOMObjectID].tID)
{clearTimeout(this._oDOMObjects[sDOMObjectID].tID);}
delete(this._oDOMObjects[sDOMObjectID]);delete(_oDOMObject.bJso_handled);delete(_oDOMObject.show);delete(_oDOMObject.hide);delete(_oDOMObject.isHidden);delete(_oDOMObject.fadeIn);delete(_oDOMObject.fadeOut);delete(_oDOMObject.shiftIn);delete(_oDOMObject.shiftOut);}
else
return false;}
syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},add:function(sDOMObject,sDOMParent)
{if(this._isSet(sDOMObject))
{return true;}
syLog("jso_DOMHandler: DOM Object "+sDOMObject+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;},remove:function(sDOMObject)
{return false;},show:function(sDOMObjectID,iSeconds)
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if(!this._oDOMObjects[sDOMObjectID].bHidden)
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is already showed.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
var _oDOMObject=document.getElementById(sDOMObjectID);if((_oDOMObject)&&(_oDOMObject.style))
{_oDOMObject.style.display="block";this._oDOMObjects[sDOMObjectID].bHidden=false;if(this._oDOMObjects[sDOMObjectID].bPositioned)
{this._setXY(sDOMObjectID);}
if((_oDOMObject.oDOMHandler)&&(_oDOMObject.oDOMHandler.originalStyle))
this._setOpacity(_oDOMObject,_oDOMObject.oDOMHandler.originalStyle.opacity);if(iSeconds>0)
this.hide(sDOMObjectID,iSeconds);return true;}
else
return false;},hide:function(sDOMObjectID,iSeconds)
{if(iSeconds>0)
{if(this._oDOMObjects[sDOMObjectID].tID)
clearTimeout(this._oDOMObjects[sDOMObjectID].tID);this._oDOMObjects[sDOMObjectID].tID=setTimeout(new Function(this.sName+".fadeOut( '"+sDOMObjectID+"' );"),iSeconds*1000);}
else
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
var _oDOMObject=document.getElementById(sDOMObjectID);if((_oDOMObject)&&(_oDOMObject.style))
{if(_oDOMObject.isHidden())
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is already hidden.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
_oDOMObject.style.display="none";this._oDOMObjects[sDOMObjectID].bHidden=true;if((_oDOMObject.oDOMHandler)&&(_oDOMObject.oDOMHandler.originalStyle))
this._setOpacity(_oDOMObject,_oDOMObject.oDOMHandler.originalStyle.opacity);if(this._oDOMObjects[sDOMObjectID].tID)
{clearTimeout(this._oDOMObjects[sDOMObjectID].tID);delete this._oDOMObjects[sDOMObjectID].tID;}
return true;}
else
return false;}},putToTop:function(sDOMObjectID)
{var _oDOMObject=document.getElementById(sDOMObjectID);if((_oDOMObject)&&(_oDOMObject.style)&&(typeof _oDOMObject.isHidden=="function"))
{if(!_oDOMObject.isHidden())
{_oDOMObject.style['z-index']=CONSTANTS.DOMHANDLER_DEFAULT_TOPMOST_ZINDEX;}}},backFromTop:function(sDOMObjectID)
{var _oDOMObject=document.getElementById(sDOMObjectID);if((_oDOMObject)&&(_oDOMObject.style)&&(typeof _oDOMObject.isHidden=="function"))
{if(!_oDOMObject.isHidden())
{if((_oDOMObject.oDOMHandler)&&(_oDOMObject.oDOMHandler.originalStyle))
_oDOMObject.style['z-index']=_oDOMObject.oDOMHandler.originalStyle.zindex;}}},isHidden:function(sDOMObjectID)
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
return(this._oDOMObjects[sDOMObjectID].bHidden);},fadeIn:function(sDOMObjectID,imSec)
{return this.fading(sDOMObjectID,1,imSec,100);},fadeOut:function(sDOMObjectID,imSec)
{return this.fading(sDOMObjectID,1,imSec,0);},fadeNshiftOut:function(sDOMObjectID,imSec)
{return this.fading(sDOMObjectID,1,imSec,0,true);},fading:function(sDOMObjectID,iStartmSec,iStepmSec,iOpacityEnd,bShiftOut)
{var _oDOMObject=document.getElementById(sDOMObjectID);if(!((_oDOMObject)&&(_oDOMObject.style)&&(typeof _oDOMObject.isHidden=="function")))return false;if(_oDOMObject.isHidden())
var _iStartOpacity=0;else
var _iStartOpacity=this._getOpacity(_oDOMObject);if(typeof iOpacityEnd!="number")
{if(_iStartOpacity>0)iOpacityEnd=0;else iOpacityEnd=100;}
if(!oBase.bIE)
iOpacityEnd=iOpacityEnd/100;if(this.isHidden(sDOMObjectID)&&(iOpacityEnd==0))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is hidden yet, no fading effect.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if(!this.isHidden(sDOMObjectID)&&(iOpacityEnd==_iStartOpacity))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" no fading needed.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if((oBase.bIE)&&(!_oDOMObject.currentStyle.hasLayout))_oDOMObject.style.zoom=1;if(!(_oDOMObject.oEffects))
_oDOMObject.oEffects={};var _sEffectID=CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME;if(_oDOMObject.oEffects[_sEffectID])
{syLog("jso_DOMHandler: a fadeing is already in progress for DOM Object "+sDOMObjectID,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
_oDOMObject.oEffects[_sEffectID]={iEffectValue:0,sEffectMethod:"sinus",iStepTime:(iStepmSec>0?iStepmSec:CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME),iStepValue:CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_VALUE,iStartOpacity:_iStartOpacity,iEndOpacity:iOpacityEnd,sEndEvent:((_iStartOpacity>iOpacityEnd)?"onfadeout":"onfadein")};_oDOMObject.oEffects[_sEffectID].fEffectStart=this._effectCallback_Fading_Start;if((_iStartOpacity==0)&&_oDOMObject.isHidden())
_oDOMObject.show();if(oBase.bIE)_oDOMObject.style.filter="alpha(opacity="+_iStartOpacity+")";else _oDOMObject.style.opacity=_iStartOpacity;_oDOMObject.oEffects[_sEffectID].fEffectCallback=new Function("oDOMObject","return "+this.sName+"._effectCallback_"+_sEffectID+"_"+_oDOMObject.oEffects[_sEffectID].sEffectMethod+"( oDOMObject );")
_oDOMObject.oEffects[_sEffectID].fModifierValue=this._effectCallback_Fading_Modifier_Value;_oDOMObject.oEffects[_sEffectID].fModifierTime=this._effectCallback_Fading_Modifier_Time;if(bShiftOut)
_oDOMObject.oEffects[_sEffectID].fEffectComplete=this._effectCallback_Fading_Complete_thenShift;else
_oDOMObject.oEffects[_sEffectID].fEffectComplete=this._effectCallback_Fading_Complete;_oDOMObject.oEffects[_sEffectID].tID=setTimeout(new Function(this.sName+"._doEffect( '"+sDOMObjectID+"', '"+_sEffectID+"' );"),(iStartmSec>0?iStartmSec:CONSTANTS.DOMHANDLER_DEFAULT_FADE_TIME));return true;},_effectCallback_Fading_Start:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iStartOpacity=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME].iStartOpacity;if((_iStartOpacity==0)&&oDOMObject.isHidden())
oDOMObject.show();if(oBase.bIE)oDOMObject.style.filter="alpha(opacity="+_iStartOpacity+")";else oDOMObject.style.opacity=_iStartOpacity;},_effectCallback_Fading_linear:function(oDOMObject)
{var _sEffectID=CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME;var _oEffectParams=oDOMObject.oEffects[_sEffectID];var _iStart=oDOMObject.oEffects[_sEffectID].iStartOpacity;var _iEnd=oDOMObject.oEffects[_sEffectID].iEndOpacity;var _iValue=oDOMObject.oEffects[_sEffectID].iEffectValue;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iOpacity=_iStart+((_iEnd-_iStart)/90)*_iValue;else var _iOpacity=_iEnd+((_iStart-_iEnd)/90)*(90-_iValue);if((_iOpacity>0)&&(oDOMObject.isHidden()))
oDOMObject.show();if(oBase.bIE)oDOMObject.style.filter="alpha(opacity="+_iOpacity+")";else oDOMObject.style.opacity=_iOpacity;},_effectCallback_Fading_sinus:function(oDOMObject)
{var _sEffectID=CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME;var _oEffectParams=oDOMObject.oEffects[_sEffectID];var _iStart=oDOMObject.oEffects[_sEffectID].iStartOpacity;var _iEnd=oDOMObject.oEffects[_sEffectID].iEndOpacity;var _iValue=oDOMObject.oEffects[_sEffectID].iEffectValue;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iOpacity=_iStart+((_iEnd-_iStart)/90)*(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90);else var _iOpacity=_iEnd+((_iStart-_iEnd)/90)*(90-(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90));if((_iOpacity>0)&&(oDOMObject.isHidden()))
oDOMObject.show();if(oBase.bIE)oDOMObject.style.filter="alpha(opacity="+_iOpacity+")";else oDOMObject.style.opacity=_iOpacity;},_effectCallback_Fading_Modifier_Value:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME];return _oEffectParams.iStepValue;},_effectCallback_Fading_Modifier_Time:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME];return _oEffectParams.iStepTime;},_effectCallback_Fading_Complete:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME];var _iEndOpacity=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME].iEndOpacity;if(_iEndOpacity==0)
oDOMObject.hide();if(oBase.bIE)oDOMObject.style.filter="alpha(opacity="+_iEndOpacity+")";else oDOMObject.style.opacity=_iEndOpacity;},_effectCallback_Fading_Complete_thenShift:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME];var _iEndOpacity=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_FADE_EFFECT_NAME].iEndOpacity;if(oBase.bIE)oDOMObject.style.filter="alpha(opacity="+_iEndOpacity+")";else oDOMObject.style.opacity=_iEndOpacity;this.shiftOut(oDOMObject.id,"X",1,1);},shiftOut:function(sDOMObjectID,sShiftingType,iStartmSec,iStepmSec)
{return this._shifting(sDOMObjectID,true,sShiftingType,iStartmSec,iStepmSec);},shiftIn:function(sDOMObjectID,sShiftingType,iStartmSec,iStepmSec)
{return this._shifting(sDOMObjectID,false,sShiftingType,iStartmSec,iStepmSec);},_shifting:function(sDOMObjectID,bOut,sShiftingType,iStartmSec,iStepmSec)
{if((typeof(sShiftingType)!="string")||((sShiftingType!='H')&&(sShiftingType!='V')&&(sShiftingType!='X')))
{syLog("jso_DOMHandler: bad parameter sShiftingType, it should be 'H', 'V' or 'X'.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if(bOut&&this.isHidden(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is hidden yet, no shifting out.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if((!bOut)&&(!this.isHidden(sDOMObjectID)))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not hidden yet, no shifting in.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
var _oDOMObject=document.getElementById(sDOMObjectID);if(!((_oDOMObject)&&(_oDOMObject.style)))
return false;_oDOMObject.style.overflow='hidden';if(!(_oDOMObject.oEffects))
_oDOMObject.oEffects={};if(bOut&&((_oDOMObject.clientHeight==0)||(_oDOMObject.clientWidth==0)))
{syLog("jso_DOMHandler: the DOM Object "+sDOMObjectID+" has at least one '0' dimension. No shifting are possible.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if(bOut)
{_oDOMObject.style.height=_oDOMObject.clientHeight+"px";_oDOMObject.style.width=_oDOMObject.clientWidth+"px";}
else
{_oDOMObject.style.height="0px";_oDOMObject.style.width="0px";}
var _sEffectID=CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME;if(_oDOMObject.oEffects[_sEffectID])
{syLog("jso_DOMHandler: a shifting is already in progress for DOM Object "+sDOMObjectID,CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
_oDOMObject.oEffects[_sEffectID]={sEffect:sShiftingType,iEffectValue:0,sEffectMethod:"sinus",iStepTime:(iStepmSec>0?iStepmSec:CONSTANTS.DOMHANDLER_DEFAULT_SHIFT_STEP_TIME),iStepValue:CONSTANTS.DOMHANDLER_DEFAULT_SHIFT_STEP_VALUE,iStartWidth:(bOut?_oDOMObject.clientWidth:0),iStartHeight:(bOut?_oDOMObject.clientHeight:0),iEndWidth:(bOut?0:_oDOMObject.oDOMHandler.clientWidth),iEndHeight:(bOut?0:_oDOMObject.oDOMHandler.clientHeight),sEndEvent:(bOut?"onshiftout":"onshiftin")};_oDOMObject.oEffects[_sEffectID].fEffectStart=this._effectCallback_Shifting_Start;_oDOMObject.oEffects[_sEffectID].fEffectCallback=new Function("oDOMObject","return "+this.sName+"._effectCallback_"+_sEffectID+"_"+sShiftingType+"_"+_oDOMObject.oEffects[_sEffectID].sEffectMethod+"( oDOMObject );")
_oDOMObject.oEffects[_sEffectID].fModifierValue=this._effectCallback_Shifting_Modifier_Value;_oDOMObject.oEffects[_sEffectID].fModifierTime=this._effectCallback_Shifting_Modifier_Time;_oDOMObject.oEffects[_sEffectID].fEffectComplete=this._effectCallback_Shifting_Complete;_oDOMObject.oEffects[_sEffectID].tID=setTimeout(new Function(this.sName+"._doEffect( '"+sDOMObjectID+"', '"+_sEffectID+"' );"),(iStartmSec?iStartmSec:CONSTANTS.DOMHANDLER_DEFAULT_SHIFT_TIME));return true;},_effectCallback_Shifting_Start:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iStartHeight=_oEffectParams.iStartHeight;var _iStartWidth=_oEffectParams.iStartWidth;var _iEndHeight=_oEffectParams.iEndHeight;var _iEndWidth=_oEffectParams.iEndWidth;if(oDOMObject.isHidden()&&((_iStartWidth<_iEndWidth)||(_iStartHeight<_iEndHeight)))
oDOMObject.show();},_effectCallback_Shifting_V_linear:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;var _iStart=_oEffectParams.iStartHeight;var _iEnd=_oEffectParams.iEndHeight;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*_iValue;else var _iPosition=((_iStart-_iEnd)/90)*(90-_iValue);oDOMObject.style.height=_iPosition+"px";oDOMObject.style.width=oDOMObject.oDOMHandler.clientWidth+"px";},_effectCallback_Shifting_V_sinus:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;var _iStart=_oEffectParams.iStartHeight;var _iEnd=_oEffectParams.iEndHeight;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90);else var _iPosition=((_iStart-_iEnd)/90)*(90-(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90));oDOMObject.style.height=_iPosition+"px";oDOMObject.style.width=oDOMObject.oDOMHandler.clientWidth+"px";},_effectCallback_Shifting_H_linear:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;var _iStart=_oEffectParams.iStartWidth;var _iEnd=_oEffectParams.iEndWidth;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*_iValue;else var _iPosition=((_iStart-_iEnd)/90)*(90-_iValue);oDOMObject.style.width=_iPosition+"px";oDOMObject.style.height=oDOMObject.oDOMHandler.clientHeight+"px";},_effectCallback_Shifting_H_sinus:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;var _iStart=_oEffectParams.iStartWidth;var _iEnd=_oEffectParams.iEndWidth;if(_iValue>90)_iValue=90;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90);else var _iPosition=((_iStart-_iEnd)/90)*(90-(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90));oDOMObject.style.width=_iPosition+"px";oDOMObject.style.height=oDOMObject.oDOMHandler.clientHeight+"px";},_effectCallback_Shifting_X_linear:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;if(_iValue>90)_iValue=90;var _iStart=_oEffectParams.iStartHeight;var _iEnd=_oEffectParams.iEndHeight;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*_iValue;else var _iPosition=((_iStart-_iEnd)/90)*(90-_iValue);oDOMObject.style.height=_iPosition+"px";var _iStart=_oEffectParams.iStartWidth;var _iEnd=_oEffectParams.iEndWidth;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*_iValue;else var _iPosition=((_iStart-_iEnd)/90)*(90-_iValue);oDOMObject.style.width=_iPosition+"px";},_effectCallback_Shifting_X_sinus:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];var _iValue=_oEffectParams.iEffectValue;if(_iValue>90)_iValue=90;var _iStart=_oEffectParams.iStartHeight;var _iEnd=_oEffectParams.iEndHeight;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90);else var _iPosition=((_iStart-_iEnd)/90)*(90-(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90));oDOMObject.style.height=_iPosition+"px";var _iStart=_oEffectParams.iStartWidth;var _iEnd=_oEffectParams.iEndWidth;if(_iStart<_iEnd)var _iPosition=((_iEnd-_iStart)/90)*(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90);else var _iPosition=((_iStart-_iEnd)/90)*(90-(Math.sin(_iValue*CONSTANTS.DOMHANDLER_DEGREE_IN_RAD)*90));oDOMObject.style.width=_iPosition+"px";},_effectCallback_Shifting_Modifier_Value:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];return _oEffectParams.iStepValue;},_effectCallback_Shifting_Modifier_Time:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];return _oEffectParams.iStepTime;},_effectCallback_Shifting_Complete:function(oDOMObject)
{var _oEffectParams=oDOMObject.oEffects[CONSTANTS.DOMHANDLER_SHIFT_EFFECT_NAME];if((_oEffectParams.iStartWidth>_oEffectParams.iEndWidth)||(_oEffectParams.iStartHeight>_oEffectParams.iEndHeight))
oDOMObject.hide();oDOMObject.style.height=oDOMObject.oDOMHandler.clientHeight+"px";oDOMObject.style.width=oDOMObject.oDOMHandler.clientWidth+"px";},_doEffect:function(sDOMElement,sEffectType)
{var _oDOMElement=document.getElementById(sDOMElement);if((_oDOMElement)&&(_oDOMElement.oEffects)&&(_oDOMElement.oEffects[sEffectType]))
{if(_oDOMElement.oEffects[sEffectType].iEffectValue<90)
{if((_oDOMElement.oEffects[sEffectType].iEffectValue==0)&&(_oDOMElement.oEffects[sEffectType].fEffectStart))
_oDOMElement.oEffects[sEffectType].fEffectStart.call(this,_oDOMElement);_oDOMElement.oEffects[sEffectType].fEffectCallback.call(this,_oDOMElement);_oDOMElement.oEffects[sEffectType].iStepValue=_oDOMElement.oEffects[sEffectType].fModifierValue.call(this,_oDOMElement);_oDOMElement.oEffects[sEffectType].iStepTime=_oDOMElement.oEffects[sEffectType].fModifierTime.call(this,_oDOMElement);_oDOMElement.oEffects[sEffectType].iEffectValue+=_oDOMElement.oEffects[sEffectType].iStepValue;if(_oDOMElement.oEffects[sEffectType].tID)
{clearTimeout(_oDOMElement.oEffects[sEffectType].tID);delete(_oDOMElement.oEffects[sEffectType].tID);}
_oDOMElement.oEffects[sEffectType].tID=setTimeout(new Function(this.sName+"._doEffect( '"+sDOMElement+"', '"+sEffectType+"' );"),_oDOMElement.oEffects[sEffectType].iStepTime);}
else
{if(_oDOMElement.oEffects[sEffectType].fEffectComplete)
_oDOMElement.oEffects[sEffectType].fEffectComplete.call(this,_oDOMElement);this._triggerEvent(_oDOMElement.oEffects[sEffectType].sEndEvent,sDOMElement);delete(_oDOMElement.oEffects[sEffectType]);}}
else
syLog("_doEffect: no DOM element or effect data.");},alwaysInBrowser:function(sDOMObjectID,bCenter,iX,iY,iScrollMoveTime)
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
this._oDOMObjects[sDOMObjectID].bPositioned=true;this._oDOMObjects[sDOMObjectID].bCentered=bCenter;this._oDOMObjects[sDOMObjectID].iX=iX;this._oDOMObjects[sDOMObjectID].iY=iY;this._oDOMObjects[sDOMObjectID].iScrollMoveTime=iScrollMoveTime;this._setXY(sDOMObjectID);return true;},__fadeIn:function(sDOMObjectID,imSec)
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
this._oDOMObjects[sDOMObjectID].iFadeTime=(imSec>0?imSec:CONSTANTS.DOMHANDLER_DEFAULT_FADE_TIME);if(this._oDOMObjects[sDOMObjectID].iFading==-CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME)
{this._oDOMObjects[sDOMObjectID].iFading=CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME;}
else
{if(!this.show(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not hidden, no fade in.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
this._oDOMObjects[sDOMObjectID].iFading=CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME;this._oDOMObjects[sDOMObjectID].iOpacity=-CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME;this._doOpacity(sDOMObjectID);}
return true;},__fadeOut:function(sDOMObjectID,imSec)
{if(!this._isSet(sDOMObjectID))
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is not set in this handler yet.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
if(this._oDOMObjects[sDOMObjectID].bHidden)
{syLog("jso_DOMHandler: DOM Object "+sDOMObjectID+" is hidden yet, no fade out.",CONSTANTS.LOG_TYPE_DEBUG_INFO);return false;}
this._oDOMObjects[sDOMObjectID].iFadeTime=(imSec>0?imSec:CONSTANTS.DOMHANDLER_DEFAULT_FADE_TIME);if(this._oDOMObjects[sDOMObjectID].iFading==CONSTANTS.DOMHANDLER_FADE_DEFAULT_STEP_TIME)
{this._oDOMObjects[sDOMObjectID].iFading=-CONSTANTS.DOMHANDLER_FADE_DEFAULT_STEP_TIME;}
else
{if(this._oDOMObjects[sDOMObjectID].iFading==0)
{this._oDOMObjects[sDOMObjectID].iFading=-CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME;this._oDOMObjects[sDOMObjectID].iOpacity=100+CONSTANTS.DOMHANDLER_DEFAULT_FADE_STEP_TIME;this._doOpacity(sDOMObjectID);}}
return true;},___doOpacity:function(sDOMElement)
{var _iDiff=this._oDOMObjects[sDOMElement].iFading;if(_iDiff==0)
return false;var _iOpacity=this._oDOMObjects[sDOMElement].iOpacity+=_iDiff;var _iTime=this._oDOMObjects[sDOMElement].iFadeTime;var _oDOMElement=document.getElementById(sDOMElement);if(_oDOMElement)
{if(((_iDiff>0)&&(_iOpacity<=100-_iDiff))||((_iDiff<0)&&(_iOpacity>0)))
{if(this._oDOMObjects[sDOMElement].tID)
clearTimeout(this._oDOMObjects[sDOMElement].tID);this._oDOMObjects[sDOMElement].tID=setTimeout(new Function(this.sName+"._doOpacity( '"+sDOMElement+"' );"),_iTime);}
else
{if(_iOpacity<2)
{this.hide(sDOMElement);this._oDOMObjects[sDOMElement].iOpacity=0;this._oDOMObjects[sDOMElement].iFading=0;var _sEventName='onfadeout';}
else
{this._oDOMObjects[sDOMElement].iOpacity=100;this._oDOMObjects[sDOMElement].iFading=0;var _sEventName='onfadein';}}
this._setOpacity(_oDOMElement,_iOpacity);this._triggerEvent(_sEventName,sDOMElement);}
else
syLog("_doOpacity: no DOM element.");}});syLog("jso_DOMHandler object was created.",CONSTANTS.LOG_TYPE_DEBUG_INFO);jso_DOMHandler.init();function pMsgBox(sName,sType)
{pDOMComponent.call(this,sName,sType);};pMsgBox.extend('DOMComponent',{_sMsgBoxName:"msgbox",_oDOMMsgBox:null,_bHideOnClick:true,iMSGBOX_DEFAULT_FADE_OUT_SECONDS:90,sMSGBOX_DEFAULT_AJAX_LOADER_IMAGE:"/ajax-loader.gif",_getIDString:function()
{return"fn MsgBox object.";},init:function(sMsgBoxName)
{syLog("MsgBox "+this.sName+"_"+sMsgBoxName+" initializing.");this._sMsgBoxName=sMsgBoxName;var _oDOMMsgBox=document.getElementById(this.sName+'_'+sMsgBoxName);if(_oDOMMsgBox)
{this._setEventHandler(_oDOMMsgBox,"onclick",this.onDIVBoxClick);}
else
{syLog("MsgBox: no '"+sMsgBoxName+"' box HTML Element, creating the default one.");_oDOMMsgBox=document.createElement("div");_oDOMMsgBox.innerHTML="<div id='"+this.sName+"_"+sMsgBoxName+"' style='position:absolute;display:none;text-align:center;'><table id='"+this.sName+"_"+sMsgBoxName+"_table' height='128' cellSpacing='16' cellPadding='16' width='280' align='center' bgColor='#ff3963' border='0'><tr><td style='COLOR: #484754; BACKGROUND-COLOR: #ffffff'><p style='text-ident:center;'><span id='"+this.sName+"_"+sMsgBoxName+"_container'><br /></span><span id='"+this.sName+"_"+sMsgBoxName+"_progressbar'></span></p></td></tr></table></div>";document.body.appendChild(_oDOMMsgBox);if(_oDOMMsgBox)
{this._setEventHandler(_oDOMMsgBox,"onclick",this.onDIVBoxClick);this._setEventHandler(_oDOMMsgBox,"onkeydown",this._onDIVBoxKeyDown);}
else
syLog("MsgBox "+this.sName+": ERROR: HTML create was unsuccessfull.");}
jso_DOMHandler.set(this.sName+"_"+sMsgBoxName);jso_DOMHandler.alwaysInBrowser(this.sName+"_"+sMsgBoxName,true);},setText:function(sText)
{var _oDOMText=document.getElementById(this.sName+"_"+this._sMsgBoxName+"_container");if(_oDOMText)
_oDOMText.innerHTML=sText;else
syLog("MsgBox: No "+this.sName+"_MsgBox_container ID in HTML document, cannot set the text.");},setProgressBar:function(bShow,sAjaxLoaderImage)
{var _oDOMText=document.getElementById(this.sName+"_"+this._sMsgBoxName+"_progressbar");if(_oDOMText)
_oDOMText.innerHTML=(bShow?"<br /><img src=\""+(sAjaxLoaderImage?sAjaxLoaderImage:this.sMSGBOX_DEFAULT_AJAX_LOADER_IMAGE)+"\" style=\"text-align:center\" />":"");else
syLog("MsgBox: No "+this.sName+"_MsgBox_progressbar ID in HTML document, cannot set the text.");},setHideOnClick:function(bHide)
{var _oDOMText=document.getElementById(this.sName+"_"+this._sMsgBoxName+"_container");if(_oDOMText)
{if(bHide==false)this._bHideOnClick=false;else this._bHideOnClick=true;}
else
syLog("MsgBox: No "+this.sName+"_MsgBox_container ID in HTML document, cannot set the attribute.");},hide:function(iSeconds)
{jso_DOMHandler.fadeOut(this.sName+"_"+this._sMsgBoxName,iSeconds);},show:function(iSeconds)
{if(!iSeconds)
var iSeconds=this.iMSGBOX_DEFAULT_FADE_OUT_SECONDS;jso_DOMHandler.show(this.sName+"_"+this._sMsgBoxName,iSeconds);if(document.sTopmostMsgBox)
jso_DOMHandler.backFromTop(document.sTopmostMsgBox);document.sTopmostMsgBox=this.sName+"_"+this._sMsgBoxName;jso_DOMHandler.putToTop(this.sName+"_"+this._sMsgBoxName);},onDIVBoxKeyDown:function(oEvent,oTarget)
{var _oObj=oTarget;while((!(_oObj.id==this.sName+"_"+this._sMsgBoxName))&&(_oObj.parentNode))
_oObj=_oObj.parentNode;if((_oObj.id==this.sName+"_"+this._sMsgBoxName)&&(this._bHideOnClick==true)&&(oEvent.keyCode==13))
jso_DOMHandler.fadeOut(this.sName+"_"+this._sMsgBoxName);},onDIVBoxClick:function(oEvent,oTarget)
{var _oObj=oTarget;while((!(_oObj.id==this.sName+"_"+this._sMsgBoxName))&&(_oObj.parentNode))
_oObj=_oObj.parentNode;if((_oObj.id==this.sName+"_"+this._sMsgBoxName)&&(this._bHideOnClick==true))
jso_DOMHandler.fadeOut(this.sName+"_"+this._sMsgBoxName);}});
