var enablepersist="no";var collapseprevious="yes";if(document.getElementById){document.write('<style type="text/css">');document.write(".switchcontent{display:none;}");document.write("</style>")}function getElementbyClass(c){ccollect=new Array();var b=0;var a=document.all?document.all:document.getElementsByTagName("*");for(i=0;i<a.length;i++){if(a[i].className==c){ccollect[b++]=a[i]}}}function contractcontent(a){var b=0;while(ccollect[b]){if(ccollect[b].id!=a){ccollect[b].style.display="none"}b++}}function expandcontent(a){if(typeof ccollect!="undefined"){if(collapseprevious=="yes"){contractcontent(a)}document.getElementById(a).style.display=(document.getElementById(a).style.display!="block")?"block":"none"}}function revivecontent(){contractcontent("omitnothing");selectedItem=getselectedItem();selectedComponents=selectedItem.split("|");for(i=0;i<selectedComponents.length-1;i++){document.getElementById(selectedComponents[i]).style.display="block"}}function get_cookie(a){var b=a+"=";var c="";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}c=unescape(document.cookie.substring(offset,end))}}return c}function getselectedItem(){if(get_cookie(window.location.pathname)!=""){selectedItem=get_cookie(window.location.pathname);return selectedItem}else{return""}}function saveswitchstate(){var b=0,a="";while(ccollect[b]){if(ccollect[b].style.display=="block"){a+=ccollect[b].id+"|"}b++}document.cookie=window.location.pathname+"="+a}function do_onload(){uniqueidn=window.location.pathname+"firsttimeload";getElementbyClass("switchcontent");if(enablepersist=="on"&&typeof ccollect!="undefined"){document.cookie=(get_cookie(uniqueidn)=="")?uniqueidn+"=1":uniqueidn+"=0";firsttimeload=(get_cookie(uniqueidn)==1)?1:0;if(!firsttimeload){revivecontent()}}}if(window.addEventListener){window.addEventListener("load",do_onload,false)}else{if(window.attachEvent){window.attachEvent("onload",do_onload)}else{if(document.getElementById){window.onload=do_onload}}}if(enablepersist=="on"&&document.getElementById){window.onunload=saveswitchstate};