if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"29619", "zid":"107", "title":"求精外语", "link":"http://www.whqiujing.com/ry/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/JP-B-A1P-29619_53.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"29865", "zid":"99", "title":"0907能力考解析会", "link":"http://zt.yeshj.com/zt/2009/07jlpt/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/JP-B-B1P-29865_14.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"30023", "zid":"366", "title":"沪江网校", "link":"http://jp.hjenglish.com/page/77348", "advtype":"P", "source":"http://a4.yeshj.com/upload/200907/JP-B-B3P-30023_50.gif", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"29719", "zid":"108", "title":"12月日语能力考备考方案大调查", "link":"http://jp.hjenglish.com/page/77026/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"18857", "zid":"108", "title":"91-07年日语能力考真题汇总专题", "link":"http://jp.hjenglish.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"17767", "zid":"108", "title":"日语专家助你准备09日语能力考!", "link":"http://jp.hjenglish.com/netlesson/?source=86", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10177", "zid":"108", "title":"日本语能力测试对应新考试大纲2级备考套餐", "link":"http://www.hjbook.net/product/2778", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"20452", "zid":"413", "title":"外教日语口语暑期特训小班", "link":"http://www.rakuchi.net/sapply.aspx?type=8", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"20042", "zid":"413", "title":"大幅提升你能力考通过的几率", "link":"http://jp.hjenglish.com/netlesson/?source=86", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"17766", "zid":"413", "title":"免费查阅历年年能力考真题", "link":"http://jp.hjenglish.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"16884", "zid":"413", "title":"知道自己的日语词汇量是多少吗?", "link":"http://super.yeshj.com/jp", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"16883", "zid":"413", "title":"历年日本语能力测试真题归类解析", "link":"http://www.hjbook.net/product/2594", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"15515", "zid":"344", "title":"卡西欧JLPT", "link":"http://zt.hjbook.net/zt/casio/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200808/JP-B-S1P-15515_71.jpg", "adFormCode":"S1", "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;
}