var pl_self = document.location.href;
var pl_path = document.location.pathname;
if(pl_self.indexOf('?')>0) pl_self = pl_self.substring(0,pl_self.indexOf('?'));
if(pl_self.indexOf('#')>0) pl_self = pl_self.substring(0,pl_self.indexOf('#'));
var apReg1 = /\/([0-9]+)\.(html|htm|shtml){1}$/
var apReg2 = /\/([0-9]+)_([0-9]+)\.(html|htm|shtml){1}$/
var apCH1 = /(trends|trends_world){1}\/([a-zA-Z]+\/)*/
var apCH2 = /people\/([a-zA-Z_]+\/)*/
var apCH3 = /luxury\/([a-zA-Z_]+\/)*/
var apCH4 = /home\/([a-zA-Z_]+\/)*/
var apCH5 = /beauty\/([a-zA-Z_]+\/)*/
var apCH6 = /digital\/([a-zA-Z_]+\/)*/
var apCH7 = /video\/(index.(html|htm|shtml){1})*$/
var apCH8 = /fashion\/([a-zA-Z_]+\/)*/
var apCH9 = /health\/([a-zA-Z_]+\/)*/
var apCH10 = /diet\/([a-zA-Z_]+\/)*/
var apCH11 = /man\/([a-zA-Z_]+\/)*/
var apCH12 = /travel\/([a-zA-Z_]+\/)*/
var apCH13 = /info\/([a-zA-Z_]+\/)*/
var apCH14 = "/corp/";
var apCH15 = "/download/";
if(apReg1.test(pl_self) || apReg2.test(pl_self)){ // article_page
  ad_zone = 20; 
}else {
  ad_zone = 45; 
}
if(apCH1.test(pl_path)){ // 时尚界
  ad_zone = 43;
}
if(apCH2.test(pl_path)){ // 人物
  ad_zone = 5;
}
if(apCH3.test(pl_path)){ // 奢侈品
  ad_zone = 2;
}
if(apCH4.test(pl_path)){ // 家居
  ad_zone = 29;
}
if(apCH5.test(pl_path)){ // 美容
  ad_zone = 7;
}
if(apCH6.test(pl_path)){ // 数码
  ad_zone = 70;
}
if(apCH7.test(pl_path)){ // 视频
  ad_zone = 77;
}
if(apCH8.test(pl_path)){ // 时装
  ad_zone = 6;
}
if(apCH9.test(pl_path)){ // 健康
  ad_zone = 22;
}
if(apCH10.test(pl_path)){ // 美食
  ad_zone = 69;
}
if(apCH11.test(pl_path)){ // 男性
  ad_zone = 66;
}
if(apCH12.test(pl_path)){ // 旅游
  ad_zone = 12;
}
if(apCH13.test(pl_path)){ // 资讯
  ad_zone = 39;
}
if(pl_path.indexOf(apCH14)==0){ // 时尚集团
  ad_zone = 43;
}
if(pl_path.indexOf(apCH15)==0){ // 美图下载
  ad_zone = 57;
}
if(pl_self.indexOf("icon.trends.com.cn")>0){ // 时尚圈
  ad_zone = 14;
}
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://click.trends.com.cn/click/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:"+ad_zone);
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");
