var immediateloads=[];var immediate_size_loads=[];var delayedloads=[];function uniloader_delayed_add(lfunc){delayedloads.push(lfunc)}function uniloader_small_add(lfunc){immediate_size_loads.push(lfunc)}function uniloader_add(lfunc){immediateloads.push(lfunc)}function uniloader(){for(var i=0;i<immediateloads.length;i++){var thisfunc=immediateloads[i];thisfunc()}var yScroll;if(window.innerHeight&&window.scrollMaxY){yScroll=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){yScroll=document.body.scrollHeight}else{yScroll=document.body.offsetHeight}if(isNaN(yScroll)){yScroll=1}if(yScroll<500000){for(var i=0;i<immediate_size_loads.length;i++){var thisfunc=immediate_size_loads[i];thisfunc()}}window.setTimeout(uniloader_delayed,100)}function uniloader_delayed(){for(var i=0;i<delayedloads.length;i++){var thisfunc=delayedloads[i];thisfunc()}}var NVData_pending=0;function DidSetNvData(o){NVData_pending=0;if(!o.responseXML){alert("Invalid XML response from nvset.xml: "+o.responseTxt);return}var root=o.responseXML.documentElement;if(!root){alert("Document root is missing from nvset.xml")}var keylist=root.getElementsByTagName('key');for(var i=0;i<keylist.length;i++){if(keylist[i].firstChild==null){alert("Invalid Data in response from nvset.xml: "+o.responseTxt);continue}if(o.argument.callback!=null){o.argument.callback(keylist[i].firstChild.nodeValue)}}}function FailSetNvData(o){}function SetNvData(name,Cvalue,myCallback){var callback={success:DidSetNvData,failure:FailSetNvData,argument:{callback:myCallback}};if(typeof(window['thisTheme'])=='undefined'){alert("You must init the thisTheme variable but adding\n<script> var thisTheme = '<cpanel print=\"C{'RS'}\">'; </script> to the <head> section of this page: "+window.location.href)}var sUrl='/frontend/'+thisTheme+'/nvset.xml';var postData='names='+name+'&'+encodeURIComponent(name)+'='+encodeURIComponent(Cvalue);NVData_pending=1;NVData[name]=Cvalue;var transaction=YAHOO.util.Connect.asyncRequest('POST',sUrl,callback,postData)}function GotNvData(o){if(!o.responseXML){alert("Invalid XML response from nvget.xml: "+o.responseTxt);return}if(!o.argument.callback){alert("GetNvData call is missing a callback function on: "+window.location.href);return}var root=o.responseXML.documentElement;if(!root){alert("Document root is missing from nvget.xml")}var keylist=root.getElementsByTagName('key');for(var i=0;i<keylist.length;i++){if(keylist[i].getElementsByTagName('name')[0].firstChild==null){alert("Invalid Data in response from nvget.xml: "+o.responseTxt);continue}var thisVal='';if(keylist[i].getElementsByTagName('value')[0].firstChild!=null){thisVal=keylist[i].getElementsByTagName('value')[0].firstChild.nodeValue}o.argument.callback(keylist[i].getElementsByTagName('name')[0].firstChild.nodeValue,unescape(thisVal))}}function FailGetNvData(o){}function GetNvData(name,myCallback){var callback={success:GotNvData,failure:FailGetNvData,argument:{callback:myCallback}};if(typeof(window['thisTheme'])=='undefined'){alert("You must init the thisTheme variable but adding\n<script> var thisTheme = '<cpanel print=\"C{'RS'}\">'; </script> to the <head> section of this page: "+window.location.href)}var sUrl='/frontend/'+thisTheme+'/nvget.xml';var postData='names='+name;var transaction=YAHOO.util.Connect.asyncRequest('POST',sUrl,callback,postData)}function SetCookie(name,value,expires,path){document.cookie=name+"="+escape(value)+((expires)?("; expires="+expires.toLocaleString()):"")+((path)?("; path="+path):"")}function GetCookie(name){var dcookie=document.cookie;var cname=name+"=";var clen=dcookie.length;var cbegin=0;while(cbegin<clen){var vbegin=cbegin+cname.length;if(dcookie.substring(cbegin,vbegin)==cname){var vend=dcookie.indexOf(";",vbegin);if(vend==-1)vend=clen;return unescape(dcookie.substring(vbegin,vend))}cbegin=dcookie.indexOf(" ",cbegin)+1;if(cbegin==0)break}return null}function include_dom(script_filename){var html_doc=document.getElementsByTagName('head').item(0);var js=document.createElement('script');js.setAttribute('language','javascript');js.setAttribute('type','text/javascript');js.setAttribute('src',script_filename);html_doc.appendChild(js);return false}if(!self['YAHOO']){YAHOO=function(){};YAHOO.util=function(){};YAHOO.widget=function(){};YAHOO.widget.Panel=YAHOO.widget.Dialog=function(){var x={};x.render=function(){};x.show=function(){};x.hide=function(){};return x};YAHOO.util.Event=function(){};YAHOO.util.Event.addListener=function(){};YAHOO.util.Region=function(){};YAHOO.util.Dom=function(){};YAHOO.util.Motion=function(){var x={};x.animate=function(){};x.onComplete=function(){};x.onComplete.subscribe=function(){};return x};YAHOO.util.Dom.getXY=function(){return[]}}function open_passgen_dialog(){alert('Password Generation is not available for mobile devices.')}function register_validator(){}function do_validate(){return true}function show_optionselect(){return}function register_truncate_table(){}function remove_buttons(){themegoEl=document.getElementById('themego');acctgoEl=document.getElementById('acctgo');if(themegoEl){themegoEl.style.display='none'}if(acctgoEl){acctgoEl.style.display='none'}}function hide_notices_ifempty(){var noticeboard=document.getElementById('noticeboard');if(!noticeboard){return}var allElementsInBoard=noticeboard.getElementsByTagName('*');for(var j=0;j<allElementsInBoard.length;j++){for(var i=0;i<allElementsInBoard[j].childNodes.length;i++){if(allElementsInBoard[j].childNodes[i].nodeType==3){if(allElementsInBoard[j].childNodes[i].nodeValue.match(/^[\s\n\r]+$/)){continue}return}}}document.getElementById('notices').style.display='none'}uniloader_add(remove_buttons);uniloader_add(hide_notices_ifempty);
