var FOCUS_CLASS="jsfocus";var animateWithFocusClassId=null;var aFocusRegistrations=new Array();var registerForFocusClass=function(a,b){for(var c=0;c<aFocusRegistrations.length;c+=2){if(aFocusRegistrations[c]==a&&aFocusRegistrations[c+1]==b){return}}aFocusRegistrations.push(a);aFocusRegistrations.push(b);if(aFocusRegistrations.length==2){if(window.addEventListener){window.addEventListener("load",animateOnLoadWithFocusClass,false)}else{if(window.attachEvent){window.attachEvent("onload",animateOnLoadWithFocusClass)}}}};var animateOnLoadWithFocusClass=function(f){if(aFocusRegistrations.length==0){return}var b=location.hash;if(b==undefined||b==null||b.length==0){return}if(b.indexOf("#")>-1){b=b.substr(b.indexOf("#")+1)}for(var d=0;d<aFocusRegistrations.length;d+=2){var c=aFocusRegistrations[d+1];if(aFocusRegistrations[d]==b){if(animateWithFocusClassId==null){animateWithFocusClass(c)}else{var e='animateOnLoadWithFocusClass("'+c+'");';window.setTimeout(e,200)}break}}};var animateWithFocusClass=function(b){if(animateWithFocusClassId!=null){return}if(b==undefined||b==null){return}var e=document.getElementById(b);if(e==undefined||e==null){return}var c=!hasClass(e,FOCUS_CLASS);var a=0;var d=500;toggleRecall(b,c,a,d)};var toggleRecall=function(c,f,e,b){var g=document.getElementById(c);var a=b;if(f){setClass(g,FOCUS_CLASS)}else{removeClass(g,FOCUS_CLASS);a=a*1}if(e>0){var d='toggleRecall("'+c+'",'+(!f)+","+(--e)+","+b+");";animateWithFocusClassId=window.setTimeout(d,a)}else{animateWithFocusClassId=null}};var hasClass=function(d,f){var e=d.className;if(e==undefined||e==null||e.length==0){return false}var b=e.split(" ");for(var a=0;a<b.length;++a){if(b[a]==f){return true}}return false};var setClass=function(d,f){var e=d.className;if(e==undefined||e==null||e.length==0){d.className=f;return true}var b=e.split(" ");for(var a=0;a<b.length;++a){if(b[a]==f){return false}}d.className=e+" "+f;return true};var removeClass=function(d,f){var e=d.className;if(e==undefined||e==null||e.length==0){return false}var b=e.split(" ");for(var a=0;a<b.length;++a){if(b[a]==f){b.splice(a,1);d.className=b.join(" ");return true}}return false};