function initTabs(){$(".tab_content").addClass("hide");var a=getHash();var b=false;$("#tabs li a").each(function(){if($(this).attr("title")==a){b=true;setTabState($(this))}});if(!b){$("#disp_epilepsy_content").removeClass("hide")}}function setTabState(a){$("#tabs li").removeClass("current");$(a).parent().addClass("current");var b=$(a).attr("id")+"_content";$(".tab_content").addClass("hide");$("#"+b).removeClass("hide")}function clearHash(){if("pushState"in history){history.pushState("",document.title,window.location.pathname)}else{window.location.hash=""}}function getHash(){var a=location.hash;if(a!=""){a=a.substring(1);return a}else{return false}}function setHash(a,b){window.location.hash=a.attr(b)}function write_email(a,b,c,d){if(c){var e="<a href='mailto:"+a+"@"+b+"' target='_blank' class='"+d+"' >"+c+"</a>"}else{var e="<a href='mailto:"+a+"@"+b+"' target='_blank' class='"+d+"' >"+a+"@"+b+"</a>"}address=document.write(e);return address}var sf;sfHover=function(){var a=document.getElementById("nav").getElementsByTagName("LI");for(var b=0;b<a.length;b++){a[b].onmouseover=function(){this.className+=" sfhover"};a[b].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}};if(window.attachEvent)window.attachEvent("onload",sfHover);$(document).ready(function(){$(".scroll").click(function(a){a.preventDefault();var b=this.href;var c=b.split("#");var d=c[1];var e=$("#"+d).offset();var f=e.top;$("html, body").animate({scrollTop:f},800)});initTabs();$("#tabs li a").click(function(a){a.preventDefault();setTabState($(this));setHash($(this),"title")})})
