if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"42466", "zid":"744", "title":"VIPABC和全球老外学英语", "link":"http://www.vipabc.com/count.asp?code=0ZFKq1YRbD", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"42036", "zid":"744", "title":"全球外教到你家", "link":"http://www.vipabc.com/count.asp?code=VAc1gnJX9U", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"36671", "zid":"822", "title":"11.26环球雅思、新托福峰会", "link":"http://shanghai.gedu.org/item/2011-11-11/54992.html", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28947", "zid":"822", "title":"从零开始学英语,入门必看>>", "link":"http://en.yeshj.com/new/p163792/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"37035", "zid":"823", "title":"你需要从零开始学英语吗?", "link":"http://en.yeshj.com/new/p163792/", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"28945", "zid":"823", "title":"每天挤45分钟攻克商务英语", "link":"http://en.yeshj.com/bec/netlesson/?source=351", "advtype":"T", "source":"", "adFormCode":"Z3", "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= "