if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"11351", "zid":"287", "title":"沪江网店,最优惠的外语书店", "link":"http://www.hjbook.net", "advtype":"P", "source":"http://a4.yeshj.com/upload/200803/EN-Z-B1P-11351_20.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"11377", "zid":"291", "title":"英语专业八级作文指南 (二手书)", "link":"http://www.hjbook.net/product/1325", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11376", "zid":"291", "title":"商务英语套话(适合BEC写作)", "link":"http://www.hjenglish.com/down/11175/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11375", "zid":"291", "title":"雅思写作词汇小伴侣(第2版)", "link":"http://www.hjbook.net/product/1564", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11373", "zid":"291", "title":"挑战六级710分:写作", "link":"http://www.hjbook.net/product/1689/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"11380", "zid":"292", "title":"『环球英语网校』雅思真题写作班", "link":"http://www.hjbook.net/product/786", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"11379", "zid":"292", "title":"实用英语写作", "link":"http://www.hjbook.net/product/1182", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"11378", "zid":"292", "title":"点石成金--英语商函写作实务(全新修订版)", "link":"http://www.hjbook.net/product/1186", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"11374", "zid":"292", "title":"雅思8分万能作文——跟雅思考官学雅思", "link":"http://www.hjbook.net/product/1569", "advtype":"T", "source":"", "adFormCode":"H2", "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;
}