if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"42593", "zid":"126", "title":"2012能力考", "link":"http://jp.hujiang.com/new/p300673/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201202/pr03164417013.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"42214", "zid":"125", "title":"0-N1", "link":"http://jp.hujiang.com/new/p158237/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr11094856550.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"10226", "zid":"127", "title":"实用日语语法精解 全4册套餐", "link":"http://www.hjbook.net/p8778/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10225", "zid":"127", "title":"2011考研日语专业基础日语考研真题详解", "link":"http://www.hjbook.net/p8752/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10224", "zid":"127", "title":"日语能力考试综合习题集3级对策篇", "link":"http://www.hjbook.net/product/899/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10223", "zid":"127", "title":"新日本语能力测试N3文字词汇全解(含MP3)", "link":"http://www.hjbook.net/p8765/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10222", "zid":"127", "title":"新日本语能力考试模拟试题集N1", "link":"http://www.hjbook.net/p8519/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"11191", "zid":"265", "title":"沪江日语编辑推荐:考试必备用书", "link":"http://jp.yeshj.com/book", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"29732", "zid":"686", "title":"沪江开通12月能力考报名通知免费短信提醒!", "link":"http://jp.yeshj.com/page/75875", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"24606", "zid":"686", "title":"30天突破能力考听力和语法!", "link":"http://jp.yeshj.com/new/p158574/", "advtype":"T", "source":"", "adFormCode":"Z3", "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= "