if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34370", "zid":"791", "title":"凯育法语", "link":"http://beijing.crelune.org", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/FR-D-A1P-34370_37.jpg", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"33985", "zid":"790", "title":"法盟", "link":"http://tcf.afshanghai.org", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/FR-D-B1P-33985_73.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"33684", "zid":"187", "title":"做老外的汉语教师!你也可以", "link":"http://www.cnfirst.org/Chinese/ShowNews.asp?RootID=0&ClsID=80&ID=231", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["L1"]={"zonecode":"L1",content:[{ "aid":"32303", "zid":"385", "title":"AAA法语", "link":"http://www.aaash.org", "advtype":"P", "source":"http://a4.yeshj.com/upload/200910/FR-D-L1P-32303_34.gif", "adFormCode":"L1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"25981", "zid":"510", "title":"元培", "link":"http://tr.hjenglish.com/page/66592/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200903/FR-D-S1P-25981_73.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28934", "zid":"418", "title":"法语初学者必看:启蒙法语", "link":"http://brand.hjenglish.com/73/class/13297/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"26907", "zid":"418", "title":"法语资料免费下载大礼包", "link":"http://fr.hjenglish.com/page/30100/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"17052", "zid":"418", "title":"卡西欧法语专用电子词典EW-V4000L测评", "link":"http://fr.hjenglish.com/page/42327/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"17130", "zid":"420", "title":"快易典法语王FA329测评报告", "link":"http://fr.hjenglish.com/page/34765/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"30458", "zid":"873", "title":"高手TCF考试600分之心得分享", "link":"http://brand.hjenglish.com/73/content/13480/", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false }]};A4page.Zone["Z4"]={"zonecode":"Z4",content:[{ "aid":"30459", "zid":"874", "title":"好消息:蒙特利尔大学招生说明会", "link":"http://brand.hjenglish.com/73/content/13825", "advtype":"T", "source":"", "adFormCode":"Z4", "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));
}
}
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;
}