	var tickertime=null;
	var currenttick=0;
	var tickeropacity=0;
	var currenttick=1;
	
	function infoticker(e) {

		var infoticker = document.getElementById('headermiddle_content');
		
		switch(e) {
			case "in":
				
				infoticker.style.opacity=tickeropacity/100;
				infoticker.style.filter='alpha(opacity=' + tickeropacity + ');';
				tickeropacity+=4;
				if (tickeropacity>=100) {
				
					
					if (currenttick==(ticker.length) ) {
					    currenttick=1;
						tickertime=setTimeout('infoticker(\'out\')',1000);
					} else {
						tickertime=setTimeout('infoticker(\'out\')',1000);
						}
						
					tickeropacity=100;
				} else {
					tickertime=setTimeout('infoticker(\'in\')',40);

				}
			break;
			
			case "out":
			    tickeropacity-=4;
				infoticker.style.opacity=tickeropacity/100;
				infoticker.style.filter='alpha(opacity=' + tickeropacity + ');';
				
				if (tickeropacity<=0) {
					clearTimeout(tickertime);
					
					infoticker.innerHTML=ticker[currenttick];
					
					
					if (currenttick==1) {
						tickertime=setTimeout('infoticker(\'in\')',1000);
						currenttick++;
					} else {
						tickertime=setTimeout('infoticker(\'in\')',30);
						currenttick++;
						}

				} else {
					tickertime=setTimeout('infoticker(\'out\')',70);
				}
			break;
			
			default:
			break;
		}	
	
	}


	