if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"10171", "zid":"107", "title":"新世界日语", "link":"http://www.neworldjp.com/class.asp", "advtype":"P", "source":"http://a4.yeshj.com/upload/200804/JP-B-A1P-10171_62.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"11453", "zid":"99", "title":"华浦日语", "link":"http://www.kingjp.cn", "advtype":"P", "source":"http://a4.yeshj.com/upload/200804/JP-B-B1P-11453_93.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"15016", "zid":"110", "title":"教你几招,直奔IT日企!", "link":"http://www.oristand.com/CMS_Course/class_furi_list.shtml", "advtype":"T", "source":"", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10177", "zid":"108", "title":"推荐:日企员工日语读本", "link":"http://www.hjbook.net/product/1016/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10176", "zid":"108", "title":"日语二手原版书清仓处理", "link":"http://www.hjbook.net/product/1135/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10175", "zid":"108", "title":"全球500强日企招聘进行中", "link":"http://file.chanet.com.cn/51job/51jobcampaign.html", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10174", "zid":"108", "title":"日本留学考试标准试题集(附光盘)", "link":"http://www.hjbook.net/product/1158/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10173", "zid":"108", "title":"日语工作中最常说的800句", "link":"http://www.aaash.org/japan/default.asp", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10172", "zid":"108", "title":"二级高分备考秘籍", "link":"http://www.china-asahi.com/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"15515", "zid":"344", "title":"卡西欧JLPT", "link":"http://www.hjbook.net/zt/casio/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200807/JP-B-S1P-15515_77.gif", "adFormCode":"S1", "protected":false }]};
function show_a4_zone(zonecode)
{
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;
}