var errorMsg="<div style='float:left;'>System Error!</div>";function ajaxFormSubmit(c,a,b,f){if(a!=""){var d=ajax.byId(a);YAHOO.util.Connect.setForm(d)}if((f==null)||(f=="")){f="dummy="}YAHOO.util.Connect.asyncRequest("POST",c,b,f)}var ajax={byId:function(a){return document.getElementById(a)}};var innerDivId="mainContent";var handsetDivId="handsetSelector";function setLoadingMsg(c,b,a){return'<div class="'+a+'"><img src="/style/'+c+"/"+b+'/images/loading.gif"></div>'}var vendorDivId="vendorCategory";var phoneDivId="phone";var operator=0;var vendor=0;function showHandsetSelector(d,a,f,c,b){hideItems();operator=f;vendor=a;if(handsetDivId!="handsetSelector1"){ajax.byId(innerDivId).style.display="none"}ajax.byId(handsetDivId).style.display="block";ajax.byId(handsetDivId).innerHTML=setLoadingMsg(c,b,"loadingHandset");ajaxFormSubmit("/handsetSelector.do","",handsetCallback,"userAgentId="+d+"&vendorId="+a+"&handsetOperatorId="+f)}function hideItems(){hideBlock("prelisten")}var handsetCallback={success:function(b){var a=b.responseText;if(a.search(/handsetBack/i)>0){if(ajax.byId("downloadPage")||ajax.byId("signupform")||ajax.byId("registerform")){window.location.reload()}else{ajax.byId("topitemsub").innerHTML=a;if(ajax.byId("handsetSelector")){ajax.byId("handsetSelector").style.display="none";ajax.byId("handsetSelector").innerHTML=""}if(ajax.byId("handsetSelector1")){ajax.byId("handsetSelector1").style.display="none";ajax.byId("handsetSelector1").innerHTML=""}if(ajax.byId("handsetVendorsRow")){ajax.byId("handsetVendorsRow").style.display="none";ajax.byId("handseListRow").style.display="none"}ajax.byId(innerDivId).style.display="block";if(handsetDivId=="handsetSelector1"){ajax.byId("content2").style.display="block"}handsetDivId="handsetSelector"}}else{if(handsetDivId=="handsetSelector1"){ajax.byId(innerDivId).style.display="block"}ajax.byId(handsetDivId).innerHTML=a;if(operator!=0){if(vendor!=0){ajax.byId(phoneDivId).style.display="block"}ajax.byId(vendorDivId).style.display="block"}}},failure:function(a){}};function showOrderHandsetSelector(a,c,b){ajaxFormSubmit("/handsetSelector.do","",showOrderHandsetSelectorResult);ajax.byId(a).innerHTML=setLoadingMsg(c,b,"loadingHandset");return false}var showOrderHandsetSelectorResult={success:function(b){var a=b.responseText;ajax.byId("handsetSelector1").innerHTML=a;handsetDivId="handsetSelector1"},failure:function(a){ajax.byId("handsetModel").innerHTML=errorMsg}};function showSupportedHandsetComboBox(a,c,b){ajaxFormSubmit("/supportedHandset.do",a,setSupportedHandsetResult);ajax.byId("vendorId").disabled=true;ajax.byId("handsetModel").innerHTML=setLoadingMsg(c,b,"loading");return false}var setSupportedHandsetResult={success:function(b){var a=b.responseText;ajax.byId("handsetModel").innerHTML=a;ajax.byId("vendorId").disabled=false},failure:function(a){ajax.byId("handsetModel").innerHTML=errorMsg}};function showHandsetVendorsCombo(a){if(!changeHandsetOperator()){return}ajaxFormSubmit("/handsetVendors.do",a,showHandsetVendorsComboResult);if(ajax.byId("operatorId")){ajax.byId("operatorId").disabled=true}if(ajax.byId("useragentId")&&ajax.byId("useragentId").length>0){ajax.byId("useragentId").selectedIndex=0;ajax.byId("useragentId").disabled=true}ajax.byId("handsetVendors").innerHTML='<img src="/style/en_US/1/images/loading.gif" width="58" height="16">';return false}var showHandsetVendorsComboResult={success:function(b){var a=b.responseText;ajax.byId("handsetVendors").innerHTML=a;ajax.byId("operatorId").disabled=false},failure:function(a){ajax.byId("handsetVendors").innerHTML=errorMsg}};var _contentTypeId=-1;function showHandsetOperatorsCombo(a){_contentTypeId=a;ajaxFormSubmit("/handsetOperators.do","",showHandsetOperatorsComboResult,"contentTypeId="+_contentTypeId)}var showHandsetOperatorsComboResult={success:function(b){var a=b.responseText;ajax.byId("handsetOperators").innerHTML=a},failure:function(a){ajax.byId("handsetOperators").innerHTML=errorMsg}};var chooseModelText,autoDiscover="Auto Discover";function changeHandsetOperator(){if(mmsOperator){var b;if(ajax.byId("frmRegister_useragentId")){b=ajax.byId("frmRegister_useragentId")}else{if(ajax.byId("useragentId")){b=ajax.byId("useragentId")}}for(var a=0;a<mmsOperator.length;a++){if(ajax.byId("operatorId")&&ajax.byId("operatorId").value==mmsOperator[a]){if(ajax.byId("vendorId")){ajax.byId("vendorId").disabled=true;ajax.byId("vendorId")[0].text=autoDiscover;ajax.byId("vendorId")[0].selected=true}if(b){b.disabled=true;if(!chooseModelText){chooseModelText=b[0].text}b[0].text=autoDiscover;b[0].selected=true}return false}}if(ajax.byId("vendorId")){ajax.byId("vendorId").disabled=false}if(b){if(chooseModelText){b[0].text=chooseModelText}b[0].selected=true;b.disabled=true}}return true}function updateTop(){ajaxFormSubmit("/selectedHandset.do","",updateTopResult)}var updateTopResult={success:function(b){var a=b.responseText;ajax.byId("topitemsub").innerHTML=a},failure:function(a){ajax.byId("topitemsub").innerHTML=errorMsg}};function updateRegister(){ajaxFormSubmit("/promoteCampaign.do","",updateRegisterResult)}var updateRegisterResult={success:function(b){var a=b.responseText;ajax.byId("register").innerHTML=a},failure:function(a){ajax.byId("register").innerHTML=errorMsg}};function submitPornoGraphic(){ajaxFormSubmit("/pornoGraphic.do","",pornoGraphicResult,"over18=true")}var pornoGraphicResult={success:function(a){ajax.byId("pornoGraphic").style.display="none";ajax.byId(innerDivId).style.display="block"},failure:function(a){ajax.byId("pornoGraphic").innerHTML=errorMsg}};var ajaxCount=180;function updatePassword(){ajaxCount--;ajaxFormSubmit("/ajaxPassword.do","ajaxPassword",updatePasswordResult,"")}var updatePasswordResult={success:function(b){var a=b.responseText;if(a.toString().indexOf('<div id="passwordStatus">-1</div>')>=0){if(ajaxCount>=0){setTimeout("updatePassword()",20000)}}else{if(a.toString().indexOf('<div id="passwordStatus">-100</div>')>=0){ajaxCount=0}else{if(a.toString().indexOf('<div id="passwordStatus">0</div>')>=0||a.toString().indexOf('<div id="passwordStatus">1</div>')>=0){document.forms.ajaxWelcomeInput.submit()}}}},failure:function(a){if(ajaxCount>=0){setTimeout("updatePassword()",20000)}}};var resultTdId;function clearCache(b,a){resultTdId=a;document.getElementById(resultTdId).innerHTML="Clearning!";ajaxFormSubmit(b,"",clearCacheRedult,"")}var clearCacheRedult={success:function(a){document.getElementById(resultTdId).innerHTML="Finished!"},failure:function(a){}};var global_html_pool=[];var global_script_pool=[];var global_script_src_pool=[];var global_lock_pool=[];var innerhtml_lock=null;var document_buffer="";function set_innerHTML(k,g,b){if(innerhtml_lock==null){innerhtml_lock=k}else{if(typeof(b)=="undefined"){global_lock_pool[k+"_html"]=g;window.setTimeout("set_innerHTML('"+k+"', global_lock_pool['"+k+"_html']);",10);return}else{if(innerhtml_lock!=k){global_lock_pool[k+"_html"]=g;window.setTimeout("set_innerHTML('"+k+"', global_lock_pool['"+k+"_html'], "+b+");",10);return}}}function j(){return"script_"+(new Date()).getTime().toString(36)+Math.floor(Math.random()*100000000).toString(36)}document_buffer="";document.write=function(i){document_buffer+=i};document.writeln=function(i){document_buffer+=i+"\n"};global_html_pool=[];var d=[];g=g.split(/<\/script>/i);for(var f=0;f<g.length;f++){global_html_pool[f]=g[f].replace(/<script[\s\S]*$/ig,"");d[f]={text:"",src:""};d[f].text=g[f].substr(global_html_pool[f].length);d[f].src=d[f].text.substr(0,d[f].text.indexOf(">")+1);d[f].src=d[f].src.match(/src\s*=\s*(\"([^\"]*)\"|\'([^\']*)\'|([^\s]*)[\s>])/i);if(d[f].src){if(d[f].src[2]){d[f].src=d[f].src[2]}else{if(d[f].src[3]){d[f].src=d[f].src[3]}else{if(d[f].src[4]){d[f].src=d[f].src[4]}else{d[f].src=""}}}d[f].text=""}else{d[f].src="";d[f].text=d[f].text.substr(d[f].text.indexOf(">")+1);d[f].text=d[f].text.replace(/^\s*<\!--\s*/g,"")}}var p;if(typeof(b)=="undefined"){p=0}else{p=b}var m,c,a;for(var f=0;f<d.length;f++){var l="document_buffer += global_html_pool["+f+"];\n";l+="document.getElementById('"+k+"').innerHTML = document_buffer;\n";m=document.createElement("script");if(d[f].src){m.src=d[f].src;if(typeof(global_script_src_pool[m.src])=="undefined"){global_script_src_pool[m.src]=true;p+=2000}else{p+=10}}else{m.text=d[f].text;p+=10}m.defer=true;m.type="text/javascript";m.id=j();global_script_pool[m.id]=m;c=l;c+="document.getElementsByTagName('head').item(0)";c+=".appendChild(global_script_pool['"+m.id+"']);\n";window.setTimeout(c,p);a="document.getElementsByTagName('head').item(0)";a+=".removeChild(document.getElementById('"+m.id+"'));\n";a+="delete global_script_pool['"+m.id+"'];\n";window.setTimeout(a,p+10000)}var h="if (document_buffer.match(/<\\/script>/i)) {\n";h+="set_innerHTML('"+k+"', document_buffer, "+p+");\n";h+="}\n";h+="else {\n";h+="document.getElementById('"+k+"').innerHTML = document_buffer;\n";h+="innerhtml_lock = null;\n";h+="}";window.setTimeout(h,p)}var misidnAreacode="areacode";var misidnPrefix="prefix";var misidnSuffix="suffix";function showBlock(a){if(document.getElementById){itm=document.getElementById(a)}else{if(document.all){itm=document.all[a]}else{if(document.layers){itm=document.layers[a]}}}if(itm){itm.style.display="block"}}function hideBlock(a){if(document.getElementById){itm=document.getElementById(a)}else{if(document.all){itm=document.all[a]}else{if(document.layers){itm=document.layers[a]}}}if(itm){itm.style.display="none"}}function checklength(nextfield,chars,currfield){x=document.phone[currfield.name].value.length;if(x==chars){eval("document.phone."+nextfield+".focus();")}}function displayOnOff(b){var a=document.getElementById(b);if(a.style.display==""){a.style.display="none"}else{a.style.display=""}}function checkRegisterRadio(d,a,c,f,j,g,i){var h=false;var b="";if(checkPhone(d)==false){b=b+"- "+a+"\n";h=true}if(d.terms.checked==false){b=b+"- "+f+"\n";h=true}if(document.getElementById("horo12")!=null){if(d.horo12.value==-1){b=b+"- "+j+"\n";h=true}}if(h){alert(g+"\n\n"+b+"\n"+i);return false}else{return true}}function acceptTerms2(d,a,b,h,g){var c=false;var f="";if(!d.terms.checked){f=f+"- "+a+"\n";c=true}if(document.getElementById("horo12")!=null){if(d.horo12.value==-1){f=f+"- "+b+"\n";c=true}}if(c){alert(h+"\n\n"+f+"\n"+g);return false}else{return true}}function checkPhone(c){var a=/\(\d{3}\)\d{3}-\d{4}/;var b="("+c.elements["msisdn.areacode"].value+")"+c.elements["msisdn.prefix"].value+"-"+c.elements["msisdn.suffix"].value;return(!a.test(b))?false:true}function checkPhone2(a){return(a.elements["msisdn.areacode"].value.charAt(0)!=0)?true:false}function checkPhoneAreaCode(a){return((a.elements[misidnAreacode].value.charAt(0)==9)&&(a.elements[misidnAreacode].value.charAt(1)==9)&&(a.elements[misidnAreacode].value.charAt(2)==9))?false:true}var successUnsubscribeMsg="";function confirmOff(b,d,c){var a=confirm(b);if(a){unsubscribe(d,c)}return false}function unsubscribe(b,a){successUnsubscribeMsg=a;ajaxFormSubmit("/offCampaign.do","",unsubscribeResult,"campaignID="+b)}var unsubscribeResult={success:function(a){alert(successUnsubscribeMsg);window.location.reload()},failure:function(a){window.location.reload()}};function checkOperator(a){return(a.elements.handsetOperatorId.value>4)?true:false}function checkPassword(c){var a=c.elements.password.value;var b=/\d{4}/;return((a=="")||(!b.test(a)))?false:true}function disableClickButton(d){var b=false;if(((d.elements[misidnAreacode]!=undefined&&d.elements[misidnPrefix]!=undefined&&d.elements[misidnSuffix]!=undefined)&&(!checkPhone(d)||!checkPhone2(d)))||!d.terms.checked){if(d.elements[misidnAreacode]!=undefined&&d.elements[misidnPrefix]!=undefined&&d.elements[misidnSuffix]!=undefined&&!checkPhone(d)){b=true}if(d.elements[misidnAreacode]!=undefined&&d.elements[misidnPrefix]!=undefined&&d.elements[misidnSuffix]!=undefined&&!checkPhone2(d)){b=true}if(!d.terms.checked){b=true}}if(!b){var a=d.getElementsByTagName("INPUT");for(var c=0;c<a.length;c++){if(a[c].name=="submitbtn"){a[c].disabled=true}}}}function checkRegister(f,b,d,a,i,h){var c=false;var g="";if(checkPhone(f)==false){g=g+"- "+b+"\n";c=true}if(f.terms.checked==false){g=g+"- "+a+"\n";c=true}if(c){alert(i+"\n\n"+g+"\n"+h);return false}else{return true}}function checkRegisterWithHandSet(d,j,a,c,f,g,i){var h=false;var b="";if(!checkPhone(d)||(!d.terms.checked)||(d.vendorId.disabled==false&&!(d.useragentId.value>0))){if(d.vendorId.disabled==false&&!(d.useragentId.value>0)){b=b+"- "+j+"\n";h=true}if(!checkPhone(d)){b=b+"- "+a+"\n";h=true}if(!checkOperator(d)){b=b+"- "+c+"\n";h=true}if(!d.terms.checked){b=b+"- "+f+"\n";h=true}}if(h){alert(g+"\n\n"+b+"\n"+i);return false}return true}function checkMsisdn(c,a,g,f){var b=false;var d="";if(!checkPhone(c)){d=d+"- "+a+"\n";b=true}if(b){alert(g+"\n\n"+d+"\n"+f);return false}else{document.getElementById("btnsubmit").disabled=true;return true}}function checkLogin(d,b,a,h,g){var c=false;var f="";if(!checkPhone(d)){f=f+"- "+b+"\n";c=true}if(!checkPassword(d)){f=f+"- "+a+"\n";c=true}if(c){alert(h+"\n\n"+f+"\n"+g);return false}else{return true}}var domTT_styleClass="domTTOverlib";var domTT_maxWidth=false;try{var winCloseButton=document.createElement("img");winCloseButton.style.verticalAlign="bottom"}catch(e){var winCloseButton="X"}function searchCheck(b,c,a){if(b.searchingKeywords.value.length==0||b.searchingKeywords.value==a){alert(c);return false}return true}function showPreviewBox(c,b,h,j,f,i,d,a){var g='<div id="prelistenDialog" title="Prelisten" align="center"><div class="content_bgpop"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="80" id="prelistenObj" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+i+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="flashvars" value="key='+h+"&file="+j+"&previewFileType="+f+'"/><embed src="'+i+'" flashvars="key='+h+"&file="+j+"&previewFileType="+f+'" loop="false" menu="false" quality="high" wmode="transparent" width="100" height="80" name="prelisten" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div></div>';createPrelistenDialog(c,g)}function stepKey(c,a,b){if(b.value.length==a){o=b.form.elements[c].focus()}}function checkPassword2(b,a,f,d){var c=/\d{4}/;if(!c.test(b)){alert(f+"\n\n-"+a+"\n\n"+d);return false}return true}function checkConfirmPassword(c,b,a,f,d){if(c!=b){alert(f+"\n\n-"+a+"\n\n"+d);return false}return true}function checkUpdateEmailForm(b){trim(document.getElementById(b.id+"_email"));var a=document.getElementById(b.id+"_email").value;if(a==""||(a!=null&&a.length>0&&a.match(/^\S+@\S+\.(com|net|org|info|edu|mil|gov|biz|ws|us|tv|cc|aero|arpa|coop|int|jobs|museum|name|pro|travel|nato|.{2,2})$/gi)==null)){return false}return true}function checkUserProfileForm(d){var l=false;var c="";var r=d.firstName.value;var q=d.lastName.value;var m=d.address.value;var g=d.city.value;var h=d.homePhone.value;var a=d.zipCode.value;var p=d.state.value;var i=d.birthDateYear.value;var k=d.birthDateMonth.value;var j=d.birthDateDay.value;var b=new Date();var f=b.getFullYear();if(r.length<2||r.length>100){c=c+"- First Name.\n";l=true}if(q.length<2||q.length>100){c=c+"- Last Name.\n";l=true}if(m.length<3||m.length>255){c=c+"- Address.\n";l=true}if(g.length<3||g.length>100){c=c+"- City.\n";l=true}if(a.length<2||a.length>10){c=c+"- Zip Code.\n";l=true}if(p.length<2){c=c+"- State.\n";l=true}if(h.length<2){c=c+"- Home Phone.\n";l=true}if(isNaN(i)||isNaN(k)||isNaN(j)||i<1900||i>1988||k<1||k>12||j<1||j>31){c=c+"- Birth Date.\n";l=true}if(l){alert("The following information is missing or invalid:\n\n"+c+"\nPlease make sure you have provided the above information correctly before submitting the data.");return false}return true}function trim(a){while(""+a.value.charAt(0)==" "){a.value=a.value.substring(1,a.value.length)}while(""+a.value.charAt(a.value.length-1)==" "){a.value=a.value.substring(0,a.value.length-1)}}function unloadPopup(a){var b=window.open(a,"","height=420,width=760,status=0,toolbar=0,menubar=0,location=0");b.focus()}function disPopup(){document.body.onunload="";window.onunload=""}function createCampaignTncsPopup(b,f,d,c,a){$(b).tooltip({bgiframe:true,delay:0,showURL:false,left:c,top:a,extraClass:d,bodyHandler:function(){return f}})}function createPrelistenDialog(g,c){if($("#prelistenDialog").size()!=0){$(window).unbind("resize",resizehandler);$("#prelistenDialog").dialog("destroy");$("#prelistenDialog").remove()}$("body").append(c);var a=$(g).offset().top-$(window).scrollTop()+20;var f=$(g).offset().left-$(window).scrollLeft()+20;$("#prelistenDialog").dialog({bgiframe:true,resizable:false,position:[f,a],closeText:"",width:130,height:100,close:function(){$(window).unbind("resize",resizehandler);$("#prelistenDialog").dialog("destroy");$("#prelistenDialog").remove()}});var b=0;var d=0;$(window).bind("resize",{currentHeight:b,currentWidth:d,obj:g},resizehandler)}function resizehandler(b){if(b.data.currentHeight==$(window).height()&&b.data.currentWidth==$(window).width()){return}b.data.currentHeight=$(window).height();b.data.currentWidth=$(window).width();if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){var a=setTimeout(function(){calculatePosition(b.data.obj)},100)}else{calculatePosition(b.data.obj)}}function calculatePosition(c){if($("#prelistenDialog").size()!=0){var a=$(c).offset().top-$(window).scrollTop()+20;var b=$(c).offset().left-$(window).scrollLeft()+20;$("#prelistenDialog").dialog("option","position",[b,a])}}function getReferrer(a){document.getElementById(a+"_referrerURL").value=window.location}function setReferrerToAtag(b){var a=document.getElementById(b).href;a=a+"&referrerURL="+window.location;document.getElementById(b).href=a}function fillCategory(){var a=document.getElementById("category");if(a){var d=a.getElementsByTagName("LI");var c="";for(var b=0;b<d.length;b++){if(d[b].getElementsByTagName("A")[0].innerHTML.length<1){d[b].style.display="none"}}for(var b=0;b<(3-(d.length%3));b++){c+='<LI class="category_blank"><a>&nbsp;</a></LI>'}if(a.getElementsByTagName("UL").length>0){a.getElementsByTagName("UL")[0].innerHTML+=c}}}var subMenuIdlist;var menuRootId="menu_i2";function drawMenu(f){var d="";var c;var b=f.length;subMenuIdlist=new Array(b);d+="<ul>";for(var a=0;a<b;++a){c=f[a];contentTypeName=getContentType(f[a][2]);if(!c){continue}d+='<li class="menu-'+contentTypeName+'-bg" id="menu-'+contentTypeName+'"';if(contentTypeName=="catalog"){d+=' style="display:none" '}if(c.length>5){d+=" onClick=\"location='"+c[2]+"'\" onMouseover=\"changeStyle('menu-"+contentTypeName+"', 'menu-"+contentTypeName+"-bg-over');mouseOver('sub-"+contentTypeName+"')\" onMouseOut=\"changeStyle('menu-"+contentTypeName+"', 'menu-"+contentTypeName+"-bg');mouseOut('sub-"+contentTypeName+"')\">\n"}else{d+=" onClick=\"location='"+c[2]+"'\" >"}d+='<a href="'+c[2]+'"><h1><span>'+c[1]+"</span></h1></a>\n";if(c.length>5){subMenuIdlist[a]="sub-"+contentTypeName;d+='<div class="submenu" id="sub-'+contentTypeName+'" onmouseover="mouseOver(\'sub-'+contentTypeName+"')\" onMouseOut=\"mouseOut('sub-"+contentTypeName+"')\">\n<ul>\n"+drawSubMenu(c)+"</ul>\n</div>\n"}d+="</li>\n"}d=d.replace("catalog.text.20","");d+="<li id=\"menu-sms\" class=\"menu-sms-bg\" onmouseout=\"changeStyle('menu-sms', 'menu-sms-bg');\" onmouseover=\"changeStyle('menu-sms', 'menu-sms-bg-over');\" onclick=\"if (!document.getElementById('loginname')) {window.location='/registration!input.do?campaign.campaignId=20'} else {window.location='/smsProfile.do'}\"><a href=\"javascript:void(0)\"><h1><span>SMS FRIENDS</span></h1></a></li></ul>\n";document.getElementById(menuRootId).innerHTML=d}function drawSubMenu(d){var b="";var c=d.length;for(var a=5;a<c;a++){contentSubType=d[a];contentSubTypeLink=contentSubType[2];contentSubTypeName=contentSubType[1];b+='<li><h2><span><a href="'+contentSubTypeLink+'">'+contentSubTypeName+"</a></span></h2></li>\n"}return b}var time,tempid,t;var delay=1000;var n=false;function mouseOver(a){if(n==true){clearTimeout(time);hideOpenedSubmenu();showSubmenu(a);n=false}else{n=true;tempid=a;clearTimeout(t);t=setTimeout("mouseOver(tempid)",300)}}function mouseOut(a){clearTimeout(t);n=false;tempid=0;clearTimeout(time);time=setTimeout("hideOpenedSubmenu()",delay)}function showSubmenu(b){var a=document.getElementById(b);if(a.style){a.style.visibility="visible"}}function hideOpenedSubmenu(){var b;for(b=0;b<subMenuIdlist.length;b++){if(document.getElementById(subMenuIdlist[b])!=null){obj=document.getElementById(subMenuIdlist[b]);obj.style.visibility="hidden"}}}function changeStyle(c,b){var a=document.getElementById(c);a.className=b}function getContentType(a){var b=a.substr(a.lastIndexOf("/")+1);var c=a.split("/");if(c[c.length-1].length>0){b=c[c.length-1]}else{b=c[c.length-2]}if(b.match("registration")||b.match("reg")){b="text"}return b};
