if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"16483", "zid":"386", "title":"考研真题下载", "link":"http://kaoyan.hjenglish.com/papers.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/KY-D-A1P-16483_97.jpg", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"28712", "zid":"387", "title":"新东方考研在线精品课程", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx", "advtype":"P", "source":"http://a4.yeshj.com/upload/200905/KY-D-B1P-28712_29.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"26217", "zid":"424", "title":"新东方2010年考研辅导班,不过免费重读!", "link":"http://kaoyan.hjenglish.com/zt/netlesson/xdf2010.aspx?source=86", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"26590", "zid":"388", "title":"考研书籍", "link":"http://kaoyan.hjenglish.com/2010kaoyan", "advtype":"P", "source":"http://a4.yeshj.com/upload/200904/KY-D-S1P-26590_23.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"16486", "zid":"389", "title":"super答题", "link":"http://super2.yeshj.com/exam/yanying", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/KY-D-S2P-16486_22.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"25557", "zid":"757", "title":"2010考研政英数全程班(网络课程,签约保过)", "link":"http://www.hjbook.net/lesson/4026/?source=2", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"25681", "zid":"760", "title":"名师任汝芬指导2010政治复习", "link":"http://kaoyan.hjenglish.com/page/72969/", "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));
}
}
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;
}