if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"42500", "zid":"107", "title":"天津翻译学院", "link":"http://brand.yeshj.com/b86/p27723/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr31160521278.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"41000", "zid":"99", "title":"快易典淘宝旗舰店", "link":"http://www.hwapu.com.cn/products/prodetail.asp?machineid=116", "advtype":"P", "source":"http://a4.yeshj.com/upload/201109/pr28095216921.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"42591", "zid":"366", "title":"2012能力考", "link":"http://jp.hujiang.com/new/p300673/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201202/pr03164308794.gif", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"42465", "zid":"108", "title":"N1,N2,N3轻松搞定", "link":"http://brand.yeshj.com/b86/p27723/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"41949", "zid":"108", "title":"日语零基础入门攻略>>", "link":"http://jp.hujiang.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"41747", "zid":"108", "title":"什么助你迅速飙升竞争力?", "link":"http://www.aaash.org/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"18857", "zid":"108", "title":"91-09年日语能力考真题汇总", "link":"http://jp.yeshj.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 }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"42464", "zid":"413", "title":"能力考保过,0元重修!", "link":"http://brand.yeshj.com/b86/p27723/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"41067", "zid":"413", "title":"掌握日语如何舵驶未来", "link":"http://hajl.athuman.com/cn/lp/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"20042", "zid":"413", "title":"零基础三招直达N1的方法!", "link":"http://jp.yeshj.com/new/p158237/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"17766", "zid":"413", "title":"免费查阅历年能力考真题", "link":"http://jp.yeshj.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"16884", "zid":"413", "title":"想去日本留学?点这里>>", "link":"http://blog.sina.com.cn/s/blog_49e3675d0102ds08.html", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"15515", "zid":"344", "title":"卡西欧电子词典", "link":"http://www.hjbook.net/zt/casio/default.aspx", "advtype":"P", "source":"http://a4.yeshj.com/upload/201103/pr02150149247.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"41591", "zid":"941", "title":"JLPT", "link":"http://jp.yeshj.com/new/p200551/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr30153658511.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["S3"]={"zonecode":"S3",content:[{ "aid":"39784", "zid":"973", "title":"JTEST(A-D)", "link":"http://jp.yeshj.com/new/p164070/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201105/pr27165050806.gif", "adFormCode":"S3", "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= "