if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"41555", "zid":"742", "title":"口译班", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr29132550886.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"41641", "zid":"743", "title":"BEC", "link":"http://ts.hjenglish.com/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201112/pr02120201696.jpg", "adFormCode":"A2", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"39724", "zid":"739", "title":"英语口语", "link":"http://en.yeshj.com/new/p157615/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201105/pr19114712997.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"39249", "zid":"740", "title":"企培", "link":"http://class.yeshj.com/qipei/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201103/pr21150957741.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"40943", "zid":"741", "title":"美剧英语", "link":"http://www.hjenglish.com/new/p164830/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201109/pr23103146812.jpg", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"37395", "zid":"766", "title":"口译:入门+流程+攻略", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"36693", "zid":"766", "title":"11.26环球雅思、新托福峰会", "link":"http://shanghai.gedu.org/item/2011-11-11/54992.html", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"36692", "zid":"766", "title":"中英文笔记符号全面解析", "link":"http://www.kaosee.cn/plus/list.php?tid=46", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"36691", "zid":"766", "title":"教你如何一天收入5000!", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25769", "zid":"766", "title":"办公室英语口语300句", "link":"http://www.hjenglish.com/new/p168754/", "advtype":"T", "source":"", "adFormCode":"H1", "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= "