if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"32013", "zid":"386", "title":"国庆60周年促销专题", "link":"http://www.hjbook.net/zt/60th/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200909/KY-D-A1P-32013_81.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"28712", "zid":"387", "title":"新东方考研在线精品课程", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=151", "advtype":"P", "source":"http://a4.yeshj.com/upload/200905/KY-D-B1P-28712_29.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"32198", "zid":"898", "title":"新东方考研", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx/?source=151", "advtype":"P", "source":"http://a4.yeshj.com/upload/200910/KY-D-B2P-32198_32.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"31683", "zid":"424", "title":"2010考研英语强化班,助你轻松考过线!", "link":"http://kaoyan.hjenglish.com/page/81671/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"34151", "zid":"889", "title":"新东方在线", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=151", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/KY-D-H2P-34151_30.gif", "adFormCode":"H2", "protected":false }]};A4page.Zone["H3"]={"zonecode":"H3",content:[{ "aid":"33785", "zid":"891", "title":"限时抢购2011新东方考研名师在线", "link":"http://www.hjbook.net/countdown?source=151", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"32183", "zid":"891", "title":"考研英语真题电子报订阅", "link":"http://kaoyan.hjenglish.com/page/84304/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"32182", "zid":"891", "title":"揭密新东方考研保过班内幕!", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=151", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false }]};A4page.Zone["H4"]={"zonecode":"H4",content:[{ "aid":"34152", "zid":"894", "title":"沪江网校", "link":"http://class.yeshj.com/zt/en/?source=147", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/KY-D-H4P-34152_72.gif", "adFormCode":"H4", "protected":false }]};A4page.Zone["H5"]={"zonecode":"H5",content:[{ "aid":"34128", "zid":"895", "title":"限时抢购2011新东方考研名师在线", "link":"http://www.hjbook.net/countdown?source=151", "advtype":"T", "source":"", "adFormCode":"H5", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"26590", "zid":"388", "title":"考研书籍", "link":"http://kaoyan.hjenglish.com/2010kaoyan", "advtype":"P", "source":"http://a4.yeshj.com/upload/200904/KY-D-S1P-26590_23.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"16486", "zid":"389", "title":"super答题", "link":"http://recite.super.yeshj.com/ky", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/KY-D-S2P-16486_22.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["S3"]={"zonecode":"S3",content:[{ "aid":"32195", "zid":"896", "title":"考研网校", "link":"http://kaoyan.hjenglish.com/page/81671/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200910/KY-D-S3P-32195_97.gif", "adFormCode":"S3", "protected":false }]};A4page.Zone["S4"]={"zonecode":"S4",content:[{ "aid":"32196", "zid":"897", "title":"经济研究生报考", "link":"http://kaoyan.hjenglish.com/page/84451/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200910/KY-D-S4P-32196_89.jpg", "adFormCode":"S4", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"31684", "zid":"757", "title":"2010考研英语强化班,助你轻松考过线!", "link":"http://kaoyan.hjenglish.com/page/81671", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"31685", "zid":"760", "title":"新东方考研辅导班,不过免费重读!", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=86", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};
function show_a4_zone(zonecode)
{
if( typeof(A4page.Zone[zonecode]) == "undefined" ) return;
if(A4page.Zone[zonecode].content[0].advtype == "T"){
for (var i=0, post; post = A4page.Zone[zonecode].content[i]; i++) {
if(zonecode.substring(0,1) == "H")
document.write("" + post.title +" ");
else
document.write("" + post.title +"
");
}
} else if (A4page.Zone[zonecode].content[0].advtype == "P"){
if( A4page.Zone[zonecode].content.length == 1 ){
document.write("
");
}else{
for (var i=0, post; post = A4page.Zone[zonecode].content[i]; i++) {
document.write("
");
}
}
}else if (A4page.Zone[zonecode].content[0].advtype == "F"){
document.write(ConvertUbb(A4page.Zone[zonecode].content[0].source));
}
}
function ConvertUbb(Source){
//定义ubb转换参数
var flash_ubb = /\[flash=(\d*),(\d*)\](\S*)\[\/flash\]/igm;
var flash_html= "";
//执行转换
Source=Source.replace(flash_ubb, flash_html );
return Source;
}