if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10346", "zid":"169", "title":"考研真题", "link":"http://www.hjbbs.com/thread-20-482153.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200804/KY-D-B1P-10346_67.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"10347", "zid":"170", "title":"风中劲草考研政治", "link":"http://bulo.hjenglish.com/menu/903/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200803/KY-D-B2P-10347_54.jpg", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10837", "zid":"172", "title":"提高口语能力的捷径", "link":"http://www.yappr.cn", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"10349", "zid":"171", "title":"考研网络报名全攻略(详细截图为你指明方向)", "link":"http://kaoyan.hjenglish.com/page/13077/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10348", "zid":"171", "title":"教育学、历史学和医学,考研统考三科考生必须注意三点 ", "link":"http://kaoyan.hjenglish.com/page/12815/", "advtype":"T", "source":"", "adFormCode":"Z1", "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;
}