if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"38145", "zid":"642", "title":"雅思", "link":"http://www.hjbook.net/search/all/%E3%80%90%E6%96%B0%E4%B8%9C%E6%96%B9%E5%9C%A8%E7%BA%BF%E3%80%91%E9%9B%85%E6%80%9D/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201012/pr24142626136.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"41773", "zid":"643", "title":"考研英语", "link":"http://en.hujiang.com/new/p285871/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr20164431018.gif", "adFormCode":"A2", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"41772", "zid":"644", "title":"2013考研", "link":"http://buy.hujiang.com/newzt/kaoyanvip", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr20165812831.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"39857", "zid":"794", "title":"最后20天,考研冲刺的秘诀!", "link":"http://www.hjenglish.com/new/p205860/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"27718", "zid":"794", "title":"2013考研早准备,全程保过班!", "link":"http://kaoyan.yeshj.com/zt/netlesson/xdf2010.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"27716", "zid":"794", "title":"如何选择考研阅读参考书?", "link":"http://en.yeshj.com/new/p154421/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"27715", "zid":"794", "title":"2013年考研必胜秘籍", "link":"http://www.hjbook.net/p6968/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H3"]={"zonecode":"H3",content:[{ "aid":"27815", "zid":"796", "title":"唐静讲考研翻译技巧:省略法", "link":"http://kaoyan.yeshj.com/page/70888/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"27814", "zid":"796", "title":"2012考研必胜考试秘籍", "link":"http://www.hjbook.net/p4869/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"27813", "zid":"796", "title":"2012考研金榜提名必备>>", "link":"http://www.hjbook.net/tuangou/p83/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"27812", "zid":"796", "title":"考研必看:考研英语轻松拿高分", "link":"http://kaoyan.yeshj.com/zt/netlesson/xdf2010.aspx", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"42160", "zid":"1476", "title":"2013考研", "link":"http://buy.hujiang.com/newzt/2012kaoyan", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr05155404533.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"40690", "zid":"645", "title":"考研数学名师陈文灯", "link":"http://buy.hujiang.com/p6970/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"40689", "zid":"645", "title":"考研英语阅卷名师", "link":"http://buy.hujiang.com/p9916/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"40688", "zid":"645", "title":"任汝芬序列一必看", "link":"http://buy.hujiang.com/p6968/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"21555", "zid":"646", "title":"考研英语高分必备", "link":"http://buy.hujiang.com/p9916/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"21554", "zid":"646", "title":"考研复试指导手册", "link":"http://en.hujiang.com/new/p238781/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"21553", "zid":"646", "title":"二外考研,政治必备 ", "link":"http://www.hjenglish.com/new/p170881/", "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= "
" + "" + "" + "" + "" + "" + "" + "" + "
"; //执行转换 Source=Source.replace(flash_ubb, flash_html ); return Source; }