﻿
function addArrow(id,str)
{	document.getElementById(id).style.backgroundImage = str;
	document.getElementById(id).style.backgroundRepeat = "no-repeat";
	document.getElementById(id).style.backgroundPosition = "0 4px"
}

function noArrow(id)
{
	document.getElementById(id).style.backgroundImage = "none";
}
function indexAddArrow(id,str)
{	document.getElementById(id).style.backgroundImage = str;
	document.getElementById(id).style.backgroundRepeat = "no-repeat";
	document.getElementById(id).style.backgroundPosition = "0 center"
}


function runFadeOut(){
	fade=0;
	document.getElementById('indexLogo').style.filter = 'alpha(opacity=' + fade + ')';
	setTimeout("fadeout()",13000);
}
	
	
function fadeout()
{	
	/*for(var i=50;i<60;i++){
	document.getElementById('indexLogo').style.filter = 'alpha(opacity=' + i + ')';
	alert(i)
	}*/
	
	if (fade > 95) return;
	else
	{document.getElementById('indexLogo').style.filter = 'alpha(opacity=' + fade + ')';
	fade+=2;
	}	
	setTimeout("fadeout()",50);
}
