if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"49187", "zid":"229", "title":"0-N1签约保过4月名师通关班", "link":"http://class.hujiang.com/145678/intro?source=742", "advtype":"P", "source":"http://a4.yeshj.com/upload/201403/pr20190235624.jpg", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"37713", "zid":"228", "title":"0-N2", "link":"http://jp.hjenglish.com/new/p474162/?source=688", "advtype":"P", "source":"http://a4.yeshj.com/upload/201305/pr20172532562.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"52592", "zid":"573", "title":"上外名师强强联手 0-N1轻松实现", "link":"http://jp.hjenglish.com/new/p422170/?source=688", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"49178", "zid":"573", "title":"参加沪江网校", "link":"http://class.hujiang.com/course?source=674", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18865", "zid":"573", "title":"做题累了吗?看原版日剧吧,还锻炼听力!", "link":"http://jp.yeshj.com/new/zt/jpdrama/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18864", "zid":"573", "title":"春暖花开,温暖过N2的秘诀!", "link":"http://jp.hjenglish.com/new/p335435/?source=688", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18863", "zid":"573", "title":"能力考语法词汇在线背诵", "link":"http://super.yeshj.com/recite", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18854", "zid":"573", "title":"新日能测验全真模拟题集N1(含光盘)", "link":"http://www.hjbook.net/p8777/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18853", "zid":"573", "title":"日本语能力测试真题精解 1级", "link":"http://www.hjbook.net/p8015/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18849", "zid":"573", "title":"查日语单词,用小D词典", "link":"http://dict.yeshj.com/jp", "advtype":"T", "source":"", "adFormCode":"Z1", "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= "