var addre = document.location.toString();var path = SitePath+'index.php?s=video/lists/id/'+SiteCid;var hrefs =(/html/.test(addre)==false)?addre:path;for(var i=0;i<3;i++){hrefd =hrefs.replace(/\/order\/\w+\//,'/');href =hrefd.replace(/\/order\/\w+/,'');$("#ord a").eq(i).attr("href",href+$("#ord a").eq(i).attr("href"))}function showyear(){var $html='';var $year=$('#yearhtml').html()*1;var href =hrefs.replace(/\/year\/\d+/,'');$("#yearall").attr("href",href);for(i=2011;i>1989;i--){if($year==''){$('.left_nav:eq(2) a:eq(0)').addClass("Year");}if(i==$year){$html+='<a href="'+href+'/year/'+i+'" class="Year">'+i+'</a> ';}else{$html+='<a href="'+href+'/year/'+i+'">'+i+'</a> ';}}$('#yearhtml').html($html);}function showarea(){var $html='';var hrefd =hrefs.replace(/\/area\/\S+\/year/,'/year');var href =hrefd.replace(/\/area\/\S+/,'');$("#areaall").attr("href",href);var $area=$('#areahtml').html();var array_str=['大陆','香港','台湾','美国','韩国','日本','欧洲','其他'];for(var key in array_str){if($area==''){$('.left_nav:eq(1) a:eq(0)').addClass("Area");}if($area==array_str[key]){$html+='<a href="'+href+'/area/'+encodeURIComponent(array_str[key])+'" class="Area">'+array_str[key]+'</a>';}else{$html+='<a href="'+href+'/area/'+encodeURIComponent(array_str[key])+'">'+array_str[key]+'</a>';}}$('#areahtml').html($html);}if($("#areahtml").length>0){showarea();}if($("#yearhtml").length>0){showyear();}