/* JavaScript API(3.0.0.1)Copyright by Janus Systems S.A. 1998-2008 */function processCallBackJSContent(xml,steps,form,cid){if(cid==null||cid=="")cid="GRIDEX";var xscripts=0;if(steps!=null&&steps.length!=null){for(var z=0;z<steps.length;z++){var step=steps[z];var node=null;if(step=="STATE"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("STATE")[0];else node=xml.selectSingleNode(cid+"//STATE");if(node!=null&&node!=undefined){try{if(document.getElementsByName("__VIEWSTATE")[0].value!=node.childNodes[0].nodeValue)document.getElementsByName("__VIEWSTATE")[0].value=node.childNodes[0].nodeValue;}catch(zz){}}}if(step=="VALIDATION"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("VALIDATION")[0];else node=xml.selectSingleNode(cid+"//VALIDATION");if(node!=null&&node!=undefined){try{if(document.getElementsByName("__EVENTVALIDATION")[0].value!=node.childNodes[0].nodeValue)document.getElementsByName("__EVENTVALIDATION")[0].value=node.childNodes[0].nodeValue;}catch(zz){}}}if(step=="HIDDEN_FIELD"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("HIDDEN_FIELD");else node=xml.selectNodes(cid+"//HIDDEN_FIELDS//HIDDEN_FIELD");if(node!=null&&node!=undefined&&node.length>0){for(var i=0;i<node.length;i++){var xnode=node[i];var xid=xnode.childNodes[0].childNodes[0].nodeValue;var xvalue=xnode.childNodes[1].childNodes[0].nodeValue;var xelement=document.getElementById(xid);if(xelement==null){xelement=document.createElement("INPUT");xelement.id=xid;xelement.name=xid;xelement.type="hidden";form.appendChild(xelement);}xelement.value=xvalue;}}}if(step=="ARRAY"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("ARRAY");else node=xml.selectNodes(cid+"//ARRAYS//ARRAY");if(node!=null&&node!=undefined&&node.length>0){for(var i=0;i<node.length;i++){var xnode=node[i];var xid=xnode.childNodes[0].childNodes[0].nodeValue;var xvalue=xnode.childNodes[1].childNodes[0].nodeValue;var xarray=eval(xvalue);window[xid]=xarray;}}}if(step=="SCRIPT_FILE"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("SCRIPT_FILE");else node=xml.selectNodes(cid+"//SCRIPT_FILES//SCRIPT_FILE");if(node!=null&&node!=undefined&&node.length>0){for(var i=0;i<node.length;i++){var xnode=node[i];var xsrc=xnode.childNodes[0].nodeValue;if(!isScriptLoaded(xsrc)){var xscript=document.createElement("SCRIPT");if(document.readyState==null){xscript.type="text/javascript";xscript.src=xsrc;}if(document.readyState!=null){xscript.attachEvent("onreadystatechange",scriptReadyStateChangeEx);gScriptsArray[gScriptsArray.length]=[xscript,-1,xsrc];}if(document.readyState==null){document.getElementsByTagName("HEAD")[0].appendChild(xscript);xscripts++;}}else xscripts++;}}}if(step=="SCRIPT_BLOCK"){if(browser.isSafari||browser.isOpera)node=xml.getElementsByTagName("SCRIPT_BLOCK");else node=xml.selectNodes(cid+"//SCRIPT_BLOCKS//SCRIPT_BLOCK");if(node!=null&&node!=undefined&&node.length>0){for(var i=0;i<node.length;i++){var xnode=node[i];var xscript=xnode.childNodes[0].nodeValue;var escript=document.createElement("SCRIPT");escript.type="text/javascript";escript.text=xscript;document.getElementsByTagName("HEAD")[0].appendChild(escript);document.getElementsByTagName("HEAD")[0].removeChild(escript);}}}}}return xscripts;}function normalizeCallBackResult(result,item){if(result==null||result=="")return null;var rxt="<"+item+">[\\s\\S]*</"+item+">";var rxp=new RegExp(rxt,"g");var matches=result.match(rxp);if(matches==null||matches.length!=1){alert("Invalid response from server");return null;}result=matches[0];return result;}function applyStyleSheetContent(id,c){try{var t=document.getElementById(id+"stylesheet");if(t!=null){if(browser.isIE||browser.isSafari||browser.isChrome){t.disabled=true;t.id="";if(!browser.isSafari&&!browser.isChrome)t.removeNode();else document.getElementsByTagName("head")[0].removeChild(t);t=null;}}if(t==null){t=document.createElement("style");t.type="text/css";t.id=id+"stylesheet";if(browser.isSafari||browser.isChrome)t.innerText=c;var head=document.getElementsByTagName("head")[0];head.insertBefore(t,null);var l=document.styleSheets.length;for(var i=0;i<l;i++){if(document.styleSheets[i].id==id+"stylesheet"){t=document.styleSheets[i];i=l;}}}if(browser.isIE){t.disabled=true;t.cssText=c;t.disabled=false;}else {if(!browser.isSafari&&!browser.isChrome)t.innerHTML=c;}}catch(z){}}function applyStyleSheetNode(node,id){var c=node.childNodes[0].nodeValue;applyStyleSheetContent(id,c);}function initCallbackEx(){__theFormPostData="";WebForm_InitCallback();}function afterCallBack(result,context,xml){if(result==null||result.length==0)return null;if(xml==null){if(browser.isOpera||browser.isSafari)xml=browser.getXMLFromParser(result);else {xml=getXMLFromBrowser();if(xml==null)return;var xdoc=null;if(browser.isNetscape)xdoc=xml.loadXML(result);else xml.loadXML(result);if(xdoc!=null)xml=xdoc;}}try{var nodes=null;if(browser.isOpera||browser.isSafari)nodes=xml.getElementsByTagName("CONTROL");else nodes=xml.selectNodes(".//CONTROLS/CONTROL");if(nodes!=null){for(var i=0;i<nodes.length;i++){var node=nodes[i];var client=node.attributes.getNamedItem("CLIENTID").value;if(client!=null&&client.length>0){var control=document.getElementById(client);if(control!=null){var content=null;if(browser.isOpera||browser.isSafari)content=node.getElementsByTagName("CONTENT")[0].childNodes[0].nodeValue;else content=node.selectSingleNode("CONTENT").childNodes[0].nodeValue;browser.setOuterHTML(control,content);}}}}}catch(yy){}}function showProcessingDIV(id,html,dw,dh,l,t,w,h){var div=document.getElementById(id+"callback");if(div==null){var cg=null;div=document.createElement("DIV");div.id=id+"callback";try{cg=document.getElementById(id);div.style.fontFamily=browser.getCurrentStyleValue(cg,"fontFamily","font-family");div.style.fontSize=browser.getCurrentStyleValue(cg,"fontSize","font-size");div.style.fontVariant=browser.getCurrentStyleValue(cg,"fontVariant","font-variant");div.style.fontWeight=browser.getCurrentStyleValue(cg,"fontWeight","font-weight");}catch(x){}div.style.display="none";div.style.visibility="hidden";div.style.backgroundColor="window";div.style.border="1px solid black";div.style.position="absolute";browser.setPixelWidth(div,dw);browser.setPixelHeight(div,dh);div.style.zIndex=99999;div.innerHTML=html;try{var tb=div.getElementsByTagName("TABLE")[0];tb.style.fontFamily=browser.getCurrentStyleValue(cg,"fontFamily","font-family");tb.style.fontSize=browser.getCurrentStyleValue(cg,"fontSize","font-size");tb.style.fontVariant=browser.getCurrentStyleValue(cg,"fontVariant","font-variant");tb.style.fontWeight=browser.getCurrentStyleValue(cg,"fontWeight","font-weight");}catch(x){}document.body.appendChild(div);}browser.setPixelLeft(div,((l+w)/2)-(dw/2));browser.setPixelTop(div,((t+h)/2)-(dh/2));div.style.display="";div.style.visibility="visible";}function hideProcessingDIV(id){var div=document.getElementById(id+"callback");if(div!=null){div.style.display="none";div.style.visibility="hidden";}}function JanusCallBack(id,control){var id=id;var control=control;this.DoCallBack=DoCallBack;function DoCallBack(eventname,callback,progress,context,useasync){initCallbackEx();if(progress!=null)progress(context==null?control:context);WebForm_DoCallback(id,eventname,function(_result,_context){var xml;if(callback!=null)xml=callback(_result,_context);afterCallBack(_result,_context,xml);},context==null?control:context,null,useasync==null?false:useasync);}return this;}function empty_handler(e){}function hideBackFrame(id){var e=document.getElementById(id);if(e!=null)e.style.visibility="hidden";}function showBackFrame(id,left,top,width,height){var e=document.getElementById(id);if(e==null){try{var frameSrc="javascript:false;";e=document.createElement("IFRAME");e.id=id;e.border=0;e.frameBorder=0;e.style.border="0px none";e.style.display="none";e.style.visibility="hidden";e.style.position="absolute";e.style.zIndex=999;try{e.src=frameSrc;}catch(zz){};document.body.appendChild(e);if(e.contentWindow!=null){e.contentWindow.document.write("<html><head/><body style='background-color:window;overflow:hidden;'></body></html>");e.contentWindow.document.close();}else e.src=frameSrc;}catch(err){ }}e.style.display="";browser.setPixelLeft(e,left);browser.setPixelTop(e,top);browser.setPixelWidth(e,width);browser.setPixelHeight(e,height);e.style.visibility="visible";return e;}var activeElement=null;function cancelEvent(){browser.eventCancelBubble(true);return(window.event==null?false:(window.event.returnValue=false));}function getPixelValue(value){if(value==null||value.length==0)return 0;var p=0;var i=value.indexOf("px");if(i>0)p=parseInt(value.substr(0,i));else {try{p=parseInt(value,10);}catch(err){p=0;}}return p;}function getPixelTopEx(e){var t=0;while(e!=null){t+=e.offsetTop;if(e.clientTop!=null){if(e.tagName!="BODY"&&e.tagName!="HTML")t+=e.clientTop;}e=e.offsetParent;}return t;}function getPixelLeftEx(e){var l=0;var x=0;var r=false;while(e!=null){l+=e.offsetLeft;if(e.clientLeft!=null){if(e.tagName!="BODY"&&e.tagName!="HTML")x+=e.clientLeft;}try{if(e.getAttribute("dir")=="rtl")r=true;}catch(y){}e=e.offsetParent;}if(!r)l+=x;return l;}function getDocumentHeight(d){var x=d.documentElement.clientHeight;if(x==0)x=document.body.clientHeight;return x;}function trim(text){if(text==null)return "";var charCode=-1;do{charCode=text.substring(0,1).charCodeAt();if(charCode==32||charCode==160)text=text.substring(1,text.length);}while(charCode==32||charCode==160);do{charCode=text.substring(text.length-1,text.length);if(charCode==32||charCode==160)text=text.substring(0,text.length-1);}while(charCode==32||charCode==160);return text;}function fireEventEx(events,name,params){if(events==null||events.length==0)return null;var l=events.length;var handler="";for(var i=0; i<l; i=i+2){if(events[i]==name){handler=events[i+1];i=l;}}if(handler!=""){var _params="";var l=(params==null)?0:params.length;for(var i=0;i<l; i++){if(_params!="")_params+=",";_params+="params["+i+"]";}var _cmd="return eval("+handler+"("+_params+"))";var _function=new Function("params",_cmd);return _function(params);}return null;}function getKeyCode(e,i){var c=window.event.keyCode;if(i.selectionStart!=null)c=window.event.which;return c;}function getItem(c,id){var l=c.length;for(var i=0; i<l; i++){if(c.item(i).getAttribute("id")==id)return c.item(i);}return null;}function getXMLFromBrowser(){var xml;if(browser.isIE)xml=new ActiveXObject("Microsoft.XMLDOM");else {if(document.implementation&&document.implementation.createDocument)xml=document.implementation.createDocument("","",null);}return xml;}function allChildsEx(e,id){var childs=null;var a=e.getElementsByTagName("*");if(a!=null){childs=new Array();var _allLength=a.length;for(var i=0; i<_allLength; i++){if(a[i].id==id)childs[childs.length]=a[i];}}return childs;}function HtmlDecode(s){var out="";if(s==null)return;var l=s.length;for(var i=0; i<l; i++){var ch=s.charAt(i);if(ch=='&'){var semicolonIndex=s.indexOf(';',i+1);if(semicolonIndex>0){var entity=s.substring(i+1,semicolonIndex);if(entity.length>1&&entity.charAt(0)=='#'){if(entity.charAt(1)=='x'||entity.charAt(1)=='X')ch=String.fromCharCode(eval('0'+entity.substring(1)));else ch=String.fromCharCode(eval(entity.substring(1)));}else {switch(entity){case 'quot':ch=String.fromCharCode(0x0022); break;case 'amp':ch=String.fromCharCode(0x0026); break;case 'lt':ch=String.fromCharCode(0x003c); break;case 'gt':ch=String.fromCharCode(0x003e); break;case 'nbsp':ch=String.fromCharCode(0x00a0); break;case 'iexcl':ch=String.fromCharCode(0x00a1); break;case 'cent':ch=String.fromCharCode(0x00a2); break;case 'pound':ch=String.fromCharCode(0x00a3); break;case 'curren':ch=String.fromCharCode(0x00a4); break;case 'yen':ch=String.fromCharCode(0x00a5); break;case 'brvbar':ch=String.fromCharCode(0x00a6); break;case 'sect':ch=String.fromCharCode(0x00a7); break;case 'uml':ch=String.fromCharCode(0x00a8); break;case 'copy':ch=String.fromCharCode(0x00a9); break;case 'ordf':ch=String.fromCharCode(0x00aa); break;case 'laquo':ch=String.fromCharCode(0x00ab); break;case 'not':ch=String.fromCharCode(0x00ac); break;case 'shy':ch=String.fromCharCode(0x00ad); break;case 'reg':ch=String.fromCharCode(0x00ae); break;case 'macr':ch=String.fromCharCode(0x00af); break;case 'deg':ch=String.fromCharCode(0x00b0); break;case 'plusmn':ch=String.fromCharCode(0x00b1); break;case 'sup2':ch=String.fromCharCode(0x00b2); break;case 'sup3':ch=String.fromCharCode(0x00b3); break;case 'acute':ch=String.fromCharCode(0x00b4); break;case 'micro':ch=String.fromCharCode(0x00b5); break;case 'para':ch=String.fromCharCode(0x00b6); break;case 'middot':ch=String.fromCharCode(0x00b7); break;case 'cedil':ch=String.fromCharCode(0x00b8); break;case 'sup1':ch=String.fromCharCode(0x00b9); break;case 'ordm':ch=String.fromCharCode(0x00ba); break;case 'raquo':ch=String.fromCharCode(0x00bb); break;case 'frac14':ch=String.fromCharCode(0x00bc); break;case 'frac12':ch=String.fromCharCode(0x00bd); break;case 'frac34':ch=String.fromCharCode(0x00be); break;case 'iquest':ch=String.fromCharCode(0x00bf); break;case 'Agrave':ch=String.fromCharCode(0x00c0); break;case 'Aacute':ch=String.fromCharCode(0x00c1); break;case 'Acirc':ch=String.fromCharCode(0x00c2); break;case 'Atilde':ch=String.fromCharCode(0x00c3); break;case 'Auml':ch=String.fromCharCode(0x00c4); break;case 'Aring':ch=String.fromCharCode(0x00c5); break;case 'AElig':ch=String.fromCharCode(0x00c6); break;case 'Ccedil':ch=String.fromCharCode(0x00c7); break;case 'Egrave':ch=String.fromCharCode(0x00c8); break;case 'Eacute':ch=String.fromCharCode(0x00c9); break;case 'Ecirc':ch=String.fromCharCode(0x00ca); break;case 'Euml':ch=String.fromCharCode(0x00cb); break;case 'Igrave':ch=String.fromCharCode(0x00cc); break;case 'Iacute':ch=String.fromCharCode(0x00cd); break;case 'Icirc':ch=String.fromCharCode(0x00ce); break;case 'Iuml':ch=String.fromCharCode(0x00cf); break;case 'ETH':ch=String.fromCharCode(0x00d0); break;case 'Ntilde':ch=String.fromCharCode(0x00d1); break;case 'Ograve':ch=String.fromCharCode(0x00d2); break;case 'Oacute':ch=String.fromCharCode(0x00d3); break;case 'Ocirc':ch=String.fromCharCode(0x00d4); break;case 'Otilde':ch=String.fromCharCode(0x00d5); break;case 'Ouml':ch=String.fromCharCode(0x00d6); break;case 'times':ch=String.fromCharCode(0x00d7); break;case 'Oslash':ch=String.fromCharCode(0x00d8); break;case 'Ugrave':ch=String.fromCharCode(0x00d9); break;case 'Uacute':ch=String.fromCharCode(0x00da); break;case 'Ucirc':ch=String.fromCharCode(0x00db); break;case 'Uuml':ch=String.fromCharCode(0x00dc); break;case 'Yacute':ch=String.fromCharCode(0x00dd); break;case 'THORN':ch=String.fromCharCode(0x00de); break;case 'szlig':ch=String.fromCharCode(0x00df); break;case 'agrave':ch=String.fromCharCode(0x00e0); break;case 'aacute':ch=String.fromCharCode(0x00e1); break;case 'acirc':ch=String.fromCharCode(0x00e2); break;case 'atilde':ch=String.fromCharCode(0x00e3); break;case 'auml':ch=String.fromCharCode(0x00e4); break;case 'aring':ch=String.fromCharCode(0x00e5); break;case 'aelig':ch=String.fromCharCode(0x00e6); break;case 'ccedil':ch=String.fromCharCode(0x00e7); break;case 'egrave':ch=String.fromCharCode(0x00e8); break;case 'eacute':ch=String.fromCharCode(0x00e9); break;case 'ecirc':ch=String.fromCharCode(0x00ea); break;case 'euml':ch=String.fromCharCode(0x00eb); break;case 'igrave':ch=String.fromCharCode(0x00ec); break;case 'iacute':ch=String.fromCharCode(0x00ed); break;case 'icirc':ch=String.fromCharCode(0x00ee); break;case 'iuml':ch=String.fromCharCode(0x00ef); break;case 'eth':ch=String.fromCharCode(0x00f0); break;case 'ntilde':ch=String.fromCharCode(0x00f1); break;case 'ograve':ch=String.fromCharCode(0x00f2); break;case 'oacute':ch=String.fromCharCode(0x00f3); break;case 'ocirc':ch=String.fromCharCode(0x00f4); break;case 'otilde':ch=String.fromCharCode(0x00f5); break;case 'ouml':ch=String.fromCharCode(0x00f6); break;case 'divide':ch=String.fromCharCode(0x00f7); break;case 'oslash':ch=String.fromCharCode(0x00f8); break;case 'ugrave':ch=String.fromCharCode(0x00f9); break;case 'uacute':ch=String.fromCharCode(0x00fa); break;case 'ucirc':ch=String.fromCharCode(0x00fb); break;case 'uuml':ch=String.fromCharCode(0x00fc); break;case 'yacute':ch=String.fromCharCode(0x00fd); break;case 'thorn':ch=String.fromCharCode(0x00fe); break;case 'yuml':ch=String.fromCharCode(0x00ff); break;case 'OElig':ch=String.fromCharCode(0x0152); break;case 'oelig':ch=String.fromCharCode(0x0153); break;case 'Scaron':ch=String.fromCharCode(0x0160); break;case 'scaron':ch=String.fromCharCode(0x0161); break;case 'Yuml':ch=String.fromCharCode(0x0178); break;case 'fnof':ch=String.fromCharCode(0x0192); break;case 'circ':ch=String.fromCharCode(0x02c6); break;case 'tilde':ch=String.fromCharCode(0x02dc); break;case 'Alpha':ch=String.fromCharCode(0x0391); break;case 'Beta':ch=String.fromCharCode(0x0392); break;case 'Gamma':ch=String.fromCharCode(0x0393); break;case 'Delta':ch=String.fromCharCode(0x0394); break;case 'Epsilon':ch=String.fromCharCode(0x0395); break;case 'Zeta':ch=String.fromCharCode(0x0396); break;case 'Eta':ch=String.fromCharCode(0x0397); break;case 'Theta':ch=String.fromCharCode(0x0398); break;case 'Iota':ch=String.fromCharCode(0x0399); break;case 'Kappa':ch=String.fromCharCode(0x039a); break;case 'Lambda':ch=String.fromCharCode(0x039b); break;case 'Mu':ch=String.fromCharCode(0x039c); break;case 'Nu':ch=String.fromCharCode(0x039d); break;case 'Xi':ch=String.fromCharCode(0x039e); break;case 'Omicron':ch=String.fromCharCode(0x039f); break;case 'Pi':ch=String.fromCharCode(0x03a0); break;case ' Rho ':ch=String.fromCharCode(0x03a1); break;case 'Sigma':ch=String.fromCharCode(0x03a3); break;case 'Tau':ch=String.fromCharCode(0x03a4); break;case 'Upsilon':ch=String.fromCharCode(0x03a5); break;case 'Phi':ch=String.fromCharCode(0x03a6); break;case 'Chi':ch=String.fromCharCode(0x03a7); break;case 'Psi':ch=String.fromCharCode(0x03a8); break;case 'Omega':ch=String.fromCharCode(0x03a9); break;case 'alpha':ch=String.fromCharCode(0x03b1); break;case 'beta':ch=String.fromCharCode(0x03b2); break;case 'gamma':ch=String.fromCharCode(0x03b3); break;case 'delta':ch=String.fromCharCode(0x03b4); break;case 'epsilon':ch=String.fromCharCode(0x03b5); break;case 'zeta':ch=String.fromCharCode(0x03b6); break;case 'eta':ch=String.fromCharCode(0x03b7); break;case 'theta':ch=String.fromCharCode(0x03b8); break;case 'iota':ch=String.fromCharCode(0x03b9); break;case 'kappa':ch=String.fromCharCode(0x03ba); break;case 'lambda':ch=String.fromCharCode(0x03bb); break;case 'mu':ch=String.fromCharCode(0x03bc); break;case 'nu':ch=String.fromCharCode(0x03bd); break;case 'xi':ch=String.fromCharCode(0x03be); break;case 'omicron':ch=String.fromCharCode(0x03bf); break;case 'pi':ch=String.fromCharCode(0x03c0); break;case 'rho':ch=String.fromCharCode(0x03c1); break;case 'sigmaf':ch=String.fromCharCode(0x03c2); break;case 'sigma':ch=String.fromCharCode(0x03c3); break;case 'tau':ch=String.fromCharCode(0x03c4); break;case 'upsilon':ch=String.fromCharCode(0x03c5); break;case 'phi':ch=String.fromCharCode(0x03c6); break;case 'chi':ch=String.fromCharCode(0x03c7); break;case 'psi':ch=String.fromCharCode(0x03c8); break;case 'omega':ch=String.fromCharCode(0x03c9); break;case 'thetasym':ch=String.fromCharCode(0x03d1); break;case 'upsih':ch=String.fromCharCode(0x03d2); break;case 'piv':ch=String.fromCharCode(0x03d6); break;case 'ensp':ch=String.fromCharCode(0x2002); break;case 'emsp':ch=String.fromCharCode(0x2003); break;case 'thinsp':ch=String.fromCharCode(0x2009); break;case 'zwnj':ch=String.fromCharCode(0x200c); break;case 'zwj':ch=String.fromCharCode(0x200d); break;case 'lrm':ch=String.fromCharCode(0x200e); break;case 'rlm':ch=String.fromCharCode(0x200f); break;case 'ndash':ch=String.fromCharCode(0x2013); break;case 'mdash':ch=String.fromCharCode(0x2014); break;case 'lsquo':ch=String.fromCharCode(0x2018); break;case 'rsquo':ch=String.fromCharCode(0x2019); break;case 'sbquo':ch=String.fromCharCode(0x201a); break;case 'ldquo':ch=String.fromCharCode(0x201c); break;case 'rdquo':ch=String.fromCharCode(0x201d); break;case 'bdquo':ch=String.fromCharCode(0x201e); break;case 'dagger':ch=String.fromCharCode(0x2020); break;case 'Dagger':ch=String.fromCharCode(0x2021); break;case 'bull':ch=String.fromCharCode(0x2022); break;case 'hellip':ch=String.fromCharCode(0x2026); break;case 'permil':ch=String.fromCharCode(0x2030); break;case 'prime':ch=String.fromCharCode(0x2032); break;case 'Prime':ch=String.fromCharCode(0x2033); break;case 'lsaquo':ch=String.fromCharCode(0x2039); break;case 'rsaquo':ch=String.fromCharCode(0x203a); break;case 'oline':ch=String.fromCharCode(0x203e); break;case 'frasl':ch=String.fromCharCode(0x2044); break;case 'euro':ch=String.fromCharCode(0x20ac); break;case 'image':ch=String.fromCharCode(0x2111); break;case 'weierp':ch=String.fromCharCode(0x2118); break;case 'real':ch=String.fromCharCode(0x211c); break;case 'trade':ch=String.fromCharCode(0x2122); break;case 'alefsym':ch=String.fromCharCode(0x2135); break;case 'larr':ch=String.fromCharCode(0x2190); break;case 'uarr':ch=String.fromCharCode(0x2191); break;case 'rarr':ch=String.fromCharCode(0x2192); break;case 'darr':ch=String.fromCharCode(0x2193); break;case 'harr':ch=String.fromCharCode(0x2194); break;case 'crarr':ch=String.fromCharCode(0x21b5); break;case 'lArr':ch=String.fromCharCode(0x21d0); break;case 'uArr':ch=String.fromCharCode(0x21d1); break;case 'rArr':ch=String.fromCharCode(0x21d2); break;case 'dArr':ch=String.fromCharCode(0x21d3); break;case 'hArr':ch=String.fromCharCode(0x21d4); break;case 'forall':ch=String.fromCharCode(0x2200); break;case 'part':ch=String.fromCharCode(0x2202); break;case 'exist':ch=String.fromCharCode(0x2203); break;case 'empty':ch=String.fromCharCode(0x2205); break;case 'nabla':ch=String.fromCharCode(0x2207); break;case 'isin':ch=String.fromCharCode(0x2208); break;case 'notin':ch=String.fromCharCode(0x2209); break;case 'ni':ch=String.fromCharCode(0x220b); break;case 'prod':ch=String.fromCharCode(0x220f); break;case 'sum':ch=String.fromCharCode(0x2211); break;case 'minus':ch=String.fromCharCode(0x2212); break;case 'lowast':ch=String.fromCharCode(0x2217); break;case 'radic':ch=String.fromCharCode(0x221a); break;case 'prop':ch=String.fromCharCode(0x221d); break;case 'infin':ch=String.fromCharCode(0x221e); break;case 'ang':ch=String.fromCharCode(0x2220); break;case 'and':ch=String.fromCharCode(0x2227); break;case 'or':ch=String.fromCharCode(0x2228); break;case 'cap':ch=String.fromCharCode(0x2229); break;case 'cup':ch=String.fromCharCode(0x222a); break;case 'int':ch=String.fromCharCode(0x222b); break;case 'there4':ch=String.fromCharCode(0x2234); break;case 'sim':ch=String.fromCharCode(0x223c); break;case 'cong':ch=String.fromCharCode(0x2245); break;case 'asymp':ch=String.fromCharCode(0x2248); break;case 'ne':ch=String.fromCharCode(0x2260); break;case 'equiv':ch=String.fromCharCode(0x2261); break;case 'le':ch=String.fromCharCode(0x2264); break;case 'ge':ch=String.fromCharCode(0x2265); break;case 'sub':ch=String.fromCharCode(0x2282); break;case 'sup':ch=String.fromCharCode(0x2283); break;case 'nsub':ch=String.fromCharCode(0x2284); break;case 'sube':ch=String.fromCharCode(0x2286); break;case 'supe':ch=String.fromCharCode(0x2287); break;case 'oplus':ch=String.fromCharCode(0x2295); break;case 'otimes':ch=String.fromCharCode(0x2297); break;case 'perp':ch=String.fromCharCode(0x22a5); break;case 'sdot':ch=String.fromCharCode(0x22c5); break;case 'lceil':ch=String.fromCharCode(0x2308); break;case 'rceil':ch=String.fromCharCode(0x2309); break;case 'lfloor':ch=String.fromCharCode(0x230a); break;case 'rfloor':ch=String.fromCharCode(0x230b); break;case 'lang':ch=String.fromCharCode(0x2329); break;case 'rang':ch=String.fromCharCode(0x232a); break;case 'loz':ch=String.fromCharCode(0x25ca); break;case 'spades':ch=String.fromCharCode(0x2660); break;case 'clubs':ch=String.fromCharCode(0x2663); break;case 'hearts':ch=String.fromCharCode(0x2665); break;case 'diams':ch=String.fromCharCode(0x2666); break;default:ch=''; break;}}i=semicolonIndex;}}out+=ch;}return out;}var browser=new function(){this.isLoaded=false;var pType="";this.pType=pType;var pElement=null;this.pElement=pElement;this.isMac=(navigator.userAgent.indexOf("Macintosh")!=-1);this.isNetscape=(navigator.appName=="Netscape");this.isChrome=(navigator.userAgent.indexOf("Chrome")!=-1);var bIE=false;var bIE8=false;var xIE=navigator.userAgent.indexOf("MSIE");if(xIE>=0&&navigator.userAgent.indexOf("Windows")>=0){var xs=navigator.userAgent.substr(xIE+4);var xsIE=xs.substr(0,xs.indexOf(";"));try{var xv=parseFloat(xsIE);if(xv>=5.01){bIE=true;if(xv>=8)bIE8=true;}}catch(z){}}this.isIE=bIE;this.isIE8=bIE8;this.isOpera=(typeof(opera)!="undefined")&&(parseFloat(opera.version())>=9);this.isSafari=(((navigator.vendor!=null&&navigator.vendor.indexOf("Apple Computer")>=0)&&navigator.userAgent.indexOf("Chrome")==-1)||(navigator.vendor!=null&&navigator.vendor=="KDE"));this.cellIndex=function(c){if(this.isSafari){var r=c;var i=-1;while(r!=null&&r.tagName!="TR")r=r.parentElement;if(r!=null){for(var j=0;j<r.cells.length&&i==-1;j++){if(r.cells[j]==c)i=j;}}return i;}else return c.cellIndex;};this.eventButton=function(e){if(this.isOpera||this.isSafari)return button(e);if(this.isNetscape)return button(e);else {if(e==null||e==undefined)e=window.event;return e.button;}};this.eventCancelBubble=function(b){var e=null;if(this.isOpera){e=event;cancelBubble(b,e);}else {e=window.event;if(e!=null)e.cancelBubble=b;}};this.eventSrcElement=function(){var e=null;if(this.isOpera){e=event;return eventSrcElement(e,true);}else {e=window.event;return e.srcElement;}};this.getCells=function(e){if(this.isSafari||this.isOpera)return e.getElementsByTagName("TD");else return e.cells;};this.getCurrentStyleValue=function(e,s,ms){var v="";try{if(this.isSafari||this.isOpera){if(typeof(document.defaultView)=='undefined')v=undefined;else if(document.defaultView===null)v=undefined;else {var style=document.defaultView.getComputedStyle(e,null);if(typeof(style)=="undefined"||style===null)v=undefined;else v=style.getPropertyValue((ms==null||ms==undefined)?s:ms);}}else if(this.isIE)v=e.currentStyle.getAttribute(s);else {v=document.defaultView.getComputedStyle(e,null).getPropertyValue(s);if(v==null||v==undefined||v==""){if(ms!=null&&ms!=undefined)v=document.defaultView.getComputedStyle(e,null).getPropertyValue(ms);}}}catch(x){}return v;};this.getPixelLeft=function(e){var l=0;if(this.isSafari||this.isOpera){l=e.style.left;if(l==null||l==""||l==undefined)l=getPixelLeftEx(e);else l=(parseInt(l,10)||0);}else l=e.style.pixelLeft;return l;};this.setPixelLeft=function(e,v){if(this.isSafari||this.isOpera)e.style.left=(v+"px");else e.style.pixelLeft=v;};this.getPixelTop=function(e){var t=0;if(this.isSafari||this.isOpera){t=e.style.top;if(t==null||t==""||t==undefined)t=0;else t=(parseInt(t,10)||0);}else t=e.style.pixelTop;return t;};this.setPixelTop=function(e,v){if(this.isSafari||this.isOpera)e.style.top=(v+"px");else e.style.pixelTop=v;};this.getPixelWidth=function(e){var w=0;if(this.isSafari||this.isOpera){w=e.style.width;if(w==null||w==undefined||w=="")w=e.offsetWidth;else w=parseInt(w,10)||0;}else w=e.style.pixelWidth;return w;};this.setPixelWidth=function(e,v){if(e==null||e==undefined)return;if(this.isSafari||this.isOpera)e.style.width=(v+"px");else if(e.style!=null)e.style.pixelWidth=v;};this.getPixelHeight=function(e){var h=0;if(this.isSafari||this.isOpera){h=e.style.width;if(h==null||h==undefined||h=="")h=e.offsetHeight;else h=parseInt(h,10)||0;}else h=e.style.pixelHeight;return h;};this.setPixelHeight=function(e,v){if(e==null||e==undefined)return;if(this.isSafari||this.isOpera)e.style.height=(v+"px");else e.style.pixelHeight=v;};this.setInnerText=function(e,s){if(this.isSafari||this.isOpera)return setInnerText(s,e);else {if(e==null||e==undefined)return;e.innerText=s;}};this.innerText=function(e){if(this.isSafari||this.isOpera)return getInnerText(e);else return e.innerText;};this.swapNode=function(a,b){return DOMNode_swapNode(a,b);};this.getXMLFromParser=function(s){var dom=null;if(document.implementation&&document.implementation.createDocument){var domParser=new DOMParser();dom=domParser.parseFromString(s,'text/xml');}return dom;};this.setOuterHTML=function(e,s){if(this.isSafari||this.isOpera)setOuterHTML(s,e);else e.outerHTML=s;};this.outerHTML=function(e){if(this.isSafari||this.isOpera)return getOuterHTML(e);else return e.outerHTML;};this.handleEvent=handleEvent;var allChilds=null;var attachEventProxyEx=null;var attachEventProxy=null;var detachEventProxy=null;if(this.isSafari||this.isChrome){if(this.isSafari||this.isChrome){(function(c){for(var i in c)window["HTML"+i+"Element"]=document.createElement(c[ i ]).constructor;})({Html:"html",Head:"head",Link:"link",Title:"title",Meta:"meta",Base:"base",IsIndex:"isindex",Style:"style",Body:"body",Form:"form",Select:"select",OptGroup:"optgroup",Option:"option",Input:"input",TextArea:"textarea",Button:"button",Label:"label",FieldSet:"fieldset",Legend:"legend",UList:"ul",OList:"ol",DList:"dl",Directory:"dir",Menu:"menu",LI:"li",Div:"div",Paragraph:"p",Heading:"h1",Quote:"q",Pre:"pre",BR:"br",BaseFont:"basefont",Font:"font",HR:"hr",Mod:"ins",Anchor:"a",Image:"img",Object:"object",Param:"param",Applet:"applet",Map:"map",Area:"area",Script:"script",Table:"table",TableCaption:"caption",TableCol:"col",TableSection:"tbody",TableRow:"tr",TableCell:"td",FrameSet:"frameset",Frame:"frame",IFrame:"iframe"});}function Document(){};function Event(){};function HTMLCollection(){};function HTMLElement(){};function HTMLTableRowElement(){};function Node(){};HTMLDocument=document.constructor;HTMLTableRowElement=document.createElement("TR").constructor;HTMLTableRowElement.prototype.__defineGetter__("myFn",function(){return null;});HTMLTableCellElement=document.createElement("TD").constructor;if(!this.isChrome){Document.prototype=window["[[DOMDocument]]"];Event.prototype=window["[[DOMEvent]]"];}HTMLCollection.prototype=window["[[HTMLCollection.prototype]]"];if(HTMLElement.prototype==null)HTMLElement.prototype=window["[[DOMElement.prototype]]"];if(Node.prototype==null)Node.prototype=window["[[DOMNode.prototype]]"];}if(this.isNetscape||document.defaultView!=null){attachEventProxyEx=function(x,n,h,d){if(d!=null&&d)x.addEventListener(n,h._mozillaEventHandler,true);else x.addEventListener(n,h._mozillaEventHandler,false);};attachEventProxy=function(n,h,d,x){h._mozillaEventHandler=function(e,d){if(e.type=="keydown"){if(!browser.isOpera)document.activeElement=window.event.srcElement;}if(!browser.isOpera)window.event=e;if(d!=null&&d){if(e.type=="scroll"){if(document.activeElement!=null&&document.activeElement.blur!=null)document.activeElement.blur();}}else {if(e.type=="focus"||e.type=="click"||e.type=="mousedown"){document.activeElement=e.srcElement;}else {if(e.type=="scroll"){if(document.activeElement!=null&&document.activeElement.tagName=="SELECT"){}else {browser.pType="scroll";var ex=document.activeElement;document.activeElement=e.srcElement;if(ex!=null&&ex.blur!=null)ex.blur();if(browser.pElement!=null){try{browser.pElement.focus();document.activeElement=browser.pElement;}catch(zy){}}browser.pElement=null;browser.pType="";}}}}h();return e.returnValue;};if(x==null)attachEventProxyEx(this,n,h,d);else attachEventProxyEx(x,n,h,d);};detachEventProxy=function(n,h){if(h._mozillaEventHandler){var mozillaEventHandler=h._mozillaEventHandler;delete h._mozillaEventHandler;this.removeEventListener(n,h,false);}};try{HTMLDocument.prototype.attachEvent=attachEventProxy;HTMLDocument.prototype.detachEvent=detachEventProxy;HTMLElement.prototype.attachEvent=attachEventProxy;HTMLElement.prototype.detachEvent=detachEventProxy;if(this.isChrome){HTMLDivElement.prototype.attachEvent=attachEventProxy;HTMLDivElement.prototype.detachEvent=detachEventProxy;HTMLTableElement.prototype.attachEvent=attachEventProxy;HTMLTableElement.prototype.detachEvent=detachEventProxy;HTMLTableCellElement.prototype.attachEvent=attachEventProxy;HTMLTableCellElement.prototype.detachEvent=detachEventProxy;HTMLInputElement.prototype.attachEvent=attachEventProxy;HTMLInputElement.prototype.detachEvent=detachEventProxy;HTMLTableRowElement.prototype.attachEvent=attachEventProxy;HTMLTableRowElement.prototype.detachEvent=detachEventProxy;HTMLFormElement.prototype.attachEvent=attachEventProxy;HTMLFormElement.prototype.detachEvent=detachEventProxy;HTMLHtmlElement.prototype.attachEvent=attachEventProxy;HTMLHtmlElement.prototype.detachEvent=detachEventProxy;HTMLBodyElement.prototype.attachEvent=attachEventProxy;HTMLBodyElement.prototype.detachEvent=detachEventProxy;}}catch(z){};}function handleEvent(e,n,h,d){try{if(this.isIE){try{e.detachEvent("on"+n,h);}catch(x){}e.attachEvent("on"+n,h);}else if(this.isSafari){attachEventProxy(n,h,d,e);}else {if(e==window)attachEventProxy(n,h,d,e);else e.attachEvent(n,h,d);}}catch(err){};}if(navigator.appName=="Netscape"||document.defaultView!=null){var loadXML=function(xml,nodename){var objDOMParser=new DOMParser();var objDoc=objDOMParser.parseFromString(xml,"text/xml");try{while(this.hasChildNodes())this.removeChild(this.lastChild);for(var i=0; i<objDoc.childNodes.length; i++){var objImportedNode=this.importNode(objDoc.childNodes[i],true);this.appendChild(objImportedNode);}}catch(z){if(objDoc!=null)return objDoc;}};allChilds=function(ID){if(browser.isSafari||browser.isChrome){var e=this;return allChildsCore(ID,allGetter(e));}else return allChildsCore(ID,this.all);};function allChildsCore(ID,_all){var childs=new Array();var _allLength=_all.length;for(var i=0; i<_allLength; i++){if(_all[i].id==ID)childs[childs.length]=_all[i];}return childs;}function setInnerText(s,e){if(e==null||e==undefined)e=this;e.innerHTML=convertTextToHTML(s);return s;}function getInnerText(e){if(e==null||e==undefined)e=this;var r=e.ownerDocument.createRange();r.selectNodeContents(e);return r.toString()}function setOuterHTML(s,e){if(e==null||e==undefined)e=this;var bx=true;try{var range=e.ownerDocument.createRange();range.setStartBefore(e);var fragment=range.createContextualFragment(s);e.parentNode.replaceChild(fragment,e);}catch(zz){bx=false;}if(!bx){try{var d=e.ownerDocument.createElement("body");d.innerHTML=s;e.parentNode.replaceChild(d.firstChild,e);}catch(zz){}}return s;}function getOuterHTML(e){if(e==null||e==undefined)e=this;var attr,attrs=e.attributes;var str="<"+e.tagName;for(var i=0; i<attrs.length; i++){attr=attrs[i];if(attr.specified)str+=" "+attr.name+'="'+attr.value+'"';}if(!e.canHaveChildren)return str+">";return str+">"+e.innerHTML+"</"+e.tagName+">";}var allGetter=function(e){var a=null;if(e==null||e==undefined)a=this.getElementsByTagName("*");else a=e.getElementsByTagName("*");var node=this;a.tags=function(sTagName){return node.getElementsByTagName(sTagName);};return a;};function eventSrcElement(e){if(e==null||e==undefined)e=this;var node=e.target;while(node!=null&&node.nodeType!=1)node=node.parentNode;return node;}function cancelBubble(b,e){if(e==null||e==undefined)e=this;if(b)e.stopPropagation();return b;}function button(e){if(e==null||e==undefined)e=this;return(e.which==1)?1:(e.which==2)?4:2;}var childrenGetter=function(){var a=this.childNodes;return a;};function convertTextToHTML(s){s=s.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<BR>");while(/\s\s/.test(s))s=s.replace(/\s\s/,"&nbsp; ");return s.replace(/\s/g," ");}if(this.isNetscape&&!this.isSafari){CSSStyleDeclaration.prototype.__defineGetter__("pixelLeft",function(){  return parseInt(this.left)||0;});CSSStyleDeclaration.prototype.__defineSetter__("pixelLeft",function(value){  this.left=value+"px";});CSSStyleDeclaration.prototype.__defineGetter__("pixelHeight",function(){  return parseInt(this.height)||0;});CSSStyleDeclaration.prototype.__defineSetter__("pixelHeight",function(value){  this.height=value+"px";});CSSStyleDeclaration.prototype.__defineGetter__("pixelTop",function(){  return parseInt(this.top)||0;});CSSStyleDeclaration.prototype.__defineSetter__("pixelTop",function(value){  this.top=value+"px";});CSSStyleDeclaration.prototype.__defineGetter__("pixelWidth",function(){  return parseInt(this.width)||0;});CSSStyleDeclaration.prototype.__defineSetter__("pixelWidth",function(value){  this.width=value+"px";});}if(this.isSafari||this.isChrome)HTMLDocument.prototype.loadXML=loadXML;else if(this.isOpera){}else {Document.prototype.loadXML=loadXML;}if(document.implementation.hasFeature("XPath","3.0")&&!this.isOpera){XMLDocument.prototype.selectNodes=function(cXPathString,xNode){if(!xNode){xNode=this;}var oNSResolver=this.createNSResolver(this.documentElement);var aItems=this.evaluate(cXPathString,xNode,oNSResolver,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var aResult=[];for(var i=0; i<aItems.snapshotLength; i++){aResult[i]=aItems.snapshotItem(i);}return aResult;};Element.prototype.selectNodes=function(cXPathString){if(this.ownerDocument.selectNodes){return this.ownerDocument.selectNodes(cXPathString,this);}else{throw "For XML Elements Only";}};XMLDocument.prototype.selectSingleNode=function(cXPathString,xNode){if(!xNode){xNode=this;}var xItems=this.selectNodes(cXPathString,xNode);if(xItems.length>0)return xItems[0];else return null;};Element.prototype.selectSingleNode=function(cXPathString){if(this.ownerDocument.selectSingleNode)return this.ownerDocument.selectSingleNode(cXPathString,this);else{throw "For XML Elements Only";}};}HTMLDocument.prototype.getChildsById=allChilds;if(this.isSafari||this.isOpera){}else {HTMLDocument.prototype.__defineGetter__("all",allGetter);HTMLDocument.prototype.__defineGetter__("activeElement",function(){return activeElement ;});HTMLDocument.prototype.__defineSetter__("activeElement",function(a){activeElement=a;});}HTMLElement.prototype.getChildsById=allChilds;if(this.isChrome){HTMLTableRowElement.prototype.getChildsById=allChilds;HTMLTableCellElement.prototype.getChildsById=allChilds;}if(this.isSafari||this.isOpera){}else {HTMLElement.prototype.__defineGetter__("all",allGetter);}function DOMNode_swapNode(n1,n2){n1.parentNode.insertBefore(n2.parentNode.removeChild(n2),n1);}HTMLElement.prototype.swapNode=function(node){try{return DOMNode_swapNode(node,this);}catch(err){}};if(this.isSafari||this.isOpera){}else {HTMLElement.prototype.__defineSetter__("innerText",setInnerText);var tmpGet;HTMLElement.prototype.__defineGetter__("innerText",getInnerText);HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){switch(this.tagName){case "AREA":case "BASE":case "BASEFONT":case "COL":case "FRAME":case "HR":case "IMG":case "BR":case "INPUT":case "ISINDEX":case "LINK":case "META":case "PARAM":return false;}return true;});HTMLElement.prototype.__defineSetter__("outerHTML",setOuterHTML);HTMLElement.prototype.__defineGetter__("outerHTML",getOuterHTML);HTMLElement.prototype.__defineGetter__("parentElement",function(){if(this.parentNode==this.ownerDocument)return null;return this.parentNode;});HTMLTableElement.prototype.__defineGetter__("cells",function(){return this.getElementsByTagName("TD");});}HTMLElement.prototype.contains=function(oEl){if(oEl==this)return true;if(oEl==null)return false;return this.contains(oEl.parentNode);};HTMLElement.prototype.contains=function(oEl){if(oEl==this)return true;if(oEl==null)return false;return this.contains(oEl.parentNode);};if(this.isSafari||this.isOpera){}else {HTMLElement.prototype.__defineGetter__("currentStyle",function(){  return getComputedStyle(this,null);});HTMLElement.prototype.__defineGetter__("children",childrenGetter);Event.prototype.__defineGetter__("srcElement",eventSrcElement);Event.prototype.__defineGetter__("toElement",function(){var node;if(this.type=="mouseout")node=this.relatedTarget;else if(this.type=="mouseover")node=this.target;else return null;var node=this.target;while(node!=null&&node.nodeType!=1)node=node.parentNode;return node;});Event.prototype.__defineGetter__("button",button);Event.prototype.__defineSetter__("cancelBubble",cancelBubble);Event.prototype.__defineSetter__("returnValue",function(b){if(!b)this.preventDefault();return b;});Event.prototype.__defineGetter__("offsetX",function(){return this.layerX;});Event.prototype.__defineGetter__("offsetY",function(){return this.layerY;});}handleEvent(window.document,"scroll",empty_handler,true);}function defineChromeSettingsEx(){}this.defineChromeSettings=defineChromeSettingsEx;this.isLoaded=true;};