if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10387", "zid":"185", "title":"朗阁雅思", "link":"http://www.longre.com/branch/?city=1", "advtype":"P", "source":"http://a4.yeshj.com/upload/200805/YS-A-B1P-10387_31.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"12034", "zid":"306", "title":"雅思书籍折上折", "link":"http://ielts.hjenglish.com/book", "advtype":"P", "source":"http://a4.yeshj.com/upload/200805/YS-A-B2P-12034_49.jpg", "adFormCode":"B2", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"11777", "zid":"307", "title":"剑桥雅思考试全真考试解析4(附光盘)", "link":"http://www.hjbook.net/product/1189", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11776", "zid":"307", "title":"朗阁雅思第一军团", "link":"http://www.longre.com/branch/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11775", "zid":"307", "title":"雅思半年封闭脱产班", "link":"http://sh.ielts.com.cn", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"11788", "zid":"309", "title":"雅思资料大放送", "link":"http://www.hjenglish.com/down/list/102/", "advtype":"T", "source":"", "adFormCode":"Z2", "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; }