if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34323", "zid":"742", "title":"口译春季班", "link":"http://tr.hjenglish.com/page/94621/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/TS-A-A1P-34323_91.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"32885", "zid":"743", "title":"新东方在线", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=151", "advtype":"P", "source":"http://mis.hjenglish.com/upload/200910/bug_听力三屏676-84-1578.gif", "adFormCode":"A2", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"34262", "zid":"739", "title":"网校春季班", "link":"http://class.yeshj.com/course?source=29", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/TS-A-B1P-34262_18.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"24791", "zid":"740", "title":"美国总统每周电台演讲", "link":"http://ts.hjenglish.com/search/doc?all=电台演讲", "advtype":"P", "source":"http://a4.yeshj.com/upload/200903/TS-A-B2P-24791_80.jpg", "adFormCode":"B2", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"24634", "zid":"741", "title":"沪江内容广告图", "link":"http://ts.hjenglish.com/search.aspx?x=0&y=0&kw=%E5%A4%9A%E4%B8%BB%E9%A2%98", "advtype":"P", "source":"http://a4.yeshj.com/upload/200909/TS-A-B3P-24634_57.gif", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"25771", "zid":"766", "title":"英语小测:一见钟情怎么说?", "link":"http://cnap.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&kwid=85341&cfid=84219&tyid=84223&etag=A67000024FE", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25770", "zid":"766", "title":"最快的提高英语口语的方法", "link":"http://cnap.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&v=2&kwid=95024&cfid=82589&v=2&etag=A67000058FE", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25769", "zid":"766", "title":"有用信息:外企必备的面试英语!", "link":"http://cnap.englishtown.com/Sp/Landing/default.aspx?ctr=cn&lng=cs&kwid=83721&cfid=90343&tyid=84223&etag=A67000039FE", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25768", "zid":"766", "title":"【超准】点击就知道你的职业前景", "link":"http://cnap.englishtown.com/sp/landing/default.aspx?ctr=cn&lng=cs&kwid=92268&cfid=82589&v=2&etag=A67000004FE", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"25767", "zid":"766", "title":" 沪江网校,成就你的英语梦想", "link":"http://class.yeshj.com/zt/en/?source=147", "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));
}
}
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;
}