if(!window.componence)var componence={};if(!componence.lib)componence.lib={};componence.lib.Browser=function(){this.version="1.2.39";if(!Global.depends("componence.util.StringUtils"))return null;this.isSubStr=function(S,s){return (S.indexOf(s)<0)?"":S.substring(S.indexOf(s)+s.length,S.length)};this.appName=navigator.appName.toLowerCase();this.userAgent=navigator.userAgent.toLowerCase();this.browser=(this.appName)?((this.appName=="opera"||this.userAgent.indexOf("opera")>=0)?"opera":((this.appName.indexOf('netscape')>=0)?"ns":((this.userAgent.indexOf('msie')>=0)?"ie":((this.userAgent.indexOf('aol')>=0)?"aol":null)))):null;this.support=false;var v=0;if(this.browser!=null){if(typeof StringUtils!="undefined"){v=StringUtils.trimLeft(this.isSubStr(this.userAgent,(this.browser=="opera")?"opera":((this.browser=="ns")?"netscape":((this.browser=="aol")?"aol":"msie")))+((this.browser=="ns")?this.isSubStr(this.userAgent,"mozilla"):"")).replace(/\s/g,"/").split("/");this.v=parseFloat('0'+v[(this.browser=="ns"||v[0]=="")?1:0],10)}else{this.v=0}this.ns4=(this.browser=="ns"&&this.v>=4);this.isNs4=(this.browser=="ns"&&this.v>=4&&this.v<5);this.ns6=(this.browser=="ns"&&this.v>=5);this.isNs6=(this.browser=="ns"&&this.v>=5&&this.v<7);this.ns7=(this.browser=="ns"&&this.v>=6);this.isNs7=(this.browser=="ns"&&this.v>=7&&this.v<8);this.ie4=(this.browser=="ie"&&this.v>=4);this.isIe4=(this.browser=="ie"&&this.v>=4&&this.v<5);this.ie5=(this.ie4&&this.v>=5);this.isIe5=(this.browser=="ie"&&this.v>=5&&this.v<5.5);this.ie55=(this.ie5&&this.v>=5.5);this.isIe55=(this.browser=="ie"&&this.v>=5.5&&this.v<6);this.ie6=(this.ie55&&this.v>=6);this.isIe6=(this.browser=="ie"&&this.v>=6);this.op5=(this.browser=="opera"&&this.v>=5);this.isOp5=(this.browser=="opera"&&this.v>=5&&this.v<6);this.op6=(this.op5&&this.v>=6);this.isOp6=(this.browser=="opera"&&this.v>=6&&this.v<7);this.op7=(this.op6&&this.v>=7);this.isOp7=(this.browser=="opera"&&this.v>=7);v=((this.userAgent.indexOf('aol')>=0)?parseFloat('0'+StringUtils.trimLeft(this.isSubStr(this.userAgent,"aol")),10):0);this.aol4=(v>=4);this.isAol4=(v>=4&&v<5);this.aol5=(v>=5);this.isAol5=(v>=5&&v<6);this.aol6=(v>=6);this.isAol6=(v>=6&&v<7);this.aol7=(v>=7);this.isAol7=(v>=7);this.safari=(this.userAgent.indexOf("safari")!=-1);this.browser=(this.safari)?"safari":this.browser;this.ieMac5=((navigator.appVersion.indexOf("MSIE 5")!=-1)&&(navigator.platform.indexOf("Mac")!=-1));this.konqueror=(this.userAgent.indexOf("konqueror")!=-1);this.mozilla=(navigator.userAgent.indexOf("Gecko")!=-1&&!this.safari&&!navigator.userAgent.indexOf("Netscape")!=-1);if(this.mozilla){this.appName="mozilla";this.browser="mozilla";this.ns4=false}this.firefox=(this.mozilla&&this.userAgent.indexOf("firefox")!=-1)?true:false;if(this.firefox){this.appName="firefox";this.browser="firefox";var part=this.userAgent.split("firefox/");if(part&&part.length>1){this.v=parseFloat(part[1])}this.ns4=false}this.support=(this.ns4||this.ns6||this.ie4||this.op6||this.aol4);if(!this.ns4){this.dom=Global.isDefined(window.document.getElementById)}}function getPlatform(){if(!this.platform){this.platform=((this.userAgent.indexOf("win")>-1)?"win32":((this.userAgent.indexOf("mac")>-1)?"mac":"other"))}return this.platform}this.getPlatform=getPlatform;function getLocaleCode(){if(this.ns4||this.op5){code=navigator.language}else if(this.ie4){code=navigator.browserLanguage}return code.substring(0,2)}this.getLocaleCode=getLocaleCode;function getOS(){this.is_win31=this.is_win95=this.is_win98=this.is_winme=this.is_winnt=this.is_win2000=this.is_win2003=this.is_winxp=this.is_windows=this.is_win32=this.is_mac68k=this.is_macppc=this.is_macos=this.is_linux=this.is_other_os=false;this.os="Unknown";if((this.userAgent.indexOf("windows 3.1")!=-1)||(this.userAgent.indexOf("win16")!=-1)||(this.userAgent.indexOf("16bit")!=-1)||(this.userAgent.indexOf("16-bit")!=-1)){this.is_win31=true;this.os="Microsoft Windows 3.1"}else if((this.userAgent.indexOf("windows 95")!=-1)||(this.userAgent.indexOf("win95")!=-1)){this.is_win95=true;this.os="Microsoft Windows 95"}else if(this.userAgent.indexOf("win 9x 4.90")!=-1){this.is_winme=true;this.os="Microsoft Windows ME"}else if((this.userAgent.indexOf("windows 98")!=-1)||(this.userAgent.indexOf("win98")!=-1)){this.is_win98=true;this.os="Microsoft Windows 98"}else if((this.userAgent.indexOf("windows nt 5.1")!=-1)||(this.userAgent.indexOf("winnt 5.1")!=-1)){this.is_winxp=true;this.os="Microsoft Windows XP"}else if((this.userAgent.indexOf("windows nt 5.2")!=-1)||(this.userAgent.indexOf("winnt 5.2")!=-1)){this.is_win2003=true;this.os="Microsoft Windows Server 2003"}else if((this.userAgent.indexOf("windows nt 5.0")!=-1)||(this.userAgent.indexOf("winnt 5.0")!=-1)){this.is_win2000=true;this.os="Microsoft Windows 2000"}else if((this.userAgent.indexOf("windows nt")!=-1)||(this.userAgent.indexOf("winnt")!=-1)){this.is_winnt=true;this.os="Microsoft Windows NT"}else if((this.userAgent.indexOf("mac")!=-1)&&((this.userAgent.indexOf("68K")!=-1)||(this.userAgent.indexOf("68000")!=-1))){this.is_mac68k=true;this.os="Mac OS 680x0"}else if((this.userAgent.indexOf("mac")!=-1)&&((this.userAgent.indexOf("ppc")!=-1)||(this.userAgent.indexOf("powerpc")!=-1))){this.is_macppc=true;this.os="Mac OS PowerPC"}else if(this.userAgent.indexOf("linux")!=-1){this.is_linux=true;this.os="Linux"}else {this.is_other_os=true}return this.os}this.getOS=getOS;function getDoctype(){if(!this.doctype){var doctype=new Object();if(document.getElementsByTagName){var html=document.getElementsByTagName("HTML");if(html&&html.length){html=html[0];if(html.previousSibling){var doctypeObj=html.previousSibling;if(doctypeObj.nodeValue||doctypeObj.publicId){var tmp="";if(doctypeObj.nodeValue){tmp=String(doctypeObj.nodeValue)}else if(doctypeObj.publicId){tmp=String(doctypeObj.publicId)}tmp=tmp.toLowerCase();if(tmp.indexOf("dtd html 2.0")!=-1){doctype.name="html";doctype.version="2.0";doctype.type="undefined"}else if(tmp.indexOf("dtd html 3")!=-1){doctype.name="html";doctype.version="3.2";doctype.type="undefined"}else if(tmp.indexOf("dtd html 4.01 transitional")!=-1){doctype.name="html";doctype.version="4.01";doctype.type="transitional"}else if(tmp.indexOf("dtd html 4.01 frameset")!=-1){doctype.name="html";doctype.version="4.01";doctype.type="frameset"}else if(tmp.indexOf("dtd html 4.01")!=-1){doctype.name="html";doctype.version="4.01";doctype.type="strict"}else if(tmp.indexOf("dtd xhtml 1.0 frameset")!=-1){doctype.name="xhtml";doctype.version="1.0";doctype.type="frameset"}else if(tmp.indexOf("dtd xhtml 1.0 strict")!=-1){doctype.name="xhtml";doctype.version="1.0";doctype.type="strict"}else if(tmp.indexOf("dtd xhtml 1.0 transitional")!=-1){doctype.name="xhtml";doctype.version="1.0";doctype.type="transitional"}}}}this.doctype=doctype}}return this.doctype}this.getDoctype=getDoctype};function JSBrowser(){return new componence.lib.Browser()}componence.lib.EventManager=function(){this.version="1.2.39";if(!Global.depends("componence.lib.Browser"))return null;this.objectEvents=new Array();this.instanceName="EventManager";this.maxArguments=6;function setEvent(obj,eventName,handler){eventName=(String(eventName).substring(0,2)=="on")?String(eventName).substring(2):eventName;handler=(typeof handler=="string")?new Function(handler):handler;if(typeof obj.attachEvent!="undefined"){return obj.attachEvent("on"+eventName,handler)}else if(typeof obj.addEventListener!="undefined"){obj.addEventListener(eventName,handler,false);return true}else {eventName="on"+eventName;var oldHandler=obj[eventName];if(oldHandler){obj[eventName]=function(evn){oldHandler();handler()}}else {obj[eventName]=handler}return true}return false}this.setEvent=setEvent;function getSrcElement(e){if(e&&e.target)return e.target;else if(window.event&&event.srcElement)return event.srcElement;return null}this.getSrcElement=getSrcElement;function getEvent(e){if(e&&(e.pageX||e.target||e.which))return e;else if(window.event&&(event.clientX||event.srcElement||event.button))return event;return null}this.getEvent=getEvent;function getType(e){return this.getEvent(e).type}this.getType=getType;function getSrcType(e){return this.getSrcElement(e).type}this.getSrcType=getSrcType;function captureEvent(evn){var srcElement=EventManager.getSrcElement(evn);var evn=EventManager.getEvent(evn);var button=(evn.button)?evn.button:evn.which;var type=EventManager.getType(evn);var srcType=EventManager.getSrcType(evn);if(type=="mousedown"&&(button==2||button==3))return false;if(srcType!="textarea"&&srcType!="text"&&srcType!="password")return false}this.captureEvent=captureEvent;function addEvent(obj,eventName,eventHandler,handlerArg,index){if(!obj||!eventName||!eventHandler){this.usage(obj,eventName,eventHandler,handlerArg,index);return null}obj=(typeof obj=="string")?Global.getObject(obj):obj;if(!obj){this.usage(obj,eventName,eventHandler,handlerArg,index);return null}if(handlerArg&&typeof handlerArg=="number"){index=handlerArg;handlerArg=null}index=(index)?index:50;if(String(eventName).substring(0,2)=="on"){eventName=String(eventName).substring(2,eventName.length)}var isNewObject=true;var isNewEvent=true;var isNewHandler=true;var objIndex=null;var evnIndex=null;for(var i=0;i<this.objectEvents.length;i++){if(obj==this.objectEvents[i][0]){isNewObject=false;objIndex=i;break}}if(isNewObject){this.objectEvents[this.objectEvents.length]=[obj,[eventName,[[eventHandler,index,handlerArg]]]];objIndex=this.objectEvents.length-1;this.setEventHandler(obj,eventName)}else {for(var i=0;i<this.objectEvents[objIndex][1].length;i++){if(this.objectEvents[objIndex][1][i]==eventName){isNewEvent=false;evnIndex=i;break}}if(isNewEvent){var len=this.objectEvents[objIndex][1].length;this.objectEvents[objIndex][1][len]=eventName;this.objectEvents[objIndex][1][len+1]=[[eventHandler,index,handlerArg]];evnIndex=this.objectEvents[objIndex][1].length-1;this.setEventHandler(obj,eventName)}else {var len=this.objectEvents[objIndex][1][evnIndex+1].length;for(var i=0;i<len;i++){if(this.objectEvents[objIndex][1][evnIndex+1][i][0]==eventHandler){isNewHandler=false;break}}if(isNewHandler){var tmpIndex1=this.objectEvents[objIndex][1][evnIndex+1].length;this.objectEvents[objIndex][1][evnIndex+1][tmpIndex1]=[eventHandler,index,handlerArg]}else {return false}}}}this.addEvent=addEvent;this.setEventHandler=function(obj,eventName){var func=function(event){return EventManager.callHandler(this,event)};var attr="on"+eventName;if(obj.getAttribute){var saveHandler=obj.getAttribute(attr);if(saveHandler&&saveHandler.toString()!=func.toString()){obj.setAttribute(attr,null);saveHandler=String(saveHandler).replace(/\n/g,"");saveHandler=String(saveHandler).replace(/\r/g,"");if(String(saveHandler).match(/^function anonymous+/)){saveHandler=String(saveHandler).replace(/^function anonymous\(\)+/i,"");saveHandler=String(saveHandler).replace(/^function anonymous\(event\)+/i,"");saveHandler=String(saveHandler).replace(/^\s+/,"");saveHandler=String(saveHandler).replace(/^\{+/i,"");saveHandler=String(saveHandler).replace(/\}+$/i,"")}this.addEvent(obj,eventName,saveHandler,null,1)}}else if(obj.detachEvent){}else if(obj.removeEventListener){}if(Browser.op7||Browser.ns4||Browser.ie5){eval("obj.on"+eventName+" = func;")}else if(obj.setAttribute&&Browser.ie5){obj.setAttribute(attr,func)}else if(obj.attachEvent){obj.attachEvent("on"+eventName,func)}else if(obj.addEventListener){obj.addEventListener(eventName,func,false)}else {return false}return true};function callHandler(obj,eventName){var func=EventManager.getEvents(obj,eventName);obj.ga=EventManager.getArgument;if(func&&obj.ga){func.sort(EventManager.compareFunction);for(var i=0;i<func.length;i++){if(typeof func[i][0]=="function"){var arg=(func[i][2])?func[i][2]:[];if(arg.length>this.maxArguments){alert("EventManager dosn't support "+arg.length+" arguments\nMax arguments is "+this.maxArguments)}if(eval(func[i][0](obj.ga(arg,0),obj.ga(arg,1),obj.ga(arg,2),obj.ga(arg,3),obj.ga(arg,4,obj.ga(arg,5))))==false){return false}}else if(eval(func[i][0])==false){return false}}return true}else {return false}}this.callHandler=callHandler;this.getArgument=function(arg,index){return (arg[index])?arg[index]:null};this.compareFunction=function(a,b){return (Number(a[1])-Number(b[1]))};this.getEvents=function(obj,eventName){eventName=(typeof eventName=="object")?eventName.type:eventName;if(!Global.isDefined(eventName)){if(Global.isDefined(window.event)&&Global.isDefined(event.type)){eventName=event.type}}var objIndex=null;for(var i=0;i<this.objectEvents.length;i++){if(obj==this.objectEvents[i][0]){objIndex=i;break}}if(objIndex!=null){for(var i=0;i<this.objectEvents[objIndex][1].length;i++){if(this.objectEvents[objIndex][1][i]==eventName){return this.objectEvents[objIndex][1][i+1]}}}};this.usage=function(obj,eventName,eventHandler,handlerArg,index){obj=(obj)?obj:"object";eventName=(eventName)?eventName:"eventName";eventHandler=(eventHandler)?eventHandler:"eventHandler";handlerArg=(handlerArg)?handlerArg:"handlerArg";index=(index)?index:"index";var msg="Usage:\nEventManager.addEvent( "+obj+", "+eventName+", "+eventHandler+" [, "+handlerArg+", "+index+"]);";msg+="\n 1. "+obj+" [Object] - Required, event targeet";msg+="\n 2. "+eventName+" [String] - Required, event name";msg+="\n 3. "+eventHandler+" [String] - Required, event handler function, that executing via eval()";msg+="\n 4. "+handlerArg+" [Array] - Optional, arguments for eventHandler";msg+="\n 5. "+index+" [Int] - Optional, preoretet index, must be 1 - 100, default 50";msg+="\n\nNote: Max. length of handlerArg array is "+this.maxArguments;alert(msg)}};function JSEventManager(){return new componence.lib.EventManager()}componence.lib.FileUtils=function(){this.version="1.2.39";this.currentFile=null;this.request=null;function fileExists(file){this.request=this.getRequest();if(this.request){try{this.request.open('GET',file,false);this.request.send(null);return true}catch(e){}}else {}return false}this.fileExists=fileExists;function load(file){if(this.fileExists(file)){this.currentFile=file;var File=new JSFile();File.parseHeaders();return File}return null}this.load=load;function getXMLDoc(){return new XMLDoc(this.request,this.currentFile,"false")}this.getXMLDoc=getXMLDoc;function getFileName(file){file=String(file).toLowerCase();var fileName=String(file).split("/");fileName=fileName[fileName.length-1];return fileName}this.getFileName=getFileName;function getFilePath(file){file=String(file).toLowerCase();var path=String(file).split("/");var filePath="";for(var i=0;i<path.length-1;i++){filePath+=path[i]+"/"}return filePath}this.getFilePath=getFilePath;function getExtention(file){file=String(file).toLowerCase();var extension=String(file).split(".");extension=extension[extension.length-1];return extension}this.getExtention=getExtention;function getContentType(file){var fileType="unknown";var fileExt=this.getExtension(file);if(fileExt=="gif")fileType="image/gif";else if(fileExt=="jpeg"||fileExt=="jpg"||fileExt=="jpe")fileType="image/jpeg";else if(fileExt=="bmp")fileType="image/bmp";else if(fileExt=="png")fileType="image/png";else if(fileExt=="tif"||fileExt=="tiff")fileType="image/tiff";else if(fileExt=="exe"||fileExt=="jar"||fileExt=="class")fileType="application/octet-stream";else if(fileExt=="pdf")fileType="application/pdf";else if(fileExt=="rtf")fileType="application/rtf";else if(fileExt=="xls")fileType="application/x-excel";else if(fileExt=="doc")fileType="application/msword";else if(fileExt=="cgi")fileType="application/x-httpd-cgi";else if(fileExt=="js")fileType="application/x-javascript";else if(fileExt=="swf")fileType="application/x-shockwave-flash";else if(fileExt=="zip")fileType="application/zip";else if(fileExt=="kar"||fileExt=="mid"||fileExt=="midi")fileType="audio/midi";else if(fileExt=="mp2"||fileExt=="mp3"||fileExt=="mpga")fileType="audio/mpeg";else if(fileExt=="ram"||fileExt=="rm")fileType="audio/x-pn-realaudio";else if(fileExt=="rpm")fileType="audio/x-pn-realaudio-plugin";else if(fileExt=="wav")fileType="audio/x-wav";else if(fileExt=="css"||fileExt=="tiff")fileType="text/css";else if(fileExt=="htm"||fileExt=="html")fileType="text/html";else if(fileExt=="txt")fileType="text/plain";else if(fileExt=="xml")fileType="text/xml";else if(fileExt=="xsl")fileType="text/xsl";else if(fileExt=="mpe"||fileExt=="mpeg"||fileExt=="mpg")fileType="video/mpeg";else if(fileExt=="mov"||fileExt=="qt")fileType="video/quicktime";else if(fileExt=="avi"||fileExt=="wmv")fileType="video/x-msvideo";else fileType="unknown";return fileType}this.getContentType=getContentType;
function include(file){var path=null;var fileExt=this.getExtension(file);if(fileExt=="js"||fileExt=="vb"||fileExt=="vbs")path=ComponentConfig.scriptPath;else if(fileExt=="css")path=ComponentConfig.cssPath;else alert("incorrect include file: "+file);
if(path!=null)Global.include(path+""+file)

}this.include=include;this.getRequest=function(){if(!this.request){this.request=new XMLRequest()}return this.request};function JSFile(){this.owner=FileUtils;this.name=FileUtils.getFileName(FileUtils.currentFile);this.path=FileUtils.getFilePath(FileUtils.currentFile);this.content=FileUtils.request.responseText;this.extention=FileUtils.getExtention(FileUtils.currentFile);this.headers="";FileUtils.request.open('HEAD',FileUtils.currentFile,false);FileUtils.request.send(null);this.headers=FileUtils.request.getAllResponseHeaders();function parseHeaders(){var ie=navigator.userAgent.indexOf("MSIE")!=-1;if(ie){var lines=String(this.headers).split("\r\n")}else {var lines=String(this.headers).split("\n")}for(var l=0;l<lines.length;l++){var values=String(lines[l]).split(": ");if(values&&values[0]&&values[1]){var prop=String(values[0]);var firstChar=prop.charAt(0);prop=prop.replace(firstChar,firstChar.toLowerCase());if(prop.indexOf("-")!=-1){var tmp=prop.split("-");prop=tmp[0]+(tmp[1]).replace(tmp[1].charAt(0),tmp[1].charAt(0).toUpperCase())}else if(prop=="etag"){prop="eTag"}var singleQuote="'";var doubleQuote='"';var re=new RegExp(doubleQuote,"g");var str="this."+prop.replace(/-/gi,"")+" = '"+String(values[1]).replace(re,"")+singleQuote;eval(str)}}delete this.parseHeaders}this.parseHeaders=parseHeaders}function XMLRequest(){try{return new ActiveXObject('Msxml2.XMLHTTP')}catch (e){}try{return new ActiveXObject('Microsoft.XMLHTTP')}catch (e){}try{return new XMLHttpRequest()}catch (e){}try{return new OperaXMLHttpRequest()}catch (e){}return null};function XMLDoc(request,file,async){var xmlDoc=null;try{xmlDoc=new ActiveXObject('Microsoft.XMLDOM');xmlDoc.async=(async)?async:'false';xmlDoc.load(file)}catch(e){}if(!xmlDoc&&request&&request.responseXML){xmlDoc=request.responseXML}return xmlDoc}function OperaXMLHttpRequest(){this.readyState=0;this.status=0;this.statusText='';this._headers=[];this._aborted=false;this._async=true;this.abort=function(){this._aborted=true};this.getAllResponseHeaders=function(){return this.getAllResponseHeader('*')};this.getAllResponseHeader=function(header){var ret='';for(var i=0;i<this._headers.length;i++){if(header=='*'||this._headers[i].h==header){ret+=this._headers[i].h+': '+this._headers[i].v+'\n'}}return ret};this.setRequestHeader=function(header,value){this._headers[this._headers.length]={h:header,v:value}};this.open=function(method,url,async,user,password){this.method=method;this.url=url;this._async=true;this._aborted=false;if(arguments.length>=3){this._async=async}if(arguments.length>3){opera.postError('XMLHttpRequest.open() - user/password not supported')}this._headers=[];this.readyState=1;if(this.onreadystatechange){this.onreadystatechange()}};this.send=function(data){if(!navigator.javaEnabled()){alert("XMLHttpRequest.send() - Java must be installed and enabled.");return}if(this._async){setTimeout(this._sendasync,0,this,data)}else {this._sendsync(data)}};this._sendasync=function(req,data){if(!req._aborted){req._sendsync(data)}};this._sendsync=function(data){this.readyState=2;if(this.onreadystatechange){this.onreadystatechange()}var url=new java.net.URL(new java.net.URL(window.location.href),this.url);var conn=url.openConnection();for(var i=0;i<this._headers.length;i++){conn.setRequestProperty(this._headers[i].h,this._headers[i].v)}this._headers=[];if(this.method=='POST'){conn.setDoOutput(true);var wr=new java.io.OutputStreamWriter(conn.getOutputStream());wr.write(data);wr.flush();wr.close()}for(var i=1;;i++){var hdrName=conn.getHeaderFieldKey(i);var hdrValue=conn.getHeaderField(i);if(hdrName==null&&hdrValue==null){break}if(hdrName!=null){this._headers[this._headers.length]={h:hdrName,v:hdrValue}}}var reqdata='';var stream=conn.getInputStream();if(stream){var reader=new java.io.BufferedReader(new java.io.InputStreamReader(stream));var line;while((line=reader.readLine())!=null){if(this.readyState==2){this.readyState=3;if(this.onreadystatechange){this.onreadystatechange()}}reqdata+=line+'\n'}reader.close();this.status=200;this.statusText='OK';this.responseText=reqdata;this.readyState=4;if(this.onreadystatechange){this.onreadystatechange()}if(this.onload){this.onload()}}else {this.status=404;this.statusText='Not Found';this.responseText='';this.readyState=4;if(this.onreadystatechange){this.onreadystatechange()}if(this.onerror){this.onerror()}}}}};function JSFileUtils(){return new componence.lib.FileUtils()}componence.lib.FormManager=function(){this.version="1.2.39";if(!Global.depends("componence.lib.EventManager","componence.util.StringUtils")){this.addOnSubmitFunction=function(){};this.submitForm=function(){};this.makeFormContentSubmitable=function(){};this.getForm=function(){};this.getInput=function(){};this.setValue=function(){};this.getValue=function(){};this.chooseOption=function(){};this.chooseSelectOption=function(){};this.getMultiSelectValuesString=function(){};this.chooseMultiSelect=function(){};this.firstElemFocus=function(){};this.selectRadioByValue=function(){};this.selectCheckboxesByValue=function(){};this.setValueByCheckboxes=function(){};return null}function addOnSubmitFunction(formName,onSubmitFunction){var form=null;if(typeof formName=="string"){form=this.getForm(formName)}if(!form||form.tagName!="FORM"){return alert("FormManager can't find form with name \""+formName+"\"\t")}onSubmitFunction=(typeof onSubmitFunction=="string")?new Function(onSubmitFunction):onSubmitFunction;form.onSubmitFunctions=(form.onSubmitFunctions)?form.onSubmitFunctions:[];form.onSubmitFunctions[form.onSubmitFunctions.length]=onSubmitFunction}this.addOnSubmitFunction=addOnSubmitFunction;function submitForm(f){var c=false;if(f){var osf=f.onSubmitFunctions;if(osf&&osf.length){for(var i=0;i<osf.length;i++){c=osf[i]();if(c==false)return false;else
c=true}}else
c=true}return c}this.submitForm=submitForm;function makeFormContentSubmitable(f){var g=Global;f=(typeof form=="string")?document.forms[f]:f;f.onsubmit=function(){return FormManager.submitForm(this)};if(!g.isDefined(typeof f.submitContent)){f.submitContent=function(){var c=FormManager.submitForm(this);if(c!=false){this.submit()}}}if(!g.isDefined(typeof f.saveContent)){f.saveContent=function(){this.onsubmit()}}}this.makeFormContentSubmitable=makeFormContentSubmitable;function getForm(f){if(!Global.isDefined(typeof f)||f==null){return null}return document.forms[f]}this.getForm=getForm;function getInput(i,f){var f=this.getForm(f);if(f==null)return null;if(!Global.isDefined(typeof i)||i==null)return null;return f[i]}this.getInput=getInput;function setValue(i,f,v){var i=this.getInput(i,f);if(i){if(StringUtils.hasPrefix(i.type,'select')){for(var i=0;i<i.options.length;i++){if(i.options[i].value==v){i.options[i].selected=true;break}}}else
i.value=v}}this.setValue=setValue;function getValue(i,f){var i=this.getInput(i,f);if(i){if(i.type=="radio"){for(var i=0;i<i.length;i++){if(i[i].checked){return i[i].value}}}else
return i.value}else
return null}this.getValue=getValue;function chooseOption(s,v){for(var i=0;i<s.options.length;i++){var o=s.options[i];if(o.value==v)o.selected=true}}this.chooseOption=chooseOption;function chooseSelectOption(i,f,v){this.chooseOption(this.getInput(i,f),v)}this.chooseSelectOption=chooseSelectOption;function getMultiSelectValuesString(s){var r="";if(s){var op=s.options;var l=op.length;var f=false;for(var i=0;i<l;i++){var o=op[i];if(o.selected){var c=(f)?",":"";r+=c+o.value;f=true}}}return r}this.getMultiSelectValuesString=getMultiSelectValuesString;function chooseMultiSelect(s,v){var ids=v.split(",");var ex="";if(s){for(var i=0;i<ids.length;i++){var id=ids[i];var op=s.options;var l=op.length;for(var j=0;j<l;j++){var o=op[j];if(id==o.value){var equal=(ex!="")?" = ":"";ex+=equal+"s.options["+j+"].selected"}}}}ex+=(ex!="")?" = true;":"";eval(ex)}this.chooseMultiSelect=chooseMultiSelect;function firstElemFocus(){var d=document;var fs=d.forms;if(fs.length==0)return false;var focussed=false;var fi=0;while(fi<fs.length){var f=fs[fi++];if(!f||f.name=="smallSearchForm"){continue}var el=f.elements;if(f&&el.length>0){focussed=false;var i=0;while(i<el.length){var e=el[i++];if(e.type=="text"){try{e.focus();focussed=true;break}catch (e){}}}if(focussed){break}}}return focussed}this.firstElemFocus=firstElemFocus;function selectRadioByValue(f,r,v){var radio=this.getForm(f).elements[r];for(var i=0;i<radio.length;i++){if(radio[i].value==v){radio[i].checked=true;return radio[i]}}}this.selectRadioByValue=selectRadioByValue;function selectCheckboxesByValue(f,i,p){var form=FormManager.getForm(f);var input=form.elements[i];var values=String(input.value).split(";");for(var e=0;e<form.elements.length;e++){var chk=form.elements[e];if(chk.type=="checkbox"&&chk.name.indexOf(p)!=-1){for(var j=0;j<values.length;j++){if(values[j]==chk.value){chk.checked=true}}}}this.addOnSubmitFunction(formName,new Function("FormManager.setValueByCheckboxes('"+f+"', '"+i+"', '"+p+"')"))}this.selectCheckboxesByValue=selectCheckboxesByValue;function setValueByCheckboxes(f,i,p){var form=FormManager.getForm(f);var input=form.elements[i];input.value="";for(var e=0;e<form.elements.length;e++){var chk=form.elements[e];if(chk.type=="checkbox"&&chk.name.indexOf(p)!=-1&&chk.checked){input.value+=chk.value+";"}}}this.setValueByCheckboxes=setValueByCheckboxes};function JSFormManager(){return new componence.lib.FormManager()}componence.lib.Global=function(){this.version="1.2.39";this.files=[];this.js="javascript";this.vb="vbscript";this.css="css";function parseVersion(version){var t=String(version).split(".");var v={};v.major=parseInt(t[0]);v.minor=parseInt(t[1]);v.patch=parseInt(t[2]);return v}function getVersion(c){if(typeof(c)=="function")return parseVersion(new c().version);else if(typeof(c)=="object")return parseVersion(c.version);else if(typeof(c)=="string")return getVersion(window[c]);return null}this.getVersion=getVersion;function depends(){var i,c,a,m,e=0;m=" required follow classes:\t";c=getCallerName(depends.caller);c=c?c:"";m=c+m;for(a=0;a<arguments.length;a++){i=arguments[a];try{if(typeof i=="undefined"){e++;m+="\n  "+e+". "+i}}catch(x){e++;m+="\n  "+e+". "+i}}if(e>0){alert(m);return false}return true}this.depends=depends;function required(){var e=0;var m=" required follow classes:\t";var c=getCallerName(required.caller);c=c?c:"";m=c+m;for(var a=0;a<arguments.length;a++){var i=arguments[a];if(!window[i]){e++;m+="\n  "+e+". "+i;if(ComponenceComponents[i])m+=" (Files: "+ComponenceComponents[i]+")"}}if(e>0){alert(m);return false}return true}this.required=required;function getCallerName(c){var t=String(c).split("{");if(t){c=String(t[0]).replace(/(.*\/.*\/)(.*)(\(.*\))(\s)(\{?)/g,"$2");return c}return null}function include(f){if(isIncluded(f)){return false}var h=document.getElementsByTagName('head');if(h){if(h.item&&h.item(0)){h=h.item(0)}else if(h.length&&h[0]){h=h[0]}else {h=null}}else {h=null}var isJs=(hasExtention(".js",f)||hasExtention(".jar",f));var isVb=(hasExtention(".vb",f)||hasExtention(".vbs",f));var isCSS=hasExtention(".css",f);var g=this;var t=(isCSS)?g.css:((isJs)?g.js:g.vb);return writeFile(f,t)}this.include=include;function appendFile(f,t,h){var g=Global;var e=document.createElement(((t==g.css)?"link":"script"));e.type="text/"+t;if(t==g.js||t==g.vb){e.src=f}else if(t==g.css){e.href=f;e.rel="stylesheet"}try{h.appendChild(e)}catch(a){return writeFile(f,t)}g.files[g.files.length]=f;return true}function writeFile(f,t){var s="";var g=Global;if(t==g.js||t==g.vb){s="<script type='text/"+t+"' language='"+t+"' src='"+f+"'><\/scr"+"ipt>"}else if(t==g.css){s="<link href='"+f+"' rel='stylesheet' type='text/css' />"}if(s){document.write(s);g.files[g.files.length]=f;return true}return false}function getObject(id){var o=null;var d=document;if(typeof id=="object")o=id;else if(d.getElementById)o=d.getElementById(id);else if(d.all)o=d.all[id];else if(d.layers){o=d.layers[id];if(!this.isDefined(o))o=d.images[id];else o=null}else if(d.forms[id])o=d.forms[id];return o}this.getObject=getObject;function debug(obj){var o=obj;var s="";var n="";if(o.constructor){n=o.constructor.toString();n=String(n).split("{")[0];n=n.replace("function ","");n=String(n).split("(")[0];n=n.substring(2);if(!window[n])n=""}s+=((n!="")?n:"Object")+" properties:\r\n";for(var i in o){var t=(typeof o[i]=="function")?"method":typeof o[i];var name=i;var v=obj[i];if(t=="method"){v=String(o[i]).split("{")[0];v=v.replace("function ","");v=v.replace("function()","");v=v.replace(/function\([^\)]*\)/,"");v=v.replace(",",", ");v=v.replace(/\s/g," ");v=v.replace(/\r\n/g,"");v=v.replace(/\r/g,"");v=v.replace(/\n/g,"");name=""}if(String(v).trim()!=""){s+="\t"}if(t=="method"){if(String(v).trim()!=""){s+="["+t+"] "+(t!="boolean"?" ":"")}}else {s+="["+t+"] "+(t!="boolean"?" ":"")}if(t=="object"&&n!=""){s+="<a href='#' onclick='opener.Global.debug(opener."+n+"."+i+");return false'>"+name+"</a>";s+="\r\n"}else if(t=="method"&&v.indexOf("get")==0&&(v.indexOf("()")==v.length-2)&&n!=""){s+="<a href='#' onclick='alert(opener."+n+"."+v+");return false'>"+v+"</a>";s+="\r\n"}else {s+=name;s+=((t!="method")?" = ":"")+v;if(String(v).trim()!=""){s+="\r\n"}}}var w=screen.availWidth-16;var h=150;var t=screen.availHeight-h;this.debugWindow=window.open("","debugWindow","resizable=yes, scrollbars=yes, left=0, top="+t+", width="+w+", height="+h+", status=no");with(this.debugWindow.document){open("text/html");write("<html><head><title>Debug Window</title><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><style>a{color:blue}</style></head><body style='margin:0;padding:0;'><pre style='width:100%;height:100%;margin:0;border:0;'>"+s+"</pre>");close()}this.debugWindow.focus();return this.debugWindow}this.debug=debug;function isIncluded(f){var g=Global;for(var i=0;i<g.files.length;i++){if(g.files[i]==f){return true}}return false}function extend(subClass,superClass){subClass.prototype=new superClass()}/*this.extend=extend;*/function hasExtention(e,f){f=f.toLowerCase();e=e.toLowerCase();return (f.lastIndexOf(e)!=-1)}this.hasExtention=hasExtention;function isDefined(s){var s=String(s);return ((s!='undefined')&&(s!='null'))}this.isDefined=isDefined;function isObject(o){return (typeof o=="object")}this.isObject=isObject;function isFunction(f){return (typeof f=="function")}this.isFunction=isFunction;function isString(s){return (typeof s=="string")}this.isString=isString;function isArray(a){return a.instanceOf(Array)}this.isArray=isArray};componence.lib.Global.self=new componence.lib.Global();componence.lib.Global.version=componence.lib.Global.self.version;componence.lib.Global.getObject=componence.lib.Global.self.getObject;componence.lib.Global.getVersion=componence.lib.Global.self.getVersion;componence.lib.Global.required=componence.lib.Global.self.required;componence.lib.Global.isDefined=componence.lib.Global.self.isDefined;componence.lib.Global.isObject=componence.lib.Global.self.isObject;componence.lib.Global.isFunction=componence.lib.Global.self.isFunction;componence.lib.Global.isString=componence.lib.Global.self.isString;componence.lib.Global.isArray=componence.lib.Global.self.isArray;function JSGlobal(){return new componence.lib.Global()}componence.lib.HtmlUtils=function(){this.version="1.2.39";this.removeAllXml=true;this.removeAllNamespace=true;this.removeAllDelIns=true;this.removeMsoClass=true;this.removeAllLang=true;this.removeAllHtml=false;this.removeAllClass=false;this.removeAllStyle=false;this.removeAllFormatTags=false;this.removeAllSpan=false;this.removeAllFont=false;this.removeComments=true;this.removeEmptyP=false;this.removeEmptyDiv=false;this.removeEmptyFont=true;this.removeEmptySpan=true;this.parseFont=false;function clearWordTags(content){RegExp.global=true;RegExp.multiline=true;if(this.removeAllXml){content=content.replace(/<\?xml[^>]*>/gi,"");content=content.replace(/<\?[^>]*\?>/gi,"")}if(this.removeAllNamespace){content=content.replace(/<\/?[a-z]+:[^>]*>/gi,"")}if(this.removeAllDelIns){content=content.replace(/<del[^>]*>.*<\/del>/gi,"");content=content.replace(/<ins[^>]*>(.*)<\/ins>/gi,RegExp.$1)}return content}this.clearWordTags=clearWordTags;function clearWordAttributes(content){return content}this.clearWordAttributes=clearWordAttributes;function clearWord(content){content=this.clearWordAttributes(content);content=this.clearWordTags(content);return content}this.clearWord=clearWord;function removeEmptyTags(content){RegExp.global=true;RegExp.multiline=true;if(this.removeEmptyP){}if(this.removeEmptyDiv){}if(this.removeEmptyFont){}if(this.removeEmptySpan){}return content}this.removeEmptyTags=removeEmptyTags;function clearTags(content){RegExp.global=true;RegExp.multiline=true;content=this.removeEmptyTags(content);if(this.removeAllHtml){content=content.replace(/<\/?[^>]*>/gi,"")}if(this.removeAllClass){}if(this.removeAllStyle){}if(this.removeAllSpan){}if(this.removeAllFont){}if(this.removeAllFormatTags){content=content.replace(/<(\/?)address[^>]*>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<\/?b>/gi,"");content=content.replace(/<\/?big>/gi,"");content=content.replace(/<\/?blink[^>]*>/gi,"");content=content.replace(/<(\/?)blockquote>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)center>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<\/?cite>/gi,"");content=content.replace(/<\/?code>/gi,"");content=content.replace(/<\/?em>/gi,"");content=content.replace(/<(\/?)h1>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)h2>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)h3>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)h4>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)h5>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<(\/?)h6>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<\/?i>/gi,"");content=content.replace(/<\/?kbd>/gi,"");content=content.replace(/<(\/?)pre>/gi,"<"+RegExp.$1+"p>");content=content.replace(/<\/?q>/gi,"");content=content.replace(/<\/?s>/gi,"");content=content.replace(/<\/?samp>/gi,"");content=content.replace(/<\/?small>/gi,"");content=content.replace(/<\/?strike>/gi,"");content=content.replace(/<\/?strong>/gi,"");content=content.replace(/<\/?sub>/gi,"");content=content.replace(/<\/?sup>/gi,"");content=content.replace(/<\/?u>/gi,"");content=content.replace(/<\/?var>/gi,"")}content=content.replace(/<p([\s\t\r\n]+[^<]*)?><span([\s\t\r\n]+[^<]*)?>([^<]*)<\/p><\/span>/gi,"<p "+RegExp.$1+"><span "+RegExp.$2+">"+RegExp.$3+"</span></p>");content=content.replace(/<span([\s\t\r\n]+[^<]*)?><p([\s\t\r\n]+[^<]*)?>([^<]*)<\/span><\/p>/gi,"<p "+RegExp.$1+"><span "+RegExp.$2+">"+RegExp.$3+"</span></p>");if(this.removeComments){content=content.replace(/(\<\!--(.|\r|\n)[^--\>]*--\>)|(\<\!----\>)/gi,"")}return content}this.clearTags=clearTags;function clear(text){text=this.clearWord(text);text=this.clearTags(text);return text}this.clear=clear;function convertToXHTML(text){RegExp.global=true;RegExp.multiline=true;text=text.replace(/<i>/gi,"<em>");text=text.replace(/<\/i>/gi,"</em>");text=text.replace(/<u>/gi,"<span style='text-decoration:underline'>");text=text.replace(/<\/u>/gi,"</span>");text=text.replace(/<br>/gi,"<br />");text=text.replace(/<hr>/gi,"<hr />");var re=/<img(.*[^\/])>/i;while(re.test(text)){var src=(RegExp.$1).indexOf(" src");var alt=(RegExp.$1).indexOf(" alt");if(src==-1&&alt==-1){text=text.replace(re,"<img"+RegExp.$1+" src=\"\" alt=\"\" />")}else if(src==-1){text=text.replace(re,"<img"+RegExp.$1+" src=\"\" />")}else if(alt==-1){text=text.replace(re,"<img"+RegExp.$1+" alt=\"\" />")}else {text=text.replace(re,"<img"+RegExp.$1+" />")}}var re=/<input(.*[^\/])>/i;while(re.test(text)){var name=(RegExp.$1).indexOf(" name");var type=(RegExp.$1).indexOf(" type");if(name==-1&&type==-1){text=text.replace(re,"<input"+RegExp.$1+" name=\"\" type=\"text\" />")}else if(name==-1){text=text.replace(re,"<input"+RegExp.$1+" name=\"\" />")}else if(type==-1){text=text.replace(re,"<input"+RegExp.$1+" type=\"text\" />")}else {text=text.replace(re,"<input"+RegExp.$1+" />")}}if(this.parseFont==true){var re=/<font(.*)>(.*)<\/font>/i;while(re.test(text)){var face=(RegExp.$1).indexOf(" face");var size=(RegExp.$1).indexOf(" size");var color=(RegExp.$1).indexOf(" color");if(face==-1)face=(RegExp.$1).indexOf(" FACE");if(size==-1)size=(RegExp.$1).indexOf(" SIZE");if(color==-1)color=(RegExp.$1).indexOf(" COLOR");var tmp=(RegExp.$1).split(" ");var tmp2;var fontFamily="";var fontSize="";var fontColor="";var fontBGCol="";for(var i=0;i<tmp.length;i++){tmp2=tmp[i].split("=");for(var a=0;a<tmp2.length;a++){if(tmp2[a]=="face"||tmp2[a]=="FACE"){fontFamily=(tmp2[a+1]).replace(/\x22/g,"");if(fontFamily.indexOf(">")!=-1){fontFamily=fontFamily.split(">")[0]}}else if(tmp2[a]=="size"||tmp2[a]=="SIZE"){fontSize=(tmp2[a+1]).replace(/\x22/g,"")}else if(tmp2[a]=="color"||tmp2[a]=="COLOR"){fontColor=(tmp2[a+1]).replace(/\x22/g,"")}else if(tmp2[a+1]&&(tmp2[a+1].indexOf("BACKGROUND-COLOR:")!=-1||tmp2[a+1].indexOf("background-color:")!=-1)){fontBGCol=tmp2[a+1]+""+tmp[i+1];fontBGCol=String(fontBGCol).toLowerCase().replace(/\x22/g,"")}else {}}}if(fontSize=="1")fontSize=10;else if(fontSize=="2")fontSize=12;else if(fontSize=="3")fontSize=16;else if(fontSize=="4")fontSize=18;else if(fontSize=="5")fontSize=23;else if(fontSize=="6")fontSize=32;else if(fontSize=="7")fontSize=48;else fontSize=12;var fontStyle="style='";if(face!=-1&&fontFamily){fontStyle+="font-family:"+fontFamily+";"}if(size!=-1&&fontSize){fontStyle+="font-size:"+fontSize+"px;"}if(color!=-1&&fontColor){fontStyle+="color:"+fontColor+";"}if(fontBGCol!=""){fontStyle+=fontBGCol+";"}fontStyle+="'";text=text.replace(re,"<span "+fontStyle+">"+RegExp.$2+"</span>")}}return text}this.convertToXHTML=convertToXHTML;function encodeHTML(text){var re=/([^\u0000-\u0080])/i;while(re.test(text)){text=text.replace(re,"&#"+String(RegExp.$1).charCodeAt(0)+";")}text=text.replace(/\x22/gi,"&quot;");text=text.replace(/\x27/gi,"&#39;");return(text)}this.encodeHTML=encodeHTML;function decodeHTML(text){var re=/([&][#])([0-9]{3,4})(;)/i;while(re.test(text)){text=text.replace(re,String.fromCharCode(RegExp.$2))}return(text)}this.decodeHTML=decodeHTML;function nl2br(str){return str.replace(/\r\n|\n/g,"<br \/>")}this.nl2br=nl2br;function br2nl(str){return str.replace(/<br\/>|<br>/gi,"\n")}this.br2nl=br2nl;function addSlashes(str){str=str.replace(/\x22/g,'\\"');return str.replace(/\x27/g,"\\'")}this.addSlashes=addSlashes;function stripSlashes(str){str=str.replace(/\\\x22/g,'"');return str.replace(/\\\x27/g,"'")}this.stripSlashes=stripSlashes};function JSHtmlUtils(){return new componence.lib.HtmlUtils()}componence.lib.ImageUtils=function(){this.version="1.2.39";function preloadImages(){var d=document;if(d.images){if(!this.images){this.images=[]}var i,j=this.images.length,a=arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){this.images[j]=new Image;this.images[j++].src=a[i]}}}}this.preloadImages=preloadImages;function restoreImage(){var i,x,a=this.src;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc}this.restoreImage=restoreImage;function findImage(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=findImage(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x}function swapImage(){var i,j=0,x,a=arguments;this.src={};for(i=0;i<(a.length-2);i+=3){if((x=findImage(a[i]))!=null){this.src[j++]=x;if(!x.oSrc){x.oSrc=x.src}x.src=a[i+2]}}}this.swapImage=swapImage;

function isImage(type)       {return(String(type).toLowerCase().indexOf("image/")==0)}this.isImage=isImage;
function isFlash(type)       {return(String(type).toLowerCase()=="application/x-shockwave-flash")}this.isFlash=isFlash;
function isWindowsMedia(type){return(String(type).toLowerCase()=="video/x-ms-wmv")}this.isWindowsMedia=isWindowsMedia;

	function getImageTagSourceWithSize(img, id, type, width, height, extra) {
		var /*:imageSrc:*/ s = "";
		var /*:sizePart:*/ p = "";

		if(width) p += ' width="' + width + '"';

		if(height) p += ' height="' + height + '"';
  
		if(!extra) extra = "";

		if ( isFlash( type ) ) {
			s = '<object id="' + id + 'image' + '" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=2,0,0,0" ' + p + '><param name ="movie" value="' + img + '">';
			s += '<embed src="'+img+'" quality="high" name="'+id+'" type="application/x-shockwave-flash"'+p+'pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
		} else if ( isWindowsMedia(type) ) {
  			s = "<OBJECT id='" + id + "' width='" + width + "' height='" + height + "' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>        <param name='fileName' value='" + img + "'>        <param name='animationatStart' value='true'>        <param name='transparentatStart' value='true'>        <param name='autoStart' value='true'>        <param name='showControls' value='true'>        <param name='loop' value='true'>        <EMBED type='application/x-mplayer2'          pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'          id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'           bgcolor='darkblue' showcontrols='true' showtracker='-1'           showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='" + width + "' height='" + height + "'          src='" + img + "' autostart='true' designtimesp='5311' loop='true'>        </EMBED>      </OBJECT>";
		} else {
			s = '<img border="0" id="' + id + 'image' + '" src="' + img + '"' + p + extra + '>';
		}

		return s;
	}
	this.getImageTagSourceWithSize = getImageTagSourceWithSize;

function getImageHTML(src,type,width,height,extra){if((src==""||src=="null")&&!extra)return "";var r="";if(isFlash(type))return getImageTagSourceWithSize(src,"",type,width,height,extra);return getImageTagSourceWithSize(src,"",type,width,height,extra)}this.getImageHTML=getImageHTML;

function showImage(src,type,width,height,extra){document.write(getImageHTML(src,type,width,height,extra))}this.showImage=showImage;function installImageSizeValidation(id,widthConstraint,heightConstraint){var img=Global.getObject(id);if(!img)return;img.widthConstraint=widthConstraint;img.heightConstraint=heightConstraint;img.recalculateSize=function(){var w=this.width;var h=this.height;var nw=0;var nh=0;var wc=this.widthConstraint;wc=(wc==0)?w:wc;var hc=this.heightConstraint;hc=(hc==0)?h:hc;var tw=hc*w/h;var th=wc*h/w;if(w>wc&&h>hc){if(tw<wc){nw=tw;nh=hc}else {nw=wc;nh=th}}else if(w>wc&&h<=hc){nw=wc;nh=th}else if(w<=wc&&h>hc){nw=tw;nh=hc}else {nw=w;nh=h}this.width=(nw>=1)?nw:1;this.height=(nh>=1)?nh:1};if(!img.complete)img.onload=recalculateSize;else img.recalculateSize()}this.installImageSizeValidation=installImageSizeValidation};function JSImageUtils(){return new componence.lib.ImageUtils()}componence.lib.Mouse=function(){this.version="1.2.39";function clientX(e){e=this.getEvent(e);return (e&&e.pageX)?e.pageX:(e&&e.clientX)?e.clientX:0}this.clientX=clientX;function clientY(e){e=this.getEvent(e);return (e&&e.pageY)?e.pageY:(e&&e.clientY)?e.clientY:0}this.clientY=clientY;function screenX(e){e=this.getEvent(e);return (e&&e.screenX)?e.screenX:0}this.screenX=screenX;function screenY(e){e=this.getEvent(e);return (e&&e.screenY)?e.screenY:0}this.screenY=screenY;function getX(e){e=this.getEvent(e);return (e&&e.x)?e.x:0}this.getX=getX;function getY(e){e=this.getEvent(e);return (e&&e.y)?e.y:0}this.getY=getY;function button(e){e=this.getEvent(e);return (e&&e.which)?e.which:(e&&e.button)?e.button:0}this.button=button;function getEvent(e){var w=window;if(e&&(e.pageX||e.target||e.which))return e;e=w.event;if(e&&(e.clientX||e.srcElement||e.button))return e;return null}this.getEvent=getEvent};function JSMouse(){return new componence.lib.Mouse()}componence.lib.Template=function(leftVarSeparator,rightVarSeparator){this.version="1.2.39";if(!Global.depends("componence.util.ArrayList","componence.util.HashMap","componence.util.StringUtils"))return null;this.leftVarSeparator=leftVarSeparator||"{";this.rightVarSeparator=rightVarSeparator||"}";this.bugs=false;this.EMPTY_STRING="";this.repeatBlocks=new JSArrayList();this.blockNameList=new JSArrayList();this.dBlocks=new JSHashMap();this.parsedBlocks=new JSHashMap();function getBlockNameList(){return this.blockNameList}this.getBlockNameList=getBlockNameList;this.info=function(message){};this.setDBlock=function(name,value){this.dBlocks.put(name,value)};this.containsDBlock=function(name){return this.dBlocks.containsKey(name)};this.getDBlock=function(name){var value=this.dBlocks.get(name);return (value==null)?this.EMPTY_STRING:value};this.setSParsedBlock=function(name,value){if(value==null){this.clearVar(name);return}this.parsedBlocks.put(name,value)};this.getSParsedBlock=function(name){var value=this.getParsedBlock(name);return (value==null)?this.EMPTY_STRING:value};this.getSBParsedBlock=function(name){var value=this.getParsedBlock(name);var sbValue="";if(value==null)this.parsedBlocks.put(name,sbValue);else sbValue=value;return (Global.isDefined(sbValue))?sbValue:""};this.removeParsedBlock=function(name){remove(this.parsedBlocks,name)};this.getParsedBlock=function(name){return this.parsedBlocks.get(name)};function clear(){this.dBlocks.clear();this.parsedBlocks.clear();this.repeatBlocks.clear()}this.clear=clear;function getVar(name){var result=this.getDBlock(name);return (result==null)?this.EMPTY_STRING:result}this.getVar=getVar;function setVar(name,value){if(value==null)this.clearVar(name);else this.setSParsedBlock(name,value)}this.setVar=setVar;function printVar(name){var value=this.getParsedBlock(name);return (value==null)?this.EMPTY_STRING:value}this.printVar=printVar;function clearVar(name){this.setVar(name,this.EMPTY_STRING)}this.clearVar=clearVar;function setTemplateContent(name,fileContent,overwrite){if(this.dBlocks.containsKey(name)&&!overwrite)return;if(fileContent!=null){this.setDBlock(name,fileContent);var nName=this.nextDBlockName(name);while(!(nName==null||""==nName)){this.setBlock(name,nName);nName=this.nextDBlockName(name)}}this.modifyBlockNameList(name,fileContent)}this.setTemplateContent=setTemplateContent;function loadTemplateContent(name,url,overwrite){var result="";var request=null;if(!request){try{request=new ActiveXObject('Msxml2.XMLHTTP')}catch (e){}}if(!request){try{request=new ActiveXObject('Microsoft.XMLHTTP')}catch (e){}}if(!request){try{request=new XMLHttpRequest()}catch (e){}}if(request){url=StringUtils.makeUncachebleURL(url);request.open('GET',url,false);request.send(null);result=request.responseText}this.setTemplateContent(name,result,overwrite)}this.loadTemplateContent=loadTemplateContent;this.setBlock=function (tplName,blockName){this.setDBlock(blockName,this.getBlock(this.getDBlock(tplName),blockName));this.setDBlock(tplName,this.replaceBlock(this.getDBlock(tplName),blockName));var nName=this.nextDBlockName(blockName);while(!(""==nName)){this.setBlock(blockName,nName);nName=this.nextDBlockName(blockName)}};function getBlock(template,name){if(this.bugs){this.info("J> getBlock ["+template+"|"+name+"]")}var bBlock,eBlock,alpha;alpha=name.length+12;bBlock=template.indexOf("<!--Begin"+name+"-->");eBlock=template.indexOf("<!--End"+name+"-->");if(!(bBlock==-1||eBlock==-1)){return template.substring(bBlock+alpha,eBlock)}alpha+=2;bBlock=template.indexOf("<!--Begin["+name+"]-->");eBlock=template.indexOf("<!--End["+name+"]-->");if(!(bBlock==-1||eBlock==-1)){return template.substring(bBlock+alpha,eBlock)}return null}this.getBlock=getBlock;function replaceBlock(template,name){if(this.bugs){this.info("J> replaceBlock ["+template+"|"+name+"]")}var bBlock,eBlock;bBlock=template.indexOf("<!--Begin"+name+"-->");eBlock=template.indexOf("<!--End"+name+"-->");if(!(bBlock==-1||eBlock==-1)){return template.substring(0,bBlock)+this.leftVarSeparator+name+this.rightVarSeparator+template.substring(eBlock+("<!--End"+name+"-->").length,template.length)}bBlock=template.indexOf("<!--Begin["+name+"]-->");eBlock=template.indexOf("<!--End["+name+"]-->");if(!(bBlock==-1||eBlock==-1)){return template.substring(0,bBlock)+this.leftVarSeparator+name+this.rightVarSeparator+template.substring(eBlock+("<!--End["+name+"]-->").length,template.length)}return template}this.replaceBlock=replaceBlock;function nextDBlockName(templateName){if(this.bugs){this.info("J> nextDBlockName ["+templateName+"]")}var bTag=0,eTag=0;var name="",template="";template=this.getDBlock(templateName);bTag=template.indexOf("<!--Begin");if(bTag!=-1){eTag=template.indexOf("-->",bTag);name=template.substring(bTag+9,eTag);if(template.indexOf("<!--End"+name+"-->")!=-1){if(name.charAt(0)=='['&&name.charAt(name.length-1)==']'){name=name.substring(1,name.length-1)}return name}}return ""}this.nextDBlockName=nextDBlockName;this.END_BLOCK_PREFIX="<!--End";this.BLOCK_SUFFIX="-->";this.END_BLOCK_PREFIX_LENGTH=this.END_BLOCK_PREFIX.length;this.BLOCK_SUFFIX_LENGTH=this.BLOCK_SUFFIX.length;this.modifyBlockNameList=function(parentBlockName,content){if(content!=null){var newBlockList=new Array();var pos=0;var pos2=0;var pos3=0;loop:while((pos2=content.indexOf(this.END_BLOCK_PREFIX,pos))!=-1){if((pos3=content.indexOf(this.BLOCK_SUFFIX,pos2))!=-1){var nameStartPos=pos2+this.END_BLOCK_PREFIX_LENGTH;var nameEndPos=pos3;if(content.charAt(nameStartPos)=='['&&content.charAt(nameEndPos-1)==']'){nameStartPos++;nameEndPos--}var blockName=content.substring(nameStartPos,nameEndPos);newBlockList.add(blockName);pos=pos3+this.BLOCK_SUFFIX_LENGTH}else {breakloop}}var idx=this.blockNameList.indexOf(parentBlockName);if(idx!=-1){this.blockNameList.insertAt(newBlockList,idx)}else {this.blockNameList.concat(newBlockList);this.blockNameList.add(parentBlockName)}}};function parse(name,repeat){var block=this.getDBlock(name);if(block==this.EMPTY_STRING)return;if(this.repeatBlocks.contains(name)){this.clearVar(name);this.repeatBlocks.remove(name)}if(!repeat)this.repeatBlocks.add(name);var value=this.getSBParsedBlock(name);var start=value.length;value+=block;var begin=-1,end=-1;for(var x=start;x<value.length;x++){switch(value.charAt(x)){case this.leftVarSeparator:begin=x;break;case this.rightVarSeparator:if(begin==-1)break;end=x;var variable=value.substring(begin+1,end);var blockValue=this.getParsedBlock(variable);if(blockValue==null){if(!this.containsDBlock(variable)){break}blockValue=this.getDBlock(variable)}var prefix=value.substring(0,begin);var suffix=value.substring(end+1);value=prefix+blockValue+suffix;x=prefix.length+blockValue.length-1;begin=-1}}this.parsedBlocks.put(name,value)}this.parse=parse;this.getSize=function(blockValue){return blockValue.length};this.getChar=function(blockValue,offset){return blockValue.charAt(offset)}};function JSTemplate(leftVarSeparator,rightVarSeparator){return new componence.lib.Template(leftVarSeparator,rightVarSeparator)}componence.lib.Validator=function(){this.version="1.2.39";function isBlankOrNull(value){var s=String(value);s=s.replace(/^\s+/,"");s=s.replace(/\s+$/,"");return (s=="")}this.isBlankOrNull=isBlankOrNull;function isCreditCard(type,ccnum){var d,s,i,re,n,t=type;n=ccnum;if(t=="Visa")re=/^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/;else if(t=="MC")re=/^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/;else if(t=="Disc")re=/^6011-?\d{4}-?\d{4}-?\d{4}$/;else if(t=="AmEx")re=/^3[4,7]\d{13}$/;else if(t=="Diners")re=/^3[0,6,8]\d{12}$/;if(!re.test(n))return false;s=0;for(i=(2-(n.length%2));i<=n.length;i+=2)s+=parseInt(n.charAt(i-1));for(i=(n.length%2)+1;i<n.length;i+=2){d=parseInt(n.charAt(i-1))*2;s+=(d<10)?d:(d-9)}return ((s%10)==0)}this.isCreditCard=isCreditCard;function isDate(date,format){var yy,dd,mm,p,r1,r2,f,d=date;f=format;if(!f)f="MDY";f=f.toUpperCase();if(f.length!=3)f="MDY";if((f.indexOf("M")==-1)||(f.indexOf("D")==-1)||(f.indexOf("Y")==-1))f="MDY";if(f.substring(0,1)=="Y"){r1=/^\d{2}(\-|\/|\.)\d{1,2}\1\d{1,2}$/;r2=/^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/}else if(f.substring(1,2)=="Y"){r1=/^\d{1,2}(\-|\/|\.)\d{2}\1\d{1,2}$/;r2=/^\d{1,2}(\-|\/|\.)\d{4}\1\d{1,2}$/}else {r1=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/;r2=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/}if((r1.test(d)==false)&&(r2.test(d)==false))return false;p=d.split(RegExp.$1);if(f.substring(0,1)=="M")mm=p[0];else if(f.substring(1,2)=="M")mm=p[1];else mm=p[2];if(f.substring(0,1)=="D")dd=p[0];else if(f.substring(1,2)=="D")dd=p[1];else dd=p[2];if(f.substring(0,1)=="Y")yy=p[0];else if(f.substring(1,2)=="Y")yy=p[1];else yy=p[2];if(parseFloat(yy)<=50)yy=(parseFloat(yy)+2000).toString();if(parseFloat(yy)<=99)yy=(parseFloat(yy)+1900).toString();var dt=new Date(parseFloat(yy),parseFloat(mm)-1,parseFloat(dd),0,0,0,0);if(parseFloat(dd)!=dt.getDate())return false;if(parseFloat(mm)-1!=dt.getMonth())return false;return true}this.isDate=isDate;function isDouble(value){value=parseFloat(value);return (value<=1.7976931348623157E308&&value>=4.9E-324)}this.isDouble=isDouble;function isEmail(mail){var re=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;return re.test(mail)}this.isEmail=isEmail;function isFloat(value){value=parseFloat(value);return (value<=3.4028235E38&&value>=1.4E-45)}this.isFloat=isFloat;function isInt(value){value=parseInt(value);return (this.isDigit(value)&&value<=2147483647&&value>=-2147483648)}this.isInt=isInt;function isLong(value){return (this.isDigit(value)&&value<=9223372036854775807&&value>=-9223372036854775808)}this.isLong=isLong;function isUrl(value){var re=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return re.test(value)}this.isUrl=isUrl;function isDutchZipCode(zipCode){return (/^\d{4}(\s[a-z]{2})?$/).test(zipCode)}this.isDutchZipCode=isDutchZipCode;function isAlphaNumeric(value){return (/^(\w)+$/).test(value)}this.isAlphaNumeric=isAlphaNumeric;function isDigit(value){return (/^(\d)+$/).test(value)}this.isDigit=isDigit;function isNumber(value){var c,i,s,d,o=false;d=0;s=value.toString();for(i=0;i<s.length;i++){c=s.charAt(i);if(i==0&&c=="-")continue;if(c=="."&&!o){d=true;continue}if(c<"0"||c>"9")return false;else d++}return (d>0)}this.isNumber=isNumber;function isIPAddress(ip){var re=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;if(re.test(ip)){var i,p=ip.split(".");if(parseInt(parseFloat(p[0]))==0)return false;for(i=0;i<p.length;i++)if(parseInt(parseFloat(p[i]))>255)return false;return true}return false}this.isIPAddress=isIPAddress;function isPhone(phone,maxLength){var m,plus,n,re,r,l,p=String(phone);l=maxLength;r=true;re=/[A-Za-z]/gi;if(re.test(p))r=false;n=p.replace(/(\D)/gi,"");if(!(n.length>=l))r=false;plus=p.split("+");if(!(plus.length<=2))r=false;m=p.split("-");if(!(m.length<=3))r=false;var firstBracket=p.split("(");var lastBracket=p.split(")");if(!(firstBracket.length<=2)||!(firstBracket.length==lastBracket.length))r=false;if(p.indexOf("-")==0||p.indexOf("-")==p.length-1)r=false;if(p.indexOf("+")==p.length-1)r=false;return r}this.isPhone=isPhone};function JSValidator(){return new componence.lib.Validator()}componence.lib.VisualElementManager=function(){this.version="1.2.39";if(!Global.depends("componence.lib.Browser"))return null;function getBody(w){if(!w)w=window;if(w.document.compatMode=='CSS1Compat')return w.document.documentElement;else return w.document.body}this.getBody=getBody;function getWindowLeft(w){if(!w)w=window;if(w.screenLeft)return w.screenLeft;if(w.screenX)return w.screenX;return 0}this.getWindowLeft=getWindowLeft;function getWindowTop(w){if(!w)w=window;if(w.screenTop)return w.screenTop;if(w.screenY)return w.screenY;return 0}this.getWindowTop=getWindowTop;function getWindowWidth(w){if(!w)w=window;if(w.innerWidth)return w.innerWidth;return getBody(w).clientWidth}this.getWindowWidth=getWindowWidth;function getWindowHeight(w){if(!w)w=window;if(w.innerHeight)return w.innerHeight;return getBody(w).clientHeight}this.getWindowHeight=getWindowHeight;function getDocumentWidth(w){if(!w)w=window;var v=getBody(w).scrollWidth;if(v)return v;if(w.document.width)return w.document.width;return w.document.body.style.pixelWidth}this.getDocumentWidth=getDocumentWidth;function getDocumentHeight(w){if(!w)w=window;var b=getBody(w);if(b&&b.scrollHeight)return b.scrollHeight;if(w.document.height)return w.document.height;return w.document.body.style.pixelHeight}this.getDocumentHeight=getDocumentHeight;function getScrollX(w){if(!w)w=window;var v=getBody(w).scrollLeft;return (typeof v!="undefined"&&v!=null)?v:(typeof w.pageXOffset!="undefined")?w.pageXOffset:0}this.getScrollX=getScrollX;function getScrollY(w){if(!w)w=window;var v=getBody(w).scrollTop;return (typeof v!="undefined"&&v!=null)?v:(typeof w.pageYOffset!="undefined")?w.pageYOffset:0}this.getScrollY=getScrollY;function getLeft(o){var x=o.offsetLeft;while(o.tagName!="BODY"){if(o.offsetParent){if(o.tagName!="TR"){o=o.offsetParent;x+=o.offsetLeft}}else return x}return x}this.getLeft=getLeft;function getTop(o){var y=o.offsetTop;while(o.tagName!="BODY"){if(o.offsetParent){if(o.tagName!="TR"){o=o.offsetParent;y = y + o.offsetTop-o.scrollTop}}else return y}return y}this.getTop=getTop;function getScrollTop(w){return this.getScrollY(w)}this.getScrollTop=getScrollTop;function getScrollLeft(w){return this.getScrollX(w)}this.getScrollLeft=getScrollLeft;function getBodyHeight(w){return this.getDocumentHeight(w)}this.getBodyHeight=getBodyHeight;function getBodyWidth(w){return this.getDocumentWidth(w)}this.getBodyWidth=getBodyWidth;function getWindowSize(w){var o={};o.width=this.getWindowWidth(w);o.height=this.getWindowHeight(w);return o}this.getWindowSize=getWindowSize;function showHideElements(o,a){if(!this.hider)this.hider=new componence.lib.VisualElementManager.Hidder();if(a=="hidden"||a=="hide"){var iX=VisualElementManager.getLeft(o)+"px";var iY=VisualElementManager.getTop(o)+"px";var iW=o.offsetWidth+"px";var iH=o.offsetHeight+"px";this.hider.hide(iX,iY,iW,iH)}else this.hider.show()}this.showHideElements=showHideElements;function hideSelectElement(tag,o){showHideElements(o,"hide")}this.hideSelectElement=hideSelectElement;function showSelectElement(tag,o){if(!this.hider)this.hider=new componence.lib.VisualElementManager.Hidder();this.hider.show()}this.showSelectElement=showSelectElement;function installImageSizeValidation(id,widthConstraint,heightConstraint){return ImageUtils.installImageSizeValidation(id,widthConstraint,heightConstraint)}this.installImageSizeValidation=installImageSizeValidation;function getImageTagSource(src,id,type){return ImageUtils.getImageTagSource(src,id,type)}this.getImageTagSource=getImageTagSource;function geckoRemoveNode(removeChildren){var oThis=this;if(Boolean(removeChildren)){return this.parentNode.removeChild(oThis)}else {var range=document.createRange();range.selectNodeContents(oThis);return this.parentNode.replaceChild(range.extractContents(),oThis)}}function geckoElementFromPoint(x,y){this.addEventListener("mousemove",this.elementFromPoint__handler,false);var event=this.createEvent("MouseEvents");var box=this.getBoxObjectFor(this.documentElement);var screenDelta={x:box.screenX,y:box.screenY};event.initMouseEvent("mousemove",true,false,this.defaultView,0,x+screenDelta.x,y+screenDelta.y,x,y,false,false,false,false,0,null);this.dispatchEvent(event);this.removeEventListener("mousemove",this.elementFromPoint__handler,false);return this.elementFromPoint__target}function geckoElementFromPoint__handler(event){this.elementFromPoint__target=event.explicitOriginalTarget;if(this.elementFromPoint__target.nodeType==Node.TEXT_NODE)this.elementFromPoint__target=this.elementFromPoint__target.parentNode;if(this.elementFromPoint__target.nodeName.toUpperCase()=="HTML"&&this.documentElement.nodeName.toUpperCase()=="HTML")this.elementFromPoint__target=this.getElementsByTagName("BODY").item(0);event.preventDefault();event.stopPropagation()}if(window.Node&&typeof window.Node.removeNode=="undefined"){if(navigator.product=="Gecko"&&Browser.browser!="safari"){Node.prototype.removeNode=geckoRemoveNode;Document.prototype.elementFromPoint=geckoElementFromPoint;Document.prototype.elementFromPoint__handler=geckoElementFromPoint__handler;Document.prototype.elementFromPoint__target=null}}};function JSVisualElementManager(){return new componence.lib.VisualElementManager()}componence.lib.VisualElementManager.Hidder=function(){var d,w=window;d=w.document;this.iframe=w.iframeHider;this.hide=function(iX,iY,iW,iH){if(typeof w.external!="undefined"){if(this.iframe==null){this.iframe=d.createElement("IFRAME");this.iframe.border=this.iframe.frameborder=this.iframe.frameBorder=0;this.iframe.src="about:blank";with(this.iframe.style){position="absolute";display="none";top=0;left=0}d.body.appendChild(this.iframe)}with(this.iframe.style){display="block";left=iX;top=iY;width=iW;height=iH}}w.iframeHider=this.iframe};this.show=function(){this.iframe=w.iframeHider;if(this.iframe)this.iframe.style.display="none"}};function JSVisualElementHider(){return new componence.lib.VisualElementManager.Hidder()}componence.lib.WindowManager=function(){this.version="1.2.39";if(!Global.depends("componence.lib.EventManager"))return null;function addOnLoadFunction(func){if(Global.isDefined(func))this.addOnLoadFunctionWithIndex(func,50)}this.addOnLoadFunction=addOnLoadFunction;function addOnErrorFunction(func){if(Global.isDefined(func))this.addOnErrorFunctionWithIndex(func,50)}this.addOnErrorFunction=addOnErrorFunction;function addOnResizeFunction(func){if(Global.isDefined(func))this.addOnResizeFunctionWithIndex(func,50)}this.addOnResizeFunction=addOnResizeFunction;function addOnLoadFunctionWithIndex(func,index){EventManager.setEvent(window,"onload",func)}this.addOnLoadFunctionWithIndex=addOnLoadFunctionWithIndex;function addOnErrorFunctionWithIndex(func,index){EventManager.setEvent(window,"onerror",func)}this.addOnErrorFunctionWithIndex=addOnErrorFunctionWithIndex;function addOnResizeFunctionWithIndex(func,index){EventManager.setEvent(window,"onresize",func)}this.addOnResizeFunctionWithIndex=addOnResizeFunctionWithIndex};function JSWindowManager(){return new componence.lib.WindowManager()}var Global=new componence.lib.Global();var Browser=new componence.lib.Browser();var EventManager=new componence.lib.EventManager();var FileUtils=new componence.lib.FileUtils();var FormManager=new componence.lib.FormManager();var HtmlUtils=new componence.lib.HtmlUtils();var HtmlProcessor=new componence.lib.HtmlUtils();var ImageUtils=new componence.lib.ImageUtils();var Mouse=new componence.lib.Mouse();var Validator=new componence.lib.Validator();var VisualElementManager=new componence.lib.VisualElementManager();var WindowManager=new componence.lib.WindowManager();