	currentStreamBoxTab = ""; 
	function InitializeStreamBox () {
		if(currentStreamBoxTab == "") {
			if(!$("StreamBox-Container")) document.write("<div id='StreamBox-Container'></div>"); 
			currentStreamBoxTab = "Bet365"; 					
			StreamBoxUpdate(); 
		}		
	}
	
	function StreamBoxUpdate () {	
		switch(specificLanguage) {
			case "de": 
				streamBoxLocation = "http://de.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "dk": 
				streamBoxLocation = "http://dk.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "es": 
				streamBoxLocation = "http://es.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "fr": 
				streamBoxLocation = "http://fr.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "it": 
				streamBoxLocation = "http://it.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "br": 
			    streamBoxLocation = "http://br.livegoals.com/static/free.video.streams.html";  
			break; 
			
			case "se": 
			    streamBoxLocation = "http://se.livegoals.com/static/free.video.streams.html";  
			break; 			
			
			
			case "no": 
			    streamBoxLocation = "http://no.livegoals.com/static/free.video.streams.html";  
			break; 				
			
			default: 
				streamBoxLocation = "http://www.livegoals.com/static/free.video.streams/en.html"; 
			
		}	
		new Ajax.Request(streamBoxLocation, {
			method: 'post', 
			onSuccess: function (oTransport) {
				$("StreamBox-Container").update(oTransport.responseText); 
				setTimeout("StreamBoxUpdate()",  30000); 
				StreamBoxUpdateTab(currentStreamBoxTab); 
			}
		}); 
	}
	
	
	
	function StreamBoxUpdateTab(streamLabel) {
		$$(".rss-streams-category").invoke("removeClassName", "active"); 
		$$(".rss-streams-items").invoke("removeClassName", "active"); 
		$$(".rss-streams-items").invoke("addClassName", "inactive"); 
		
		$("rss-streams-" + streamLabel).addClassName("active"); 
		$("rss-streams-" + streamLabel + "-items").addClassName("active"); 
		$("rss-streams-" + streamLabel + "-items").removeClassName("inactive");		
		
		updatedLink = ""; 
		
		switch(streamLabel) {
			case "Ladbrokes": 
				updatedLink = "http://www.livegoals.com/free-live-streaming/live-football-streaming-ladbrokes.php"; 
			break; 
			
			case "Bet365": 
				updatedLink = "http://www.livegoals.com/free-live-streaming/live-football-streaming-bet365.php"; 
			break; 
			
			case "Bwin": 
				updatedLink = "http://www.livegoals.com/free-live-streaming/live-football-streaming-bwin.php"; 
			break; 
		}
		
		$$(".StreamBox-Links").each(
			function (oLink) {
				oLink.href = updatedLink; 
			}
		); 
		
		currentStreamBoxTab = streamLabel; 
	}

