var fix;function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,true);return true;} else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;} else{return false;}} function Timer(){this.obj=(arguments.length)?arguments[0]:window;return this;} Timer.prototype.setInterval=function(func,msec){var i=Timer.getNew();var t=Timer.buildCall(this.obj,i,arguments);Timer.set[i].timer=window.setInterval(t,msec);return i;} Timer.prototype.setTimeout=function(func,msec){var i=Timer.getNew();Timer.buildCall(this.obj,i,arguments);Timer.set[i].timer=window.setTimeout("Timer.callOnce("+i+");",msec);return i;} Timer.prototype.clearInterval=function(i){if(!Timer.set[i])return;window.clearInterval(Timer.set[i].timer);Timer.set[i]=null;} Timer.prototype.clearTimeout=function(i){if(!Timer.set[i])return;window.clearTimeout(Timer.set[i].timer);Timer.set[i]=null;} Timer.set=new Array();Timer.buildCall=function(obj,i,args){var t="";Timer.set[i]=new Array();if(obj!=window){Timer.set[i].obj=obj;t="Timer.set["+i+"].obj.";} t+=args[0]+"(";if(args.length>2){Timer.set[i][0]=args[2];t+="Timer.set["+i+"][0]";for(var j=1;(j+2)g3){window.scrollTo(g2,g3);} break;case'submit':window.alert('Received Submit Command');MyElement.submit();break;default:oops=1;window.alert('Confused 2 -'+szSubs[0]+'-');break;}} else{oops=1;} break;} if(oops==1){switch(szSubs[1]){case'location':document.location.href=szSubs[2];break;case'relocation':fix.bLockedOut=2;document.location.href=szSubs[2];fix.bLockedOut=1;break;case'title':document.title=szSubs[2];break;case'ServerFlag':ServerFlag=szSubs[2];break;case'alert':window.alert(szSubs[2]);break;case'edit2':AjaxRunEditor(szSubs[2]);break;break;case'confirm':var aa=szSubs[2].split("_");if(window.confirm(aa[0])){doSendConfirmYes(aa[1]);} break;case'NewAnalPage':_gaq.push(['_trackPageview',szSubs[2]]);break;case'myPicMod1':myPicMod1.AddPic(szSubs[2]);break;case'myPicMod2':myPicMod2.AddPic(szSubs[2]);break;case'myPicMod3':myPicMod1.AddPic(szSubs[2]);break;case'resetCursor':document.body.style.cursor='default';break;case'refreshPage':fix.RefreshPage();break;default:break;}}}}} function PageLocator(propertyToUse,dividingCharacter){this.propertyToUse=propertyToUse;this.defaultQS1='1';this.defaultQS2='_2';this.badlocation='';this.dividingCharacter=dividingCharacter;} PageLocator.prototype.getLocation=function(){return eval(this.propertyToUse);} PageLocator.prototype.getHash=function(){var urlx=this.getLocation();if(urlx.indexOf(this.dividingCharacter)>-1){var url_elements=urlx.split(this.dividingCharacter);if(url_elements[1]=='') return this.defaultQS1;return url_elements[url_elements.length-1];}else{this.badlocation=urlx;return this.defaultQS2;}} PageLocator.prototype.getHref=function(){var url=this.getLocation();var url_elements=url.split(this.dividingCharacter);return url_elements[0];} PageLocator.prototype.makeNewLocation=function(new_qs){return this.getHref()+this.dividingCharacter+new_qs;} function RetreveRememberMeCookie(){un=getCookie('user');pw=getCookie('pass');darkSend2('RememberMe',un,pw);} function AjaxFixer(){this.iframeid='ajaxnav';this.iBlanks=0;this.bRefresh=0;this.bLockedOut=0;this.aBlanks=Array();this.urlSite='http://'+window.location.hostname+'/';if(document.getElementById(this.iframeid)){this.bFrames=1;this.fixLinks(document);this.locator=new PageLocator("document.frames['"+this.iframeid+"'].getLocation()","?hash=");this.windowlocator=new PageLocator("window.location.href","#");this.timer=new Timer(this);this.delayInit();} else{this.bFrames=0;this.fixLinks(document);this.locator=new PageLocator("window.location.href","#");this.timer=new Timer(this);this.checkWhetherChanged(0);}} AjaxFixer.prototype.fixLinks=function(elem){var links=elem.getElementsByTagName("A");if(this.bFrames==1){for(var i=0;i';} this.iBlanks=0;} AjaxFixer.prototype.RefreshPage=function(){this.bRefresh=1;} function FixBackAndBookmarking(){if(!document.getElementById||!document.getElementsByTagName)return;fix=new AjaxFixer();} function BlankInnerHtmlForAjax(elem,x,y){var MyElement=document.getElementById(elem);var x1=x-16;var y1=y-16;MyElement.innerHTML='
';} function FixAjaxFrames(){if(document.iframesfix){var windowlocator=new PageLocator("window.location.href","#");document.write("");}} function SortUrlToAjax(){var urlx=window.location.href;var urly='';var iHash=urlx.indexOf('#',10);var iSlash=urlx.indexOf('/',10);if(iHash==-1){var near=urlx.slice(0,iSlash+1);var far=urlx.slice(iSlash+1);urly=near+'#'+far;} else{if(iSlash>iHash){var near=urlx.slice(0,iHash+1);var far=urlx.slice(iHash+1);urly=near+'/'+far;} else{var near=urlx.slice(0,iSlash+1);var far=urlx.slice(iHash);urly=near+far;}} if(urlx!=urly){try{window.location.href=urly;} catch(e){}}} if(getHTTPObject()){RetreveRememberMeCookie();if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1) if(ieversion<8) document.iframesfix=true;} addEvent(window,"load",FixBackAndBookmarking);} else{_setCookie('FailedAjax','');bTestAjax=_getCookie('FailedAjax');if(bTestAjax!='true'){} else _setCookie('FailedAjax','true');window.location.href=window.location.href+'?noAjax=true';}