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.keede.com.cn/?utm_source=hujiang&utm_medium=5ky&utm_campaign=xubei", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"15162", "zid":"180", "title":"惊:来看高薪就业保障!", "link":"http://www.neworldedu.org/zhuanti/2010/hanjia/", "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://www.liuxue-jp.com/application.html", "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://www.neworldedu.org/zhuanti/2010/hanjia/", "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/p372/", "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));
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= "