if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"38977", "zid":"271", "title":"0-N2", "link":"http://jp.yeshj.com/new/p175799/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201107/pr19173351568.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"11198", "zid":"272", "title":"备考专题2——沪江", "link":"http://jp.yeshj.com/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200803/JP-Z-A2P-11198_72.gif", "adFormCode":"A2", "protected":false }]};A4page.Zone["A3"]={"zonecode":"A3",content:[{ "aid":"41596", "zid":"903", "title":"JLPT", "link":"http://jp.yeshj.com/new/p200551/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr30154148292.jpg", "adFormCode":"A3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"11199", "zid":"273", "title":"沪江日语编辑推荐:考试必备用书", "link":"http://jp.YesHJ.com/book", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"24040", "zid":"392", "title":"这样学日语:零基础菜鸟也能突破N2级!", "link":"http://jp.yeshj.com/new/p175799/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["H3"]={"zonecode":"H3",content:[{ "aid":"38970", "zid":"576", "title":"零基础直达N2的方法", "link":"http://jp.yeshj.com/new/p175799/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"38969", "zid":"576", "title":"日语菜鸟入门三步走攻略>>", "link":"http://jp.yeshj.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"36726", "zid":"576", "title":"达人详解漂“留”日本全攻略", "link":"http://www.qianchengriben.com/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"18906", "zid":"576", "title":"备战7月能力考,战火燃起!", "link":"http://jp.yeshj.com/new/p158574/", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false },{ "aid":"18876", "zid":"576", "title":"91-07年能力考真题汇总专题", "link":"http://jp.yeshj.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H3", "protected":false }]};A4page.Zone["H4"]={"zonecode":"H4",content:[{ "aid":"39542", "zid":"577", "title":"你的听力和语法过关了吗?", "link":"http://jp.yeshj.com/new/p158574/", "advtype":"T", "source":"", "adFormCode":"H4", "protected":false },{ "aid":"38972", "zid":"577", "title":"【达人修炼营】让你的口语不再纠结!", "link":"http://jp.yeshj.com/new/p138504/", "advtype":"T", "source":"", "adFormCode":"H4", "protected":false },{ "aid":"18879", "zid":"577", "title":"如何高效备战明年7月能力考?", "link":"http://jp.yeshj.com/new/p200551/", "advtype":"T", "source":"", "adFormCode":"H4", "protected":false },{ "aid":"18878", "zid":"577", "title":"填2010年新能力考登记表,送考情资料! ", "link":"http://jp.yeshj.com/page/84302/", "advtype":"T", "source":"", "adFormCode":"H4", "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= "