function regExpMatch(url, pattern) {
	try { return new RegExp(pattern).test(url); } catch(ex) { return false; }
}

function FindProxyForURL(url, host) {
	if (shExpMatch(url, 'http://valf.atm.youku.com/valf*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://afp.qiyi.com//main*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://tdcm.tudou.com/adcontrol*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://ku6afp.allyes.com/*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://googleads.g.doubleclick.net/pagead/ads*xml*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://iafp.pptv.com/*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://dcads.sina.com.cn/*')) return 'PROXY 127.0.0.1:43116';
	if (shExpMatch(url, 'http://acs.56.com/ac*')) return 'PROXY 127.0.0.1:43116';
	return 'DIRECT';
}