	//var url = 'http://www.100radiostation.com:8000/100radio.xsl';
	var url = 'proxy.php?url';

	// notice the use of a proxy to circumvent the Same Origin Policy.

	function updateTitle() 
	{
 		ajax =  new Ajax.Updater('title',url, {             
         	method:'get', 
			onComplete: showResponse,
			onFailure: showError           
         });
	}
	
	function showResponse(req)
	{
		title = req.responseText;
		$('title').innerHTML = req.responseText;	
		$('titlebox').appear();
	}
	
	function showError(req)
	{
		$('title').innerHTML = "n/a";
	}	
	
	function on_load_func()
	{
		if(FlashDetect.installed)
			if(FlashDetect.major > 9) 
			{
				updateTitle();
				player = window.setInterval("updateTitle()", 5000);  
			} 
			else 
			{ 
				$('player').innerHTML = "<p>Flash Player version > 9 needed</p>";	
			}
		else {
			$('player').innerHTML = "<p>Flash Player needed. None found</p>";	
		}	
	}	

	function popup()
	{
		playerwin = window.open("popup.html","player","status=no,location=no,scrollbar=no,menubar=no,toolbar=no,width=345,height=40");
		playerwin.focus();
		document.write("You can close me now");
	}
	
	Event.observe(window, 'load', function() { 
		$$('.rounded').each(function(item) { new Effect.Corner(item, "5px"); }); 
		on_load_func();
		if ( news_txt.length > 2 ) {
			window.setTimeout("$('newshead').appear({ duration: 3.0 });", 2000);  
			window.setTimeout("$('news').appear({ duration: 2.0 });", 4000);  
			window.setTimeout("$('linkshead').appear({ duration: 2.0 });", 6000);  
			window.setTimeout("$('links').appear({ duration: 2.0 });", 8000);  
			/*window.setTimeout("$('newshead').fade({ duration: 1.0 });", 63000);  
			window.setTimeout("$('news').fade({ duration: 2.0 });", 62000);  */
		}
		
	} );
	//Event.observe(window, 'load', function() {  new Effect.Corner("news", "5px"); });

