if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"33458", "zid":"164", "title":"新东方在线", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=151", "advtype":"P", "source":"http://a4.yeshj.com/upload/200911/CE-D-B1P-33458_17.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"33807", "zid":"165", "title":"沪江网校", "link":"http://class.yeshj.com/zt/en/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/CE-D-B2P-33807_64.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"33835", "zid":"168", "title":"考完四六级,现金就来拿!", "link":"http://www.wulongonline.com/wulonghelp/award-introduce.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"26718", "zid":"166", "title":"CET网课", "link":"http://cet.hjenglish.com/netlesson", "advtype":"P", "source":"http://a4.yeshj.com/upload/200904/CE-D-S1P-26718_52.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"16851", "zid":"404", "title":"四六级图书", "link":"http://www.hjbook.net/product/1017/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/CE-D-S2P-16851_30.gif", "adFormCode":"S2", "protected":false }]};A4page.Zone["S3"]={"zonecode":"S3",content:[{ "aid":"21302", "zid":"552", "title":"沪江四六级考后直播间", "link":"http://cet.hjenglish.com/1220/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200812/CE-D-S3P-21302_47.gif", "adFormCode":"S3", "protected":false }]};A4page.Zone["S4"]={"zonecode":"S4",content:[{ "aid":"20721", "zid":"635", "title":"许愿", "link":"http://cet.hjenglish.com/2007/wish.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200812/CE-D-S4P-20721_52.gif", "adFormCode":"S4", "protected":false }]};A4page.Zone["S5"]={"zonecode":"S5",content:[{ "aid":"33808", "zid":"910", "title":"沪江新部落邀请你的加入!", "link":"http://bulo.hjenglish.com/app/home", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/CE-D-S5P-33808_91.gif", "adFormCode":"S5", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"33836", "zid":"167", "title":"全面汇总精华四级、六级资料信息", "link":"http://www.hjenglish.com/new/c1021/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"33832", "zid":"167", "title":"大学生商务英语bec【中级寒假班】", "link":"http://class.yeshj.com/10038/intro", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14956", "zid":"167", "title":"免费测试你的英语水平!", "link":"http://a8.yeshj.com/zt/mars/me081208.aspx", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14911", "zid":"167", "title":"免费订阅每日英语教程", "link":"http://cnap.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&kwid=82601&cfid=82604&tyid=82608&etag=A67000069FE", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"12427", "zid":"167", "title":"沪友英语水平免费测试", "link":"http://super.yeshj.com/en/WordsResult.aspx", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"33833", "zid":"636", "title":"日语入门至中级【0-N2寒假班】", "link":"http://class.yeshj.com/10039/intro", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28021", "zid":"636", "title":"现金悬赏CET高分牛人! ", "link":"http://cet.hjenglish.com/wulongonline", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"27564", "zid":"636", "title":"12月四六级考试通关法宝 95%保过", "link":"http://cet.hjenglish.com/netlesson/?source=151", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"20884", "zid":"636", "title":"商务英语权威考试手册免费领取", "link":"http://www.english168.com", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"20811", "zid":"636", "title":"2009年六级备考在线课程推荐", "link":"http://cet.hjenglish.com/netlesson/?source=151", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"20808", "zid":"636", "title":"体验乌龙学院,赢CET奖学金!", "link":"http://www.wulongonline.com/wulonghelp/award-introduce.aspx", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"24185", "zid":"713", "title":"考完四六级,进攻中高级口译!", "link":"http://tr.hjenglish.com/page/89137", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false }]};A4page.Zone["Z4"]={"zonecode":"Z4",content:[{ "aid":"33327", "zid":"774", "title":"口译orBEC?选择适合自己的证书", "link":"http://tr.hjenglish.com/page/91259", "advtype":"T", "source":"", "adFormCode":"Z4", "protected":false }]};A4page.Zone["Z5"]={"zonecode":"Z5",content:[{ "aid":"33830", "zid":"911", "title":"2010年3月英语口译【高口寒假班】", "link":"http://class.yeshj.com/10036/intro", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false },{ "aid":"33829", "zid":"911", "title":"2010年3月英语口译【中口寒假班】", "link":"http://class.yeshj.com/10037/intro", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false },{ "aid":"33828", "zid":"911", "title":"商务英语BEC【中级寒假班】", "link":"http://class.yeshj.com/10038/intro", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false },{ "aid":"33338", "zid":"911", "title":"CET六级高分精品班(送刘畅背词课程)", "link":"http://www.hjbook.net/lesson/3728/?source=163", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false },{ "aid":"33336", "zid":"911", "title":"CET四级高分精品班(送爵以词雄-四级4000词汇课程)", "link":"http://www.hjbook.net/lesson/3722/?source=163", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false },{ "aid":"33335", "zid":"911", "title":"CET六级425通关班", "link":"http://www.hjbook.net/lesson/3727/?source=163", "advtype":"T", "source":"", "adFormCode":"Z5", "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;
}