if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34332", "zid":"229", "title":"春季班", "link":"http://jp.hjenglish.com/page/94617/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/JP-Z-A1P-34332_19.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"33908", "zid":"228", "title":"基础商务日语【外教班】 ", "link":"http://class.yeshj.com/10040/intro?source=29", "advtype":"P", "source":"http://a4.yeshj.com/upload/200912/JP-Z-B1P-33908_71.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"18866", "zid":"573", "title":"新能力考,你考“N”几?", "link":"http://jp.hjenglish.com/zt/2010wangluokecheng/?source=147", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18865", "zid":"573", "title":"做题累了吗?看原版日剧吧,还锻炼听力!", "link":"http://zt.yeshj.com/zt/2009/jpdrama", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18864", "zid":"573", "title":"蜗居学日语,零基础直达N2级", "link":"http://jp.hjenglish.com/page/88639", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18863", "zid":"573", "title":"能力考语法词汇在线背诵", "link":"http://super.yeshj.com/recite", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18855", "zid":"573", "title":"日语能力测试真题全解(3级1998-2007)", "link":"http://www.hjbook.net/product/2252/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18854", "zid":"573", "title":"日本语能力测试300分突破系列-1级", "link":"http://www.hjbook.net/product/353/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18853", "zid":"573", "title":"日语能力测试真题全解(1级1998-2007)", "link":"http://www.hjbook.net/product/2251/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18849", "zid":"573", "title":"查日语单词,用小D词典", "link":"http://dict.hjenglish.com/jp", "advtype":"T", "source":"", "adFormCode":"Z1", "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; }