if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"23981", "zid":"173", "title":"轻松开口说出漂亮日语口语", "link":"http://www.rakuchi.net/levelapply.aspx?type=13", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"23455", "zid":"173", "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":"23361", "zid":"173", "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":"21298", "zid":"173", "title":"日本留学展前1000名免费", "link":"http://www.17000.com.cn/StudyAbroad/ArticleView.aspx?ArticleID=1269", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"11614", "zid":"280", "title":"学习地道英语如此轻松有趣 ", "link":"http://bulo.hjenglish.com", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["H3"]={"zonecode":"H3",content:[{ "aid":"29684", "zid":"859", "title":"考完四六级,准备考研的进!", "link":"http://cet.hjenglish.com/page/76747/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"29683", "zid":"859", "title":"快乐暑假,打造流利二外!", "link":"http://brand.hjenglish.com/73/content/13085", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"29682", "zid":"859", "title":"2009年12月能力考免费短信通知报名提醒", "link":"http://jp.hjenglish.com/page/75875/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"29681", "zid":"859", "title":"2009年6月四六级真题答案大全", "link":"http://cet.hjenglish.com", "advtype":"T", "source":"", "adFormCode":"H3", "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;
}