var timer=new Array();
var browser = navigator.appName;
var ver=0;

if(browser=="Netscape")
	ver=1;
	
function scroller(asd,updown,aaa){
	var thediv=document.getElementById(asd);
	
	if(updown==1){
		var thehight=thediv.childNodes[ver].offsetHeight-parseInt(thediv.style.height);
		
		if(aaa==1)
			thediv.scrollTop=thehight;
		aaa=0;
		
		if(thediv.scrollTop==0)
			thediv.scrollTop=thehight;
		thediv.scrollTop=thediv.scrollTop-1;
		
	}else{
	
		if(aaa==document.getElementById(asd).scrollTop)
			thediv.scrollTop=0;
			
		aaa=thediv.scrollTop;
		thediv.scrollTop=thediv.scrollTop+1;
	}
		timer[asd]=setTimeout("scroller('"+asd+"',"+updown+","+aaa+")",60);
}

function stopscroller(asd2){
			clearTimeout(timer[asd2]);
}


// side
function pos(){
	document.getElementById('Sponsors_scroll').style.left=-parseInt(document.getElementById('Sponsors_scroll').offsetWidth)+"px";
	setTimeout('scroll();',4);
}

function scroll(){
	var x=parseInt(document.getElementById('Sponsors_scroll').style.left);
	if(x>300)
		x=-parseInt(document.getElementById('Sponsors_scroll').offsetWidth);
	x++;
	document.getElementById('Sponsors_scroll').style.left=x+"px";
	setTimeout('scroll();',1);
}

// projects

function showProjDiv(id){
	document.getElementById('projects'+id).style.visibility = 'visible';
}

function closeProjDiv(id){
	document.getElementById('projects'+id).style.visibility = 'hidden';
}

function changeTxT(x){
	document.getElementById('infoDiv').innerHTML = x;
}

function deleteTxT(){
	document.getElementById('infoDiv').innerHTML = '';
}
