if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34039", "zid":"107", "title":"日语春季班", "link":"http://jp.hjenglish.com/page/94764/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/JP-B-A1P-34039_41.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"34420", "zid":"99", "title":"查分", "link":"http://jp.hjenglish.com/page/95819/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201002/JP-B-B1P-34420_34.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"33907", "zid":"366", "title":"商务日语班", "link":"http://class.yeshj.com/10040/intro?source=29", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/JP-B-B3P-33907_25.gif", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"29719", "zid":"108", "title":"新世界外语,新春送优惠!", "link":"http://www.neworldedu.org/zhuanti/2010/yingxin/?Source=hj", "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":"坚持梦想-我的赴日留学路", "link":"http://blog.sina.com.cn/u/1606673703", "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":"新能力考,你考“N”几?", "link":"http://jp.hjenglish.com/zt/2010wangluokecheng/?source=147", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"20042", "zid":"413", "title":"大幅提升你能力考通过的几率", "link":"http://jp.hjenglish.com/netlesson/?source=147", "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://class.yeshj.com/zt/jp/?source=147", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"16883", "zid":"413", "title":"沪江网校N1、N2、N3班报名入口>>", "link":"http://jp.hjenglish.com/page/86747", "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;
}