if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"41557", "zid":"775", "title":"口译班", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr29132805761.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"25851", "zid":"777", "title":"口语二屏广告", "link":"http://en.yeshj.com/4job", "advtype":"P", "source":"http://a4.yeshj.com/upload/200903/EN-Z-A1P-25846_40.gif", "adFormCode":"A2", "protected":false }]};A4page.Zone["A3"]={"zonecode":"A3",content:[{ "aid":"41394", "zid":"779", "title":"美剧", "link":"http://www.hjenglish.com/new/p164830/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr15141145281.jpg", "adFormCode":"A3", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"34392", "zid":"937", "title":"BEC春季班", "link":"http://class.yeshj.com/tag/%E5%95%86%E5%8A%A1%E8%8B%B1%E8%AF%AD?source=351", "advtype":"P", "source":"http://a4.yeshj.com/upload/201002/EN-Z-B1P-34392_44.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"36712", "zid":"783", "title":"11.26环球雅思、新托福峰会", "link":"http://shanghai.gedu.org/item/2011-11-11/54992.html", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25875", "zid":"783", "title":"足不出户,轻松学英语!", "link":"http://class.yeshj.com/zt/en/?source=351", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25874", "zid":"783", "title":"学口译,做金领!", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25873", "zid":"783", "title":"在线对话新概念网络课程", "link":"http://hjbook.net/zt/snce/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"25867", "zid":"781", "title":"口语机构推荐", "link":"http://brand.yeshj.com/list/%E5%8F%A3%E8%AF%AD/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200903/EN-Z-S1P-25867_28.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"41391", "zid":"782", "title":"办公室英语", "link":"http://www.hjenglish.com/new/p168754/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr15132843937.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"41393", "zid":"776", "title":"经典办公室英语300句>>", "link":"http://www.hjenglish.com/new/p168754/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"36695", "zid":"776", "title":"教你如何一天收入5000!", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"25849", "zid":"776", "title":"找工作必会的英语口语", "link":"http://en.yeshj.com/talk/tag/%E5%8A%9E%E5%85%AC%E5%AE%A4%E5%8F%A3%E8%AF%AD", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"25857", "zid":"778", "title":"职场升值 尽在你掌握中!", "link":"http://en.yeshj.com/4job", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"25856", "zid":"778", "title":"一见钟情就是这么回事", "link":"http://en.yeshj.com/talk/page/59993/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"25855", "zid":"778", "title":"精英博客 我看名人说", "link":"http://blog.yeshj.com/star", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"25854", "zid":"778", "title":"最抒情的 Love 英文歌曲在线听", "link":"http://ts.yeshj.com/music/album/love/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"25863", "zid":"780", "title":"免费体验抢救上班族英语", "link":"http://www.hiknow.com/sessionhall.html?uid=hjenglish", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"25862", "zid":"780", "title":"Lucy陪你说英语-休闲聊天版", "link":"http://www.hjbook.net/product/2738/", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"25861", "zid":"780", "title":"带你看真实的留学生活", "link":"http://ielts.yeshj.com", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"25860", "zid":"780", "title":"关于天气的经典英文对话", "link":"http://en.yeshj.com/talk/page/57839/", "advtype":"T", "source":"", "adFormCode":"Z3", "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));
document.write(ConvertUbb2(A4page.Zone[zonecode].content[0].source,A4page.Zone[zonecode].content[0].aid));
}
}
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;
}
function ConvertUbb2(Source,aid){
//定义ubb转换参数
var flash_ubb = /\[flash=(\d*),(\d*)\](\S*)\[\/flash\]/igm;
var flash_html= "