function ajax(file){this.xmlhttp=null;this.resetData=function(){this.isCacheURL=true;this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2)};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){this.xmlhttp=null}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.failed=true}}};this.setVar=function(name,value){this.vars[name]=Array(value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}if(this.isCacheURL){this.setVar("rndval",new Date().getTime())}urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0]}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){if(this.requestFile.indexOf("?")>=0){totalurlstring=this.requestFile+this.argumentSeparator+this.URLString}else{totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString}this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";break}};this.xmlhttp.send(this.URLString)}}};this.reset();this.createAJAX()}var xmlHttp;function newXMLHttpRequest(){try{xmlHttp=new XMLHttpRequest()}catch(B){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}}return xmlHttp}function showhide_elementById(B,G){var C=document.getElementById(B);C.style.display=G}var onLoadFunctionList=new Array();function performOnLoadFunctions(){for(var B in onLoadFunctionList){onLoadFunctionList[B]()}}function DisableEnableForm(H,C){var G=H.elements;for(var B=0;B<G.length;B++){G[B].disabled=C}}function getXmlHttpRequest(){var B=null;try{B=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{B=new ActiveXObject("Microsoft.XMLHTTP")}catch(C){B=null}}if(!B&&typeof XMLHttpRequest!="undefined"){B=new XMLHttpRequest()}return B}function getUrlSync(B){return getUrl(B,false,null)}function getUrlAsync(B,C){return getUrl(B,true,C)}function getUrl(B,C,H){var G=getXmlHttpRequest();if(!G){return}if(H){G.onreadystatechange=function(){H(G)}}else{G.onreadystatechange=function(){}}G.open("GET",B,C);G.send(null)}function postUrl(B,I,G,C){var H=getXmlHttpRequest();if(!H){return}H.open("POST",B,G);H.onreadystatechange=function(){C(H)};H.setRequestHeader("Content-Type","application/x-www-form-urlencoded");H.send(I)}function urlEncodeDict(G){var B="";for(var C=0;C<G.length;C++){B+="&"+encodeURIComponent(G[C].name)+"="+encodeURIComponent(G[C].value)}return B}function execOnSuccess(B){return function(C){if(C.readyState==4&&C.status==200){B(C)}}}function postFormByForm(K,I,B){var L=new Array();for(var G=0;G<K.elements.length;G++){var H=K.elements[G];if(H.type=="checkbox"&&!H.checked){continue}var C=new Object;C.name=H.name;C.value=H.value;L.push(C)}postUrl(K.action,urlEncodeDict(L),I,execOnSuccess(B))}function postForm(C,G,B){var H=document.forms[C];return postFormByForm(H,G,B)}function replaceDivContents(G,B){var C=document.getElementById(B);C.innerHTML=G.responseText}function getUrlXMLResponseCallback(C){if(C.responseXML==null){alert("Error while processing your request.");return}var H=getRootNode(C);var G=getNodeValue(H,"return_code");if(G==0){redirect_val=getNodeValue(H,"redirect_on_success");if(redirect_val!=null){window.location=redirect_val}else{success_message=getNodeValue(H,"success_message");if(success_message!=null){alert(success_message)}if(this.successCallback!=null){this.successCallback(C)}}}else{var B=getNodeValue(H,"error_message");if(B==null||B.length==0){if(G==2){B="You must be logged in to perform this operation."}else{B="An error occured while performing this operation."}}alert(B)}}function getUrlXMLResponseCallbackFillDiv(B){getUrlXMLResponseCallback(B);document.getElementById(this.div_id).innerHTML=getNodeValue(B.responseXML,"html_content")}function getNodeValue(C,B){node=C.getElementsByTagName(B);if(node!=null&&node.length>0){return node[0].firstChild.nodeValue}else{return null}}function getRootNode(B){return B.responseXML.getElementsByTagName("root")[0]}function getUrlXMLResponse(C,B){this.successCallback=B;this.urlResponseCallback=getUrlXMLResponseCallback;getUrl(C,true,execOnSuccess(this.urlResponseCallback))}function getUrlXMLResponseAndFillDiv(C,G,B){this.successCallback=B;this.urlResponseCallback=getUrlXMLResponseCallbackFillDiv;this.div_id=G;getUrl(C,true,execOnSuccess(this.urlResponseCallback))}function postUrlXMLResponse(C,G,B){this.successCallback=B;this.urlResponseCallback=getUrlXMLResponseCallback;postUrl(C,G,true,execOnSuccess(this.urlResponseCallback))}function confirmAndPostUrlXMLResponse(C,H,G,B){if(confirm(H)){postUrlXMLResponse(C,G,B)}}function postFormXMLResponse(C,B){this.successCallback=B;postForm(C,true,execOnSuccess(getUrlXMLResponseCallback))}function replaceDivRatingContents(H,N){var M=document.getElementById(N);var P=H.responseText;if(P.match("Success")){var L="";var B,I,K;B=P.split(";");var G=B[0];var C=B[1];L="<div id='ratingMessage'>Thanks for rating:</div>            <script language='javascript'>            ratingComponent = new UTRating('ratingDiv', 5, 'ratingComponent', 'ratingForm', 'ratingMessage', '', 'L');            ratingComponent.starCount=";L=L+C;L=L+";onLoadFunctionList.push(function() { ratingComponent.drawStars("+C+", true); });<\/script>";for(K=1;K<=5;K++){if(K<=C+1){I="<img src='./img/icn_star_full_19x20.png' id='star__"+K+"' class='rating' style='border: 0px'>"}else{I="<img src='./img/icn_star_empty_19x20.png' id='star__"+K+"' class='rating' style='border: 0px'>"}L=L+I}L=L+"<div class='rating ratingCount'>";L=L+G;L=L+" ratings</div></div></div>";M.innerHTML=L}}function highlight(B){B.focus();B.select()}function redraw_captcha(C){var B=document.getElementById("captcha_img");var H=new Date();var G=H.getTime();B.src=C+"captcha?time="+G}function email_story(H){alert("shit");var B=new ajax();var G=document.getElementById("email_status");var K=document.getElementById("email_story_form");var L=document.getElementById("from_name").value;var I=document.getElementById("from_email").value;var C=document.getElementById("to_emails").value;B.method="POST";B.requestFile=WEBSITE_URL+"/ajax/email_story.php";B.setVar("action","email_story");B.setVar("from_name",L);B.setVar("from_email",I);B.setVar("to_emails",C);B.setVar("story_id",H);B.onCompletion=function(){var P=B.response;var M=P.split("###");var Q=Number(M[0]);var N=M[1];if(Q==1){}else{}};B.runAJAX();DisableEnableForm(K,true);G.innerHTML='<span class="loading_inline">Xin h�y ch?...</div>'}function comment_story(L,M){var I=new ajax();var B=document.getElementById("story_comment");var G=B.value;var K=document.getElementById("story_comment_form");var N=document.getElementById("captcha").value;var P=document.getElementById("comment_status");var H=document.getElementById("story_comments");I.method="POST";I.requestFile=WEBSITE_URL+"/ajax/comment_story.php";I.setVar("action","comment_story");I.setVar("story_comment",G);if(L<1){var C=document.getElementById("anon_name").value;I.setVar("anon_name",C)}I.setVar("story_id",M);I.setVar("captcha",N);I.onCompletion=function(){var U=I.response;var Q=U.split("###");var V=Number(Q[0]);var T=Q[1];if(V==1){P.innerHTML='<span class="success_inline">Thank you!</div>';H.innerHTML=T+H.innerHTML;K.reset();redraw_captcha(WEBSITE_URL);window.location="#story_comments"}else{P.innerHTML='<span class="error_inline">'+U+"</div>"}DisableEnableForm(K,false)};DisableEnableForm(K,true);P.innerHTML='<span class="loading_inline">Please wait...</div>';I.runAJAX()}function load_comments(I,H,K){var B=new ajax();var C=document.getElementById("single_story_comments");var G=document.getElementById("load_comment_process");B.method="GET";B.requestFile=WEBSITE_URL+"/ajax/load_comments.php?story_id="+I+"&page_num="+H+"&story_owner_id="+K;B.onCompletion=function(){var M=B.response;var L=M.split("###");var N=Number(L[0]);if(N==1){G.style.display="none";C.innerHTML=L[1]}else{alert(M)}};G.style.display="block";B.runAJAX()}function delete_comment(G){var C=new ajax();var B=document.getElementById("comment_"+G);C.method="GET";C.requestFile=WEBSITE_URL+"/ajax/delete_comment.php";C.setVar("comment_id",G);C.onCompletion=function(){var K=C.response;var H=K.split(";");var L=Number(H[0]);var I=H[1];if(L==1){B.style.display="none";alert("deleted")}else{alert(I)}};C.runAJAX()}function comment_user(H,I){if(H==0){alert("Ban phai dang nhap");return false}var C=new ajax();var G=document.getElementById("user_comment");var L=G.value;var B=document.getElementById("user_comment_form");var K=document.getElementById("comment_status");C.method="POST";C.requestFile=WEBSITE_URL+"/ajax/comment_user.php";C.setVar("action","comment_user");C.setVar("user_comment",L);C.setVar("receiver_id",I);C.onCompletion=function(){var P=C.response;var M=P.split("###");var Q=Number(M[0]);var N=M[1];if(Q==1){alert(N);K.innerHTML='<span class="success_inline">Thank you!</div>';B.reset()}else{K.innerHTML='<span class="error_inline">'+P+"</div>"}DisableEnableForm(B,false)};C.runAJAX();DisableEnableForm(B,true);K.innerHTML='<span class="loading_inline">Please wait...</div>'}function delete_user_comment(G){var C=new ajax();var B=document.getElementById("comment_"+G);C.method="GET";C.requestFile=WEBSITE_URL+"/ajax/delete_user_comment.php";C.setVar("comment_id",G);C.onCompletion=function(){var K=C.response;var H=K.split(";");var L=Number(H[0]);var I=H[1];alert(I);if(L==1){B.style.display="none";alert("deleted")}else{alert(I)}};C.runAJAX()}function fav_story(I){if(Number(user_id)==0){alert("You need to log-in first");return}var B=new ajax();var G=document.getElementById("fav_process");var C=document.getElementById("fav_button");var H=document.getElementById("unfav_button");var K=document.getElementById("story_favorites");B.method="POST";B.requestFile=WEBSITE_URL+"/ajax/fav_story.php";B.setVar("story_id",I);B.setVar("action","fav");B.onCompletion=function(){var N=B.response;var L=N.split("###");var Q=Number(L[0]);var M=L[1];if(Q==1){var P=Number(M);K.innerHTML=P+"favorites";H.style.display="block";C.style.display="none"}else{alert(M);C.style.display="block"}G.style.display="none"};B.runAJAX();C.style.display="none";G.style.display="block"}function unfav_story(I){var B=new ajax();var G=document.getElementById("fav_process");var C=document.getElementById("fav_button");var H=document.getElementById("unfav_button");var K=document.getElementById("story_favorites");B.method="POST";B.requestFile=WEBSITE_URL+"/ajax/fav_story.php";B.setVar("story_id",I);B.setVar("action","unfav");B.onCompletion=function(){var N=B.response;var L=N.split("###");var Q=Number(L[0]);var M=L[1];if(Q==1){var P=Number(M);K.innerHTML=P+"favorites";H.style.display="none";C.style.display="block"}else{alert(N);H.style.display="block"}G.style.display="none"};B.runAJAX();H.style.display="none";G.style.display="block"}function rate_story(K,I){if(Number(user_id)==0){alert("You need to log-in first");return}var C=new ajax();var N=document.getElementById("rate_choices");var B=document.getElementById("rate_process");var G=document.getElementById("rate_yes");var M=document.getElementById("rate_no");var L=document.getElementById("rate_error");var H=document.getElementById("rate_msg");C.method="POST";C.requestFile=WEBSITE_URL+"/ajax/rate_story.php";C.setVar("action","rate_story");C.setVar("rate",K);C.setVar("story_id",I);C.onCompletion=function(){var U=C.response;var P=U.split("###");var V=Number(P[0]);var T=P[1];if(V==1){var Q=Number(T);H.innerHTML="votes: "+Q+"<br/>";G.style.display="inline";M.style.display="inline"}else{L.innerHTML="<br>"+T;L.style.display="inline";N.style.display="inline"}B.style.display="none"};C.runAJAX();N.style.display="none";B.style.display="inline"}va="email".split(",");method=0;on_off=1;dockspell=1;dauCu=1;useCookie=1;radioID="him_auto,him_telex,him_vni,him_viqr,him_viqr2,him_off,him_ckspell,him_daucu".split(",");var agt=navigator.userAgent.toLowerCase(),alphabet="QWERTYUIOPASDFGHJKLZXCVBNM ",them,spellerr,setCookie,getCookie,attached=new Array();var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1)),S,F,J,R,X,D,oc,sk,saveStr,wi,frame,is_opera=false,D2,isKHTML=false;var ver=0,support=true,changed=false,specialChange=false,uni,uni2,g,h,SFJRX,DAWEO,Z,AEO,moc,trang,kl=0,tw5,range=null,fID=document.getElementsByTagName("iframe");skey=new Array(97,226,259,101,234,105,111,244,417,117,432,121,65,194,258,69,202,73,79,212,416,85,431,89);var skey2="a,a,a,e,e,i,o,o,o,u,u,y,A,A,A,E,E,I,O,O,O,U,U,Y".split(","),A,E,O,whit=false,english="ĐÂĂƠƯÊÔ",lowen="đâăơưêô",ds1="d,D".split(","),db1=new Array(273,272);os1="o,O,ơ,Ơ,ó,Ó,ò,Ò,ọ,Ọ,ỏ,Ỏ,õ,Õ,ớ,Ớ,ờ,Ờ,ợ,Ợ,ở,Ở,ỡ,Ỡ".split(","),ob1="ô,Ô,ô,Ô,ố,Ố,ồ,Ồ,ộ,Ộ,ổ,Ổ,ỗ,Ỗ,ố,Ố,ồ,Ồ,ộ,Ộ,ổ,Ổ,ỗ,Ỗ".split(",");mocs1="o,O,ô,Ô,u,U,ó,Ó,ò,Ò,ọ,Ọ,ỏ,Ỏ,õ,Õ,ú,Ú,ù,Ù,ụ,Ụ,ủ,Ủ,ũ,Ũ,ố,Ố,ồ,Ồ,ộ,Ộ,ổ,Ổ,ỗ,Ỗ".split(",");mocb1="ơ,Ơ,ơ,Ơ,ư,Ư,ớ,Ớ,ờ,Ờ,ợ,Ợ,ở,Ở,ỡ,Ỡ,ứ,Ứ,ừ,Ừ,ự,Ự,ử,Ử,ữ,Ữ,ớ,Ớ,ờ,Ờ,ợ,Ợ,ở,Ở,ỡ,Ỡ".split(",");trangs1="a,A,â,Â,á,Á,à,À,ạ,Ạ,ả,Ả,ã,Ã,ấ,Ấ,ầ,Ầ,ậ,Ậ,ẩ,Ẩ,ẫ,Ẫ".split(",");trangb1="ă,Ă,ă,Ă,ắ,Ắ,ằ,Ằ,ặ,Ặ,ẳ,Ẳ,ẵ,Ẵ,ắ,Ắ,ằ,Ằ,ặ,Ặ,ẳ,Ẳ,ẵ,Ẵ".split(",");as1="a,A,ă,Ă,á,Á,à,À,ạ,Ạ,ả,Ả,ã,Ã,ắ,Ắ,ằ,Ằ,ặ,Ặ,ẳ,Ẳ,ẵ,Ẵ,ế,Ế,ề,Ề,ệ,Ệ,ể,Ể,ễ,Ễ".split(",");ab1="â,Â,â,Â,ấ,Ấ,ầ,Ầ,ậ,Ậ,ẩ,Ẩ,ẫ,Ẫ,ấ,Ấ,ầ,Ầ,ậ,Ậ,ẩ,Ẩ,ẫ,Ẫ,é,É,è,È,ẹ,Ẹ,ẻ,Ẻ,ẽ,Ẽ".split(",");es1="e,E,é,É,è,È,ẹ,Ẹ,ẻ,Ẻ,ẽ,Ẽ".split(",");eb1="ê,Ê,ế,Ế,ề,Ề,ệ,Ệ,ể,Ể,ễ,Ễ".split(",");arA="á,à,ả,ã,ạ,a,Á,À,Ả,Ã,Ạ,A".split(",");mocrA="ó,ò,ỏ,õ,ọ,o,ú,ù,ủ,ũ,ụ,u,Ó,Ò,Ỏ,Õ,Ọ,O,Ú,Ù,Ủ,Ũ,Ụ,U".split(",");erA="é,è,ẻ,ẽ,ẹ,e,É,È,Ẻ,Ẽ,Ẹ,E".split(",");orA="ó,ò,ỏ,õ,ọ,o,Ó,Ò,Ỏ,Õ,Ọ,O".split(",");aA="ấ,ầ,ẩ,ẫ,ậ,â,Ấ,Ầ,Ẩ,Ẫ,Ậ,Â".split(",");mocA="ớ,ờ,ở,ỡ,ợ,ơ,ứ,ừ,ử,ữ,ự,ư,Ớ,Ờ,Ở,Ỡ,Ợ,Ơ,Ứ,Ừ,Ử,Ữ,Ự,Ư".split(",");trangA="ắ,ằ,ẳ,ẵ,ặ,ă,Ắ,Ằ,Ẳ,Ẵ,Ặ,Ă".split(",");eA="ế,ề,ể,ễ,ệ,ê,Ế,Ề,Ể,Ễ,Ệ,Ê".split(",");oA="ố,ồ,ổ,ỗ,ộ,ô,Ố,Ồ,Ổ,Ỗ,Ộ,Ô".split(",");function notWord(B){var C=" \r\n#,\\;.:-_()<>+-*/=?!\"$%{}[]'~|^@&\t"+fcc(160);return(C.indexOf(B)>=0)}function nan(B){if((isNaN(B))||(B=="e")){return true}else{return false}}function mozGetText(G){var C,H,B="";g=1;C=(G.data)?G.data:G.value;if(C.length<=0){return false}if(!G.data){if(!G.setSelectionRange){return false}H=G.selectionStart}else{H=G.pos}if(G.selectionStart!=G.selectionEnd){return new Array("",H)}while(1){if(H-g<0){break}else{if(notWord(C.substr(H-g,1))){if(C.substr(H-g,1)=="\\"){B=C.substr(H-g,1)+B}break}else{B=C.substr(H-g,1)+B}}g++}return new Array(B,H)}function start(H,G){var B="",I;oc=H;uni2=false;if(method==0){uni="D,A,E,O,W,W".split(",");uni2="9,6,6,6,7,8".split(",");D2="DAWEO6789"}else{if(method==1){uni="D,A,E,O,W,W".split(",");D2="DAWEO"}else{if(method==2){uni="9,6,6,6,7,8".split(",");D2="6789"}else{if(method==3){uni="D,^,^,^,+,(".split(",");D2="D^+("}else{if(method==4){uni="D,^,^,^,*,(".split(",");D2="D^*("}}}}}if(!is_ie){G=fcc(G.which);B=mozGetText(H);if(D2.indexOf(up(G))>=0){I=true}else{I=false}if((!B)||(H.sel)){return}main(B[0],G,B[1],uni,I);if(!dockspell){B=mozGetText(H)}if((B)&&(uni2)&&(!changed)){main(B[0],G,B[1],uni2,I)}}else{H=ieGetText(H);if(H){var C=H.cW.text;B=main(H.cW.text,G,0,uni,false);if((uni2)&&((B==C)||(typeof(B)=="undefined"))){B=main(H.cW.text,G,0,uni2,false)}if(B){H.cW.text=B}}}if(D2.indexOf(up(G))>=0){if(!is_ie){B=mozGetText(H);if(!B){return}normC(B[0],G,B[1])}else{if(typeof(H)=="object"){H=ieGetText(H);if(H){B=H.cW.text;if(!changed){B+=G;changed=true}H.cW.text=B;B=normC(B,G,0);if(B){H=ieGetText(H);H.cW.text=B}}}}}}function ieGetText(C){var G=C.document.selection.createRange(),B="";if(G.text){G.text=""}else{while(1){G.moveStart("character",-1);if(B.length==G.text.length){break}B=G.text;if(notWord(B.charAt(0))){if(B.charCodeAt(0)==13){B=B.substr(2)}else{if(B.charAt(0)!="\\"){B=B.substr(1)}}break}}}if(B.length){G.collapse(false);G.moveStart("character",-B.length);C.cW=G.duplicate();return C}else{return false}}function ie_replaceChar(B,I,H){var G="",C=0;if(isNaN(H)){C=up(H)}if((whit)&&(up(B.substr(B.length-I-1,1))=="U")&&(I!=1)&&(up(B.substr(B.length-I-2,1))!="Q")){whit=false;if((up(unV(fcc(H)))=="Ơ")||(C=="O")){if(B.substr(B.length-I-1,1)=="u"){G=fcc(432)}else{G=fcc(431)}}if(C=="O"){if(H=="o"){H=417}else{H=416}}}if(!isNaN(H)){changed=true;G+=fcc(H);return B.substr(0,B.length-I-G.length+1)+G+B.substr(B.length-I+1)}else{return B.substr(0,B.length-I)+H+B.substr(B.length-I+1)}}function tr(G,P,K,I,H){var B,N=findC(P,G,I);if(N){if(N[1]){if(is_ie){return ie_replaceChar(P,N[0],N[1])}else{return replaceChar(oc,H-N[0],N[1])}}else{var L,C=P.substr(P.length-N,1),M;B=I;for(g=0;g<B.length;g++){if((nan(B[g]))||(B[g]=="e")){M=C}else{M=C.charCodeAt(0)}if(M==B[g]){if(!nan(K[g])){L=K[g]}else{L=K[g].charCodeAt(0)}if(is_ie){return ie_replaceChar(P,N,L)}else{return replaceChar(oc,H-N,L)}}}}}return false}function main(Q,G,H,P,C){var M=up(G),U=new Array(db1,ab1,eb1,ob1,mocb1,trangb1),N=false,T="d,D,a,A,a,A,o,O,u,U,e,E,o,O".split(",");var B=new Array(ds1,as1,es1,os1,mocs1,trangs1),L=new Array(),I=new Array();if((method==2)||((method==0)&&(P[0]=="9"))){DAWEO="6789";SFJRX="12534";S="1";F="2";J="5";R="3";X="4";Z="0";D="9";FRX="234";AEO="6";moc="7";trang="8";them="678";A="^";E="^";O="^"}else{if(method==3){DAWEO="^+(D";SFJRX="'`.?~";S="'";F="`";J=".";R="?";X="~";Z="-";D="D";FRX="`?~";AEO="^";moc="+";trang="(";them="^+(";A="^";E="^";O="^"}else{if(method==4){DAWEO="^*(D";SFJRX="'`.?~";S="'";F="`";J=".";R="?";X="~";Z="-";D="D";FRX="`?~";AEO="^";moc="*";trang="(";them="^*(";A="^";E="^";O="^"}else{if((method==1)||((method==0)&&(P[0]=="D"))){SFJRX="SFJRX";DAWEO="DAWEO";D="D";S="S";F="F";J="J";R="R";X="X";Z="Z";FRX="FRX";them="AOEW";trang="W";moc="W";A="A";E="E";O="O"}}}}if(SFJRX.indexOf(M)>=0){var K=sr(Q,G,H);N=true;if(K){return K}}else{if(M==Z){I=repSign(null);for(h=0;h<english.length;h++){I[I.length]=lowen.charCodeAt(h);I[I.length]=english.charCodeAt(h)}for(h=0;h<5;h++){for(g=0;g<skey.length;g++){L[L.length]=skey[g]}}for(h=0;h<T.length;h++){L[L.length]=T[h]}N=true}else{for(h=0;h<P.length;h++){if(P[h]==M){N=true;L=L.concat(U[h]);I=I.concat(B[h])}}}}if(M==moc){whit=true}if(!N){if(C){return}return normC(Q,G,H)}return DAWEOZ(G,Q,L,I,H,M)}function DAWEOZ(C,B,K,I,G,H){if((DAWEO.indexOf(H)>=0)||(Z.indexOf(H)>=0)){return tr(C,B,K,I,G)}}function normC(T,G,K){var M=up(G),V=repSign(null),U,N,H,B=(G.charCodeAt(0)==32)?true:false;if((!is_ie)&&(B)){return}for(H=1;H<=T.length;H++){for(h=0;h<V.length;h++){if(V[h]==T.charCodeAt(T.length-H)){if(h<=23){U=S}else{if(h<=47){U=F}else{if(h<=71){U=J}else{if(h<=95){U=R}else{U=X}}}}N=skey[h%24];if((alphabet.indexOf(M)<0)&&(D2.indexOf(M)<0)){return T}T=unV(T);if((!B)&&(!changed)){T+=G}if(!is_ie){var C=oc.selectionStart,P=C;if(!changed){var W=oc.scrollTop;P+=G.length;if(!oc.data){oc.value=oc.value.substr(0,C)+G+oc.value.substr(oc.selectionEnd);changed=true;oc.scrollTop=W}else{oc.insertData(oc.pos,G);oc.pos++;range.setEnd(oc,oc.pos);specialChange=true}}if(!oc.data){oc.setSelectionRange(P,P)}if(!ckspell(T,U)){replaceChar(oc,K-H,N);if(!oc.data){var Q=new Array(D);main(T,U,P,Q,false)}else{var I=mozGetText(oc);var Q=new Array(D);main(I[0],U,I[1],Q,false)}}}else{var L=sr(T,U,0);if((B)&&(L)){L+=fcc(32)}if(L){return L}}}}}}function nospell(B,C){return false}function ckspell(Q,j){Q=unV(Q);var d="UOU,IEU".split(","),N,e=true,C="UU,UOU,UOI,IEU,AO,IA,AI,AY,AU,AO".split(","),o="YEU",r,x,v;var u=true,AB="UE,UYE,IU,EU,UY".split(","),I="AY,AU".split(","),s="UA",U=-1,n="IAO";var L=up(Q),y=L,M=false,q="IO",AA="OE,OO,AO,EO,IA,AI".split(","),m="OA";var P="AA,AE,EE,OU,YY,YI,IY,EY,EA,EI,II,IO,YO,YA,OOO".split(","),V=up(j),H,B=unV2(L);var G="B,C,D,G,H,K,L,M,N,P,Q,R,S,T,V,X".split(","),c="CH,GI,KH,NGH,GH,NG,NH,PH,QU,TH,TR".split(",");var K="CH,NG,NH".split(","),f="C,P,T,CH".split(","),T="C,M,N,P,T".split(",");var W="O,U,IE,Ô,Ơ,Ư,IÊ,Ă,Â,UYE,UYÊ,UO,ƯƠ,ƯO,UƠ,UA,ƯA,OĂ,OE,OÊ".split(","),p="UU,UOU".split(",");if(FRX.indexOf(V)>=0){for(x=0;x<f.length;x++){if(L.substr(L.length-f[x].length,f[x].length)==f[x]){return true}}}for(x=0;x<L.length;x++){if("FJZW1234567890".indexOf(L.substr(x,1))>=0){return true}for(v=0;v<P.length;v++){if(B.substr(x,P[v].length)==P[v]){for(N=0;N<d.length;N++){if(B.indexOf(d[N])>=0){e=false}}if((e)&&((q.indexOf(P[v])<0)||(x<=0)||(B.substr(x-1,1)!="G"))){return true}}}}for(v=0;v<c.length;v++){if(y.indexOf(c[v])==0){y=y.substr(c[v].length);M=true;U=v;break}}if(!M){for(v=0;v<G.length;v++){if(y.indexOf(G[v])==0){y=y.substr(1);break}}}M=false;H=y;for(v=0;v<K.length;v++){if(y.substr(y.length-K[v].length)==K[v]){y=y.substr(0,y.length-K[v].length);if(v==2){for(N=0;N<W.length;N++){if(y==W[N]){return true}}if((V==trang)&&((y=="OA")||(y=="A"))){return true}}M=true;break}}if(!M){for(v=0;v<T.length;v++){if(y.substr(y.length-1)==T[v]){y=y.substr(0,y.length-1);break}}}if(y){for(x=0;x<c.length;x++){for(v=0;v<y.length;v++){if(y.substr(v,c[x].length)==c[x]){return true}}}for(x=0;x<G.length;x++){if(y.indexOf(G[x])>=0){return true}}}r=y.substr(0,1);if((U==3)&&((r=="A")||(r=="O")||(r=="U")||(r=="Y"))){return true}if((U==5)&&((r=="E")||(r=="I")||(r=="Y"))){return true}B=unV2(y);if(B==n){return true}if(y!=H){for(N=0;N<C.length;N++){if(B==C[N]){return true}}}if((y!=L)&&(B==o)){return true}if(V!=moc){for(N=0;N<p.length;N++){if(y==p[N]){return true}}}if((B.indexOf("UYE")>0)&&(V=="E")){u=false}if((them.indexOf(V)>=0)&&(u)){for(x=0;x<AA.length;x++){if(B.indexOf(AA[x])>=0){return true}}if(V!=trang){if(B==m){return true}}if((V==trang)&&(trang!="W")){if(B==s){return true}}if(V==moc){for(x=0;x<AB.length;x++){if(B==AB[x]){return true}}}if((V==moc)||(V==trang)){for(x=0;x<I.length;x++){if(B==I[x]){return true}}}}tw5=y;if((B.charCodeAt(0)==272)||(B.charCodeAt(0)==273)){if(B.length>4){return true}}else{if(B.length>3){return true}}return false}function DAWEOF(M,G){var H=new Array(),I=new Array(A,moc,trang,E,O),L,C;H[0]=g;var B=new Array(aA,mocA,trangA,eA,oA),K=new Array(arA,mocrA,arA,erA,orA);for(C=0;C<I.length;C++){if(G==I[C]){for(L=0;L<B[C].length;L++){if(M==B[C][L]){H[1]=K[C][L]}}}}if(H[1]){return H}else{return false}}function findC(Q,f,p){if(((method==3)||(method==4))&&(Q.substr(Q.length-1,1)=="\\")){return new Array(1,f.charCodeAt(0))}var d="",r,a="",B="",C="",H=new Array(),V="ÂĂÊÔƠƯêâăơôư",n=0,e=false,N=up(Q),q;var T=aA.join()+eA.join()+mocA.join()+trangA.join()+oA.join()+english;T=up(T);for(g=0;g<p.length;g++){if(nan(p[g])){d+=p[g]}else{d+=fcc(p[g])}}var W=up(f),j=Q.length,m=repSign(f),P=up(unV2(unV(Q))),M="ƯA,ƯU".split(",");if(DAWEO.indexOf(W)>=0){if(W==moc){if((P.indexOf("UU")>=0)&&(tw5!=M[1])){if(P.indexOf("UU")==(Q.length-2)){r=2}else{return false}}else{if(P.indexOf("UOU")>=0){if(P.indexOf("UOU")==(Q.length-3)){r=2}else{return false}}}}if(!r){for(g=1;g<=Q.length;g++){a=Q.substr(Q.length-g,1);B=up(Q.substr(Q.length-g-1,1));uc=up(a);for(h=0;h<M.length;h++){if((tw5==M[h])&&(tw5==unV(B+uc))){e=true}}if(e){e=false;continue}if(d.indexOf(uc)>=0){if(((W==moc)&&(unV(uc)=="U")&&(up(unV(Q.substr(Q.length-g+1,1)))=="A"))||((W==trang)&&(unV(uc)=="A")&&(unV(B)=="U"))){if(unV(uc)=="U"){q=1}else{q=2}ccc=up(Q.substr(Q.length-g-q,1));if(ccc!="Q"){r=g+q-1}else{if(W==trang){r=g}else{if(moc!=trang){return false}}}}else{r=g}if((!whit)||(N.indexOf("Ư")<0)||(N.indexOf("W")<0)){break}}else{if(T.indexOf(uc)>=0){if(W==D){if(a=="đ"){r=new Array(g,"d")}else{if(a=="Đ"){r=new Array(g,"D")}}}else{r=DAWEOF(a,W)}if(r){break}}}}}}if((W!=Z)&&(DAWEO.indexOf(W)<0)){var L=retKC(W);for(g=0;g<L.length;g++){C+=fcc(L[g])}}for(g=1;g<=Q.length;g++){if(DAWEO.indexOf(W)<0){a=up(Q.substr(Q.length-g,1));B=up(Q.substr(Q.length-g-1,1));if(d.indexOf(a)>=0){if(a=="U"){if(B!="Q"){n++;H[H.length]=g}}else{if(a=="I"){if((B!="G")||(n<=0)){n++;H[H.length]=g}}else{n++;H[H.length]=g}}}else{if(W!=Z){for(h=0;h<m.length;h++){if(m[h]==Q.charCodeAt(Q.length-g)){if(spellerr(Q,f)){return false}return new Array(g,L[h%24])}}for(h=0;h<L.length;h++){if(L[h]==Q.charCodeAt(Q.length-g)){return new Array(g,fcc(skey[h]))}}}}}}if((W!=Z)&&(typeof(r)!="object")){if(spellerr(Q,f)){return false}}if(DAWEO.indexOf(W)<0){for(g=1;g<=Q.length;g++){if((W!=Z)&&(V.indexOf(Q.substr(Q.length-g,1))>=0)){return g}else{if(C.indexOf(Q.substr(Q.length-g,1))>=0){for(h=0;h<L.length;h++){if(Q.substr(Q.length-g,1).charCodeAt(0)==L[h]){return new Array(g,fcc(skey[h]))}}}}}}if(r){return r}if((n==1)||(W==Z)){return H[0]}else{if(n==2){var U=2;if(Q.substr(Q.length-1)==" "){U=3}var K=up(Q.substr(Q.length-U,2));if((dauCu==0)&&((K=="UY")||(K=="OA")||(K=="OE"))){return H[0]}var b=0,I,G="BCD"+fcc(272)+"GHKLMNPQRSTVX",o="CH,GI,KH,NGH,GH,NG,NH,PH,QU,TH,TR".split(",");for(h=1;h<=Q.length;h++){I=false;for(g=0;g<o.length;g++){if(up(Q.substr(Q.length-h-o[g].length+1,o[g].length)).indexOf(o[g])>=0){b++;I=true;if(o[g]!="NGH"){h++}else{h+=2}}}if(!I){if(G.indexOf(up(Q.substr(Q.length-h,1)))>=0){b++}else{break}}}if((b==1)||(b==2)){return H[0]}else{return H[1]}}else{if(n==3){return H[1]}else{return false}}}}function unV(G){var H=repSign(null),B,C;for(C=1;C<=G.length;C++){for(B=0;B<H.length;B++){if(H[B]==G.charCodeAt(G.length-C)){G=G.substr(0,G.length-C)+fcc(skey[B%24])+G.substr(G.length-C+1)}}}return G}function unV2(G){var C,B;for(C=1;C<=G.length;C++){for(B=0;B<skey.length;B++){if(skey[B]==G.charCodeAt(G.length-C)){G=G.substr(0,G.length-C)+skey2[B]+G.substr(G.length-C+1)}}}return G}function repSign(G){var I=new Array(),H=new Array(),C,B;for(C=0;C<5;C++){if((G==null)||(SFJRX.substr(C,1)!=up(G))){I=retKC(SFJRX.substr(C,1));for(B=0;B<I.length;B++){H[H.length]=I[B]}}}return H}function sr(B,C,G){var H=getSF();pos=findC(B,C,H);if(pos){if(pos[1]){if(!is_ie){replaceChar(oc,G-pos[0],pos[1])}else{return ie_replaceChar(B,pos[0],pos[1])}}else{var I=retUni(B,C,pos);if(!is_ie){replaceChar(oc,G-pos,I)}else{return ie_replaceChar(B,pos,I)}}}return false}function retUni(G,H,M){var I=retKC(up(H)),C,K,L=G.charCodeAt(G.length-M),B;for(B=0;B<skey.length;B++){if(skey[B]==L){if(B<12){K=B;C=B+12}else{K=B-12;C=B}t=fcc(L);if(t!=up(t)){return I[K]}return I[C]}}}function replaceChar(C,M,L){var K=false;if(!nan(L)){var I=fcc(L),H=up(unV(fcc(L)));changed=true}else{var I=L;if((up(L)=="O")&&(whit)){K=true}}if(!C.data){var G=C.selectionStart,N=C.scrollTop;if((up(C.value.substr(M-1,1))=="U")&&(M<G-1)&&(up(C.value.substr(M-2,1))!="Q")){if((H=="Ơ")||(K)){if(C.value.substr(M-1,1)=="u"){var B=fcc(432)}else{var B=fcc(431)}}if(K){changed=true;if(L=="o"){I="ơ"}else{I="Ơ"}}}C.value=C.value.substr(0,M)+I+C.value.substr(M+1);if(B){C.value=C.value.substr(0,M-1)+B+C.value.substr(M)}C.setSelectionRange(G,G);C.scrollTop=N}else{if((up(C.data.substr(M-1,1))=="U")&&(M<C.pos-1)){if((H=="Ơ")||(K)){if(C.data.substr(M-1,1)=="u"){var B=fcc(432)}else{var B=fcc(431)}}if(K){changed=true;if(L=="o"){I="ơ"}else{I="Ơ"}}}C.deleteData(M,1);C.insertData(M,I);if(B){C.deleteData(M-1,1);C.insertData(M-1,B)}}if(whit){whit=false}}function retKC(B){if(B==S){return new Array(225,7845,7855,233,7871,237,243,7889,7899,250,7913,253,193,7844,7854,201,7870,205,211,7888,7898,218,7912,221)}if(B==F){return new Array(224,7847,7857,232,7873,236,242,7891,7901,249,7915,7923,192,7846,7856,200,7872,204,210,7890,7900,217,7914,7922)}if(B==J){return new Array(7841,7853,7863,7865,7879,7883,7885,7897,7907,7909,7921,7925,7840,7852,7862,7864,7878,7882,7884,7896,7906,7908,7920,7924)}if(B==R){return new Array(7843,7849,7859,7867,7875,7881,7887,7893,7903,7911,7917,7927,7842,7848,7858,7866,7874,7880,7886,7892,7902,7910,7916,7926)}if(B==X){return new Array(227,7851,7861,7869,7877,297,245,7895,7905,361,7919,7929,195,7850,7860,7868,7876,296,213,7894,7904,360,7918,7928)}}function getEL(B){return document.getElementById(B)}function getSF(){var C=new Array(),B;for(B=0;B<skey.length;B++){C[C.length]=fcc(skey[B])}return C}function statusMessage(){var B="Kiểu gõ: ";if(on_off==0){B+="Tắt"}else{if(method==1){B+="TELEX"}else{if(method==2){B+="VNI"}else{if(method==3){B+="VIQR"}else{if(method==4){B+="VIQR*"}else{if(method==0){B+="Tự động"}}}}}}if(isKHTML){B+=" [Alt-F9]"}else{B+=" [F9]"}B+=" | Chính tả: ";B+=(dockspell==0)?"Tắt":"Bật";if(isKHTML){B+=" [Alt-F8]"}else{B+=" [F8]"}B+=" | Bỏ dấu: ";B+=(dauCu==1)?"Cũ":"Mới";if(isKHTML){B+=" [Alt-F7]"}else{B+=" [F7]"}B+=" | Bật/Tắt [F12] - AVIM 20071006";window.status=B}function updateInfo(){setCookie();if(support){statusMessage()}}function setMethod(B){if(B==-1){on_off=0;if(getEL(radioID[5])){getEL(radioID[5]).checked=true}}else{on_off=1;method=B;if(getEL(radioID[B])){getEL(radioID[B]).checked=true}}setSpell(dockspell);setDauCu(dauCu);updateInfo()}function setDauCu(B){if(typeof(B)=="number"){dauCu=B;if(getEL(radioID[7])){getEL(radioID[7]).checked=B}}else{dauCu=(B.checked)?1:0}updateInfo()}function setSpell(B){if(typeof(B)=="number"){spellerr=(B==1)?ckspell:nospell;if(getEL(radioID[6])){getEL(radioID[6]).checked=B}}else{if(B.checked){spellerr=ckspell;dockspell=1}else{spellerr=nospell;dockspell=0}}updateInfo()}function onKeyDown(C){if(C=="iframe"){frame=findF();var B=frame.event.keyCode}else{var B=(!is_ie)?C.which:window.event.keyCode}if((B==120)||(B==123)||(B==119)||(B==118)){if(B==120){on_off=1;setMethod(((method==4)?0:++method))}else{if(B==118){setDauCu(((dauCu==1)?0:1))}else{if(B==119){dockspell=(dockspell==0)?1:0;setSpell(dockspell)}else{if(B==123){on_off=(on_off==0)?1:0;if(on_off==0){setMethod(-1)}else{setMethod(method)}}}}}updateInfo()}}function ifInit(B){var C=B.getSelection();range=C?C.getRangeAt(0):document.createRange()}function ifMoz(I){var H=I.which,B=I.target.parentNode.wi;if(typeof(B)=="undefined"){B=I.target.parentNode.parentNode.wi}if((I.ctrlKey)||((I.altKey)&&(H!=92)&&(H!=126))){return}ifInit(B);var G=range.endContainer,C;sk=fcc(H);saveStr="";if(checkCode(H)||(!range.startOffset)||(typeof(G.data)=="undefined")){return}G.sel=false;if(G.data){saveStr=G.data.substr(range.endOffset);if(range.startOffset!=range.endOffset){G.sel=true}G.deleteData(range.startOffset,G.data.length)}range.setEnd(G,range.endOffset);range.setStart(G,0);if(!G.data){return}G.value=G.data;G.pos=G.data.length;G.which=H;start(G,I);G.insertData(G.data.length,saveStr);C=G.data.length-saveStr.length+kl;range.setEnd(G,C);range.setStart(G,C);kl=0;if(specialChange){specialChange=false;changed=false;G.deleteData(G.pos-1,1)}if(changed){changed=false;I.preventDefault()}}function FKeyPress(){var B=findF();sk=fcc(B.event.keyCode);if(checkCode(B.event.keyCode)||((B.event.ctrlKey)&&(B.event.keyCode!=92)&&(B.event.keyCode!=126))){return}start(B,fcc(B.event.keyCode));if(changed){changed=false;return false}}function checkCode(B){if(((on_off==0)||((B<45)&&(B!=42)&&(B!=32)&&(B!=39)&&(B!=40)&&(B!=43))||(B==145)||(B==255))){return true}return false}function fcc(B){return String.fromCharCode(B)}if(useCookie==1){setCookie=doSetCookie;getCookie=doGetCookie}else{setCookie=noCookie;getCookie=noCookie}function noCookie(){}function doSetCookie(){var C=new Date(11245711156480).toGMTString(),B=";expires="+C;document.cookie="AVIM_on_off="+on_off+B;document.cookie="AVIM_method="+method+B;document.cookie="AVIM_ckspell="+dockspell+B;document.cookie="AVIM_daucu="+dauCu+B}function doGetCookie(){var B=document.cookie,G=/AVIM_method/.test(B);if((!G)||(B.indexOf("AVIM_ckspell")<0)){setCookie();return}var I,H=B.split(";");for(var C=0;C<H.length;C++){I=H[C].split("=");I[0]=I[0].replace(/^\s+/g,"");I[1]=parseInt(I[1]);if(I[0]=="AVIM_on_off"){on_off=I[1]}else{if(I[0]=="AVIM_method"){method=I[1]}else{if(I[0]=="AVIM_ckspell"){if(I[1]==0){dockspell=0;spellerr=nospell}else{dockspell=1;spellerr=ckspell}}else{if(I[0]=="AVIM_daucu"){dauCu=parseInt(I[1])}}}}}}if(!is_ie){if(agt.indexOf("opera")>=0){operaV=agt.split(" ");operaVersion=parseInt(operaV[operaV.length-1]);if(operaVersion>=8){is_opera=true}else{operaV=operaV[0].split("/");operaVersion=parseInt(operaV[1]);if(operaVersion>=8){is_opera=true}}}else{if(agt.indexOf("khtml")>=0){isKHTML=true}else{ver=agt.substr(agt.indexOf("rv:")+3);ver=parseFloat(ver.substr(0,ver.indexOf(" ")));if(agt.indexOf("mozilla")<0){ver=0}}}}function up(B){B=B.toUpperCase();if(isKHTML){str="êôơâăưếốớấắứềồờầằừễỗỡẫẵữệộợậặự",rep="ÊÔƠÂĂƯẾỐỚẤẮỨỀỒỜẦẰỪỄỖỠẪẴỮỆỘỢẶỰ";for(z=0;z<B.length;z++){io=str.indexOf(B.substr(z,1));if(io>=0){B=B.substr(0,z)+rep.substr(io,1)+B.substr(z+1)}}}return B}function findIgnore(B){for(i=0;i<va.length;i++){if((B.id==va[i])&&(va[i].length>0)){return true}}}if((is_ie)||(ver>=1.3)||(is_opera)||(isKHTML)){getCookie();if(on_off==0){setMethod(-1)}else{setMethod(method)}setSpell(dockspell);setDauCu(dauCu);statusMessage()}else{support=false}function onKeyPress(G){if(!support){return}if(!is_ie){var B=G.target,C=G.which;if(G.ctrlKey){return}if((G.altKey)&&(C!=92)&&(C!=126)){return}}else{var B=window.event.srcElement,C=window.event.keyCode;if((event.ctrlKey)&&(C!=92)&&(C!=126)){return}}if(((B.type!="textarea")&&(B.type!="text"))||checkCode(C)){return}sk=fcc(C);if(findIgnore(B)){return}if(!is_ie){start(B,G)}else{start(B,sk)}if(changed){changed=false;if(!is_ie){G.preventDefault()}else{return false}}}function attachEvt(H,B,G,C){if(is_ie){H.attachEvent("on"+B,G)}else{H.addEventListener(B,G,C)}}attachEvt(document,"keydown",onKeyDown,false);attachEvt(document,"keypress",onKeyPress,false);function findF(){for(g=0;g<fID.length;g++){if(findIgnore(fID[g])){return}frame=fID[g];if(typeof(frame)!="undefined"){try{if((frame.contentWindow.document)&&(frame.contentWindow.event)){return frame.contentWindow}}catch(B){if((frame.document)&&(frame.event)){return frame}}}}}function onKeyDownI(){onKeyDown("iframe")}function init(){var H=false;if((support)&&(!isKHTML)){if(is_opera){if(operaVersion<9){return}}for(g=0;g<fID.length;g++){if(findIgnore(fID[g])){continue}if(is_ie){var G;try{frame=fID[g];if(typeof(frame)!="undefined"){if(frame.contentWindow.document){G=frame.contentWindow.document}else{if(frame.document){G=frame.document}}}if((G)&&((up(G.designMode)=="ON")||(G.body.contentEditable))){for(l=0;l<attached.length;l++){if(G==attached[l]){H=true;break}}if(!H){attached[attached.length]=G;attachEvt(G,"keydown",onKeyDownI,false);attachEvt(G,"keypress",FKeyPress,false)}else{H=false}}}catch(C){}}else{var B;try{wi=fID[g].contentWindow;B=wi.document;B.wi=wi;if((B)&&(up(B.designMode)=="ON")){attachEvt(B,"keypress",ifMoz,false);attachEvt(B,"keydown",onKeyDown,true)}}catch(C){}}}}}function uglyF(){ugly=50;while(ugly<5000){setTimeout("init()",ugly);ugly+=50}}uglyF();attachEvt(document,"mousedown",uglyF,false);var offsetfromcursorX=12;var offsetfromcursorY=10;var offsetdivfrompointerX=10;var offsetdivfrompointerY=14;var ie=document.all;var ns6=document.getElementById&&!document.all;var enabletip=false;if(ie||ns6){var tipobj=document.all?document.all.dhtmltooltip:document.getElementById?document.getElementById("dhtmltooltip"):""}function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function showtipbydiv(C,B){showtip(document.getElementById(C).innerHTML,B)}function showtip(C,B,G){if(ns6||ie){if(typeof B!="undefined"){tipobj.style.width=B+"px"}if(typeof G!="undefined"&&G!=""){tipobj.style.backgroundColor=G}tipobj.innerHTML=C;enabletip=true;return false}}function positiontip(M){if(enabletip){var G=false;var H=(ns6)?M.pageX:event.clientX+ietruebody().scrollLeft;var C=(ns6)?M.pageY:event.clientY+ietruebody().scrollTop;var L=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;var B=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;var K=ie&&!window.opera?L-event.clientX-offsetfromcursorX:L-M.clientX-offsetfromcursorX;var I=ie&&!window.opera?B-event.clientY-offsetfromcursorY:B-M.clientY-offsetfromcursorY;var N=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000;if(K<tipobj.offsetWidth){tipobj.style.left=H-tipobj.offsetWidth+"px";G=true}else{if(H<N){tipobj.style.left="5px"}else{tipobj.style.left=H+offsetfromcursorX-offsetdivfrompointerX+"px"}}if(I<tipobj.offsetHeight){tipobj.style.top=C-tipobj.offsetHeight-offsetfromcursorY+"px";G=true}else{tipobj.style.top=C+offsetfromcursorY+offsetdivfrompointerY+"px"}tipobj.style.visibility="visible"}}function hidetip(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}document.onmousemove=positiontip;var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();c_styles={};c_menus={};c_hideTimeout=250;c_subShowTimeout=0;c_keepHighlighted=true;c_findCURRENT=false;c_findCURRENTTree=true;c_overlapControlsInIE=true;c_rightToLeft=false;c_imagesPath="img/";c_styles.MM=[[0,"solid","#8F90C4",0,"transparent","",""],[0,"solid","solid","#FFF5C6","#4d4c76",4,"transparent","transparent","#c01e54","#c01e54","12px","Times New Roman","normal","none","none","left",1,"dotted","#CBCBEF",0,false,"[h_arrow.gif]","[h_arrow_over.gif]",7,4,"10","solid","#FFF5C6","transparent","black","none","[h_arrow.gif]","solid","#CBCBEF","#FFFBF0","#252455","none","[h_arrow.gif]","","","",""]];c_styles.SM=[[1,"solid","#4D4C76",3,"#FFF5C6","",""],[1,"solid","solid","#FFF5C6","#4D4C76",3,"#FFF5C6","#FFF5C6","#252455","#000000","12px","verdana,arial,helvetica,sans-serif","normal","none","none","left",0,"solid","#CBCBEF",2,true,"[v_arrow.gif]","[v_arrow_over.gif]",7,7,"7","solid","#FFF5C6","#FFF5C6","#252455","none","[v_arrow.gif]","solid","#CBCBEF","#FFFBF0","#252455","none","[v_arrow.gif]","","","",""]];c_menus.Menu1=[["horizontal","relative","200px","0px",false,false,0,0,"10em","MM",false],[5,1,"auto","100","300","SM",false]];c_d=document;c_u="undefined";c_n=navigator;c_w=window;c_a=c_n.userAgent.toLowerCase();c_dl=c_d.getElementsByTagName&&c_d.createElement?1:0;c_qM=c_d.compatMode!="CSS1Compat";c_mC=/mac/.test(c_a);c_iE=c_dl&&!c_w.innerWidth&&/msie/.test(c_a);c_iEM=c_mC&&c_iE;c_iEMo=c_iEM&&/msie 5\.0/.test(c_a);c_iEMn=c_iEM&&/msie 6/.test(c_a);c_iE7=c_iE&&typeof XMLHttpRequest!=c_u&&!c_qM;c_iEW=c_iE&&!c_mC;c_iEWo=c_iEW&&!c_iE7;c_iEW5=c_iEWo&&!c_d.createEventObject?1:0;c_iEW5x=c_iEWo&&!c_d.compatMode?1:0;c_oPv=/opera/.test(c_a)?parseFloat(c_a.replace(/.*opera[ \/]/,"")):0;c_oP=c_oPv>=5;c_oP7=c_oPv>=7;c_oP7m=c_oP&&!c_oP7;c_oPo2=c_oP7&&c_oPv<7.2;c_oP9=c_oPv>=9;c_kNv=/konqueror/.test(c_a)?parseFloat(c_a.replace(/.*eror\//,"")):0;c_kN=c_kNv>=3.2;c_kN4=c_kNv>=4;c_sFv=/webkit/.test(c_a)?parseFloat(c_a.replace(/.*bkit\//,"")):0;c_sF=c_sFv>0;c_sF3=c_sFv>=420;c_iC=/icab/.test(c_a);c_gC=c_n.product=="Gecko"&&!c_sF&&!c_kN;c_pS=c_n.productSub;c_gCo=c_gC&&c_pS<20031007;c_gC13=c_gC&&c_pS>=20030312;c_nS=!c_iE&&(!c_kN||c_kN4)&&(!c_sF||c_sFv<125||c_sF3);c_oM=(c_iEWo||c_oP7&&!c_oP9||c_iEMn)&&c_qM||c_iEM&&!c_iEMn&&(!c_d.doctype||!/\.dtd/.test(c_d.doctype.name));c_dE=c_d.documentElement||"";c_dV=c_d.defaultView;c_x=/xml/i.test(c_d.contentType);c_r=typeof c_rightToLeft!=c_u?c_rightToLeft:0;c_=["",""];c_h=c_s=c_T=c_M=0;c_c=null;c_o=[""];c_O=[""];c_S=[""];c_I={};c_F=c_overlapControlsInIE?[c_iEW&&!c_iEW5?1:0,c_iEW5?1:0]:[0,0];c_iA=[""];function c_gO(B){return c_d.getElementById(B)}function c_gT(C,B){return C.getElementsByTagName(B)}function c_nN(B){return B.nodeName.replace(/.*:/,"").toUpperCase()}function c_cE(B,C){var G=C.namespaceURI;return G?c_d.createElementNS(G,B):c_d.createElement(B)}function c_gA(C){var B=C.firstChild;while(B){if(c_nN(B)=="A"){return B}B=B.nextSibling}return c_gT(C,"a")[0]}function c_gL(B){B=B.parentNode;while(c_nN(B)!="LI"){B=B.parentNode}return B}function c_sC(B,G){var C=B.className;B.className=C?C.indexOf(G)<0?C+" "+G:C:G}function c_aE(G,C,B){if(typeof G[C]!="function"){G[C]=B}else{if(G[C]!=B&&G[C]!=c_fE){G["O"+C]=G[C];G["N"+C]=B;G[C]=c_fE}}}function c_fE(C){if(!C){C=event}var B=C.type;this["Oon"+B](C);this["Non"+B](C)}function c_cT(B,C){while(C){if(C==B){return 1}C=C.parentNode}return 0}function c_cI(G,C){var B="background-image:",H="background-color:";if(!C){C=";"}if(G.charAt(0)=="["){G=c_imagesPath+G.substring(1,G.length-1);if(!c_I[G]){c_I[G]=new Image;c_I[G].src=G}return B+"url("+G+")"+C+H+"transparent"+C}return B+"none"+C+H+G+C}function c_fC(B){var I,N,G,M,C,L,P,K;M=/(index|default)\.[^#\?]*/i;C=/#.*/;L=location.href.replace(M,"");G=c_gT(B,"a");for(K=0;K<G.length;K++){N=G[K];P=N.href.replace(M,"");if(P!="javascript:;"&&(P==L||P==L.replace(C,""))){c_sC(N,"CURRENT");if(c_findCURRENTTree){I=c_gL(N).parentNode.parentNode;while(c_nN(I)=="LI"){c_sC(c_gA(I),"CURRENT");I=I.parentNode.parentNode}}}}}function c_hS(){if(c_h){return}var B,C=c_gT(c_d,"select");for(B=0;B<C.length;B++){C[B].VS=C[B].currentStyle.visibility;C[B].style.visibility="hidden"}c_h=1}function c_sS(){if(!c_h){return}var B,C=c_gT(c_d,"select");for(B=0;B<C.length;B++){C[B].style.visibility=C[B].VS}c_h=0}function c_iF(G,C,I,B,K){if(!G.IF){G.IF=c_iA.length}var H=G.IF;c_iA[H]=c_cE("<iframe src=javascript:0 tabindex=-9 style=position:absolute;z-index:9000;width:"+C+"px;height:"+I+"px;left:"+B+"px;top:"+K+"px;filter:alpha(opacity=0)>","");G.parentNode.insertBefore(c_iA[H],G)}function c_hI(B){var C=c_iA[B].removeNode(1)}function c_pA(G,L,K,I,B){var H,N,M=Y=-L[0];H=G.firstChild;if(c_iEW&&I||c_iEM){M=B&&I?K?c_iEWo&&!c_iEW5&&!c_r?-L[0]-L[5]*2-L[23]:0:L[16]>0&&!/NOSEPA/.test(c_gL(G).className)?L[18]=="transparent"?L[16]+L[19]*2:L[19]:0:0;Y=0}N="top:"+(Y+parseInt(L[25]=="middle"?(G.offsetHeight-L[24])/2:L[25]))+"px;"+(K?"left":"right")+":"+(M+L[0]+L[5])+"px;";c_iE?H.style.cssText=N:H.setAttribute("style",N);H.style.display="block";if(c_iEM){Y=H.offsetWidth}}function c_fW(U){var I,Q,K,T=0,H,B=c_styles[U.className][0],L=c_menus[U.MM][1],N=B[0]*2+B[3]*2,G,P;G=parseInt(L[3])||0;P=parseInt(L[4])||0;I=U.firstChild;while(I){if(c_nN(I)=="LI"){Q=c_gA(I);K=Q.style;if(U.AW==1){if(c_iEW5x){Q.innerHTML="<nobr>"+Q.innerHTML+"</nobr>"}H=Q.offsetWidth;if(T<H){T=H}if(c_iEW5x){Q.innerHTML=Q.firstChild.innerHTML}}if(!c_iEW5x){K.whiteSpace="normal";K.display="block"}}I=I.nextSibling}if(U.AW==1){T+=N;if(T<G){T=G}if(P&&T>P){T=P}U.style.width=T-(!c_oM?N:0)+"px"}}function c_fA(G){var H=c_styles[G.className][1];if(H[20]){var B=G.firstChild;while(B){if(B.SH){c_pA(c_gA(B),H,G.RL,G.HR)}B=B.nextSibling}}G.FM=1}function c_iL(G){var C,B,H,I;H=G.LV==1;I=c_menus[G.MM][H?0:1][H?10:6];C=G.firstChild;while(C){if(c_nN(C)=="LI"){B=c_gA(C);if(H&&!G.PP){B.VU=1}c_aE(B,"onfocus",c_oF);c_aE(B,"onblur",c_oB);c_aE(B,"onmousedown",c_oD);if(I){B.OC=1;c_aE(B,"onclick",c_oC)}c_aE(B,"onmouseover",c_oV);c_aE(B,"onmouseout",c_oU);if(B.className&&/NOLINK/.test(B.className)){B.href="javascript:;"}}C=C.nextSibling}if(!H||!G.HR||!c_r){c_sC(c_gL(B),"NOSEPARATOR")}}function c_oD(){this.MD=1}function c_oB(){if(!this.MD){c_mU()}this.MD=0}function c_oF(){c_mV();c_c=this;c_sM(1)}function c_oC(){c_c=this;if(!c_gL(c_c).SH){return}c_sM(1);if(c_c.blur){c_c.blur()}return false}function c_oV(B){if(!B){B=event}if(this.VU){c_mV()}if(c_cT(this,B.relatedTarget||B.fromElement)&&(!c_oP||B.offsetX!=0||B.offsetY!=0)){return}if(c_s){clearTimeout(c_s);c_s=0}c_c=this;c_s=setTimeout("c_sM()",c_subShowTimeout)}function c_oU(B){if(!B){B=event}if(this.VU){c_mU()}if(c_cT(this,B.relatedTarget||B.toElement)){return}if(this.blur){this.blur()}if(c_s){clearTimeout(c_s);c_s=0}}function c_mV(){clearTimeout(c_T)}function c_mU(){clearTimeout(c_T);c_T=setTimeout("c_hD()",c_hideTimeout)}function c_hM(G,C){var B=G.style;B.display="none";B.visibility="hidden";if(C){G.parentNode.style.zIndex=1}if(c_F[0]&&G.IF){c_hI(G.IF)}}function c_hD(){var B,C;if(c_s){clearTimeout(c_s);c_s=0}for(B=c_S.length-1;B>0;B--){C=c_S[B];if(B!=1||C.PP){c_hM(C,(B!=1&&(c_iE||c_gCo)))}C=c_O[B];if(C&&c_keepHighlighted){C.className=C.CN}}c_S=[""];c_O=[""];c_c=null;if(c_F[1]){c_sS()}}function c_rL(){if(c_iEW&&!c_iEW5){var B=c_dB;while(B){if(B.dir=="rtl"||B.currentStyle&&B.currentStyle.direction=="rtl"){return 1}B=B.parentNode}}return 0}function c_cA(C,B){var G={x:0,y:0};while(C&&(!B||C!=c_dB)){G.x+=C.offsetLeft;G.y+=C.offsetTop;C=C.offsetParent}return G}function c_gW(){var N,L,M,P,I,Q="clientWidth",K="clientHeight",H,G,C;L=c_gC?15:0;M=c_dE[K];P=c_dB[K];I=c_w.innerHeight;H={h:P,w:c_dB[Q]};G={h:M,w:c_dE[Q]};C=c_qM?c_dB:c_dE;N=!I?c_qM?H:G:M&&P&&(!c_kN||c_kN4)&&(!c_sF||c_sF3)?M>P?M>I?H:G:P>I?G:H:P&&c_gC?H:{h:I-L,w:innerWidth-L};N.x=c_w.pageXOffset||C.scrollLeft-(c_rL()?C.scrollWidth-N.w:0)||0;N.y=c_w.pageYOffset||C.scrollTop||0;return N}function c_kW(B,M,C,H,L,I,K){if(K){L.x=0;L.y=0}var G={y:0};if(I&&B<L.x||!I&&B+C>L.x+L.w){G.x=1}if(H<L.h&&M+H>L.y+L.h){G.y=L.y+L.h-H-M}else{if(H>=L.h||M<L.y){G.y=L.y-M}}return G}function c_pM(d){var T,Q,N,L,G,B,V,o,P,K,j,m,v,q,e,I,U,r,n,s;K=d.style;V=d.offsetWidth;o=d.offsetHeight;P=c_menus[d.MM];m=d.parentNode;j=m.parentNode;v=c_gA(m);q=d.LV==2;e=c_cA(m,c_sF&&!c_sF3&&P[0][1]!="relative");I=v.offsetWidth;U=v.offsetHeight;r=c_gW();N=q?P[0][6]:P[1][0];L=q?P[0][7]:P[1][1];if(q&&d.HR){T=d.RL?I-V-N:N;Q=d.BT?-o-L:U+L}else{T=d.RL?N-V:I-N;Q=d.BT?U-L-o:L}G=e.x+T;B=e.y+Q;if(c_gC&&c_pS>=20010801||c_iEW||c_oP&&!c_oP9||c_sF3||c_kN4){while(j.LV&&(j.LV>1||j.PP)){s=c_styles[j.className][0][0];G+=s;B+=s;if(c_gC13&&P[0][1]=="fixed"){break}j=j.parentNode.parentNode}}n=c_kW(G,B,V,o,r,d.RL,P[0][1]=="fixed"&&!c_iEWo&&!c_iEM&&(!c_gCo||c_gC13));if(n.x){T=q&&d.HR?d.RL?r.x-G+T:r.x+r.w-V-G+T:d.RL?I-N:N-V}Q+=n.y;K.right="auto";if(c_nS){K.left="auto";K.top="auto";K.marginLeft=T+"px";K.marginTop=Q-U+"px"}else{K.left=T+"px";K.top=Q+"px";if(c_F[0]){c_iF(d,V,o,T,Q)}if(c_F[1]){c_hS()}}}function c_sM(L){var M,G,P,C,I,N,H,K,B;M=c_c;if(!M){return}G=c_gL(M);if(c_dV&&c_dV.getComputedStyle&&c_dV.getComputedStyle(M,"").getPropertyValue("display")=="inline"||G.currentStyle&&G.currentStyle.listStyleType&&G.currentStyle.listStyleType!="none"){return}P=G.parentNode;N=P.LV;if(c_S.length>N+1&&c_S[N+1].style.display!="none"){H=c_o[N]!=M?N:N+1;for(K=c_S.length-1;K>H;){c_hM(c_S[K--])}}if(N==1){B=c_S[1];if(B&&B!=P&&B.PP){c_hM(B)}}if(c_keepHighlighted){for(K=N+1;K>=N;K--){B=c_O[K];if(B&&B.className.indexOf(c_gL(B).parentNode.className+"O")>-1&&(K>N||c_O[N]!=M)){B.className=B.CN}}}c_o[N]=M;c_S[N]=P;if(M.OC&&!L||!G.SH){return}C=c_gT(G,"ul")[0];I=C.style;if(I.display=="block"){return}if(c_keepHighlighted){M.CN=M.className||"";M.className=(M.CN?M.CN+" ":"")+P.className+"O"}if(c_iE||c_gCo){if(c_O[N]){c_gL(c_O[N]).style.zIndex=1}G.style.zIndex=10000}c_O[N]=M;c_S[N+1]=C;if(c_iEW5){c_nF(P)}if(!C.FM){I.display="none";I.visibility="hidden";I.overflow="visible";if(c_iEW){if(!c_iEW5){c_fL(C)}I.height="auto"}}I.display="block";if(!C.FM&&C.AW){c_fW(C)}c_pM(C);if(!C.FM){c_fA(C)}if(c_iEW5){c_nF(P,1)}if(c_oPo2||c_oP&&C.RL||c_kN4||c_sF3){I.display="none";K=C.offsetHeight;I.display="block"}c_sH(C)}function c_sH(B){var C=(!c_iEW5&&typeof B.filters!="unknown"&&(B.filters||"").length!=0&&typeof B.filters[0].apply!=c_u);if(C){B.filters[0].apply()}B.style.visibility="visible";if(C){B.filters[0].play()}}function c_fL(B){B=B.children;for(var C=0;C<B.length;){B[C++].style.styleFloat="left"}}function c_nF(B,C){B=c_gT(B,"li")[0];if(C){B.style.styleFloat=B.FT}else{B.FT=B.currentStyle.styleFloat;B.style.styleFloat="none"}}function c_iM(K,B){var d,c,k,P,Q,H,L,e,b,V,G,n,T="display:block;border:0;width:0;"+(c_oP?"max-":"")+"height:0;",f,W;d=c_menus[K][0];c=c_menus[K][1];B.MM=K;B.PP=d[1]=="popup";B.HR=d[0]=="horizontal"&&!B.PP;B.RL=d[4]||c_r;B.BT=d[5];if(c_iEM&&c_r&&B.HR){return}B.className=d[9];B.LV=1;P=c_gT(B,"ul");Q=[];for(b=0;b<P.length;){Q[b]=P[b++]}for(b=0;b<Q.length;){k=Q[b++];k.MM=K;k.PP=B.PP;k.HR=B.HR;k.RL=B.RL;k.BT=B.BT;k.AW=c[2]=="auto"?k.style.width?2:1:0;H=k.parentNode.parentNode;if(!k.className){k.className=H==B?c[5]:H.className}k.LV=2;while(H!=B){k.LV++;H=H.parentNode.parentNode}L=k.parentNode;L.SH=1;H=L.parentNode;G=c_styles[H.className][1];if(G[20]){e=c_gA(L);e.style[B.RL?"paddingLeft":"paddingRight"]=(G[5]*2+G[23])+"px";W=c_imagesPath+G[21].substring(1,G[21].length-1);if(c_iE){n='<span class="'+H.className+'S">'+(c_iEM||c_iEWo?"":'<img src="'+W+'" alt="+" style="'+T+'" />')+"</span>";if(c_iEM){n+=e.innerHTML;e.innerHTML="";e.innerHTML=n}else{e.insertAdjacentHTML("afterBegin",n)}}else{n=c_cE("span",e);n.className=H.className+"S";f=c_cE("img",n);f.src=c_oP7&&c_oPv<8?"":W;f.setAttribute("alt","+");f.setAttribute("style",T);n.appendChild(f);e.insertBefore(n,e.firstChild)}if(k.LV==2){c_pA(e,G,B.RL,B.HR,1)}}c_iL(k);k.onmouseover=c_mV;k.onmouseout=c_mU;if((c_iEWo||c_iEMn)&&B.HR){G=c_styles[k.className][1];n="border-width:0 0 "+(G[18]=="transparent"?0:G[16])+"px 0;padding:0 0 "+(G[16]>0?G[18]=="transparent"?G[19]*2+G[16]:G[19]:0)+"px 0;margin:0 0 "+(G[16]>0&&G[18]!="transparent"?G[19]:0)+"px 0;";for(V=0;V<k.children.length-1;){k.children[V++].runtimeStyle.cssText=n}}}c_iL(B);if(B.PP){B.onmouseover=c_mV;B.onmouseout=c_mU}if(c_iEW){B.style.backgroundImage="url(https://)"}if(c_findCURRENT){c_fC(B)}B.IN=2}function c_mN(){if(c_oP7m||c_kNv&&!c_kN||c_iC||c_iEMo||c_M){return}if(typeof c_L!=c_u){c_M=1}var B,K,I,H,G,L,C;for(B in c_menus){K=(c_iEM||c_gC&&c_pS<20040113&&c_x)&&!c_M?0:c_gO(B);if(!K){L=1}else{if(!K.IN){if(c_iEW){I=K.outerHTML||"";H=(I.match(/<UL/ig)||"").length;G=(I.match(/<\/UL/ig)||"").length}if(H&&H==G||K.nextSibling||c_M){C=K.lastChild;while(c_nN(C)!="LI"){C=C.previousSibling}if(c_gA(C).offsetHeight){if(typeof c_dB==c_u){c_dB=c_gT(c_d,"body")[0]}K.IN=1;c_iM(B,K)}else{L=1}}else{L=1}}}}if(L){setTimeout("c_mN()",100)}}function c_cS(){var AB=[],AI,w,AD,W,V,AC,AG,AA,AF,q,AE,AJ,U,j,d,K=c_r?"right":"left",v,o="/",n="*",u=o+n+n+o,k,B,b,I;v={b:"background-image:",d:"display:block;",f:"float:left;",g:"float:"+K+";",h:"* html>body ",i:" !important;",l:"float:none;",m:"margin:0",p:"padding:0",r:"margin-left:",s:"screen,projection",t:"transparent",w:"white-space:",x:"px 0 0;",y:":visited",z:">li{left:0;}",A:"position:absolute;",B:"background",C:" li a.CURRENT",D:"{position:fixed;}* html ul#",F:":first-child",H:"height:1%;",I:"display:inline;",N:" li a.NOROLL",R:"position:relative;",S:"position:static;",T:"text-decoration:",W:"width:100%;",X:"border-color:",Y:"border-style:",Z:"border-width:"};for(AI in c_styles){AB[AB.length]="."+AI}c_[0]+=AB.join(",")+","+AB.join(" li,")+" li{"+v.d+"list-style:none;"+v.p+";"+v.m+";line-height:normal;direction:ltr;}"+AB.join(" li,")+" li{"+v.R+v.B+":none;}"+AB.join(" a,")+" a{"+v.d+v.R+(c_r?"direction:rtl;":"")+"}"+v.h+AB.join(" a,"+v.h)+" a{"+v.S+"}* html "+AB.join(" li,* html ")+" li{"+v.I+v.W+"display"+u+":block;float"+u+":left;}*"+v.F+"+html "+AB.join(" li,*"+v.F+"+html ")+" li{"+v.W+v.f+"}"+v.h+AB.join(" li,"+v.h)+" li{"+v.d+"width:auto;}"+AB.join(" ul,")+" ul{display:none;"+v.A+"top:-9999px;width:11px;overflow:hidden;z-index:11111;}ul"+u+AB.join(" ul,ul"+u)+" ul{"+v.d+"}* html "+AB.join(" ul,* html ")+" ul{"+v.d+"}.NOSEPARATOR{"+v.Z+"0"+v.i+v.p+v.i+v.m+v.i+"}.NOLINK{cursor:default"+v.i+"}";for(AD in c_menus){W=c_menus[AD][0];V=c_menus[AD][1];w=c_styles[W[9]];AC=W[1]=="popup";AG=W[1]=="fixed";AA=W[1]=="relative";AF=W[0]=="horizontal";AJ=V[2]=="auto";U=W[5]&&!AC?"bottom":"top";j="#"+AD;if(!AC){w[3]=1}c_[0]+=j+"{"+(!AC?v.Z+"0;"+v.p+";"+v.B+"-color:"+v.t+";"+v.b+"none;":"")+"z-index:"+(AC?10900:9999)+";position:"+(AC?"absolute":AF&&AA?"static":W[1])+";height:auto;}"+j+" ul{"+(W[4]&&!AF||c_r?"right:0;":"left:-800px;")+"}"+(AG?"ul"+j+"{"+v.A+"}ul"+u+j+v.D+AD+"{"+v.A+"}ul"+u+j+" ul"+v.D+AD+" ul{"+v.A+"}":"");if(!c_gC){c_[1]+="ul"+j+" ul{"+v.A+"}"}c_[c_r?0:1]+="* html "+j+" a{"+(!AF||AC?v.H:c_r?v.S:"")+"}*"+v.F+"+html "+j+" a{"+(!AF||AC?"min-"+v.H:v.S)+"}"+(!AF||AC?v.h+j+" a{height:auto;}":"");if(!AF||AC){c_[0]+=j+"{"+U+":"+(AC?"-9999px":W[3])+";"+(W[4]&&!AC?"right":K)+":"+(AC?"0":W[2])+";width:"+W[8]+";}";if(AA){c_[0]+=v.h+j+">li{"+v.r+(W[4]?"":"-")+W[2]+v.i+v.W+"}"+v.h+j+">li"+v.F+"{"+v.r+"0"+v.i+"}"}}else{c_[0]+=j+"{"+U+":0;"+K+":0;"+v.W+(AA?"padding-"+U+":"+W[3]+";"+v.g:"margin-"+U+":"+W[3]+";")+"}"+j+" li{"+v.g+"width:auto;left:"+(c_r?"-":"")+W[2]+";}";w=w[1];if(w[16]>0){q=w[18]==v.t;d="li{"+v.Z+"0 "+(q?0:w[16])+v.x+v.p+" "+(q?w[19]*2+w[16]:w[19])+v.x+v.m+" "+(q?0:w[19])+v.x+"}";c_[0]+=j+">"+d+"@media "+v.s+"{* html "+j+" "+d+"}"}c_[0]+=j+" a{"+v.w+" "+u+"nowrap;}head"+v.F+"+body "+j+v.z+"*>*>html:lang(en),"+j+v.z+j+">li"+v.F+"{margin-"+K+":"+W[2]+v.i+"}"+j+">li>a{"+o+n+o+n+o+o+n+o+v.f+o+n+" "+n+o+"}"+v.h+j+">li>a{"+v.g+"}"+(AA?"* html "+j+"{"+v.l+"}":"")+v.h+j+">li{"+v.l+"}"+(c_r?"":"* html>bo\\64 y "+j+">li{"+v.g+"}");c_[1]+=j+" ul li{left:0;"+(c_iEW?v.W:"")+"}"}c_[0]+=j+" ul li{"+v.l+"}";c_[1]+=j+" ul a{"+(c_iEW?v.H:"")+(c_iEWo&&AF&&!AC&&!c_r?v.S:"")+(!c_iEWo&&AJ?c_iE7?"display:inline-block;":v.I:"")+v.w+(AJ&&!c_iEW5x?"nowrap":"normal")+";}"+j+" ul{"+(c_iEW?"overflow:scroll;height:11px;":"")+(AJ?"":"width:"+V[2]+";")+"}"+(c_nS?j+" li{"+v.S+"}":"")}for(AI in c_styles){AD=c_styles[AI][0];AE=c_styles[AI][1];j="."+AI;d=j+" li a";c_[c_styles[AI][3]?0:1]+=j+"{"+v.Z+AD[0]+"px;"+v.Y+AD[1]+";"+v.X+AD[2]+";padding:"+AD[3]+"px;"+c_cI(AD[4])+(AD[5]!=""?"filter:"+AD[5]+";":"")+(AD[6]+(AD[6]!=""&&AD[6].charAt(AD[6].length-1)!=";"?";":""))+"}"+j+" li{"+v.Y+AE[17]+";"+v.X+AE[18]+";"+v.Z+"0 0 "+(AE[18]==v.t?0:AE[16])+"px 0;"+v.p+" 0 "+(AE[16]>0?AE[18]==v.t?AE[19]*2+AE[16]:AE[19]:0)+"px 0;"+v.m+" 0 "+(AE[16]>0&&AE[18]!=v.t?AE[19]:0)+"px 0;}"+j+v.C+","+j+v.C+":link,"+j+v.C+v.y+"{"+v.Z+AE[0]+"px;"+v.Y+AE[32]+";"+v.X+AE[33]+";"+c_cI(AE[34])+"color:"+AE[35]+";"+v.T+AE[36]+";"+(AE[40]+(AE[40]!=""&&AE[40].charAt(AE[40].length-1)!=";"?";":""))+"}"+d+","+d+":link{cursor:pointer;"+v.Z+AE[0]+"px;"+v.Y+AE[1]+";"+v.X+AE[3]+";padding:"+AE[5]+"px;"+c_cI(AE[6])+"color:"+AE[8]+";font-size:"+AE[10]+";font-family:"+AE[11]+";font-weight:"+AE[12]+";"+v.T+AE[13]+";text-align:"+AE[15]+";"+(AE[38]+(AE[38]!=""&&AE[38].charAt(AE[38].length-1)!=";"?";":""))+"}"+d+v.y+"{"+v.Z+AE[0]+"px;"+v.Y+AE[26]+";"+v.X+AE[27]+";"+c_cI(AE[28])+"color:"+AE[29]+";"+v.T+AE[30]+";"+(AE[41]+(AE[41]!=""&&AE[41].charAt(AE[41].length-1)!=";"?";":""))+"}"+d+":hover,"+d+":focus,"+d+":active,"+d+j+"O,"+d+j+"O:link,"+d+j+"O"+v.y+","+j+v.C+":hover,"+j+v.C+":focus,"+j+v.C+":active{"+v.Z+AE[0]+"px;"+v.Y+AE[2]+";"+v.X+AE[4]+";"+c_cI(AE[7])+"color:"+AE[9]+";"+v.T+AE[14]+";"+(AE[39]+(AE[39]!=""&&AE[39].charAt(AE[39].length-1)!=";"?";":""))+"}"+j+v.N+"{"+v.Y+AE[1]+v.i+v.X+AE[3]+v.i+c_cI(AE[6],v.i)+"color:"+AE[8]+v.i+v.T+AE[13]+v.i+"}";if(AE[20]){c_[1]+=j+v.C+" "+j+"S,"+j+v.C+":link "+j+"S,"+j+v.C+v.y+" "+j+"S{"+c_cI(AE[37])+"}"+d+" "+j+"S,"+d+":link "+j+"S{"+v.d+v.A+c_cI(AE[21])+v.B+"-repeat:no-repeat;width:"+AE[23]+"px;height:"+AE[24]+"px;font-size:8px;display:none;}"+d+v.y+" "+j+"S{"+c_cI(AE[31])+"}"+d+":hover "+j+"S,"+d+":focus "+j+"S,"+d+":active "+j+"S,"+d+j+"O "+j+"S,"+d+j+"O:link "+j+"S,"+d+j+"O"+v.y+" "+j+"S,"+j+v.C+":hover "+j+"S,"+j+v.C+":focus "+j+"S,"+j+v.C+":active "+j+"S{"+c_cI(AE[22])+"}"+j+v.N+" "+j+"S{"+c_cI(AE[21])+"}"}}I=c_[0]+(!c_oP7m&&(!c_kNv||c_kN)&&!c_iC&&!c_iEMo?c_[1]:"");if(!c_oP7m){k=c_gT(c_d,"head")[0]}B=c_d.styleSheets;b=B?B.length:0;if(k&&(B||c_oPv>=7.5)&&!c_iEM&&(!c_gC||c_x)&&(!c_kNv||c_kN)&&(!c_sF||c_sFv>=400)){var G=c_cE("style",k);G.setAttribute("type","text/css");G.setAttribute("media",v.s);k.appendChild(G);if(B&&B.length>b&&B[b].insertRule){B=B[b];I=I.replace(/}([^}])/g,"}|$1").split("|");for(AE=0;AE<I.length;){try{B.insertRule(I[AE++],B.cssRules.length)}catch(AH){}}}else{c_iE?B[b].cssText=I:G.appendChild(c_d.createTextNode(I))}}else{c_d.write('<style type="text/css" media="'+v.s+'">'+I+"</style>")}c_mN()}if(c_dl||c_oP){c_wL=c_w.onload||0;c_w.onload=function(){c_L=1;if(c_wL){c_wL()}};c_cS()};