// script which IE or firefox can use to decide how to route a certain URL
// this can also be used to avoid pandora's US-only restriction

function FindProxyForURL(url, host){

	var port = "8888";
	
	if (shExpMatch(host, "*pandora.com*")) // url contains pandora.com
		return "PROXY 127.0.0.1:" + port;	

	if (shExpMatch(host, "*slacker.com*")) // url contains slacker.com
		return "PROXY 127.0.0.1:" + port;	

	if (shExpMatch(host, "*grooveshark.com*")) // url contains grooveshark.com
		return "PROXY 127.0.0.1:" + port;	

	/*if (shExpMatch(host, "*youtube.com*")) // url contains youtube.com
		return "PROXY 127.0.0.1:" + port;*/
	
	if (shExpMatch(host, "*playlist.com*")) // url contains playlist.com
		return "PROXY 127.0.0.1:" + port;	
		
	if (shExpMatch(host, "*songza.com*")) // url contains songza.com
		return "PROXY 127.0.0.1:" + port;

	if (shExpMatch(host, "*last.fm*")) // url contains last.fm
		return "PROXY 127.0.0.1:" + port;	
		
	return "DIRECT"; // no proxy
}
