// JavaScript Document

function goToStartWeb(timer)
{
	timer--;
	if(timer == -1)
	{		
		var href = window.location.host;
		var path = window.location.pathname;
		
		var end = path.toString().indexOf("/",1);
		
		//alert(path + " end " + end);
		
		if(end != 0)
		{
			var adress = "http://" + href + path.substr(0,end) + "/";
		}
		else
		{
			var adress = "http://" + href;
		}
		
		document.location = adress;
	}
	else
	{
		//alert(document.getElementById('timer'));
		document.getElementById('timer').innerHTML = timer;
		setTimeout("goToStartWeb(" + timer + ")", 1000);
	}		
}
