if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"27190", "zid":"185", "title":"朗阁", "link":"http://www.longre.com/shanghai/09zsb.html", "advtype":"P", "source":"http://a4.yeshj.com/upload/200904/YS-A-B1P-27190_88.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"28859", "zid":"306", "title":"新航道", "link":"http://shanghai.newchannel.org/", "advtype":"F", "source":"[flash=688,74]http://a4.yeshj.com/upload/200906/YS-A-B2F-28859_25.swf[/flash]", "adFormCode":"B2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"29579", "zid":"365", "title":"环球雅思", "link":"http://shanghai.ielts.com.cn/item/2009-06-09/51051.html", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/YS-A-S1P-29579_74.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28578", "zid":"307", "title":"昂立托福雅思年会,与你相约5月30日!", "link":"http://ielts.hjenglish.com/zt/tuoya", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18758", "zid":"307", "title":"出国生存口语强化再训以及国外生活技巧", "link":"http://www.mqlearning.net", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"11788", "zid":"309", "title":"雅思资料大放送", "link":"http://www.hjenglish.com/down/list/102/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"18775", "zid":"572", "title":"最权威的雅思6分专卖店", "link":"http://www.mqlearning.net", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"18774", "zid":"572", "title":"一元钱学雅思保6退费报销考试费", "link":"http://www.mqlearning.net", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false }]};A4page.Zone["Z4"]={"zonecode":"Z4",content:[{ "aid":"29838", "zid":"703", "title":"了解各国最新留学政策,听取资深留学专家建议>>", "link":"http://www.17000.com.cn/StudyAbroad/ArticleView.aspx?ArticleID=1288", "advtype":"T", "source":"", "adFormCode":"Z4", "protected":false }]};A4page.Zone["Z5"]={"zonecode":"Z5",content:[{ "aid":"27264", "zid":"712", "title":"我在英国谢菲尔德学英语练网球", "link":"http://ielts.hjenglish.com/page/74389/", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false }]};A4page.Zone["Z6"]={"zonecode":"Z6",content:[{ "aid":"25838", "zid":"772", "title":"与美国大学联手,学历与财富双赢", "link":"http://a8.yeshj.com/zt/lida/", "advtype":"T", "source":"", "adFormCode":"Z6", "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;
}