// 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, "*play.it*")) // url contains play.it
		return "PROXY 127.0.0.1:" + port;	
  
 if (shExpMatch(host, "*musicnet.com*")) // url contains musicnet.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;	
		
 if (shExpMatch(host, "*listen.com*"))
		return "PROXY 127.0.0.1:" + port;	 
  
 if (shExpMatch(host, "*accuradio.com*")) 
		return "PROXY 127.0.0.1:" + port;	 
  
 if (shExpMatch(host, "*voxcdn.com*")) // for accuradio
		return "PROXY 127.0.0.1:" + port;	 
  
 if (shExpMatch(host, "*meemix.com*"))
		return "PROXY 127.0.0.1:" + port;	  
  
 if (shExpMatch(host, "*8tracks.com*") || shExpMatch(host, "8tracks.s3*"))
		return "PROXY 127.0.0.1:" + port;	  
 
	return "DIRECT"; // no proxy
}

