if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34327", "zid":"801", "title":"日语春季班", "link":"http://jp.hjenglish.com/page/94764/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/JP-Z-A1P-34327_30.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"28408", "zid":"807", "title":"快易典电子词典", "link":"http://www.hwapu22.com/products/proview.asp?machineid=74", "advtype":"F", "source":"[flash=750,70]http://a4.yeshj.com/upload/200905/JP-Z-A2F-28408_96.swf[/flash]", "adFormCode":"A2", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"28395", "zid":"804", "title":"新东方日语金牌通关班", "link":"http://jp.hjenglish.com/netlesson/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200905/JP-Z-B1P-28395_40.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"28406", "zid":"806", "title":"沪江日语小D", "link":"http://dict.hjenglish.com/jp/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200905/JP-Z-B2P-28406_61.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"28387", "zid":"802", "title":"日语零基础一年达N2级的方法", "link":"http://jp.hjenglish.com/page/88639", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28386", "zid":"802", "title":"坚持梦想-我的赴日留学路", "link":"http://blog.sina.com.cn/u/1606673703", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28385", "zid":"802", "title":"新世界外语,新春送优惠!", "link":"http://www.neworldedu.org/zhuanti/2010/yingxin/?Source=hj", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28384", "zid":"802", "title":"在日企工作一定要懂的日语!", "link":"http://www.kingjp.cn/indexs.asp", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28382", "zid":"802", "title":"高分秘笈,日语在线课程", "link":"http://class.yeshj.com/zt/jp/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28381", "zid":"802", "title":"最真实的日本留学生活", "link":"http://www.kansaigogen.ac.jp", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28471", "zid":"803", "title":"在日企一定要懂的日语!", "link":"http://www.kingjp.cn/indexs.asp", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"28392", "zid":"803", "title":"学好日语去日企上班", "link":"http://www.sh-seika.com/20090615zhusuban_2.html", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"28391", "zid":"803", "title":"《日本桥》杂志在线阅读", "link":"http://www.j-bridge.cn/nr/nr.htm", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"28390", "zid":"803", "title":"卡西欧日语电子词典中心", "link":"http://zt.hjbook.net/zt/casio/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"28400", "zid":"805", "title":"全外教授课暑期日语班热招", "link":"http://www.joyful-net.com.cn/uqq88/5072-315049.aspx", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28399", "zid":"805", "title":"在日企工作一定要懂的日语!", "link":"http://www.kingjp.cn/indexs.asp", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28398", "zid":"805", "title":"日语零基础一年可达一级", "link":"http://www.kingjp.cn/indexs.asp", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28397", "zid":"805", "title":"日语一年制6月15日开班", "link":"http://www.joyful-net.com.cn/uqq88/5072-244783.aspx", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28396", "zid":"805", "title":"【保过】日语能力考在线课程", "link":"http://jp.hjenglish.com/netlesson/?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "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;
}