if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"41559", "zid":"1010", "title":"口译班", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr29133028479.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"37170", "zid":"504", "title":"外教一对一,免费体验口语课程", "link":"http://www.friendteacher.com/cn", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18263", "zid":"504", "title":"中高口二阶段备考,我用什么书? ", "link":"http://tr.yeshj.com/book/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18261", "zid":"504", "title":"攻克口译口试:通过电影提升英汉互译", "link":"http://ts.yeshj.com/movie", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"38953", "zid":"505", "title":"免费领电子杂志,听外教课!", "link":"http://www.webinternational.com.cn/d/biz_english.aspx?ADID=410337", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"38834", "zid":"505", "title":"白领必修英语课程>>", "link":"http://en.yeshj.com/bec/netlesson/?source=351", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"37394", "zid":"505", "title":"三个月,轻松拿下中高级口译", "link":"http://www.hjenglish.com/new/p198313/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"36665", "zid":"505", "title":"教你如何一天收入5000!", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18270", "zid":"505", "title":"中英文笔记符号全面解析", "link":"http://www.kaosee.cn/plus/list.php?tid=46", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18269", "zid":"505", "title":"紧缺人才:同声翻译 同声传译", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"Z2", "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= "