if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"42592", "zid":"112", "title":"2012能力考", "link":"http://jp.hujiang.com/new/p300673/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201202/pr03164347029.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"39085", "zid":"111", "title":"和风日语", "link":"http://www.jpwind.com/", "advtype":"F", "source":"[flash=517,55]http://a4.yeshj.com/upload/201109/pr30143241797.swf[/flash]", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"15908", "zid":"113", "title":"最新推荐:日语书在线连载", "link":"http://press.hjbook.net/ecust/serialize/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10190", "zid":"113", "title":"日语应用文大全", "link":"http://www.hjbook.net/p1422/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10189", "zid":"113", "title":"现在,只想爱你- 市川拓司", "link":"http://www.hjbook.net/p1451/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10188", "zid":"113", "title":"日语网络课程汇总!", "link":"http://jp.yeshj.com/netlesson/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10187", "zid":"113", "title":"150cmライフ(単行本) 高木直子", "link":"http://www.hjbook.net/p1432/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"37071", "zid":"114", "title":"来看日本名校视频集锦!", "link":"http://www.liuxue-jp.com/application.html", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"36732", "zid":"114", "title":"隐形眼镜在线免费试戴!", "link":"http://www.keede.com.cn/soye/cp2010910/2010up300.html?utm_source=hujiang&utm_medium=5ky&utm_campaign=xubei", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10196", "zid":"114", "title":"如何足不出户就能学好日语?", "link":"http://jp.yeshj.com/netlesson/?source=147", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10195", "zid":"114", "title":"日语E-mail书写法", "link":"http://www.china-asahi.com/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10194", "zid":"114", "title":"我的第一本日语阅读书", "link":"http://www.hjbook.net/p5603/", "advtype":"T", "source":"", "adFormCode":"H2", "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= "