function TitleCase(STRING){var Exceptions = "About/about|Above/above|Across/across|After/after|Against/against|Around/around|At/at|Before/before|Behind/behind|Below/below|Beneath/beneath|Beside/beside|Besides/besides|Between/between|Beyond/beyond|By/by|Down/down|During/during|Except/except|For/for|From/from|In/in|Inside/inside|Into/into|Like/like|Near/near|Of/of|Off/off|On/on|Out/out|Outside/outside|Over/over|Since/since|Through/through|Throughout/throughout|Till/till|To/to|Toward/toward|Under/under|Until/until|Up/up|Upon/upon|With/with|Without/without";var arrExceptions = Exceptions.split("|");STRING = PCase(STRING);var arrExValues; for(var iEx = 0; iEx < arrExceptions.length;iEx++){arrExValues = arrExceptions[iEx].split("/"); var SearchThisValue = " " + arrExValues[0] + " "; var ReplaceThisValue = " " + arrExValues[1] + " "; while(STRING.indexOf(SearchThisValue)>-1){STRING = STRING.replace(SearchThisValue,ReplaceThisValue); }}return STRING; }function Eval(STRING){eval(STRING); }function GetDate(FORMAT){var m_TODAY = new Date(); var m_Day = m_TODAY.getDate(); var m_Month = (m_TODAY.getMonth()+1)
var MY_DATE = m_Day + "/" + m_Month + "/" + m_TODAY.getYear(); if(!FORMAT){FORMAT = "mm/dd/yyyy"; MY_DATE = m_Month + "/" + m_Day + "/" + m_TODAY.getYear(); }MY_DATE = FormatDate(MY_DATE,FORMAT); return MY_DATE; }function strComp(STRING1,STRING2,COMPARE){if(IsNull(COMPARE)){COMPARE = 1; }if(CBool(COMPARE)){STRING1 = STRING1.toLowerCase(); STRING2 = STRING2.toLowerCase(); }if(STRING1==STRING2){return true; }else
{return false; }}function IsNull(ITEM){if(ITEM == null || ITEM == undefined){return true; }return false; }function IsArray(MY_ARRAY){MY_ARRAY = MY_ARRAY.constructor.toString(); if(InStr(MY_ARRAY,"Array") > 0){return true; }else{return false; }}function CreateObject(STRING){var MY_OBJECT = new ActiveXObject(STRING); return MY_OBJECT
}function FormatPercent(NUMBER,PLACES){NUMBER = NUMBER * 100
if(PLACES){NUMBER = Round(NUMBER,PLACES); }else{NUMBER = Round(NUMBER,2); NUMBER = FormatCurrency(NUMBER); }NUMBER += "%"; return NUMBER; }function PCase(STRING){var strReturn_Value = ""; var iTemp = STRING.length; if(iTemp==0){return""; }var UcaseNext = false; strReturn_Value += STRING.charAt(0).toUpperCase(); for(var iCounter=1;iCounter < iTemp;iCounter++){if(UcaseNext == true){strReturn_Value += STRING.charAt(iCounter).toUpperCase(); }else{strReturn_Value += STRING.charAt(iCounter).toLowerCase(); }var iChar = STRING.charCodeAt(iCounter); if(iChar == 32 || iChar == 45 || iChar == 46){UcaseNext = true; }else{UcaseNext = false
}if(iChar == 99 || iChar == 67){if(STRING.charCodeAt(iCounter-1)==77 || STRING.charCodeAt(iCounter-1)==109){UcaseNext = true; }}}return strReturn_Value; }function Now(){var NOW = new Date().toString(); var arrNOW = NOW.split("UTC")
NOW = arrNOW[0]; return NOW; }function FormatCurrency(FIGURE){if(!FIGURE||FIGURE==""){return "0.00"; }var strTemp = FIGURE.toString(); while(strTemp.indexOf(",") > -1){strTemp = strTemp.replace(",",""); }strTemp = parseFloat(strTemp); FIGURE = Round(FIGURE,2); FIGURE = FIGURE.toString(); var Place = FIGURE.indexOf("."); if(Place >-1){if((FIGURE.length - Place) == 2){FIGURE += "0"; }}else{FIGURE += ".00"; }if(FIGURE=="0.00"){return""; }return FIGURE; }function Round(NUMBER,PLACES){if(!IsNumeric(NUMBER)){return "0"; }NUMBER = CStr(NUMBER); arrNUMBER = NUMBER.split("."); if(arrNUMBER.length==1){return NUMBER;}if(PLACES){NUMBER = Math.round(NUMBER*Math.pow(10,PLACES))/Math.pow(10,PLACES); }else{NUMBER = Math.round(NUMBER); }return NUMBER; }function Join(ARRAY,DELIMITER){ARRAY = ARRAY.toString(); if(DELIMITER){ARRAY = Replace(ARRAY,",",DELIMITER); }else{ARRAY = Replace(ARRAY,","," "); }return ARRAY; }function FormatDate(DateToFormat,FormatAs){if(DateToFormat==""){return"";}if(!FormatAs){FormatAs="dd/mm/yyyy";}var strReturnDate; FormatAs = FormatAs.toLowerCase(); DateToFormat = DateToFormat.toLowerCase(); var arrDate
var arrMonths = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); var strMONTH; var Separator; while(DateToFormat.indexOf("st")>-1){DateToFormat = DateToFormat.replace("st",""); }while(DateToFormat.indexOf("nd")>-1){DateToFormat = DateToFormat.replace("nd",""); }while(DateToFormat.indexOf("rd")>-1){DateToFormat = DateToFormat.replace("rd",""); }while(DateToFormat.indexOf("th")>-1){DateToFormat = DateToFormat.replace("th",""); }if(DateToFormat.indexOf(".")>-1){Separator = "."; }if(DateToFormat.indexOf("-")>-1){Separator = "-"; }if(DateToFormat.indexOf("/")>-1){Separator = "/"; }if(DateToFormat.indexOf(" ")>-1){Separator = " "; }arrDate = DateToFormat.split(Separator); DateToFormat = ""; for(var iSD = 0;iSD < arrDate.length;iSD++){if(arrDate[iSD]!=""){DateToFormat += arrDate[iSD] + Separator; }}DateToFormat = DateToFormat.substring(0,DateToFormat.length-1); arrDate = DateToFormat.split(Separator); if(arrDate.length < 3){return ""; }var DAY = arrDate[0]; var MONTH = arrDate[1]; var YEAR = arrDate[2]; if(parseFloat(arrDate[1]) > 12){DAY = arrDate[1]; MONTH = arrDate[0]; }if(parseFloat(DAY) && DAY.toString().length==4){YEAR = arrDate[0]; DAY = arrDate[2]; MONTH = arrDate[1]; }for(var iSD = 0;iSD < arrMonths.length;iSD++){var ShortMonth = arrMonths[iSD].substring(0,3).toLowerCase(); var MonthPosition = DateToFormat.indexOf(ShortMonth); if(MonthPosition > -1){MONTH = iSD + 1; if(MonthPosition == 0){DAY = arrDate[1]; YEAR = arrDate[2]; }break; }}var strTemp = YEAR.toString(); if(strTemp.length==2){if(parseFloat(YEAR)>40){YEAR = "19" + YEAR; }else{YEAR = "20" + YEAR; }}if(parseInt(MONTH)< 10 && MONTH.toString().length < 2){MONTH = "0" + MONTH; }if(parseInt(DAY)< 10 && DAY.toString().length < 2){DAY = "0" + DAY; }switch (FormatAs){case "dd/mm/yyyy":
return DAY + "/" + MONTH + "/" + YEAR; case "mm/dd/yyyy":
return MONTH + "/" + DAY + "/" + YEAR; case "dd/mmm/yyyy":
return DAY + " " + arrMonths[MONTH -1].substring(0,3) + " " + YEAR; case "mmm/dd/yyyy":
return arrMonths[MONTH -1].substring(0,3) + " " + DAY + " " + YEAR; case "dd/mmmm/yyyy":
return DAY + " " + arrMonths[MONTH -1] + " " + YEAR; case "mmmm/dd/yyyy":
return arrMonths[MONTH -1] + " " + DAY + " " + YEAR; }return DAY + "/" + strMONTH + "/" + YEAR;; }function IsDate(DateToCheck){if(DateToCheck==""){return true;}var m_strDate = FormatDate(DateToCheck); if(m_strDate==""){return false; }var m_arrDate = m_strDate.split("/"); var m_DAY = m_arrDate[0]; var m_MONTH = m_arrDate[1]; var m_YEAR = m_arrDate[2]; if(m_YEAR.length > 4){return false;}m_strDate = m_MONTH + "/" + m_DAY + "/" + m_YEAR; var testDate=new Date(m_strDate); if(testDate.getMonth()+1==m_MONTH){return true; }else{return false; }}function IsNumeric(VALUE){for(var ivA = 0; ivA < VALUE.length;ivA ++){if(VALUE.charCodeAt(ivA) < 48 || VALUE.charCodeAt(ivA) > 57){if(VALUE.charCodeAt(ivA) != 46 && VALUE.charCodeAt(ivA) != 32 && VALUE.charAt(ivA) != ","){return false; }}}return true; }function Asc(CHARACTER){return CHARACTER.charCodeAt(0)
}function Chr(CHARACTER_CODE){return String.fromCharCode(CHARACTER_CODE); }function CInt(NUMBER){return parseInt(NUMBER); }function CStr(VALUE){return VALUE.toString(); }function CSng(NUMBER){return parseFloat(NUMBER); }function CDbl(NUMBER){return parseFloat(NUMBER); }function CBool(VALUE){VALUE = new String(VALUE); VALUE = VALUE.toLowerCase(); if(VALUE== "1" || VALUE=="-1" || VALUE=="true" || VALUE == "yes"){return true; }else{return false; }}function InStr(STRING,SUBSTRING,COMPARE,START){if(START){STRING = STRING.substring(START,STRING.length); }if(CBool(COMPARE) || COMPARE ==undefined){STRING = STRING.toLowerCase(); SUBSTRING = SUBSTRING.toLowerCase(); }if(STRING.indexOf(SUBSTRING) > -1){return STRING.indexOf(SUBSTRING)
}else{return 0; }}function LCase(STRING){return STRING.toLowerCase(); }function Left(STRING,CHARACTER_COUNT){return STRING.substring(0,CHARACTER_COUNT); }function Len(STRING){return STRING.length; }function Mid(STRING,START,END){if(!START){START=0}; if(!END || END > STRING.length){END=STRING.length}; if(END!=STRING.length){END = START + END}; return STRING.substring(START,END); }function Replace(STRING,REPLACE_THIS,REPLACE_WITH){while(STRING.indexOf(REPLACE_THIS) > -1){STRING = STRING.replace(REPLACE_THIS,REPLACE_WITH); }return STRING; }function Right(STRING,CHARACTER_COUNT){return STRING.substring((STRING.length - CHARACTER_COUNT),STRING.length); }function Split(STRING,CHARACTER){return STRING.split(CHARACTER); }function Sqr(NUMBER){return NUMBER * NUMBER
}function Trim(STRING){STRING = LTrim(STRING); return RTrim(STRING); }function RTrim(STRING){while(STRING.charAt((STRING.length -1))==" "){STRING = STRING.substring(0,STRING.length-1); }return STRING; }function LTrim(STRING){while(STRING.charAt(0)==" "){STRING = STRING.replace(STRING.charAt(0),""); }return STRING; }function UBound(ARRAY){if(IsArray(ARRAY)){return ARRAY.length; }else{return; }}function UCase(STRING){return STRING.toUpperCase(); }function UNESCAPE(U_VALUE){U_VALUE = unescape(U_VALUE); while(U_VALUE.indexOf("+") > -1){U_VALUE = U_VALUE.replace("+", " "); }return U_VALUE; }var vbCrLf = String.fromCharCode(13) + String.fromCharCode(10); var vbTab = " "; function loadclass(name,classe) {var obj = document.getElementById(name); if(obj){obj.className = classe; }}function changeclass(src, classe){src.className = classe; }function lineclick(src){if(event.srcElement.tagName=='TD'){src.children.tags('A')[0].click(); }}function remove_tag(str_id){var f = document.getElementById(str_id); f.parentNode.removeChild(f); }function setfildstatus(name, status){var obj = document.getElementById(name); obj.disabled = status; }function hideshow(name,classehide, classeshow) {var obj = document.getElementById(name); if(obj.className == classehide){obj.className = classeshow; }else{obj.className = classehide; }}function hideshow_if(name,classehide, classeshow, condition) {var obj = document.getElementById(name); if(condition){obj.className = classeshow; }else{obj.className = classehide; }}function set_html(name, html){var obj = document.getElementById(name); if(obj) obj.innerHTML = html; }function popup(url, w, h, name){if(name == 'randon'){var timestamp = new Date(); name = 'random' + timestamp.getTime(); }window.open( url, name, "width=" + w + ",height=" + h + ",scrollbars=no" ); }function popups(url, w, h){window.open( url, "popup", "width=" + w + ",height=" + h + ",scrollbars=yes" ); }function debug(msg){if(debugin){document.getElementById('debug').innerHTML = document.getElementById('debug').innerHTML + "<br>" + msg; }}function question(msg, urlok){var z = confirm(msg); if (z == true){location.href = urlok; }}function onlynumbers(obj, e){var tecla = parseInt(eval( ( (navigator.appName == "Netscape")?"e.which":"e.keyCode" ) ))
if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)) return false; }function onlymoney(obj, e){var tecla = parseInt(eval( ( (navigator.appName == "Netscape")?"e.which":"e.keyCode" ) ))
if (!(tecla>47 && tecla<58 || tecla == 44 || tecla == 8 || tecla == 0 || tecla == 13)) return false; }function onlychars(obj, e, caracteres){var tecla = parseInt(eval( ( (navigator.appName == "Netscape")?"e.which":"e.keyCode" ) )); var char = String.fromCharCode(tecla); if( !(InStr(caracteres, char) || tecla == 16 || tecla == 8 || tecla == 0 || tecla == 13) ){debug("Bloqueado: " + tecla + "(" + char + ")"); return false; }}function setstatus(msg){self.status=msg; }function cleanstatus(msg){self.status=''; }var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion()
{var version; var axo; var e; try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); }catch (e) {}if (!version)
{try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); version = "WIN 6,0,21,0"; axo.AllowScriptAccess = "always"; version = axo.GetVariable("$version"); }catch (e) {}}if (!version)
{try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); }catch (e) {}}if (!version)
{try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; }catch (e) {}}if (!version)
{try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; }catch (e) {version = -1; }}return version; }function GetSwfVer(){var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) {if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; var versionRevision = descArray[3]; if (versionRevision == "") {versionRevision = descArray[4]; }if (versionRevision[0] == "d") {versionRevision = versionRevision.substring(1); }else if (versionRevision[0] == "r") {versionRevision = versionRevision.substring(1); if (versionRevision.indexOf("d") > 0) {versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); }}var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; }}else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) {flashVer = ControlVersion(); }return flashVer; }function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{versionStr = GetSwfVer(); if (versionStr == -1 ) {return false; }else if (versionStr != 0) {if(isIE && isWin && !isOpera) {tempArray = versionStr.split(" "); 
tempString = tempArray[1]; 
versionArray = tempString.split(","); 
}else {versionArray = versionStr.split("."); }var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; if (versionMajor > parseFloat(reqMajorVer)) {return true; }else if (versionMajor == parseFloat(reqMajorVer)) {if (versionMinor > parseFloat(reqMinorVer))
return true; else if (versionMinor == parseFloat(reqMinorVer)) {if (versionRevision >= parseFloat(reqRevision))
return true; }}return false; }}function AC_AddExtension(src, ext)
{if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?'); else
return src + ext; }function AC_Generateobj(objAttrs, params, embedAttrs)
{var str = ''; if (isIE && isWin && !isOpera)
{str += '<object '; for (var i in objAttrs)
{str += i + '="' + objAttrs[i] + '" '; }str += '>'; for (var i in params)
{str += '<param name="' + i + '" value="' + params[i] + '" /> '; }str += '</object>'; }else
{str += '<embed '; for (var i in embedAttrs)
{str += i + '="' + embedAttrs[i] + '" '; }str += '> </embed>'; }document.write(str); }function AC_FL_RunContent(){var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); }function AC_SW_RunContent(){var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); }function AC_GetArgs(args, ext, srcParamName, classid, mimeType){var ret = new Object(); ret.embedAttrs = new Object(); ret.params = new Object(); ret.objAttrs = new Object(); for (var i=0; i < args.length; i=i+2){var currArg = args[i].toLowerCase(); switch (currArg){case "classid":
break; case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1]; break; case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.params[srcParamName] = args[i+1]; break; case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1]; break; case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1]; break; default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1]; }}ret.objAttrs["classid"] = classid; if (mimeType) ret.embedAttrs["type"] = mimeType; return ret; }function flash_destroy() {var objects = document.getElementsByTagName("OBJECT"); for (var i=0; i < objects.length; i++) {var f = document.getElementsByTagName("OBJECT")[i]; f.parentNode.removeChild(f); }}var AjaxText = null; var AjaxRequest = null; var lastmsg = null; var msgid = 0; var debugin = 0; var client_index_char = ''; var client_index_page = 1; var autoupdate = false; var autoupdateconsole = ''; var autointerval = 0; var autoprocess = 0; var autoupdate_count = 0; var ajahload_name = ''; var ajahget_name = ''; var Ajax_off = 1; var tmp1 = ''; var tmp2 = ''; var tmp3 = ''; function Ajax(){var XMLR=false; try{XMLR=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{XMLR=new ActiveXObject("Microsoft.XMLHTTP")}catch(sc){XMLR=null}}if(!XMLR&&typeof XMLHttpRequest!="undefined"){XMLR=new XMLHttpRequest()
}return XMLR; }function XML() {DOMD = null; if (window.ActiveXObject) {try {DOMD = new ActiveXObject("Msxml2.DOMDocument"); }catch (e) {try {DOMD = new ActiveXObject("Msxml.DOMDocument"); }catch (e) {DOMD = null; }}}else if(document.implementation&&document.implementation.createDocuments) {try {DOMD = document.implementation.createDocument("","",null); 
}catch (e) {DOMD = null; }}return DOMD; }function hidemsg(id){if(msgid == id){document.getElementById('msg').innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;"; }}function showmsg(msg, type, time){var color = '#336699'; if(type == 'alert'){color = '#FF9900'; }if(type == 'error'){color = '#FF0000'; }if(type == 'info'){color = '#66CC99'; }var showmsg = "<b><font color='" + color + "'>" + msg + "</font></b>"; if(msg != lastmsg){document.getElementById('msg').innerHTML = showmsg; }lastmsg = msg; msgid++; if(time){window.setTimeout('hidemsg(' + msgid + ')',time)
}}function autoupdate_funcion(){autoupdate_count++; if(autoupdate && autoupdate_count>=autointerval){if(!autoprocess){auto_ajah_request(); }autoupdate_count = 0; }}function autoupdate_start(){autoupdate = true; if(autointerval==0) autointerval = 5; }function autoupdate_stop(){autoupdate = false; }function ajah_unload(htname){debug("Flash destroy"); flash_destroy(); debug("Empty htname"); if(htname!='') document.getElementById(htname).innerHTML = ""; }function ajax_destroy(){AjaxRequest = null; Ajax_off = 1; }function auto_ajah_return(){if (!Ajax_off && AjaxRequest.readyState == 4) {if(AjaxRequest.status == 200){var text = AjaxRequest.responseText; if(text != AjaxText){flash_destroy(); document.getElementById('console').innerHTML = text; AjaxText = text; }ajax_destroy(); }autoprocess = 0; }}function auto_ajah_request(){var timestamp = new Date(); var url = '/admin/ajah.php?console=' + autoupdateconsole + '&via=ajah&nocache=' + timestamp.getTime(); autoprocess = 1; AjaxRequest = null; Ajax_off = 1; AjaxRequest = new Ajax(); Ajax_off = 0; AjaxRequest.onreadystatechange = auto_ajah_return; AjaxRequest.open('GET', url, true); debug("Auto Ajah request: " + url); AjaxRequest.send(null); }function ajah_return(){if (!Ajax_off && AjaxRequest.readyState == 4) {if (AjaxRequest.status == 200) {var text = AjaxRequest.responseText; if(text != AjaxText){flash_destroy(); document.getElementById('console').innerHTML = text; AjaxText = text; }showmsg("<img src='/src/smallicons/minicheck.gif' align='absmiddle'> Carregado!", 'info', 2000); ajax_destroy(); }else {showmsg("<img src='/src/smallicons/comments_red.gif' align='absmiddle'> Erro ao carregar conteudo: " + AjaxRequest.statusText, 'error', 5000); }autoprocess = 0; }}function ajah_request(console, autoupdateinterval){showmsg("<img src='/src/smallicons/al.gif' align='absmiddle'> Carregando...", 'info', 0); var timestamp = new Date(); var url = '/admin/ajah.php?console=' + console + '&via=ajah&nocache=' + timestamp.getTime(); if(ajahload_name != ''){ajah_unload(ajahload_name); ajahload_name = ''; }autoprocess = 1; if(autoupdateinterval!='' || autoupdateinterval != 0){autoupdate = true; autointerval = autoupdateinterval; autoupdateconsole = console; autoupdate_start(); }else{autoupdate = false; autoupdate_stop(); }AjaxRequest = null; Ajax_off = 1; AjaxRequest = new Ajax(); Ajax_off = 0; AjaxRequest.onreadystatechange = ajah_return; AjaxRequest.open('GET', url, true); debug("Ajah request: " + url); AjaxRequest.send(null); }function ajah_load(console, htname){showmsg("<img src='/src/smallicons/al.gif' align='absmiddle'> Carregando...", 'info', 0); var timestamp = new Date(); var url = '/admin/ajah.php?console=' + console + '&via=ajah&nocache=' + timestamp.getTime(); if(ajahload_name != ''){ajah_unload(ajahload_name); ajahload_name = ''; }ajahload_name = htname; autoprocess = 1; autoupdate = false; autoupdate_stop(); AjaxRequest = null; Ajax_off = 1; AjaxRequest = new Ajax(); Ajax_off = 0; AjaxRequest.onreadystatechange = function (){if (!Ajax_off && AjaxRequest.readyState == 4) {if (AjaxRequest.status == 200) {document.getElementById(ajahload_name).innerHTML = AjaxRequest.responseText; showmsg("<img src='/src/smallicons/minicheck.gif' align='absmiddle'> Carregado!", 'info', 2000); ajax_destroy(); }else {showmsg("<img src='/src/smallicons/comments_red.gif' align='absmiddle'> Erro ao carregar conteudo: " + AjaxRequest.statusText, 'error', 5000); }autoprocess = 0; }}; AjaxRequest.open('GET', url, true); debug("Ajah load: " + url); AjaxRequest.send(null); }function ajah_get(console, htname){showmsg("<img src='/src/smallicons/al.gif' align='absmiddle'> Carregando...", 'info', 0); var timestamp = new Date(); var url = '/admin/ajah.php?console=' + console + '&via=ajah&nocache=' + timestamp.getTime(); ajahget_name = htname; autoprocess = 1; autoupdate = false; autoupdate_stop(); AjaxRequest = null; Ajax_off = 1; AjaxRequest = new Ajax(); Ajax_off = 0; AjaxRequest.onreadystatechange = function (){if (!Ajax_off && AjaxRequest.readyState == 4) {if (AjaxRequest.status == 200) {document.getElementById(ajahget_name).innerHTML = AjaxRequest.responseText; showmsg("<img src='/src/smallicons/minicheck.gif' align='absmiddle'> Carregado!", 'info', 2000); ajax_destroy(); }else {showmsg("<img src='/src/smallicons/comments_red.gif' align='absmiddle'> Erro ao carregar conteudo: " + AjaxRequest.statusText, 'error', 5000); }autoprocess = 0; }}; AjaxRequest.open('GET', url, true); debug("Ajah get: " + url); AjaxRequest.send(null); }function ajah_exec(console, htname){showmsg("<img src='/src/smallicons/al.gif' align='absmiddle'> Carregando...", 'info', 0); var timestamp = new Date(); var url = console + '&via=ajah&nocache=' + timestamp.getTime(); ajahget_name = htname; autoprocess = 1; autoupdate = false; autoupdate_stop(); AjaxRequest = null; Ajax_off = 1; AjaxRequest = new Ajax(); Ajax_off = 0; AjaxRequest.onreadystatechange = function (){if (!Ajax_off && AjaxRequest.readyState == 4) {if (AjaxRequest.status == 200) {document.getElementById(ajahget_name).innerHTML = AjaxRequest.responseText; showmsg("<img src='/src/smallicons/minicheck.gif' align='absmiddle'> Carregado!", 'info', 2000); ajax_destroy(); }else {showmsg("<img src='/src/smallicons/comments_red.gif' align='absmiddle'> Erro ao carregar conteudo: " + AjaxRequest.statusText, 'error', 5000); }autoprocess = 0; }}; AjaxRequest.open('GET', url, true); debug("Ajah get: " + url); AjaxRequest.send(null); }var autoupdate_obj = setInterval('autoupdate_funcion()',1000); var _browser=new TBrowser();var _arRegisterMenu=new Array();var _arRegisterMenuIndex=-1;var _arTriggerMenu=new Array();var _arRegisterPopID=new Array();var _arRegisterPopIndex=new Array();var _arRegisterTriggerPopID=new Array();var _arRegisterTriggerPopIndex=new Array();var _arMMClick=new Array();function Initialize()
{var byk=_arRegisterMenuIndex;for(var i=0;i<=byk;i++)
_arRegisterMenu[i].Init();}function InitResize()
{var byk=_arRegisterMenuIndex;for(var i=0;i<=byk;i++)
_arRegisterMenu[i].Resize(); }function TBrowser()
{this._name='';this._version='';this._os='';}var detect=navigator.userAgent.toLowerCase();var total,thestring;if(checkIt('konqueror'))
{_browser._name="Konqueror";_browser._os="Linux";}else if(checkIt('safari')) _browser._name="Safari";else if(checkIt('omniweb')) _browser._name="OmniWeb";else if(checkIt('opera')) _browser._name="Opera";else if(checkIt('webtv')) _browser._name="WebTV";else if(checkIt('icab')) _browser._name="iCab";else if(checkIt('msie')) _browser._name="IE";else if(!checkIt('compatible'))
{_browser._name="Netscape";_browser._version=detect.charAt(8);}else _browser._name="none";if(_browser._version=='') _browser._version=detect.charAt(place+thestring.length);if(_browser._os=='')
{if(checkIt('linux')) _browser._os="Linux";else if(checkIt('x11')) _browser._os="Unix";else if(checkIt('mac')) _browser._os="Mac";else if(checkIt('win')) _browser._os="Windows";else _browser._os="none";}function checkIt(string)
{place=detect.indexOf(string)+1;thestring=string;return place;}function TMainMenu(name,direction)
{_arRegisterMenuIndex++;_arRegisterMenu[_arRegisterMenuIndex]=this;_arRegisterPopID[_arRegisterMenuIndex]=new Array();_arRegisterPopIndex[_arRegisterMenuIndex]=-1;_arRegisterTriggerPopID[_arRegisterMenuIndex]=new Array();_arRegisterTriggerPopIndex[_arRegisterMenuIndex]=-1;_arMMClick[_arRegisterMenuIndex]=true;this._popOnClick=false;this._expandIcon=new TExpandIcon();this._expandIcon._create=false;this._registerMenuIndex=_arRegisterMenuIndex;this._uniqueID=0;this._name=name;this._id='_'+name+'ID';this._index=_arRegisterMenuIndex; this._correction=new TCorrection();this._parent=null;this._width='auto';this._direction=direction;if(this._direction=='horizontal')
{this._expandIcon._symbol='&#9660;';}else
{this._expandIcon._symbol='&#9658;';}this._position='relative';this._top=0;this._left=0;this._cellSpacing=0;this._itemHeight='auto';this._itemWidth='auto';this._background=new TBackground();this._background._color='buttonface';this._pop=new TPopParameter();this._pop._mmName=this._name;this._pop._index=this._index;this._shadow=new TShadow();this._font=new TFont();this._font._family='tahoma,verdana,sans-serif,arial';this._font._size='8pt';this._itemIndex=-1;this._items=new Array();this._itemText=new TText();this._itemText._color='black';this._itemBack=new TBackground();this._itemTextHL=new TText();this._itemTextHL._color='white'; this._itemBackHL=new TBackground();this._itemBackHL._color='#B6BDD2';this._border=new TBorder();this._itemBorder=new TBorder();this._itemBorderHL=new TBorder();this._itemBorderHL._top='1px navy solid';this._itemBorderHL._right='1px navy solid';this._itemBorderHL._bottom='1px navy solid';this._itemBorderHL._left='1px navy solid';this._itemTextClick=new TText();this._itemTextClick._color='white';this._itemBackClick=new TBackground();this._itemBackClick._color='#B6BDD2';this._itemBorderClick=new TBorder();this._itemBorderClick._top='1px navy solid';this._itemBorderClick._right='1px navy solid';this._itemBorderClick._bottom='1px navy solid';this._itemBorderClick._left='1px navy solid';this._hideObject=new THiddenObject();this._pop._header=new TPopHeader();this._header=new TPopHeader();this._header._font._size='6pt';this._type='';this._initialTop=0;this._initialLeft=0;this._headerClickState=false;this._headerText='Click Here';this.SetHeaderText=SetMMHeaderText;this.Add=AddItem;this.Build=BuildMenu;this.BuildStyle=BuildStyle;this.Draw=DrawMenu;this.Init=InitMenu;this.SetExpandIcon=SetExpandIcon;this.SetParent=SetParent;this.SetType=SetMenuType;this.SetPopOnClick=SetPopOnClick;this.SetWidth=SetWidth;this.SetBorder=SetBorder;this.SetBorderTop=SetBorderTop;this.SetBorderRight=SetBorderRight;this.SetBorderBottom=SetBorderBottom;this.SetBorderLeft=SetBorderLeft;this.SetItemDimension=SetItemDimension;this.SetItemBorder=SetItemBorder;this.SetItemBorderTop=SetItemBorderTop;this.SetItemBorderRight=SetItemBorderRight;this.SetItemBorderBottom=SetItemBorderBottom;this.SetItemBorderLeft=SetItemBorderLeft;this.SetItemBorderHL=SetItemBorderHL;this.SetItemBorderTopHL=SetItemBorderTopHL;this.SetItemBorderRightHL=SetItemBorderRightHL;this.SetItemBorderBottomHL=SetItemBorderBottomHL;this.SetItemBorderLeftHL=SetItemBorderLeftHL;this.SetItemBorderClick=SetItemBorderClick;this.SetItemBorderTopClick=SetItemBorderTopClick;this.SetItemBorderRightClick=SetItemBorderRightClick;this.SetItemBorderBottomClick=SetItemBorderBottomClick;this.SetItemBorderLeftClick=SetItemBorderLeftClick;this.SetShadow=SetShadow;this.SetFont=SetFont;this.SetBackground=SetBackground;this.SetDirection=SetDirection;this.SetPosition=SetPosition;this.SetCorrection=SetCorrection;this.SetCellSpacing=SetCellSpacing;this.SetItemText=SetItemText;this.SetItemTextHL=SetItemTextHL;this.SetItemTextClick=SetItemTextClick;this.SetItemBackground=SetItemBackground;this.SetItemBackgroundHL=SetItemBackgroundHL;this.SetItemBackgroundClick=SetItemBackgroundClick;this.Resize=ResizeMenu;}function ResizeMenu()
{if(this._shadow._create)
{if(document.all)
{var elm=document.all(this._id);var shadowElm=document.all('sh_'+this._id);}else if(document.getElementById)
{var elm=document.getElementById(this._id);var shadowElm=document.getElementById('sh_'+this._id);}var posY=findPosY(elm);var posX=findPosX(elm);if(_browser._name=='IE')
{shadowElm.style.width=elm.offsetWidth+10;shadowElm.childNodes[0].style.width=elm.offsetWidth;shadowElm.style.top=posY;shadowElm.style.left=posX;}else
{shadowElm.style.width=elm.offsetWidth;shadowElm.style.top=posY+this._shadow._distance;shadowElm.style.left=posX+this._shadow._distance;}}}function SetDirection(dDirection)
{dDirection=dDirection.toLowerCase();switch(dDirection)
{case 'vertical':
this._direction='vertical';break;default:
this._direction='horizontal';}}function SetMMHeaderText(dText)
{this._headerText=dText;}function SetMenuType(dType)
{dType=dType.toLowerCase();switch(dType)
{case 'float':
this._type='float';break;case 'free':
this._type='free';break;default :
this._type='';}}function TPopHeader()
{this._background=new TBackground();this._background._color='black';this._itemText=new TText();this._itemText._weight='bold';this._itemText._color='white';this._font=new TFont();this._font._family='tahoma,verdana,sans-serif,arial';this._font._size='8pt';this.SetBackground=SetBackground;this.SetFont=SetFont;this.SetText=SetItemText;}function THiddenObject()
{this._itemIndex=-1;this._items=new Array();this._isHide=false;this._isShow=true;this.Add=AddItem;this.Hide=HideObject;this.Show=ShowObject;this.Clear=ClearObject;}function ClearObject()
{if(this._itemIndex >-1)
{var iMax=this._itemIndex+1;for(var i=0;i<iMax;i++)
{delete this._items[i];}this._isHide=false;this._itemIndex=-1;}}function HideObject()
{if(this._itemIndex >-1)
{var iMax=this._itemIndex+1;for(var i=0;i<iMax;i++)
{if(document.all)
document.all(this._items[i]).style.visibility="hidden";else if(document.getElementById)
document.getElementById(this._items[i]).style.visibility="hidden"; }this._isHide=true;}}function ShowObject()
{if(this._isHide)
{var iMax=this._itemIndex+1;for(var i=0;i<iMax;i++)
{if(document.all)
document.all(this._items[i]).style.visibility="visible";else if(document.getElementById)
document.getElementById(this._items[i]).style.visibility="visible"; }}}function SetPopOnClick(dBool)
{if(dBool)
{this._popOnClick=true;_arMMClick[this._registerMenuIndex]=false;}else
{this._popOnClick=false;_arMMClick[this._registerMenuIndex]=true;}}function TPopMenu(label,icon,clickType,clickParam,status)
{this._id='';this._parent=null;this._parentPop=null;this._label=label;this._top=0;this._left=0;this._status=status;this._tmpIcon=icon;this._icon="";this._itemIndex=-1;this._items=new Array();switch(clickType)
{case 'function':
this._eClick=clickParam;break;case 'f':
this._eClick=clickParam;break;case 'address':
this._eClick="_openURL('"+clickParam+"')";break;case 'a':
this._eClick="_openURL('"+clickParam+"')";break;default:
this._eClick='';}this._type=''; this.Add=AddItem;this.Draw=DrawPopMenu;this.Init=InitPopMenu;this.SetType=SetPopType;this.SetParent=SetParent;}function SetPopType(dType)
{dType=dType.toLowerCase();switch(dType)
{case 'header':
this._type='h';break;case 'h':
this._type='h';break;default:
this._type='';}}function TPopParameter()
{this._index=-1;this._mmName='';this._padding='1px 1px 1px 1px';this._separator=new TSeparator();this._expandIcon=new TExpandIcon();this._correction=new TCorrection();this._font=new TFont();this._font._family='tahoma,verdana,sans-serif,arial';this._font._size='8pt';this._alpha=100;this._itemWidth=200; this._itemHeight='auto';this._itemBorder=new TBorder();this._itemBorder._top='0px none solid';this._itemBorder._right='0px none solid';this._itemBorder._bottom='0px none solid';this._itemBorder._left='0px none solid';this._itemPadding='1px 1px 1px 1px' ;this._itemText=new TText();this._itemBack=new TBackground();this._itemBorderHL=new TBorder();this._itemBorderHL._top='1px navy solid';this._itemBorderHL._right='1px navy solid';this._itemBorderHL._bottom='1px navy solid';this._itemBorderHL._left='1px navy solid';this._itemPaddingHL='0px 0px 0px 0px';this._itemTextHL=new TText();this._itemTextHL._color='white';this._itemBackHL=new TBackground();this._itemBackHL._color='#B6BDD2';this._background=new TBackground();this._background._color='whitesmoke';this._border=new TBorder();this._border._top='1px black solid';this._border._right='1px black solid';this._border._bottom='1px black solid';this._border._left='1px black solid';this._shadow=new TShadow();this._header=new TPopHeader();this._timeOut=750; this.SetAlpha=SetAlpha;this.SetBorder=SetBorder;this.SetPadding=SetPadding;this.SetPaddings=SetPaddings;this.SetBorderTop=SetBorderTop;this.SetBorderRight=SetBorderRight;this.SetBorderBottom=SetBorderBottom;this.SetBorderLeft=SetBorderLeft;this.SetItemDimension=SetItemDimension;this.SetItemBorder=SetItemBorder;this.SetItemPadding=SetItemPadding;this.SetItemPaddingHL=SetItemPaddingHL;this.SetItemPaddings=SetItemPaddings;this.SetItemPaddingsHL=SetItemPaddingsHL;this.SetItemBorderTop=SetItemBorderTop;this.SetItemBorderRight=SetItemBorderRight;this.SetItemBorderBottom=SetItemBorderBottom;this.SetItemBorderLeft=SetItemBorderLeft;this.SetItemBorderHL=SetItemBorderHL;this.SetItemBorderTopHL=SetItemBorderTopHL;this.SetItemBorderRightHL=SetItemBorderRightHL;this.SetItemBorderBottomHL=SetItemBorderBottomHL;this.SetItemBorderLeftHL=SetItemBorderLeftHL;this.SetShadow=SetShadow;this.SetFont=SetFont;this.SetBackground=SetBackground;this.SetCorrection=SetCorrection;this.SetExpandIcon=SetExpandIcon;this.SetSeparator=SetSeparator;this.SetDelay=SetDelay;this.SetItemText=SetItemText;this.SetItemTextHL=SetItemTextHL;this.SetItemBackground=SetItemBackground;this.SetItemBackgroundHL=SetItemBackgroundHL;}function SetAlpha(dAlpha)
{dAlpha=parseInt(dAlpha);this._alpha=dAlpha;}function TCorrection()
{this._top=0;this._left=0;}function TText()
{this._color='black';this._align='left';this._decoration='none';this._whiteSpace='normal';this._weight='normal';}function TShadow()
{this._create=false;this._color='black';this._distance=3; }function TSeparator()
{this._align='center'
this._width=200;this._margin="0px 0px 0px 0px";this._border=new TBorder(); this._border._top='1px black solid';this._border._bottom='1px white solid';}function TFont()
{this._family='arial,times,sans-serif';this._size='8pt';}function TBackground()
{this._image='none'; this._repeat='no-repeat';this._color='';this._position='top left';}function TExpandIcon()
{this._create=true;this._symbol='&#9658;';this._font=new TFont();this._font._size='6pt';}function TBorder()
{this._top='1px gray solid';this._right='1px gray solid';this._bottom='1px gray solid';this._left='1px gray solid';}function BuildMenu()
{var result="";var level=-1;this.SetParent(this);result+=this.BuildStyle();result+=this.Draw(level++);level++;for(var i=0;i<=this._itemIndex;i++)
{result+=this._items[i].Draw(level);result+=BuildPopUpMenu(this._items[i],level);}document.write(result);}function InitMenu()
{if(document.all)
var el_menu=document.all(this._id);else if(document.getElementById)
var el_menu=document.getElementById(this._id);this._position=this._position.toLowerCase();if(this._position=='absolute')
{el_menu.style.top=this._top;el_menu.style.left=this._left;}else
{this._top=findPosY(el_menu);this._left=findPosX(el_menu);}el_menu.style.zIndex=1;if((this._type=='free') && (this._position=='absolute'))
{if(document.all)
var fr_el=document.all('fr_'+this._id);else if(document.getElementById)
var fr_el=document.getElementById('fr_'+this._id);fr_el.style.top=this._top+'px';fr_el.style.left=this._left+'px';fr_el.style.width=el_menu.offsetWidth;fr_el.style.height=el_menu.offsetHeight;fr_el.style.zIndex=1;}if(this._shadow._create)
{if(document.all)
var sh_el=document.all('sh_'+this._id);else if(document.getElementById)
var sh_el=document.getElementById('sh_'+this._id);if(_browser._name=='IE')
{sh_el.style.top=this._top+'px';sh_el.style.left=this._left+'px';sh_el.style.width=el_menu.offsetWidth+10+'px';sh_el.style.height=el_menu.offsetHeight+10+'px';sh_el.childNodes[0].style.width=el_menu.offsetWidth+'px';sh_el.childNodes[0].style.height=el_menu.offsetHeight+'px';sh_el.childNodes[0].style.backgroundColor=this._shadow._color;sh_el.style.visibility='visible';}else
{if(_browser._name=='Konqueror' && this._position=='relative')
sh_el.style.visibility='hidden';else
{sh_el.style.top=this._top+this._shadow._distance+'px';sh_el.style.left=this._left+this._shadow._distance+'px';sh_el.style.width=el_menu.offsetWidth+'px';sh_el.style.height=el_menu.offsetHeight+'px';sh_el.style.backgroundColor=this._shadow._color;sh_el.style.visibility='visible';}}sh_el.style.zIndex=1;}for(var i=0;i<=this._itemIndex;i++)
{if(document.all)
var el_menuitem=document.all('pr_'+this._items[i]._id);else if(document.getElementById)
var el_menuitem=document.getElementById('pr_'+this._items[i]._id);if(this._items[i]._itemIndex >-1)
{if(document.all)
var el_pop=document.all(this._items[i]._id);else if(document.getElementById)
var el_pop=document.getElementById(this._items[i]._id);el_pop.style.zIndex=2;if(this._items[i]._parent._pop._shadow._create)
{if(document.all)
var sh_el_pop=document.all('sh_'+this._items[i]._id);else if(document.getElementById)
var sh_el_pop=document.getElementById('sh_'+this._items[i]._id);if(_browser._name=='IE')
{sh_el_pop.style.width=el_pop.offsetWidth+10+'px';sh_el_pop.style.height=el_pop.offsetHeight+10+'px';sh_el_pop.childNodes[0].style.width=el_pop.offsetWidth+'px';sh_el_pop.childNodes[0].style.height=el_pop.offsetHeight+'px';sh_el_pop.childNodes[0].style.backgroundColor=this._items[i]._parent._pop._shadow._color;}else
{sh_el_pop.style.width=el_pop.offsetWidth+'px';sh_el_pop.style.height=el_pop.offsetHeight+'px';sh_el_pop.style.backgroundColor=this._items[i]._parent._pop._shadow._color;}sh_el_pop.style.zIndex=1;}this._items[i].Init(102);}}el_menu.style.visibility="visible";if((this._type=='float') && (this._position=='absolute'))
{this._initialTop=this._top;this._initialLeft=this._left;_floatingMMEffect(this);}}function SetParent(parent)
{for(var i=0;i<=this._itemIndex;i++)
{this._items[i]._parent=parent;this._items[i]._parentPop=this;this._items[i]._id='_'+parent._name+'-'+parent._uniqueID+"ID";var iIcon=parseInt(this._items[i]._tmpIcon);if((iIcon > 0))
{this._items[i]._icon='<td style="padding-left:'+iIcon+'px;">';}else
{switch(this._items[i]._tmpIcon)
{case "":
this._items[i]._icon='<td style="padding-left:24px;">';break;case '0':
this._items[i]._icon='<td>';break;default:
this._items[i]._icon='<td class="TIcon'+this._items[i]._parent._index+'"><img class="TIcon'+this._items[i]._parent._index+'" src="'+this._items[i]._tmpIcon+'" width="16px" /></td><td>';}}parent._uniqueID++;this._items[i].SetParent(parent);}}function DrawMenu(level)
{var result="";if(this._shadow._create)
{if(_browser._name=='IE')
result+='<div style="position:absolute;visibility:hidden;filter: blur( direction=135, strength='+this._shadow._distance+', add=1);" id="sh_'+this._id+'" align="left"><div></div></div>';else
result+='<div style="position:absolute;visibility:hidden;" id="sh_'+this._id+'"></div>';}if((this._type=='free') && (this._position=='absolute'))
{result+='<table class="TMenu'+this._index+'" id="fr_'+this._id+'"';result+=' cellspacing="'+this._cellSpacing+'" style="position:absolute;visibility:hidden;">';result+='<tr><td class="TMMHeader'+this._index+'"';result+=' onclick="onMMHeaderClick(event,'+this._name+')"';result+='>'+this._headerText+'</td></tr>';result+='<tr><td> </td></tr>';result+='</table>';}result+='<table class="TMenu'+this._index+'" id="'+this._id+'"';result+=' cellspacing="'+this._cellSpacing+'">';if(this._direction=='horizontal')
{if(this._itemIndex >-1)
{if((this._type=='free') && (this._position=='absolute'))
{var colSpan=this._itemIndex+1;result+='<tr><td colspan="'+colSpan+'" class="TMMHeader'+this._index+'"';result+=' onclick="onMMHeaderClick(event,'+this._name+')">'+this._headerText+'</td></tr>';}}result+='<tr>';}else
{if((this._type=='free') && (this._position=='absolute'))
{result+='<td class="TMMHeader'+this._index+'"';result+=' onclick="onMMHeaderClick(event,'+this._name+')">'+this._headerText+'</td>';}}if(this._itemIndex >-1)
{var isExpandIcon=false;for(var i=0;i<=this._itemIndex;i++)
{var result1='';var expandHTML='';result1+='<td nowrap class="TMenuItem'+this._index+'" id="pr_'+this._items[i]._id+'"';if(this._items[i]._itemIndex >-1)
{result1+=' onmouseover="onMainMOver(event,this,\''+this._items[i]._id+'\','+level+','+this._name+',\''+escape(this._items[i]._status)+'\')"';if(this._popOnClick)
result1+='onclick="onMainClick(event,this,\''+this._items[i]._id+'\','+this._name+')"';result1+=' onmouseout="onMainMOut(event,this,\''+this._items[i]._id+'\','+this._name+')"';if(this._items[i]._parent._expandIcon._create)
{expandHTML='<td class="TMMExpand'+this._items[i]._parent._index+'">'+this._items[i]._parent._expandIcon._symbol+'</td>';isExpandIcon=true;}}else
{result1+=' onmouseover="onMainMOver(event,this,\'\','+level+','+this._name+',\''+escape(this._items[i]._status)+'\')"';result1+=' onmouseout="onMainMOut(event,this,\'\','+this._name+')"';result1+=' onclick="'+this._items[i]._eClick+'"';}var iIcon=parseInt(this._items[i]._tmpIcon);if((iIcon > 0))
{this._items[i]._icon='<td style="padding-left:'+iIcon+'px;">';}else
{switch(this._items[i]._tmpIcon)
{case "":
if(isExpandIcon && expandHTML=='')
this._items[i]._icon='<td style="padding-left:30px;padding-right:16px">';else
this._items[i]._icon='<td style="padding-left:30px">';break;case '0':
if(isExpandIcon && expandHTML=='')
this._items[i]._icon='<td style="padding-right:16px">';else
this._items[i]._icon='<td>';break;default:
if(isExpandIcon && expandHTML=='')
this._items[i]._icon='<td class="TIcon'+this._items[i]._parent._index+'"><img class="TIcon'+this._items[i]._parent._index+'" src="'+this._items[i]._tmpIcon+'" width="16px" /></td><td style="padding-right:16px">';else
this._items[i]._icon='<td class="TIcon'+this._items[i]._parent._index+'"><img class="TIcon'+this._items[i]._parent._index+'" src="'+this._items[i]._tmpIcon+'" width="16px" /></td><td>';}}result1+='><table class="TMenuItemChild'+this._index+'"><tr>'+this._items[i]._icon+this._items[i]._label+'</td>';result1+=expandHTML+'</tr></table></td>';if(this._direction=='horizontal')
result+=result1;else
result+='<tr>'+result1+'</tr>';}}else
{var result1='';result1+='<td>&nbsp;</td>';if(this._direction=='horizontal')
result+=result1;else
result+='<tr>'+result1+'</tr>';}if(this._direction=='horizontal')
result+='</tr>';result+='</table>';return result;}function DrawPopMenu(level)
{var result="";if(this._itemIndex >-1)
{if(this._parent._pop._shadow._create)
{if(_browser._name=='IE')
result+='<div style="position:absolute;visibility:hidden;filter: blur( direction=135, strength='+this._parent._pop._shadow._distance+', add=1);" id="sh_'+this._id+'" align="left"><div></div></div>';else
result+='<div style="position:absolute;visibility:hidden;" id="sh_'+this._id+'" align="left"></div>';}result+='<div class="TPopUp'+this._parent._index+'" id="'+this._id+'" style="filter:alpha(opacity='+this._parent._pop._alpha+');">';for(var i=0;i<=this._itemIndex;i++)
{if(this._items[i]._label !='-')
{if(this._items[i]._itemIndex >-1)
{result+='<div class="TPopUpItem'+this._items[i]._parent._index+'" id="di_'+this._items[i]._id+'">';result+='<table class="TPopUpItem'+this._items[i]._parent._index+'" cellspacing="0" cellpadding="0"';result+=' onmouseover="onPopItemMOver(event,this,\''+this._items[i]._id+'\','+level+','+this._items[i]._parent._name+',\''+this._items[i]._status+'\')"';result+=' onmouseout="onPopItemMOut(event,this,\''+this._items[i]._id+'\','+this._items[i]._parent._name+')"';result+=' id="pr_'+this._items[i]._id+'"><tr>'+this._items[i]._icon+this._items[i]._label+'</td>';if(this._items[i]._parent._pop._expandIcon._create)
result+='<td class="TExpand'+this._items[i]._parent._index+'">'+this._items[i]._parent._pop._expandIcon._symbol+'</td>';result+='</tr></table>';result+='</div>';}else
{if(this._items[i]._type=='h')
{result+='<div class="TPopUpHeader'+this._items[i]._parent._index+'">';result+='<table class="TPopUpHeader'+this._items[i]._parent._index+'" cellspacing="0" cellpadding="2"';result+=' onmouseover="onStaticPopItemMOver(event,'+this._items[i]._parent._name+',\''+this._items[i]._status+'\')"';result+=' onmouseout="onStaticPopItemMOut(event,'+this._items[i]._parent._name+',\''+this._items[i]._status+'\')"';result+='><tr><td>'+this._items[i]._label;result+='</td></tr></table></div>';}else
{result+='<div class="TPopUpItem'+this._items[i]._parent._index+'">';result+='<table class="TPopUpItem'+this._items[i]._parent._index+'" cellspacing="0" cellpadding="0"';result+=' onmouseover="onPopItemMOver(event,this,\'\','+level+','+this._items[i]._parent._name+',\''+this._items[i]._status+'\')"';result+=' onmouseout="onPopItemMOut(event,this,\'\','+this._items[i]._parent._name+')"';result+=' onclick="hideAll('+this._items[i]._parent._name+');'+this._items[i]._eClick+'"';result+='><tr>'+this._items[i]._icon+this._items[i]._label+'</td>';result+='</tr></table>';result+='</div>';}}}else
{if(_browser._name=='IE')
result+='<div style="margin-right:-2px;padding:4px 0px 4px 0px;background-color:'+this._parent._pop._itemBack._color+';" ';else
result+='<div style="margin-right:0px;padding:4px 0px 4px 0px;background-color:'+this._parent._pop._itemBack._color+';" '; result+=' onmouseover="onStaticPopItemMOver(event,'+this._parent._name+',\'\')"';result+=' onmouseout="onStaticPopItemMOut(event,'+this._parent._name+',\'\')"'; result+=' ><div class="TSeparator'+this._parent._index+'" ';result+='></div></div>';}}result+='</div>';}return result;}function AddItem(popMenu)
{this._itemIndex++;this._items[this._itemIndex]=popMenu;}function InitPopMenu(zIndex)
{if(this._itemIndex >-1)
{for(var i=0;i<=this._itemIndex;i++)
{if(this._items[i]._itemIndex >-1)
{if(document.all)
{var pr_el=document.all('pr_'+this._items[i]._id);var el=document.all(this._items[i]._id);}else if(document.getElementById)
{var pr_el=document.getElementById('pr_'+this._items[i]._id);var el=document.getElementById(this._items[i]._id);}zIndex++;el.style.zIndex=zIndex+1;if(this._items[i]._parent._pop._shadow._create)
{if(document.all)
var sh_el=document.all('sh_'+this._items[i]._id);else if(document.getElementById)
var sh_el=document.getElementById('sh_'+this._items[i]._id);if(_browser._name=='IE')
{sh_el.style.width=el.offsetWidth+10+'px';sh_el.style.height=el.offsetHeight+10+'px';sh_el.childNodes[0].style.width=el.offsetWidth+'px';sh_el.childNodes[0].style.height=el.offsetHeight+'px';sh_el.childNodes[0].style.backgroundColor=this._items[i]._parent._pop._shadow._color;}else
{sh_el.style.width=el.offsetWidth ;sh_el.style.height=el.offsetHeight;sh_el.style.backgroundColor=this._items[i]._parent._pop._shadow._color;}sh_el.style.zIndex=zIndex;}this._items[i].Init(zIndex+1);}}}}function BuildPopUpMenu(popMenu,level)
{var result="";level++;for(var i=0;i<=popMenu._itemIndex;i++)
{result+=popMenu._items[i].Draw(level);result+=BuildPopUpMenu(popMenu._items[i],level);}return result;}function BuildStyle()
{var result='';var tyH;var tyW;result+='<style type="text/css">';result+='table.TMenu'+this._index+'{';result+='cursor:default';result+=';visibility:hidden';result+=';position:'+this._position;tyW=typeof(this._width);if(tyW=='string')
{this._width=this._width.toLowerCase();if(this._width !='auto' || this._width !='')
result+=';width:'+this._width+'px';}else
result+=';width:'+this._width+'px'; result+=';border-top:'+this._border._top;result+=';border-right:'+this._border._right;result+=';border-bottom:'+this._border._bottom;result+=';border-left:'+this._border._left;result+=';background-color:'+this._background._color;result+=';background-image:'+this._background._image;result+=';background-position:'+this._background._position;result+=';background-repeat:'+this._background._repeat;result+=';}';result+='table.TMenuItemChild'+this._index+'{';result+='width:100%';result+=';font-family:'+this._font._family;result+=';font-size:'+this._font._size;result+=';font-weight:'+this._itemText._weight;result+=';text-align:'+this._itemText._align;result+=';color:'+this._itemText._color;result+=';text-decoration:'+this._itemText._decoration;result+=';white-space:'+this._itemText._whiteSpace;result+=';}'
result+='td.TMenuItem'+this._index+'{';result+='padding: 0px 0px 0px 0px';tyH=typeof(this._itemHeight);tyW=typeof(this._itemWidth);if(tyH=='string')
{if(this._itemHeight.toLowerCase() !='auto' || this._itemHeight !='')
result+=';height:'+this._itemHeight+'px';}else
result+=';height:'+this._itemHeight+'px';if(tyW=='string')
{if(this._itemWidth.toLowerCase() !='auto' || this._itemWidth !='')
result+=';width:'+this._itemWidth+'px';}else
result+=';width:'+this._itemWidth+'px'; result+=';border-top:'+this._itemBorder._top;result+=';border-right:'+this._itemBorder._right;result+=';border-bottom:'+this._itemBorder._bottom;result+=';border-left:'+this._itemBorder._left;result+=';background-color:'+this._itemBack._color;result+=';background-repeat:'+this._itemBack._repeat;result+=';background-image:'+this._itemBack._image;result+=';background-position:'+this._itemBack._position;result+=';}';result+='td.TMMExpand'+this._index+'{';result+='width:10px';result+=';text-align:right';result+=';padding-right:2px';result+=';font-family:'+this._expandIcon._font._family;result+=';font-size:'+this._expandIcon._font._size;result+=';font-weight:normal';result+=';text-decoration:none !important';result+=';white-space:nowrap !important';result+=';}';result+='td.TMMHeader'+this._index+'{';result+='height:1px';result+=';background-color:'+this._header._background._color;result+=';background-image:'+this._header._background._image;result+=';background-position:'+this._header._background._position;result+=';background-repeat:'+this._header._background._repeat;result+=';text-align:'+this._header._itemText._align;result+=';text-decoration:'+this._header._itemText._decoration;result+=';white-space:'+this._header._itemText._whiteSpace;result+=';font-weight:'+this._header._itemText._weight;result+=';font-family:'+this._header._font._family;result+=';font-size:'+this._header._font._size;result+=';color:'+this._header._itemText._color;result+=';}';result+='div.TPopUp'+this._index+'{';result+='position:absolute';result+=';padding:'+this._pop._padding;result+=';visibility:hidden';result+=';width:'+this._pop._itemWidth+'px';result+=';border-top:'+this._pop._border._top;result+=';border-right:'+this._pop._border._right;result+=';border-bottom:'+this._pop._border._bottom;result+=';border-left:'+this._pop._border._left;result+=';background-color:'+this._pop._background._color;result+=';background-image:'+this._pop._background._image;result+=';background-position:'+this._pop._background._position;result+=';background-repeat:'+this._pop._background._repeat;result+=';display:block';result+=';}';result+='table.TPopUpHeader'+this._index+'{';result+='width:100%';result+=';cursor:default';result+=';height:'+this._pop._itemHeight+'px';result+=';text-align:'+this._pop._header._itemText._align;result+=';text-decoration:'+this._pop._header._itemText._decoration;result+=';white-space:'+this._pop._header._itemText._whiteSpace;result+=';font-weight:'+this._pop._header._itemText._weight;result+=';font-family:'+this._pop._header._font._family;result+=';font-size:'+this._pop._header._font._size;result+=';color:'+this._pop._header._itemText._color;result+=';}';result+='div.TPopUpHeader'+this._index+'{';result+=';background-color:'+this._pop._header._background._color;result+=';background-image:'+this._pop._header._background._image;result+=';background-position:'+this._pop._header._background._position;result+=';background-repeat:'+this._pop._header._background._repeat;if(_browser._name=='IE')
result+=';margin-right:-2px';result+=';}';result+='table.TPopUpItem'+this._index+'{';result+='width:100%';result+=';height:'+this._pop._itemHeight+'px';result+=';cursor:default';result+=';font-family:'+this._pop._font._family;result+=';font-size:'+this._pop._font._size;result+=';color:'+this._pop._itemText._color;result+=';text-align:'+this._pop._itemText._align;result+=';text-decoration:'+this._pop._itemText._decoration;result+=';white-space:'+this._pop._itemText._whiteSpace;result+=';font-weight:'+this._pop._itemText._weight;result+=';}';result+='div.TPopUpItem'+this._index+'{';result+='cursor:default';result+=';background-color:'+this._pop._itemBack._color;result+=';background-image:'+this._pop._itemBack._image;result+=';background-position:'+this._pop._itemBack._position;result+=';background-repeat:'+this._pop._itemBack._repeat;result+=';border-top:'+this._pop._itemBorder._top;result+=';border-right:'+this._pop._itemBorder._right;result+=';border-bottom:'+this._pop._itemBorder._bottom;result+=';border-left:'+this._pop._itemBorder._left;result+=';padding:'+this._pop._itemPadding;result+=';}';result+='div.TPopUpItem'+this._index+'_1{';result+='cursor:default';result+=';background-color :'+this._pop._itemBackHL._color;result+=';background-image:'+this._pop._itemBackHL._image;result+=';background-position:'+this._pop._itemBackHL._position;result+=';background-repeat:'+this._pop._itemBackHL._repeat;result+=';border-top:'+this._pop._itemBorderHL._top;result+=';border-right:'+this._pop._itemBorderHL._right;result+=';border-bottom:'+this._pop._itemBorderHL._bottom;result+=';border-left:'+this._pop._itemBorderHL._left;result+=';padding:'+this._pop._itemPaddingHL;result+=';}';this._pop._separator._width=((this._pop._itemWidth-this._pop._separator._width) < 0)?this._pop._itemWidth:this._pop._separator._width;var _div=Math.floor((this._pop._itemWidth-this._pop._separator._width)/2);switch(this._pop._separator._align)
{case 'left':
this._pop._separator._margin='0px '+(_div*2)+'px 0px 0px';break;case 'right':
this._pop._separator._margin='0px 0px 0px '+(_div*2)+'px';break;default:
this._pop._separator._margin='0px '+_div+'px 0px '+_div+'px';}result+='div.TSeparator'+this._index+'{';result+='margin:'+this._pop._separator._margin;result+=';border-top:'+this._pop._separator._border._top;result+=';border-bottom:'+this._pop._separator._border._bottom;result+=';}';result+='td.TExpand'+this._index+'{';result+='width:10px';result+=';text-align:right';result+=';padding-right:2px';result+=';font-family:'+this._pop._expandIcon._font._family;result+=';font-size:'+this._pop._expandIcon._font._size;result+=';font-weight:normal';result+=';text-decoration:none !important';result+=';white-space:nowrap !important';result+=';}';result+='td.TIcon'+this._index+'{';result+='width:24px';result+=';text-align:left';result+=';text-decoration:normal';result+=';white-space:nowrap';result+=';font-weight:normal';result+=';}';result+='img.TIcon'+this._index+'{';result+='vertical-align:middle';result+=';}';result+='</style>';return result;}function SetCorrection(dLeft,dTop)
{dLeft=parseInt(dLeft);if(!dLeft)
this._correction._left=0;else
this._correction._left=dLeft;dTop=parseInt(dTop);if(!dTop)
this._correction._top=0;else
this._correction._top=dTop;}function SetPosition(dPosition,dLeft,dTop)
{switch(dPosition)
{case 'absolute':
this._position=dPosition;break;default:
this._position='relative';}dLeft=parseInt(dLeft);if(!dLeft)
this._left=0;else
this._left=dLeft;dTop=parseInt(dTop);if(!dTop)
this._top=0;else
this._top=dTop;}function SetCellSpacing(dSpace)
{dSpace=parseInt(dSpace);if(!dSpace)
this._cellSpacing=0;else
this._cellSpacing=dSpace;}function SetWidth(dWidth)
{dWidth=parseInt(dWidth);if(!dWidth)
this._width='auto';else
this._width=dWidth;}function SetItemDimension(dWidth,dHeight)
{dWidth=parseInt(dWidth);dHeight=parseInt(dHeight);if(!dWidth)
this._itemWidth='auto';else
this._itemWidth=dWidth;if(!dHeight)
this._itemHeight='auto';else
this._itemHeight=dHeight;}function SetBackground(dColor,dImage,dRepeat,dPos)
{(dColor=='')?this._background._color='transparent':this._background._color=dColor;(dImage=='')?this._background._image='none':this._background._image="url('"+dImage+"')";(dRepeat=='')?this._background._repeat='no-repeat':this._background._repeat=dRepeat;(dPos=='')?this._background._position='top left':this._background._position=dPos;}function SetItemBackground(dColor,dImage,dRepeat,dPos)
{(dColor=='')?this._itemBack._color='transparent':this._itemBack._color=dColor;(dImage=='')?this._itemBack._image='none':this._itemBack._image="url('"+dImage+"')";(dRepeat=='')?this._itemBack._repeat='no-repeat':this._itemBack._repeat=dRepeat;(dPos=='')?this._itemBack._position='top left':this._itemBack._position=dPos;}function SetItemBackgroundHL(dColor,dImage,dRepeat,dPos)
{(dColor=='')?this._itemBackHL._color='transparent':this._itemBackHL._color=dColor;(dImage=='')?this._itemBackHL._image='none':this._itemBackHL._image="url('"+dImage+"')";(dRepeat=='')?this._itemBackHL._repeat='no-repeat':this._itemBackHL._repeat=dRepeat;(dPos=='')?this._itemBackHL._position='top left':this._itemBackHL._position=dPos;}function SetItemBackgroundClick(dColor,dImage,dRepeat,dPos)
{(dColor=='')?this._itemBackClick._color='transparent':this._itemBackClick._color=dColor;(dImage=='')?this._itemBackClick._image='none':this._itemBackClick._image="url('"+dImage+"')";(dRepeat=='')?this._itemBackClick._repeat='no-repeat':this._itemBackClick._repeat=dRepeat;(dPos=='')?this._itemBackClick._position='top left':this._itemBackClick._position=dPos;}function SetShadow(dCreate,dColor,dDistance)
{if(dCreate)
{this._shadow._create=dCreate;this._shadow._color=dColor;this._shadow._distance=dDistance;}}function SetFont(dFamily,dSize)
{this._font._family=dFamily;this._font._size=dSize;}function SetBorder(dSize,dColor,dType)
{var dBorder=dSize+'px '+dColor+' '+dType;this._border._top=dBorder;this._border._right=dBorder;this._border._bottom=dBorder;this._border._left=dBorder;}function SetItemBorder(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorder._top=dBorder;this._itemBorder._right=dBorder;this._itemBorder._bottom=dBorder;this._itemBorder._left=dBorder;}function SetItemBorderHL(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderHL._top=dBorder;this._itemBorderHL._right=dBorder;this._itemBorderHL._bottom=dBorder;this._itemBorderHL._left=dBorder;}function SetItemBorderClick(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderClick._top=dBorder;this._itemBorderClick._right=dBorder;this._itemBorderClick._bottom=dBorder;this._itemBorderClick._left=dBorder;}function SetBorderTop(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._border._top=dBorder;}function SetItemBorderTop(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorder._top=dBorder;}function SetItemBorderTopHL(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderHL._top=dBorder;}function SetItemBorderTopClick(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderClick._top=dBorder;}function SetBorderRight(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._border._right=dBorder;}function SetItemBorderRight(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorder._right=dBorder;}function SetItemBorderRightHL(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderHL._right=dBorder;}function SetItemBorderRightClick(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderClick._right=dBorder;}function SetBorderBottom(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._border._bottom=dBorder;}function SetItemBorderBottom(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorder._bottom=dBorder;}function SetItemBorderBottomHL(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderHL._bottom=dBorder;}function SetItemBorderBottomClick(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderClick._bottom=dBorder;}function SetBorderLeft(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._border._left=dBorder;}function SetItemBorderLeft(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorder._left=dBorder;}function SetItemBorderLeftHL(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderHL._left=dBorder;}function SetItemBorderLeftClick(dSize,dColor,dType)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dBorder=dSize+'px '+dColor+' '+dType;this._itemBorderClick._left=dBorder;}function SetItemText(dColor,dAlign,dWeight,dDecoration,dWSpace)
{this._itemText._color=dColor;(dAlign=='')?this._itemText._align='left':this._itemText._align=dAlign;(dWeight=='')?this._itemText._weight='normal':this._itemText._weight=dWeight;(dDecoration=='')?this._itemText._decoration='none':this._itemText._decoration=dDecoration;(dWSpace=='')?this._itemText._whiteSpace='normal':this._itemText._whiteSpace=dWSpace;}function SetItemTextHL(dColor,dAlign,dWeight,dDecoration,dWSpace)
{this._itemTextHL._color=dColor;(dAlign=='')?this._itemTextHL._align='left':this._itemTextHL._align=dAlign;(dWeight=='')?this._itemTextHL._weight='normal':this._itemTextHL._weight=dWeight;(dDecoration=='')?this._itemTextHL._decoration='none':this._itemTextHL._decoration=dDecoration;(dWSpace=='')?this._itemTextHL._whiteSpace='normal':this._itemTextHL._whiteSpace=dWSpace;}function SetItemTextClick(dColor,dAlign,dWeight,dDecoration,dWSpace)
{this._itemTextClick._color=dColor;(dAlign=='')?this._itemTextClick._align='left':this._itemTextClick._align=dAlign;(dWeight=='')?this._itemTextClick._weight='normal':this._itemTextClick._weight=dWeight;(dDecoration=='')?this._itemTextClick._decoration='none':this._itemTextClick._decoration=dDecoration;(dWSpace=='')?this._itemTextClick._whiteSpace='normal':this._itemTextClick._whiteSpace=dWSpace;}function SetPaddings(dSize)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dPad=dSize+'px '+dSize+'px '+dSize+'px '+dSize+'px';this._padding=dPad;}function SetItemPaddingsHL(dSize)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dPad=dSize+'px '+dSize+'px '+dSize+'px '+dSize+'px';this._itemPaddingHL=dPad;}function SetItemPaddings(dSize)
{dSize=parseInt(dSize);if(!dSize)
dSize=0;var dPad=dSize+'px '+dSize+'px '+dSize+'px '+dSize+'px';this._itemPadding=dPad;}function SetPadding(dTop,dRight,dBottom,dLeft)
{dTop=parseInt(dTop);dRight=parseInt(dRight);dBottom=parseInt(dBottom);dLeft=parseInt(dLeft);if(!dTop) dTop=0;if(!dRight) dRight=0;if(!dBottom) dBottom=0;if(!dLeft) dLeft=0;var dPad=dTop+'px '+dRight+'px '+dBottom+'px '+dLeft+'px';this._padding=dPad;}function SetItemPaddingHL(dTop,dRight,dBottom,dLeft)
{dTop=parseInt(dTop);dRight=parseInt(dRight);dBottom=parseInt(dBottom);dLeft=parseInt(dLeft);if(!dTop) dTop=0;if(!dRight) dRight=0;if(!dBottom) dBottom=0;if(!dLeft) dLeft=0;var dPad=dTop+'px '+dRight+'px '+dBottom+'px '+dLeft+'px';this._itemPaddingHL=dPad;}function SetItemPadding(dTop,dRight,dBottom,dLeft)
{dTop=parseInt(dTop);dRight=parseInt(dRight);dBottom=parseInt(dBottom);dLeft=parseInt(dLeft);if(!dTop) dTop=0;if(!dRight) dRight=0;if(!dBottom) dBottom=0;if(!dLeft) dLeft=0;var dPad=dTop+'px '+dRight+'px '+dBottom+'px '+dLeft+'px';this._itemPadding=dPad;}function SetSeparator(dWidth,dAlign,dColor1,dColor2)
{dWidth=parseInt(dWidth);if(!dWidth)
dWidth='auto';this._separator._width=dWidth;this._separator._align=dAlign;this._separator._border._top='1px '+dColor1+' solid';(dColor2=='')?this._separator._border._bottom='0px none solid':this._separator._border._bottom='1px '+dColor2+' solid';}function SetExpandIcon(dCreate,dSymbol,dSize)
{if(dCreate)
{this._expandIcon._create=true;switch(dSymbol)
{case '' :
break;default:
this._expandIcon._symbol=dSymbol;}dSize=parseInt(dSize);if(!dSize)
dSize=6;this._expandIcon._font._size=dSize+'pt';}else
this._expandIcon._create=false;}function SetDelay(dTimeOut)
{dTimeOut=parseInt(dTimeOut);if(!dTimeOut)
dTimeOut=0;this._timeOut=dTimeOut;}function findPosX(obj)
{if(_browser._name=="Konqueror")
var curleft=0;else
var curleft=0;if(obj.offsetParent)
{while (obj.offsetParent)
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x)
curleft+=obj.x;return curleft;}function findPosY(obj)
{if(_browser._name=="Konqueror")
var curtop=0;else
var curtop=0;if(obj.offsetParent)
{while (obj.offsetParent)
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y)
curtop+=obj.y;return curtop;}function findTriggerPopID(elmID,mmObj)
{var result=-1;for(var i=0;i<=_arRegisterTriggerPopIndex[mmObj._index];i++)
{if(_arRegisterTriggerPopID[mmObj._index][i]==elmID)
{result=i;break;}}return result;}function saveTriggerPopID(elmID,mmObj)
{_arRegisterTriggerPopIndex[mmObj._index]++;var j=_arRegisterTriggerPopIndex[mmObj._index];_arRegisterTriggerPopID[mmObj._index][j]=elmID;if(document.all)
var el=document.all(elmID);else if(document.getElementById)
var el=document.getElementById(elmID);if(el.className.indexOf("TMenuItem") !=-1)
{el.style.backgroundColor=mmObj._itemBackClick._color;el.style.backgroundImage=mmObj._itemBackClick._image;el.style.backgroundRepeat=mmObj._itemBackClick._repeat;el.style.backgroundPosition=mmObj._itemBackClick._position;el.childNodes[0].style.color=mmObj._itemTextClick._color;el.childNodes[0].style.textAlign=mmObj._itemTextClick._align;el.childNodes[0].style.textDecoration=mmObj._itemTextClick._decoration;el.childNodes[0].style.whiteSpace=mmObj._itemTextClick._whiteSpace;el.childNodes[0].style.fontWeight=mmObj._itemTextClick._weight; el.style.borderTop=mmObj._itemBorderClick._top;el.style.borderRight=mmObj._itemBorderClick._right;el.style.borderBottom=mmObj._itemBorderClick._bottom;el.style.borderLeft=mmObj._itemBorderClick._left; }else
{el.className="TPopUpItem"+mmObj._index+"_1";}}function removeTriggerPopID(elmID,mmObj)
{var index=findTriggerPopID(elmID,mmObj)
if(index >-1)
{for(var i=_arRegisterTriggerPopIndex[mmObj._index];i>=index;i--)
{var ID=_arRegisterTriggerPopID[mmObj._index][i];if(document.all)
var el=document.all(ID);else if(document.getElementById)
var el=document.getElementById(ID);if(el.className.indexOf("TMenuItem") !=-1)
{el.style.backgroundColor=mmObj._itemBack._color;el.style.backgroundImage=mmObj._itemBack._image;el.style.backgroundRepeat=mmObj._itemBack._repeat;el.style.backgroundPosition=mmObj._itemBack._position; el.childNodes[0].style.color=mmObj._itemText._color;el.childNodes[0].style.textAlign=mmObj._itemText._align;el.childNodes[0].style.textDecoration=mmObj._itemText._decoration;el.childNodes[0].style.whiteSpace=mmObj._itemText._whiteSpace;el.childNodes[0].style.fontWeight=mmObj._itemText._weight;el.style.borderTop=mmObj._itemBorder._top;el.style.borderRight=mmObj._itemBorder._right;el.style.borderBottom=mmObj._itemBorder._bottom;el.style.borderLeft=mmObj._itemBorder._left;}else
{var IDLen=ID.length;var tableID='pr_'+ID.substr(3,IDLen);if(document.all)
var elTable=document.all(tableID);else if(document.getElementById)
var elTable=document.getElementById(tableID);el.className="TPopUpItem"+mmObj._index;elTable.style.color=mmObj._pop._itemText._color;elTable.style.textAlign=mmObj._pop._itemText._align;elTable.style.textDecoration=mmObj._pop._itemText._decoration;elTable.style.whiteSpace=mmObj._pop._itemText._whiteSpace;elTable.style.fontWeight=mmObj._pop._itemText._weight;}_arRegisterTriggerPopID[mmObj._index][i]=null;}_arRegisterTriggerPopIndex[mmObj._index]=index-1;}}function removeTriggerPopIDByIndex(index,mmObj)
{if(_arRegisterTriggerPopIndex[mmObj._index] >-1 && index >-1)
{for(var i=_arRegisterTriggerPopIndex[mmObj._index];i>=index;i--)
{var ID=_arRegisterTriggerPopID[mmObj._index][i];if(document.all)
var el=document.all(ID);else if(document.getElementById)
var el=document.getElementById(ID);if(el.className.indexOf("TMenuItem") !=-1)
{el.style.backgroundColor=mmObj._itemBack._color;el.style.backgroundImage=mmObj._itemBack._image;el.style.backgroundRepeat=mmObj._itemBack._repeat;el.style.backgroundPosition=mmObj._itemBack._position; el.childNodes[0].style.color=mmObj._itemText._color;el.childNodes[0].style.textAlign=mmObj._itemText._align;el.childNodes[0].style.textDecoration=mmObj._itemText._decoration;el.childNodes[0].style.whiteSpace=mmObj._itemText._whiteSpace;el.childNodes[0].style.fontWeight=mmObj._itemText._weight; el.style.borderTop=mmObj._itemBorder._top;el.style.borderRight=mmObj._itemBorder._right;el.style.borderBottom=mmObj._itemBorder._bottom;el.style.borderLeft=mmObj._itemBorder._left;}else
{var IDLen=ID.length;var tableID='pr_'+ID.substr(3,IDLen);if(document.all)
var elTable=document.all(tableID);else if(document.getElementById)
var elTable=document.getElementById(tableID); el.className="TPopUpItem"+mmObj._index;elTable.style.color=mmObj._pop._itemText._color;elTable.style.textAlign=mmObj._pop._itemText._align;elTable.style.textDecoration=mmObj._pop._itemText._decoration;elTable.style.whiteSpace=mmObj._pop._itemText._whiteSpace;elTable.style.fontWeight=mmObj._pop._itemText._weight; }_arRegisterTriggerPopID[mmObj._index][i]=null;}_arRegisterTriggerPopIndex[mmObj._index]=index-1;}}function removeAllTriggerPopID(mmObj)
{if(_arRegisterTriggerPopIndex[mmObj._index] >-1)
{for(var i=_arRegisterTriggerPopIndex[mmObj._index];i>=0;i--)
{var ID=_arRegisterTriggerPopID[mmObj._index][i];if(document.all)
var el=document.getElementById(ID);else if(document.getElementById)
var el=document.getElementById(ID); if(el.className.indexOf("TMenuItem") !=-1)
{if(_arMMClick[mmObj._index])
{el.style.backgroundColor=mmObj._itemBack._color;el.style.backgroundImage=mmObj._itemBack._image;el.style.backgroundRepeat=mmObj._itemBack._repeat;el.style.backgroundPosition=mmObj._itemBack._position; el.childNodes[0].style.color=mmObj._itemText._color;el.childNodes[0].style.textAlign=mmObj._itemText._align;el.childNodes[0].style.textDecoration=mmObj._itemText._decoration;el.childNodes[0].style.whiteSpace=mmObj._itemText._whiteSpace;el.childNodes[0].style.fontWeight=mmObj._itemText._weight; el.style.borderTop=mmObj._itemBorder._top;el.style.borderRight=mmObj._itemBorder._right;el.style.borderBottom=mmObj._itemBorder._bottom;el.style.borderLeft=mmObj._itemBorder._left;}}else
{var IDLen=ID.length;var tableID='pr_'+ID.substr(3,IDLen);if(document.all)
var elTable=document.all(tableID);else if(document.getElementById)
var elTable=document.getElementById(tableID);el.className="TPopUpItem"+mmObj._index;elTable.style.color=mmObj._pop._itemText._color;elTable.style.textAlign=mmObj._pop._itemText._align;elTable.style.textDecoration=mmObj._pop._itemText._decoration;elTable.style.whiteSpace=mmObj._pop._itemText._whiteSpace;elTable.style.fontWeight=mmObj._pop._itemText._weight;}_arRegisterTriggerPopID[mmObj._index][i]=null;}_arRegisterTriggerPopIndex[mmObj._index]=-1;}}function findRegisteredPopUpMenuID(elmID,mmObj)
{var result=-1;for(var i=0;i<=_arRegisterPopIndex[mmObj._index];i++)
{if(_arRegisterPopID[mmObj._index][i]==elmID)
{result=i;break;}}return result;}function showPopUpMenu(parentElmID,elmID,mmObj,menuType)
{_arRegisterPopIndex[mmObj._index]++;var j=_arRegisterPopIndex[mmObj._index];_arRegisterPopID[mmObj._index][j]=elmID;var leftPos=0;var parentLeftPos=0;var topPos=0;var parentTopPos=0;if(document.all)
{var parentElm=document.all(parentElmID);var elm=document.all(elmID);}else if(document.getElementById)
{var parentElm=document.getElementById(parentElmID);var elm=document.getElementById(elmID);}parentLeftPos=findPosX(parentElm);parentTopPos=findPosY(parentElm);var screenPosY=0;var screenPosX=0;if(window.innerHeight)
{screenPosY=window.pageYOffset
screenPosX=window.pageXOffset
}else if(document.documentElement && document.documentElement.scrollTop)
{screenPosY=document.documentElement.scrollTop
screenPosX=document.documentElement.scrollLeft
}else if(document.body)
{screenPosY=document.body.scrollTop
screenPosX=document.body.scrollLeft
}if(menuType=='mm')
{if(mmObj._direction=='horizontal')
{if((parentLeftPos-elm.offsetWidth-mmObj._correction._left) < 0)
{if(parentLeftPos < screenPosX)
{leftPos=parentLeftPos+parentElm.offsetWidth+mmObj._correction._left-1;}else
leftPos=parentLeftPos+mmObj._correction._left-1;}else
{if(parentLeftPos-screenPosX+elm.offsetWidth+mmObj._correction._left > document.body.clientWidth)
{if(parentLeftPos+parentElm.offsetWidth-screenPosX > document.body.clientWidth)
leftPos=parentLeftPos-elm.offsetWidth-mmObj._correction._left;else
leftPos=parentLeftPos+parentElm.offsetWidth-elm.offsetWidth-mmObj._correction._left-1;}else
{if(parentLeftPos < screenPosX)
{leftPos=parentLeftPos+parentElm.offsetWidth+mmObj._correction._left-1;}else
leftPos=parentLeftPos+mmObj._correction._left-1;}}if((parentTopPos-screenPosY-elm.offsetHeight-mmObj._correction._top) <0)
topPos=parentTopPos+parentElm.offsetHeight+1+mmObj._correction._top;else
{if(parentTopPos+parentElm.offsetHeight+elm.offsetHeight-screenPosY+mmObj._correction._top < document.body.clientHeight)
topPos=parentTopPos+parentElm.offsetHeight+1+mmObj._correction._top;else
topPos=parentTopPos-elm.offsetHeight-mmObj._correction._top;}}else
{if(parentLeftPos-screenPosX-elm.offsetWidth-mmObj._correction._left<0)
leftPos=parentLeftPos+parentElm.offsetWidth+mmObj._correction._left+1;else
{if((parentLeftPos-screenPosX+parentElm.offsetWidth+elm.offsetWidth+mmObj._correction._left) < document.body.clientWidth)
leftPos=parentLeftPos+parentElm.offsetWidth+mmObj._correction._left+1;else
leftPos=parentLeftPos-elm.offsetWidth-mmObj._correction._left-1;}if(parentTopPos-screenPosY-elm.offsetHeight-mmObj._correction._top < 0)
{if(parentTopPos < screenPosY)
topPos=parentTopPos+parentElm.offsetHeight+mmObj._correction._top-1;else
topPos=parentTopPos+mmObj._correction._top-1; }else
{if(parentTopPos-screenPosY+elm.offsetHeight+mmObj._correction._top < document.body.clientHeight)
{topPos=parentTopPos+mmObj._correction._top-1;}else
{if(parentTopPos-screenPosY+parentElm.offsetHeight < document.body.clientHeight)
topPos=parentTopPos+parentElm.offsetHeight-elm.offsetHeight-mmObj._correction._top+1;else
topPos=parentTopPos-elm.offsetHeight-mmObj._correction._top+1;}}}elm.style.left=leftPos+'px';elm.style.top=topPos+'px';if(mmObj._pop._shadow._create)
{if(document.all)
var shadowElm=document.all('sh_'+elmID);else if(document.getElementById)
var shadowElm=document.getElementById('sh_'+elmID);if(_browser._name=='IE')
{shadowElm.style.left=leftPos+'px';shadowElm.style.top=topPos+'px';}else
{shadowElm.style.left=leftPos+mmObj._pop._shadow._distance+'px';shadowElm.style.top=topPos+mmObj._pop._shadow._distance+'px';}shadowElm.style.visibility='visible';}}else
{topPos=parentTopPos;leftPos=parentLeftPos+parentElm.offsetWidth;if(topPos-elm.offsetHeight < 0)
topPos=topPos+mmObj._pop._correction._top;else
{if(topPos-screenPosY+elm.offsetHeight < document.body.clientHeight)
topPos=topPos+mmObj._pop._correction._top-2;else
topPos=topPos-elm.offsetHeight+parentElm.offsetHeight+mmObj._pop._correction._top+2;}if((leftPos-((elm.offsetWidth+mmObj._pop._correction._left+1) * 2)) < 0)
leftPos=leftPos+mmObj._pop._correction._left-3;else
{if((leftPos-screenPosX+elm.offsetWidth+mmObj._pop._correction._left) > document.body.clientWidth)
leftPos=leftPos-parentElm.offsetWidth-elm.offsetWidth-mmObj._pop._correction._left+5;else
leftPos=leftPos+mmObj._pop._correction._left-3;}elm.style.top=topPos+'px';elm.style.left=leftPos+'px';if(mmObj._pop._shadow._create)
{if(document.all)
var shadowElm=document.all('sh_'+elmID);else if(document.getElementById)
var shadowElm=document.getElementById('sh_'+elmID);if(_browser._name=='IE')
{shadowElm.style.left=leftPos+'px';shadowElm.style.top=topPos+'px';}else
{shadowElm.style.left=leftPos+mmObj._pop._shadow._distance+'px';shadowElm.style.top=topPos+mmObj._pop._shadow._distance+'px';}shadowElm.style.visibility='visible';}}elm.style.visibility="visible";}function hidePopUpMenu(elmID,mmObj)
{var index=findRegisteredPopUpMenuID(elmID,mmObj);if(index >-1)
{for(var i=_arRegisterPopIndex[mmObj._index];i>=index;i--)
{var ID=_arRegisterPopID[mmObj._index][i];if(document.all)
document.all(ID).style.visibility="hidden";else if(document.getElementById)
document.getElementById(ID).style.visibility="hidden";if(mmObj._pop._shadow._create)
{if(document.all)
document.all('sh_'+ID).style.visibility="hidden";else if(document.getElementById)
document.getElementById('sh_'+ID).style.visibility="hidden";}}_arRegisterPopIndex[mmObj._index]=index-1
}}function hidePopUpMenuByIndex(index,mmObj)
{if(_arRegisterPopIndex[mmObj._index] >=index)
{for(var i=_arRegisterPopIndex[mmObj._index];i>=index;i--)
{var ID=_arRegisterPopID[mmObj._index][i];if(document.all)
document.all(ID).style.visibility="hidden";else if(document.getElementById)
document.getElementById(ID).style.visibility="hidden";if(mmObj._pop._shadow._create)
{if(document.all)
document.all('sh_'+ID).style.visibility="hidden";else if(document.getElementById)
document.getElementById('sh_'+ID).style.visibility="hidden";}}_arRegisterPopIndex[mmObj._index]=index-1;}}function hideAllPopUpMenu(mmObj)
{var index=_arRegisterPopIndex[mmObj._index];if(index >-1)
{for(i=index;i>=0;i--)
{var ID=_arRegisterPopID[mmObj._index][i];if(document.all)
document.all(ID).style.visibility="hidden";else if(document.getElementById)
document.getElementById(ID).style.visibility="hidden";if(mmObj._pop._shadow._create)
document.getElementById('sh_'+ID).style.visibility="hidden";}}_arRegisterPopIndex[mmObj._index]=-1;}function triggerHideAll(mmObj)
{_arTriggerMenu[mmObj._index]=window.setTimeout('hideAll('+mmObj._name+')',mmObj._pop._timeOut);}function clearTriggerHideAll(mmObj)
{window.clearTimeout(_arTriggerMenu[mmObj._index]);}function hideAll(mmObj)
{hideAllPopUpMenu(mmObj);removeAllTriggerPopID(mmObj);if(mmObj._popOnClick)
_arMMClick[mmObj._index]=false;else
_arMMClick[mmObj._index]=true;window.status='';mmObj._hideObject.Show();}function onMainClick(event,elm,popID,mmObj)
{if(!_arMMClick[mmObj._index])
{_arMMClick[mmObj._index]=true;if(popID !='')
{showPopUpMenu(elm.id,popID,mmObj,'mm');saveTriggerPopID(elm.id,mmObj);}}else
{_arMMClick[mmObj._index]=false;hideAllPopUpMenu(mmObj);removeAllTriggerPopID(mmObj);elm.style.backgroundColor=mmObj._itemBackHL._color;elm.style.backgroundImage=mmObj._itemBackHL._image;elm.style.backgroundRepeat=mmObj._itemBackHL._repeat;elm.style.backgroundPosition=mmObj._itemBackHL._position; elm.childNodes[0].style.color=mmObj._itemTextHL._color;elm.childNodes[0].style.textAlign=mmObj._itemTextHL._align;elm.childNodes[0].style.textDecoration=mmObj._itemTextHL._decoration;elm.childNodes[0].style.whiteSpace=mmObj._itemTextHL._whiteSpace;elm.childNodes[0].style.fontWeight=mmObj._itemTextHL._weight; elm.style.borderTop=mmObj._itemBorderHL._top;elm.style.borderRight=mmObj._itemBorderHL._right;elm.style.borderBottom=mmObj._itemBorderHL._bottom;elm.style.borderLeft=mmObj._itemBorderHL._left;}mmObj._hideObject.Hide();onBubble(event);}function onMainMOver(event,elm,popID,level,mmObj,status)
{window.status=unescape(status);clearTriggerHideAll(mmObj);if(_arRegisterTriggerPopID[mmObj._index][0] !=elm.id)
{if(_arRegisterTriggerPopID[mmObj._index][0] !=null)
{removeAllTriggerPopID(mmObj);}if(_arMMClick[mmObj._index])
{hideAllPopUpMenu(mmObj);removeAllTriggerPopID(mmObj);if(popID !='')
{showPopUpMenu(elm.id,popID,mmObj,'mm');saveTriggerPopID(elm.id,mmObj);}if(mmObj._popOnClick)
{elm.style.backgroundColor=mmObj._itemBackClick._color;elm.style.backgroundImage=mmObj._itemBackClick._image;elm.style.backgroundRepeat=mmObj._itemBackClick._repeat;elm.style.backgroundPosition=mmObj._itemBackClick._position; elm.childNodes[0].style.color=mmObj._itemTextClick._color;elm.childNodes[0].style.textAlign=mmObj._itemTextClick._align;elm.childNodes[0].style.textDecoration=mmObj._itemTextClick._decoration;elm.childNodes[0].style.whiteSpace=mmObj._itemTextClick._whiteSpace;elm.childNodes[0].style.fontWeight=mmObj._itemTextClick._weight; elm.style.borderTop=mmObj._itemBorderClick._top;elm.style.borderRight=mmObj._itemBorderClick._right;elm.style.borderBottom=mmObj._itemBorderClick._bottom;elm.style.borderLeft=mmObj._itemBorderClick._left; }else
{elm.style.backgroundColor=mmObj._itemBackHL._color;elm.style.backgroundImage=mmObj._itemBackHL._image;elm.style.backgroundRepeat=mmObj._itemBackHL._repeat;elm.style.backgroundPosition=mmObj._itemBackHL._position; elm.childNodes[0].style.color=mmObj._itemTextHL._color;elm.childNodes[0].style.textAlign=mmObj._itemTextHL._align;elm.childNodes[0].style.textDecoration=mmObj._itemTextHL._decoration;elm.childNodes[0].style.whiteSpace=mmObj._itemTextHL._whiteSpace;elm.childNodes[0].style.fontWeight=mmObj._itemTextHL._weight; elm.style.borderTop=mmObj._itemBorderHL._top;elm.style.borderRight=mmObj._itemBorderHL._right;elm.style.borderBottom=mmObj._itemBorderHL._bottom;elm.style.borderLeft=mmObj._itemBorderHL._left; mmObj._hideObject.Hide();}}else
{elm.style.backgroundColor=mmObj._itemBackHL._color;elm.style.backgroundImage=mmObj._itemBackHL._image;elm.style.backgroundRepeat=mmObj._itemBackHL._repeat;elm.style.backgroundPosition=mmObj._itemBackHL._position; elm.childNodes[0].style.color=mmObj._itemTextHL._color;elm.childNodes[0].style.textAlign=mmObj._itemTextHL._align;elm.childNodes[0].style.textDecoration=mmObj._itemTextHL._decoration;elm.childNodes[0].style.whiteSpace=mmObj._itemTextHL._whiteSpace;elm.childNodes[0].style.fontWeight=mmObj._itemTextHL._weight;elm.style.borderTop=mmObj._itemBorderHL._top;elm.style.borderRight=mmObj._itemBorderHL._right;elm.style.borderBottom=mmObj._itemBorderHL._bottom;elm.style.borderLeft=mmObj._itemBorderHL._left; }}onBubble(event);}function onBubble(event)
{if(!event)
var event=window.event;event.cancelBubble=true;if(event.stopPropagation)
event.stopPropagation();}function onMainMOut(event,elm,popID,mmObj)
{if(!_arMMClick[mmObj._index] || popID=='')
{elm.style.backgroundColor=mmObj._itemBack._color;elm.style.backgroundImage=mmObj._itemBack._image;elm.style.backgroundRepeat=mmObj._itemBack._repeat;elm.style.backgroundPosition=mmObj._itemBack._position; elm.childNodes[0].style.color=mmObj._itemText._color;elm.childNodes[0].style.textAlign=mmObj._itemText._align;elm.childNodes[0].style.textDecoration=mmObj._itemText._decoration;elm.childNodes[0].style.whiteSpace=mmObj._itemText._whiteSpace;elm.childNodes[0].style.fontWeight=mmObj._itemText._weight;elm.style.borderTop=mmObj._itemBorder._top;elm.style.borderRight=mmObj._itemBorder._right;elm.style.borderBottom=mmObj._itemBorder._bottom;elm.style.borderLeft=mmObj._itemBorder._left;}triggerHideAll(mmObj)
onBubble(event); }function onStaticPopItemMOver(event,mmObj,status)
{window.status=status;clearTriggerHideAll(mmObj);onBubble(event);}function onStaticPopItemMOut(event,mmObj)
{triggerHideAll(mmObj);onBubble(event);}function onPopItemMOver(event,elm,popID,level,mmObj,status)
{var index=-1;window.status=status;clearTriggerHideAll(mmObj);elm.parentNode.className='TPopUpItem'+mmObj._index+'_1';elm.style.color=mmObj._pop._itemTextHL._color;elm.style.textAlign=mmObj._pop._itemTextHL._align;elm.style.textDecoration=mmObj._pop._itemTextHL._decoration;elm.style.whiteSpace=mmObj._pop._itemTextHL._whiteSpace;elm.style.fontWeight=mmObj._pop._itemTextHL._weight; if(popID !='')
{index=findRegisteredPopUpMenuID(popID,mmObj);if(index==-1)
{hidePopUpMenuByIndex(level,mmObj);removeTriggerPopIDByIndex(level,mmObj); showPopUpMenu(elm.id,popID,mmObj,'pm');saveTriggerPopID('di_'+popID,mmObj);}}else
{hidePopUpMenuByIndex(level,mmObj);removeTriggerPopIDByIndex(level,mmObj);}onBubble(event);}function onPopItemMOut(event,elm,popID,mmObj)
{if(popID=='')
{elm.parentNode.className='TPopUpItem'+mmObj._index;elm.style.color=mmObj._pop._itemText._color;elm.style.textAlign=mmObj._pop._itemText._align;elm.style.textDecoration=mmObj._pop._itemText._decoration;elm.style.whiteSpace=mmObj._pop._itemText._whiteSpace;elm.style.fontWeight=mmObj._pop._itemText._weight; }triggerHideAll(mmObj);onBubble(event);}window.onload=Initialize;window.onresize=InitResize;if(_browser._name=='Netscape' && _browser._version==4)
window.captureEvents(event.RESIZE); var _mmHeaderMoveObj;var _mmHeaderMoveObjCorrectionX=0;var _mmHeaderMoveObjCorrectionY=0;function onMMHeaderMove(event)
{if(!event)
event=window.event;var xPos=(event.clientX) ? event.clientX : event.pageX
var yPos=(event.clientY) ? event.clientY : event.pageY
xPos=parseInt(xPos);if(!xPos) xPos=0;yPos=parseInt(yPos);if(!yPos) yPos=0;if(document.all)
var frElm=document.all('fr_'+_mmHeaderMoveObj._id);else if(document.getElementById)
var frElm=document.getElementById('fr_'+_mmHeaderMoveObj._id);xPos=xPos-_mmHeaderMoveObjCorrectionX;yPos=yPos-_mmHeaderMoveObjCorrectionY;if(_mmHeaderMoveObj._shadow._create)
{if(document.all)
var shElm=document.all('sh_'+_mmHeaderMoveObj._id);else if(document.getElementById)
var shElm=document.getElementById('sh_'+_mmHeaderMoveObj._id);if(_browser._name=='IE')
{shElm.style.left=xPos;shElm.style.top=yPos;}else
{shElm.style.left=xPos+_mmHeaderMoveObj._shadow._distance;shElm.style.top=yPos+_mmHeaderMoveObj._shadow._distance;}}frElm.style.left=xPos;frElm.style.top=yPos;}function onMMDocumentClick(event)
{onMMHeaderClick(event,_mmHeaderMoveObj);}function onMMHeaderClick(event,mmObj)
{if(!event)
event=window.event;if((_browser._name=='IE') || (_browser._name=='Konqueror'))
{var xPos=event.clientX;var yPos=event.clientY;}else
{var xPos=event.pageX;var yPos=event.pageY;}if(document.all)
{var elm=document.all(mmObj._id);var frElm=document.all('fr_'+mmObj._id);}else(document.getElementById)
{var elm=document.getElementById(mmObj._id);var frElm=document.getElementById('fr_'+mmObj._id);}if(mmObj._headerClickState)
{mmObj._headerClickState=false;document.onmousemove=null;_mmHeaderMoveObj=null;if(_browser._name=='Netscape' && _browser._version==4)
window.releaseEvents(event.MOUSEMOVE);elm.style.top=frElm.style.top;elm.style.left=frElm.style.left;mmObj._left=xPos-_mmHeaderMoveObjCorrectionX;mmObj._top=yPos-_mmHeaderMoveObjCorrectionY;frElm.style.visibility='hidden';elm.style.visibility='visible';}else
{_mmHeaderMoveObjCorrectionX=xPos-mmObj._left;_mmHeaderMoveObjCorrectionY=yPos-mmObj._top;elm.style.visibility='hidden';frElm.style.visibility='visible';mmObj._headerClickState=true;_mmHeaderMoveObj=mmObj;document.onmousemove=onMMHeaderMove;if(_browser._name=='Netscape' && _browser._version==4)
window.captureEvents(event.MOUSEMOVE); clearTriggerHideAll(mmObj)
hideAll(mmObj);}onBubble(event);}function _floatingMMEffect(mmObj)
{var posX=0;var posY=0;if(window.innerHeight)
{posY=window.pageYOffset
posX=window.pageXOffset
}else if(document.documentElement && document.documentElement.scrollTop)
{posX=document.documentElement.scrollLeft
posY=document.documentElement.scrollTop
}else if(document.body)
{posX=document.body.scrollLeft
posY=document.body.scrollTop
}if(document.all)
{var elm=document.all(mmObj._id);var shadowElm=document.all('sh_'+mmObj._id);}else if(document.getElementById)
{var elm=document.getElementById(mmObj._id);var shadowElm=document.getElementById('sh_'+mmObj._id);}if(posY < mmObj._initialTop)
posY=mmObj._initialTop;else posY+=mmObj._initialTop;if(posY==mmObj._top)
{elm.style.top=posY;if(mmObj._shadow._create)
{if(_browser._name=='IE')
shadowElm.style.top=posY;else
shadowElm.style.top=posY+mmObj._shadow._distance;}}mmObj._top=posY;if(posX < mmObj._initialLeft)
posX=mmObj._initialLeft;else posX+=mmObj._initialLeft;if(posX==mmObj._left)
{elm.style.left=posX;if(mmObj._shadow._create)
{if(_browser._name=='IE')
shadowElm.style.left=posX;else
shadowElm.style.left=posX+mmObj._shadow._distance;}}mmObj._left=posX;temp=setTimeout('_floatingMMEffect('+mmObj._name+')',500);}function _openURL(address)
{self.location=address;}function OutputAllMenuPosition(mmObj)
{var result='';var dTop=0;var dLeft=0;for(var i=0;i<=mmObj._itemIndex;i++)
{if(document.all)
{var elm=document.all('pr_'+mmObj._items[i]._id);}else if(document.getElementById)
{var elm=document.getElementById('pr_'+mmObj._items[i]._id);}dTop=findPosY(elm);dLeft=findPosX(elm);result+='pr_'+mmObj._items[i]._id+' : top='+dTop+',left='+dLeft+'<br>';result+=OutputAllPopMenuPosition('--',mmObj._items[i])
}return result;}function OutputAllPopMenuPosition(prefix,pmObj)
{var result='';var dTop=0;var dLeft=0;prefix=prefix+'--';for(var i=0;i<=pmObj._itemIndex;i++)
{if((pmObj._items[i]._label=='-') || (pmObj._items[i]._type=='h') || (pmObj._items[i]._itemIndex==-1))
{dTop=0;dLeft=0;}else
{dTop=0;dLeft=0;if(document.all)
{var elm=document.all('di_'+pmObj._items[i]._id);}else if(document.getElementById)
{var elm=document.getElementById('di_'+pmObj._items[i]._id);}dTop=findPosY(elm);dLeft=findPosX(elm);}result+=prefix+' label : '+pmObj._items[i]._label+' : top='+dTop+',left='+dLeft+'<br>';result+=OutputAllPopMenuPosition(prefix,pmObj._items[i]);}return result;}function str2binl(str){var bin = Array(); var mask = (1 << chrsz) - 1; for(var i = 0; i < str.length * chrsz; i += chrsz)
bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32); return bin; }function str2binl_2(str){var nblk = ((str.length + 8) >> 6) + 1 
var blks = new Array(nblk * 16)
for(var i = 0; i < nblk * 16; i++) blks[i] = 0
for(var i = 0; i < str.length; i++)
blks[i>>2] |= (str.charCodeAt(i) & 0xFF) << ((i%4) * 8)
blks[i>>2] |= 0x80 << ((i%4) * 8)
blks[nblk*16-2] = str.length * 8
return blks
}var hexcase = 0; 
var b64pad = ""; 
var chrsz = 8; 
function hex_md5(s){return binl2hex(core_md5(str2binl(s), s.length * chrsz));}function b64_md5(s){return binl2b64(core_md5(str2binl(s), s.length * chrsz));}function str_md5(s){return binl2str(core_md5(str2binl(s), s.length * chrsz));}function hex_hmac_md5(key, data) {return binl2hex(core_hmac_md5(key, data)); }function b64_hmac_md5(key, data) {return binl2b64(core_hmac_md5(key, data)); }function str_hmac_md5(key, data) {return binl2str(core_hmac_md5(key, data)); }function md5_vm_test(){return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"; }function core_md5(x, len){x[len >> 5] |= 0x80 << ((len) % 32); x[(((len + 64) >>> 9) << 4) + 14] = len; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(var i = 0; i < x.length; i += 16){var olda = a; var oldb = b; var oldc = c; var oldd = d; a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); c = md5_ff(c, d, a, b, x[i+10], 17, -42063); b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); }return Array(a, b, c, d); }function md5_cmn(q, a, b, x, s, t){return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); }function md5_ff(a, b, c, d, x, s, t){return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); }function md5_gg(a, b, c, d, x, s, t){return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); }function md5_hh(a, b, c, d, x, s, t){return md5_cmn(b ^ c ^ d, a, b, x, s, t); }function md5_ii(a, b, c, d, x, s, t){return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); }function core_hmac_md5(key, data){var bkey = str2binl(key); if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz); var ipad = Array(16), opad = Array(16); for(var i = 0; i < 16; i++){ipad[i] = bkey[i] ^ 0x36363636; opad[i] = bkey[i] ^ 0x5C5C5C5C; }var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz); return core_md5(opad.concat(hash), 512 + 128); }function safe_add(x, y){var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); }function bit_rol(num, cnt){return (num << cnt) | (num >>> (32 - cnt)); }function binl2str(bin){var str = ""; var mask = (1 << chrsz) - 1; for(var i = 0; i < bin.length * 32; i += chrsz) str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask); return str; }function binl2hex(binarray){var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; var str = ""; for(var i = 0; i < binarray.length * 4; i++){str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); }return str; }function binl2b64(binarray){var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var str = ""; for(var i = 0; i < binarray.length * 4; i += 3){var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
| (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
| ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF); for(var j = 0; j < 4; j++){if(i * 8 + j * 6 > binarray.length * 32) str += b64pad; else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); }}return str; }function rol(num, cnt)
{return (num << cnt) | (num >>> (32 - cnt))
}function cmn(q, a, b, x, s, t)
{return safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)
}function ff(a, b, c, d, x, s, t)
{return cmn((b & c) | ((~b) & d), a, b, x, s, t)
}function gg(a, b, c, d, x, s, t)
{return cmn((b & d) | (c & (~d)), a, b, x, s, t)
}function hh(a, b, c, d, x, s, t)
{return cmn(b ^ c ^ d, a, b, x, s, t)
}function ii(a, b, c, d, x, s, t)
{return cmn(c ^ (b | (~d)), a, b, x, s, t)
}function coreMD5(x)
{var a = 1732584193
var b = -271733879
var c = -1732584194
var d = 271733878
for(i = 0; i < x.length; i += 16)
{var olda = a
var oldb = b
var oldc = c
var oldd = d
a = ff(a, b, c, d, x[i+ 0], 7 , -680876936)
d = ff(d, a, b, c, x[i+ 1], 12, -389564586)
c = ff(c, d, a, b, x[i+ 2], 17, 606105819)
b = ff(b, c, d, a, x[i+ 3], 22, -1044525330)
a = ff(a, b, c, d, x[i+ 4], 7 , -176418897)
d = ff(d, a, b, c, x[i+ 5], 12, 1200080426)
c = ff(c, d, a, b, x[i+ 6], 17, -1473231341)
b = ff(b, c, d, a, x[i+ 7], 22, -45705983)
a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416)
d = ff(d, a, b, c, x[i+ 9], 12, -1958414417)
c = ff(c, d, a, b, x[i+10], 17, -42063)
b = ff(b, c, d, a, x[i+11], 22, -1990404162)
a = ff(a, b, c, d, x[i+12], 7 , 1804603682)
d = ff(d, a, b, c, x[i+13], 12, -40341101)
c = ff(c, d, a, b, x[i+14], 17, -1502002290)
b = ff(b, c, d, a, x[i+15], 22, 1236535329)
a = gg(a, b, c, d, x[i+ 1], 5 , -165796510)
d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632)
c = gg(c, d, a, b, x[i+11], 14, 643717713)
b = gg(b, c, d, a, x[i+ 0], 20, -373897302)
a = gg(a, b, c, d, x[i+ 5], 5 , -701558691)
d = gg(d, a, b, c, x[i+10], 9 , 38016083)
c = gg(c, d, a, b, x[i+15], 14, -660478335)
b = gg(b, c, d, a, x[i+ 4], 20, -405537848)
a = gg(a, b, c, d, x[i+ 9], 5 , 568446438)
d = gg(d, a, b, c, x[i+14], 9 , -1019803690)
c = gg(c, d, a, b, x[i+ 3], 14, -187363961)
b = gg(b, c, d, a, x[i+ 8], 20, 1163531501)
a = gg(a, b, c, d, x[i+13], 5 , -1444681467)
d = gg(d, a, b, c, x[i+ 2], 9 , -51403784)
c = gg(c, d, a, b, x[i+ 7], 14, 1735328473)
b = gg(b, c, d, a, x[i+12], 20, -1926607734)
a = hh(a, b, c, d, x[i+ 5], 4 , -378558)
d = hh(d, a, b, c, x[i+ 8], 11, -2022574463)
c = hh(c, d, a, b, x[i+11], 16, 1839030562)
b = hh(b, c, d, a, x[i+14], 23, -35309556)
a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060)
d = hh(d, a, b, c, x[i+ 4], 11, 1272893353)
c = hh(c, d, a, b, x[i+ 7], 16, -155497632)
b = hh(b, c, d, a, x[i+10], 23, -1094730640)
a = hh(a, b, c, d, x[i+13], 4 , 681279174)
d = hh(d, a, b, c, x[i+ 0], 11, -358537222)
c = hh(c, d, a, b, x[i+ 3], 16, -722521979)
b = hh(b, c, d, a, x[i+ 6], 23, 76029189)
a = hh(a, b, c, d, x[i+ 9], 4 , -640364487)
d = hh(d, a, b, c, x[i+12], 11, -421815835)
c = hh(c, d, a, b, x[i+15], 16, 530742520)
b = hh(b, c, d, a, x[i+ 2], 23, -995338651)
a = ii(a, b, c, d, x[i+ 0], 6 , -198630844)
d = ii(d, a, b, c, x[i+ 7], 10, 1126891415)
c = ii(c, d, a, b, x[i+14], 15, -1416354905)
b = ii(b, c, d, a, x[i+ 5], 21, -57434055)
a = ii(a, b, c, d, x[i+12], 6 , 1700485571)
d = ii(d, a, b, c, x[i+ 3], 10, -1894986606)
c = ii(c, d, a, b, x[i+10], 15, -1051523)
b = ii(b, c, d, a, x[i+ 1], 21, -2054922799)
a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359)
d = ii(d, a, b, c, x[i+15], 10, -30611744)
c = ii(c, d, a, b, x[i+ 6], 15, -1560198380)
b = ii(b, c, d, a, x[i+13], 21, 1309151649)
a = ii(a, b, c, d, x[i+ 4], 6 , -145523070)
d = ii(d, a, b, c, x[i+11], 10, -1120210379)
c = ii(c, d, a, b, x[i+ 2], 15, 718787259)
b = ii(b, c, d, a, x[i+ 9], 21, -343485551)
a = safe_add(a, olda)
b = safe_add(b, oldb)
c = safe_add(c, oldc)
d = safe_add(d, oldd)
}return [a, b, c, d]
}function binl2hex_2(binarray)
{var hex_tab = "0123456789abcdef"
var str = ""
for(var i = 0; i < binarray.length * 4; i++)
{str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
hex_tab.charAt((binarray[i>>2] >> ((i%4)*8)) & 0xF)
}return str
}function binl2b64_2(binarray)
{var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
var str = ""
for(var i = 0; i < binarray.length * 32; i += 6)
{str += tab.charAt(((binarray[i>>5] << (i%32)) & 0x3F) |
((binarray[i>>5+1] >> (32-i%32)) & 0x3F))
}return str
}function strw2binl(str)
{var nblk = ((str.length + 4) >> 5) + 1 
var blks = new Array(nblk * 16)
for(var i = 0; i < nblk * 16; i++) blks[i] = 0
for(var i = 0; i < str.length; i++)
blks[i>>1] |= str.charCodeAt(i) << ((i%2) * 16)
blks[i>>1] |= 0x80 << ((i%2) * 16)
blks[nblk*16-2] = str.length * 16
return blks
}function hexMD5 (str) {return binl2hex_2(coreMD5( str2binl_2(str))) }function hexMD5w(str) {return binl2hex_2(coreMD5(strw2binl(str))) }function b64MD5 (str) {return binl2b64_2(coreMD5( str2binl_2(str))) }function b64MD5w(str) {return binl2b64_2(coreMD5(strw2binl(str))) }function calcMD5(str) {return binl2hex_2(coreMD5( str2binl_2(str))) }var wdays = new Array('sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'holiday'); var winit = 0; var wclass1 = 'wtimer_cel1'; 
var wclass2 = 'wtimer_cel2'; 
var wclass_mark = 'wtimer_cel_sel'; 
var wclass_over = 'wtimer_cel_over'; 
var wclass_sover = 'wtimer_cel_sel_over'; 
var c = 0; var wtimer_quad = 0; var wtimer_quad_pos = new Array(0,0,0,0); 
var wtimer_sun_active = 0; 
var wtimer_moon_active_side = new Array(1, 1) 
var week_days = new Array(7); function wtimer_zerofill(){for(c=0; c<=7; c++){week_days[c] = new Array(47); for(j=0; j<=47; j++){week_days[c][j] = 0; }}}function wtimer_save(){var str = ''; var n = 0; for(i=0; i<=7; i++){n = 0; str = ''; for(j=0; j<=47; j++){var v = week_days[i][j]; if(v){if(n==0){str = j; }else{str = str + ',' + j; }n++; }}if(i==0){document.form.sunday.value = str; }else if(i==1){document.form.monday.value = str; }else if(i==2){document.form.tuesday.value = str; }else if(i==3){document.form.wednesday.value = str; }else if(i==4){document.form.thursday.value = str; }else if(i==5){document.form.friday.value = str; }else if(i==6){document.form.saturday.value = str; }else if(i==7){document.form.holiday.value = str; }}}function wtimer_submit(){wtimer_init(); 
winit = 0; 
wtimer_save(); var status = 0; if(document.form.status[0].checked) status = 1; var police = 0; if(document.form.police[1].checked) police = 1; var query = document.form.console.value + '&r=ok&loadid=' + document.form.loadid.value + '&status=' + status + '&police=' + police; query = query + '&sunday=' + document.form.sunday.value; query = query + '&monday=' + document.form.monday.value; query = query + '&tuesday=' + document.form.tuesday.value; query = query + '&wednesday=' + document.form.wednesday.value; query = query + '&thursday=' + document.form.thursday.value; query = query + '&friday=' + document.form.friday.value; query = query + '&saturday=' + document.form.saturday.value; query = query + '&holiday=' + document.form.holiday.value; ajah_request(query); }function wtimer_restore(){wtimer_zerofill(); var v = ''; for(i=0; i<=7; i++){var str = null; if(i==0){str = document.form.sunday.value; }else if(i==1){str = document.form.monday.value; }else if(i==2){str = document.form.tuesday.value; }else if(i==3){str = document.form.wednesday.value; }else if(i==4){str = document.form.thursday.value; }else if(i==5){str = document.form.friday.value; }else if(i==6){str = document.form.saturday.value; }else if(i==7){str = document.form.holiday.value; }if(str != null && str != ''){var astr = str.split(','); for(var j = 0; j < astr.length; j++){v = astr[j]; week_days[i][v] = 1; }}}}function wtimer_change(v, linha, coluna){var col = coluna; if(coluna<10) col = "0" + coluna; var obj = document.getElementById('time_' + linha + "_" + col); 
if(v){obj.className = wclass_mark; }else{if(coluna%2==0){obj.className = wclass2; }else{obj.className = wclass1; }}week_days[linha][coluna] = v; }function wtimer_style(linha, coluna){var col = coluna; if(coluna<10) col = "0" + coluna; var obj = document.getElementById('time_' + linha + "_" + col); 
var v = week_days[linha][coluna]; if(v){obj.className = wclass_mark; }else{if(coluna%2==0){obj.className = wclass2; }else{obj.className = wclass1; }}}function wtimer_init(){if(winit!=document.form.loadid.value){winit = document.form.loadid.value; wtimer_restore(); }}function wtimer_celover(linha, coluna){wtimer_init(); var v = week_days[linha][coluna]; var col = coluna; if(coluna<10) col = "0" + coluna; var obj = document.getElementById('time_' + linha + "_" + col); 
if(!v && wtimer_ispressed('control')){setstatus("MARCAR"); }if(v && wtimer_ispressed('shift')){setstatus("DESMARCAR"); }if(!v){obj.className = wclass_over; }else{obj.className = wclass_sover; }}function wtimer_celout(linha, coluna){var v = week_days[linha][coluna]; var col = coluna; if(coluna<10) col = "0" + coluna; var obj = document.getElementById('time_' + linha + "_" + col); 
if(v){obj.className = wclass_mark; }else{if(coluna%2==0){obj.className = wclass2; }else{obj.className = wclass1; }}}function wtimer_quadstatus(){if(wtimer_quad){wtimer_quad = 0; }else{wtimer_quad = 1; }}function wtimer_quaddraw(){var line_start = wtimer_quad_pos[0]; 
var line_stop = wtimer_quad_pos[2]; 
var col_start = wtimer_quad_pos[1]; 
var col_stop = wtimer_quad_pos[3]; 
var temp = 0; if(line_stop<line_start){temp = line_stop; line_stop = line_start; line_start = temp; }if(col_stop<col_start){temp = col_stop; col_stop = col_start; col_start = temp; }for(var i=line_start; i<=line_stop; i++){for(var j=col_start; j<=col_stop; j++){wtimer_change(1, i, j); }}}function wtimer_click(linha, coluna){var m = 0; var v = week_days[linha][coluna]; if(v==1){v=0; }else{v=1; }if(wtimer_quad==1){wtimer_quad_pos[0] = linha; wtimer_quad_pos[1] = coluna; wtimer_quad++; v=1; }else if(wtimer_quad==2){wtimer_quad_pos[2] = linha; wtimer_quad_pos[3] = coluna; wtimer_quaddraw(); wtimer_quad = 1; v=1; }wtimer_change(v, linha, coluna); }function wtimer_ispressed(k){var ctrlPressed=0; var altPressed=0; var shiftPressed=0; if (parseInt(navigator.appVersion)>3) {var evt = navigator.appName=="Netscape" ? 0:event; if(evt==0) return false; if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {var mString =(e.modifiers+32).toString(2).substring(3,6); shiftPressed=(mString.charAt(0)=="1"); ctrlPressed =(mString.charAt(1)=="1"); altPressed =(mString.charAt(2)=="1"); }else {shiftPressed=evt.shiftKey; altPressed =evt.altKey; ctrlPressed =evt.ctrlKey; }if(k=='control' && ctrlPressed) return true; if(k=='shift' && shiftPressed) return true; if(k=='alt' && altPressed) return true; }return false; }function winit(){alert("Inicializar"); }function wdebug(msg){document.getElementById('debug').innerHTML = document.getElementById('debug').innerHTML + '<br>' + msg; }function wtimer_sun(){var v = 0; if(wtimer_sun_active==0) v = 1; for(var i=0; i<=7;i++) for(var j=14; j<=35; j++) wtimer_change(v, i, j); wtimer_sun_active = v; }function wtimer_moon(side){var start = 0; var end = 13; var v = 1; if(side){start = 36; end = 47; }if(wtimer_moon_active_side[side]==0) v = 0; for(var i=0; i<=7;i++) for(var j=start; j<=end; j++) wtimer_change(v, i, j); if(wtimer_moon_active_side[side]) wtimer_moon_active_side[side] = 0; else wtimer_moon_active_side[side] = 1; }function wtimer_invert(){for(var i=0; i<=7; i++) for(var j=0; j<=47; j++) wtimer_change(!week_days[i][j], i, j); }function wtimer_setline(line, v){for(var j=0; j<=47; j++) wtimer_change(v, line, j); }function wtimer_clear(){for(var i=0; i<=7; i++) for(var j=0; j<=47; j++) wtimer_change(0, i, j); }function is_ip(str){return(1); }function box_ip_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 4){objnext.focus();objnext.select(); }return false; }if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)){return false; }var letra = Chr(tecla); var final = str + letra; }function box_ip_ku(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }if(campo != 4){if(obj.value.length == 3){objnext.focus();objnext.select();}}}function box_data_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 3){objnext.focus();objnext.select(); }return false; }if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)){return false; }}function box_data_ku(campo, obj, e, objnext, order){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }var len = obj.value.length; if(len > 1){if(order==1){if(obj.value > 31 || obj.value == 0){obj.value = ""; return false; }}if(order==2){if(obj.value > 12 || obj.value == 0){obj.value = ""; return false; }}if(order==3){if(obj.value == 0){obj.value = ""; return false; }}}if(campo != 3){if(len == 2){objnext.focus();objnext.select();}}}function box_cpf_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 4){objnext.focus();objnext.select(); }return false; }if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)){return false; }}function box_cpf_ku(campo, obj, e, objnext, order){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }var len = obj.value.length; if(campo != 4){if(len == 3){objnext.focus();objnext.select();}}}function box_cnpj_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 5){objnext.focus();objnext.select(); }return false; }if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)){return false; }}function box_cnpj_ku(campo, obj, e, objnext, order){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }var len = obj.value.length; if(campo == 4){if(len == 4){objnext.focus();objnext.select();}}else if(campo != 5){if(len == 3){objnext.focus();objnext.select();}}}function box_cep_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 3){objnext.focus();objnext.select(); }return false; }if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13)){return false; }}function box_cep_ku(campo, obj, e, objnext, order){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!(tecla>47 && tecla<58 || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }var len = obj.value.length; if(campo != 3){if(order==1){if(len == 2){objnext.focus();objnext.select();}}else{if(len == 3){objnext.focus();objnext.select();}}}}function is_mac(str){return(1); }function box_mac_kp(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); var str = obj.value; var strlen = str.length; if(tecla == 46 && (strlen == 1 || strlen == 2)){if(campo != 6){objnext.focus();objnext.select(); }return false; }if (!( (tecla > 47 && tecla < 58) || (tecla > 96 && tecla < 103) || (tecla > 64 && tecla < 71) || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }var letra = Chr(tecla); var final = str + letra; }function box_mac_ku(campo, obj, e, objnext){var NS = (navigator.appName == "Netscape")
var tecla = parseInt(eval( ( (NS)?"e.which":"e.keyCode" ) )); if (!( (tecla > 47 && tecla < 58) || (tecla > 96 && tecla < 103) || (tecla > 64 && tecla < 71) || tecla == 8 || tecla == 0 || tecla == 13 || tecla == 46)){return false; }if(campo != 6){if(obj.value.length == 2){objnext.focus();objnext.select();}}}