if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34284", "zid":"627", "title":"BEC网校春季班", "link":"http://www.hjenglish.com/subject/bec/page/94646/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/EN-B-A1P-34284_87.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"28908", "zid":"629", "title":"新概念", "link":"http://www.hjbook.net/zt/snce/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200907/EN-B-B1P-28908_28.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"20673", "zid":"630", "title":"DHC广告", "link":"http://www.dhc.net.cn/gds/category01.jsp?ad_cps=2366&un_cps=1", "advtype":"P", "source":"http://a4.yeshj.com/upload/200812/EN-B-B2P-20673_51.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"20549", "zid":"628", "title":"雅思新手", "link":"http://ielts.hjenglish.com/subject/greenhand", "advtype":"P", "source":"http://a4.yeshj.com/upload/200812/EN-B-S1P-20549_23.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"20328", "zid":"620", "title":"提高英语口语的学习英语口语的学英语口语", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"20327", "zid":"620", "title":"越狱第四季第10集学习笔记在线观看", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"20326", "zid":"620", "title":"T.I.重返美单曲榜首 布兰妮创纪录曲目", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"20325", "zid":"620", "title":"新歌先听:上尉诗人 爱你如一", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"20324", "zid":"620", "title":"※听译BEC口语※8:午餐", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"20323", "zid":"620", "title":"一百句商务口语必背句", "link":"http://www.yeshj.com/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"33765", "zid":"687", "title":"BEC or口译?选择适合自己的证书", "link":"http://tr.hjenglish.com/page/91259", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"27438", "zid":"711", "title":"找个老外学英语,免费申请", "link":"http://www.marsenglish.com/tg/me081208/?ta=G9M00me081208I0120000", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false }]};A4page.Zone["Z4"]={"zonecode":"Z4",content:[{ "aid":"33297", "zid":"770", "title":"冬日蜗居 学商务英语BEC", "link":"http://www.hjenglish.com/subject/bec/page/88641", "advtype":"T", "source":"", "adFormCode":"Z4", "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;
}