if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"32603", "zid":"185", "title":"朗阁", "link":"http://www.longre.com/shanghai/09qh/yssj.html", "advtype":"P", "source":"http://mis.hjenglish.com/upload/200910/bug_雅思升级380278.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"33929", "zid":"306", "title":"新航道", "link":"http://shanghai.newchannel.org", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/YS-A-B2P-33929_26.jpg", "adFormCode":"B2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"34743", "zid":"365", "title":"环球雅思", "link":"http://shanghai.ielts.com.cn/item/2010-03-02/51453.html", "advtype":"P", "source":"http://a4.yeshj.com/upload/201003/YS-A-S1P-34743_27.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28578", "zid":"307", "title":"雅思零基础3个月创6分奇迹!", "link":"http://www.mqlearning.net", "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":"每天10小时雅思高强度复旦集训", "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":"30896", "zid":"703", "title":"到海外学习英语的首选!", "link":"http://a8.yeshj.com/zt/EFabroad", "advtype":"T", "source":"", "adFormCode":"Z4", "protected":false }]};A4page.Zone["Z5"]={"zonecode":"Z5",content:[{ "aid":"30196", "zid":"712", "title":"免费索取全球EF英语资料", "link":"http://a8.yeshj.com/zt/EFabroad", "advtype":"T", "source":"", "adFormCode":"Z5", "protected":false }]};A4page.Zone["Z6"]={"zonecode":"Z6",content:[{ "aid":"30197", "zid":"772", "title":"雅思零基础三个月创6分奇迹", "link":"http://www.mqlearning.net", "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;
}