if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10328", "zid":"161", "title":"850G外语&考研资料高速下载", "link":"http://www.hjbook.net/vip", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"10330", "zid":"162", "title":"850G外语&考研资料高速下载", "link":"http://www.hjbook.net/vip", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["H3"]={"zonecode":"H3",content:[{ "aid":"10336", "zid":"163", "title":"中高级口译套餐", "link":"http://www.hjbook.net/product/348/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"10329", "zid":"163", "title":"高级口译备考指南+MP3", "link":"http://shop.hjenglish.com/product/498/", "advtype":"T", "source":"", "adFormCode":"H3", "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;
}