{"size": 4043, "ext": "js", "max_stars_repo_path": "template/69tang6/system.js", "max_stars_repo_name": "Jaymonsterk/maccms10", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "template/69tang6/system.js", "max_issues_repo_name": "Jaymonsterk/maccms10", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "template/69tang6/system.js", "max_forks_repo_name": "Jaymonsterk/maccms10", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.8625954198, "max_line_length": 147, "alphanum_fraction": 0.4536235469}
function   getUrlArgs()   
  {   
     return  location.pathname;
  }
$(function() {
  $("img.lazy").lazyload();
 });
$(document).ready(function(){

    $("ul.aa .bb").hover(function(){
        $(this).addClass("hover").find("div.cc").show();
    },function(){
        $(this).removeClass("hover").find("div.cc").hide();
    });

});
function setTab(name,name2,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById(name2+i);
  menu.className=i==cursel?"on":"";
  con.style.display=i==cursel?"block":"none";
 }
};
$(document).ready(function(){
  var qcloud={};
  $('[_t_nav]').hover(function(){
    var _nav = $(this).attr('_t_nav');
    clearTimeout( qcloud[ _nav + '_timer' ] );
    qcloud[ _nav + '_timer' ] = setTimeout(function(){
    $('[_t_nav]').each(function(){
    $(this)[ _nav == $(this).attr('_t_nav') ? 'addClass':'removeClass' ]('nav_hover');
    });
    $('#'+_nav).stop(true,true).slideDown(0);
    }, 0);
  },function(){
    var _nav = $(this).attr('_t_nav');
    clearTimeout( qcloud[ _nav + '_timer' ] );
    qcloud[ _nav + '_timer' ] = setTimeout(function(){
    $('[_t_nav]').removeClass('nav_hover');
    $('#'+_nav).stop(true,true).slideUp(0);
    }, 0);
  });
});
$(function() {
  for (var i = 0; i < $("div[name=ee]").length; i++) {
            var m = $("div[name=ee]").eq(i);
            if (m.text().length > 170) {
                m.attr("ee", m.text());
                m.html(m.text().substr(0, 170) + "...<a name=\"zhankai\" class=\"y\" href=\"javascript:;\">展开</a>");
            }
        }
        $("a[name=zhankai]").live("click", function () {
            $(this).parent().html($(this).parent().attr("ee") + "<a name=\"yinchang\" class=\"y\" href=\"javascript:;\">隐藏</a>");
        });
        $("a[name=yinchang]").live("click", function () {
            $(this).parent().html($(this).parent().attr("ee").substr(0, 170) + "...<a name=\"zhankai\" class=\"y\" href=\"javascript:;\">展开</a>");
        });
 });
$(function(){
    $(".sbtn").click(function(){
        if($(this).hasClass("cur"))
        {
            $(".sbtn").removeClass("cur");
            $(".sy").hide();
        }
        else{
        	$(".sy").show();
            $(".sbtn").addClass("cur");
        }
    })
    $(".sbtn1").click(function(){
        if($(this).hasClass("cur"))
        {
            $(".sbtn1").removeClass("cur");
            $(".sy1").hide();
        }
        else{
        	$(".sy1").show();
            $(".sbtn1").addClass("cur");
        }
    })
    $(".sbtn2").click(function(){
        if($(this).hasClass("cur"))
        {
            $(".sbtn2").removeClass("cur");
            $(".sy2").hide();
        }
        else{
        	$(".sy2").show();
            $(".sbtn2").addClass("cur");
        }
    })
});
function Order(o,id,vi){
    var tag,leng,i,phtml,box,ubox,uhtml,isno,s1,s2
    box=$$(id);
    tag=box.getElementsByTagName('li');
    leng=tag.length;
    uhtml="";
    if (o==1){
      for(i=leng-1;i>=0;i--){
          if(i==leng-1){isno='<li class="new">';}else{isno='<li>';}
          uhtml+=isno+tag[i].innerHTML+"</li>";
      }
      s1="<em class=\"over\">倒序↓</em>"
      s2="<em onclick=\"Order(0,'vlink_"+vi+"',"+vi+")\">顺序↑</em>"
    }else{
      for(i=leng-1;i>=0;i--){
          if(i==0){isno='<li class="new">';}else{isno='<li>';}
          uhtml+=isno+tag[i].innerHTML+"</li>";
      }
      s1="<em onclick=\"Order(1,'vlink_"+vi+"',"+vi+")\">倒序↓</em>"
      s2="<em class=\"over\">顺序↑</em>"
    }
    $$(id+"_s1").innerHTML=s1;
    $$(id+"_s2").innerHTML=s2;
    uhtml="<ul>"+uhtml+"</ul>";
    box.innerHTML=uhtml;
}
$(function(){ 
  $(window).scroll(function() {   
    if($(window).scrollTop() >= 300){
      $('.gotop').fadeIn(400); 
    }else{    
      $('.gotop').fadeOut(400);    
    }  
  });
  $('.gotop').click(function(){
  $('html,body').animate({scrollTop: '0px'}, 800);}); 
});