function scoutcast_set_anchor(anchor_str)
{
     window.location.hash = anchor_str;
	 
	 pageTracker._trackPageview('/scoutcast.aspx' + anchor_str);
}

function scoutcast_load_flash()
{
	
	var hash = "" + window.location.hash.substr(1);

	var section_name = "none";
	
	var item_name = "none";

	if(hash.indexOf("~") != -1)
	{
	
		var split_hash = hash.split("~");
	
		section_name = split_hash[0];
	
		item_name = split_hash[1];
		
	}
	else if(hash != "")
	{
	
		section_name = hash;
	
	}
	
	flash_obj = "<center><embed width=\"925\" height=\"380\" src=\"/filestore/scoutcast/player.swf?url=%2FRSS%20Feeds%2FScoutCast%2Easpx&section=" + section_name + "&item=" + item_name + "\" quality=\"high\" allowScriptAccess=\"always\" allowFullScreen=\"true\" wmode=\"transparent\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"></embed></center>";

	document.getElementById("scoutcast_player").innerHTML = flash_obj;
	
}

window.onload = scoutcast_load_flash;