function changefc(c){document.getElementById("search-input").style.color=c}window.onload=function(){tinyScrolling.init()};
var tinyScrolling={speed:30,maxStep:150,brakeK:5,hash:null,currentBlock:null,requestedY:0,init:function(){for(var c=document.getElementsByTagName("a"),d=0,f;f=c[d];d++)if(f.href&&f.href.indexOf("#")!=-1&&(f.pathname==location.pathname||"/"+f.pathname==location.pathname)&&f.search==location.search)f.onclick=tinyScrolling.initScroll},getElementYpos:function(c){for(var d=0;c.offsetParent;){d+=c.offsetTop;c=c.offsetParent}return d},getScrollTop:function(){return document.all?document.documentElement.scrollTop?
document.documentElement.scrollTop:document.body.scrollTop:window.pageYOffset},getWindowHeight:function(){if(window.innerHeight)return window.innerHeight;if(document.documentElement&&document.documentElement.clientHeight)return document.documentElement.clientHeight},getDocumentHeight:function(){if(document.height)return document.height;if(document.body.offsetHeight)return document.body.offsetHeight},initScroll:function(c){var d;if(!c)c=window.event;if(c.target)d=c.target;else if(c.srcElement)d=c.srcElement;
tinyScrolling.hash=d.href.substr(d.href.indexOf("#")+1,d.href.length);tinyScrolling.currentBlock=document.getElementById(tinyScrolling.hash);if(tinyScrolling.currentBlock){tinyScrolling.requestedY=tinyScrolling.getElementYpos(tinyScrolling.currentBlock);tinyScrolling.scroll();return false}},scroll:function(){var c=tinyScrolling.getScrollTop();if(tinyScrolling.requestedY>c){var d=Math.round((tinyScrolling.getDocumentHeight()-(c+tinyScrolling.getWindowHeight()))/tinyScrolling.brakeK);d=Math.min(Math.round((tinyScrolling.requestedY-
c)/tinyScrolling.brakeK),d);d=Math.max(2,Math.min(d,tinyScrolling.maxStep))}else d=-Math.min(Math.abs(Math.round((tinyScrolling.requestedY-c)/tinyScrolling.brakeK)),tinyScrolling.maxStep);window.scrollTo(0,c+d);if(Math.abs(c-tinyScrolling.requestedY)<=1||tinyScrolling.getScrollTop()==c){window.scrollTo(0,tinyScrolling.requestedY);if(!document.all||window.opera)location.hash=tinyScrolling.hash;tinyScrolling.hash=null}else setTimeout(tinyScrolling.scroll,tinyScrolling.speed)}},menu=function(){var c=
15,d=50,f=3,h;function i(b){this.n=b;this.h=[];this.c=[]}i.prototype.init=function(b,e){h=e;b=document.getElementById(b);b=b.getElementsByTagName("ul");e=b.length;for(var a=0;a<e;a++){var g=b[a].parentNode;this.h[a]=g;this.c[a]=b[a];g.onmouseover=new Function(this.n+".st("+a+",true)");g.onmouseout=new Function(this.n+".st("+a+")")}};i.prototype.st=function(b,e){var a=this.c[b];b=this.h[b];b=b.getElementsByTagName("a")[0];clearInterval(a.t);a.style.overflow="hidden";if(e){b.className+=" "+h;if(!a.mh){a.style.display=
"block";a.style.height="";a.mh=a.offsetHeight;a.style.height=0}if(a.mh==a.offsetHeight)a.style.overflow="visible";else{a.style.zIndex=d;d++;a.t=setInterval(function(){j(a,1)},c)}}else{b.className=b.className.replace(h,"");a.t=setInterval(function(){j(a,-1)},c)}};function j(b,e){var a=b.offsetHeight;if(a<=0&&e!=1||a>=b.mh&&e==1){if(e==1){b.style.filter="";b.style.opacity=1;b.style.overflow="visible"}clearInterval(b.t)}else{var g=e==1?Math.ceil((b.mh-a)/f):Math.ceil(a/f),k=a/b.mh;b.style.opacity=k;
b.style.filter="alpha(opacity="+k*100+")";b.style.height=a+g*e+"px"}}return{dd:i}}();