if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10372", "zid":"181", "title":"880资料英语学习资料高速下载>>", "link":"http://www.ef.com.cn/englishfirst/autumn/default.aspx?etag=EFCN_Autumn2008_CSHJeng1", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"16145", "zid":"378", "title":"卡西欧专题", "link":"http://zt.hjbook.net/zt/casio/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200808/BU-D-S1P-16145_21.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"15925", "zid":"180", "title":"网络在线,学习新概念", "link":"http://www.hjbook.net/zt/jinghua/testing.aspx", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"15162", "zid":"180", "title":"新概念第二册在线课程", "link":"http://www.hjbook.net/zt/jinghua/testing.aspx", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14969", "zid":"180", "title":"听力口语天天练", "link":"http://www.tjhongren.com/ysks.asp?id=44", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14928", "zid":"180", "title":"零基础,看动画学英语", "link":"http://a8.yeshj.com/zt/globalkids", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11979", "zid":"180", "title":"商务口语专家", "link":"http://www.english168.com", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11917", "zid":"180", "title":"你每天能记多少个单词", "link":"http://sh.ndi.com.cn/bm/45.asp", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11470", "zid":"180", "title":"好消息:沪江网和VOA官方合作达成", "link":"http://www.hjbbs.com/thread-8-478538.htm", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11460", "zid":"180", "title":"走遍美国(Family Album,U.S.A.)7DVD", "link":"http://www.hjbook.net/product/372", "advtype":"T", "source":"", "adFormCode":"Z1", "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;
}