function ref(a){return document.getElementById(a)}function togglePanel(e){if(e==null){return false}var f=e.getElementsByTagName("div"),d=/(collapse-content|expand-content)/,c,b,a;for(c=0;f[c];c++){b=f[c].className;a=d.exec(b);if(a!=null){if(a[1]=="collapse-content"){b=b.replace("collapse-content","expand-content","g")}else{if(a[1]=="expand-content"){b=b.replace("expand-content","collapse-content","g")}}f[c].className=b}}}function toggleCookie(b,a){if(a!=null){setCookie(b,a)}else{setCookie(b,(getCookie(b)-0+1))}}function getCookie(b){var c=new RegExp(""+b+"=([^\\s]*); "),a=c.exec(document.cookie+"; ");return(a==null?0:a[1])}function setCookie(b,a){document.cookie=b+"="+a+";path=/"}function hasFlash(){try{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6")}catch(b){a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}return true}catch(b){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return true}}catch(b){}}return false};
