if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"10186", "zid":"112", "title":"快易典日语", "link":"http://www.hwapu.com.cn/products/ProDetail.asp?machineid=74", "advtype":"F", "source":"[flash=750,70]http://a4.YesHJ.com/YesHJ/jp/JP-Z-A1P-10186.swf[/flash]", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10184", "zid":"111", "title":"小D日语", "link":"http://dict.hjenglish.com/jp", "advtype":"P", "source":"http://a4.YesHJ.com/YesHJ/jp/JP-Z-B1P-10184.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10191", "zid":"113", "title":"新世界零到二级签约班", "link":"http://www.neworldjp.com/jlpt/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10190", "zid":"113", "title":"日语应用文大全", "link":"http://www.hjbook.net/product/1422/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10189", "zid":"113", "title":"いま、会いにゆきます(単行本) 市川拓司", "link":"http://www.hjbook.net/product/1427", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10188", "zid":"113", "title":"口语能力快速提高", "link":"http://www.aaash.org/japan/default.asp", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10187", "zid":"113", "title":"150cmライフ(単行本) 高木直子", "link":"http://www.hjbook.net/product/1432", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"10196", "zid":"114", "title":"暑期日语进修班", "link":"http://www.onlycollege.com.cn/Thematic/japan0805/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10195", "zid":"114", "title":"日语E-mail书写法", "link":"http://www.hjbook.net/product/1409", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10194", "zid":"114", "title":"感动你一生的日文:经典美文", "link":"http://www.hjbook.net/product/1412", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10193", "zid":"114", "title":"学好日语去日企上班", "link":"http://www.sh-seika.com/index.html", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10192", "zid":"114", "title":"零基础,突破日语能力考", "link":"http://sh.ielts.com.cn/Class/1176.html", "advtype":"T", "source":"", "adFormCode":"H2", "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;
}