if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"14959", "zid":"294", "title":"社交必备英语-免费课程每日发送", "link":"http://www.chanet.com.cn/click.cgi?a=96016&d=37537&u=&e=&url=http://www.cn.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&kwid=88164&cfid=89920&tyid=82608&etag=A02012FE1", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11468", "zid":"294", "title":"美国之音听力.词汇一本通", "link":"http://www.hjbook.net/product/1227/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11467", "zid":"294", "title":"英语口语学习资料大全", "link":"http://www.hjenglish.com/search/?cx=009038655374808375654%3At2o-hj8g0wq&q=%E8%8B%B1%E8%AF%AD%E5%8F%A3%E8%AF%AD&cof=FORID%3A10#1484", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11466", "zid":"294", "title":"高级口译备考指南+MP3", "link":"http://www.hjbook.net/product/498/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11465", "zid":"294", "title":"中高级口译套餐(含真题mp3)", "link":"http://www.hjbook.net/product/348/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11464", "zid":"294", "title":"850G外语资料超高速下载", "link":"http://www.hjbook.net/vip", "advtype":"T", "source":"", "adFormCode":"Z1", "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;
}