if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"27016", "zid":"164", "title":"新东方在线课程", "link":"http://zt.yeshj.com/zt/2009/video/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200904/CE-D-B1P-27016_27.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"29652", "zid":"165", "title":"四六级网络课程", "link":"http://www.hjbook.net/tag/CET12月保过/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/CE-D-B2P-29652_31.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"25669", "zid":"168", "title":"四六级高分备考建议!", "link":"http://zt.yeshj.com/zt/2009/video/", "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["Z1"]={"zonecode":"Z1",content:[{ "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 },{ "aid":"10344", "zid":"167", "title":"《爱情呼叫转移2》台词(中英双语)", "link":"http://www.english168.com/news/html/200948/1157209392.htm", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10343", "zid":"167", "title":"大学英语四级考试听力100篇MP3", "link":"http://www.hjenglish.com/down/11289/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"28021", "zid":"636", "title":"如何拿到世界500强的OFFER?", "link":"http://a8.yeshj.com/zt/mars/Campus.aspx", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"27564", "zid":"636", "title":"2009英语四六级备考推荐!", "link":"http://cet.hjenglish.com/page/74279/", "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年6月六级备考在线课程推荐", "link":"http://cet.hjenglish.com/page/74279/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"20808", "zid":"636", "title":"足不出户 懒人英语必备 ", "link":"http://www.hiknow.com/hjenglish/index.html?uid=hjenglish", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"24185", "zid":"713", "title":"Times大学排名Top10", "link":"http://ielts.hjenglish.com/page/72422", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false }]};A4page.Zone["Z4"]={"zonecode":"Z4",content:[{ "aid":"25840", "zid":"774", "title":"英语小测:一见钟情怎么说?", "link":"http://cnap.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&kwid=85341&cfid=84219&tyid=84223&etag=A67000024FE", "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;
}