if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"42474", "zid":"1317", "title":"从零开口说日语", "link":"http://jp.hujiang.com/new/p188023/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr31180229341.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"41009", "zid":"342", "title":"零基础直达N1", "link":"http://jp.yeshj.com/new/p158237/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201109/pr28164835812.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"40999", "zid":"972", "title":"快易典淘宝旗舰店", "link":"http://www.hwapu.com.cn/products/prodetail.asp?machineid=116", "advtype":"P", "source":"http://a4.yeshj.com/upload/201109/pr28095000000.gif", "adFormCode":"S2", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28897", "zid":"343", "title":"【日语入门】零基础三招直达达N1级方法!", "link":"http://jp.yeshj.com/new/p158237/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"15514", "zid":"343", "title":"【日语零基础入门】菜鸟训练马上开始", "link":"http://jp.yeshj.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"42460", "zid":"914", "title":"菜鸟们,你们都是哑巴日语吗?", "link":"http://jp.hujiang.com/new/p138504/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"42298", "zid":"914", "title":"日语菜鸟,看动漫必学100句日语", "link":"http://jp.hujiang.com/new/p190745/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"40963", "zid":"914", "title":"从零开始,掌握100句地道日语口语!", "link":"http://jp.yeshj.com/new/p188023/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"40188", "zid":"914", "title":"留学日本,居然可以这么轻松", "link":"http://sjtu.onlyjp.cn/?from=hujiang-sjtu-20120105", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"39513", "zid":"914", "title":"菜鸟学日语三招直达N1的方法", "link":"http://jp.yeshj.com/new/p158237/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"38265", "zid":"914", "title":"菜鸟轻松开口说日语的方法>>", "link":"http://jp.yeshj.com/new/p138504/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33490", "zid":"914", "title":"日语零基础菜鸟,入门必看>>", "link":"http://jp.yeshj.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33489", "zid":"914", "title":"日语初学者,如何晋升日语达人?", "link":"http://jp.yeshj.com/new/p175799/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33482", "zid":"914", "title":"12天,轻松掌握日语五十音!", "link":"http://jp.yeshj.com/new/p122741/", "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));
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= "