
jQuery.noConflict();

/*
jQuery(window).load(function() {
        jQuery("ul").find("dl").find("dd").hide();
});
*/

jQuery(document).ready(function(){
        jQuery(".article .thebody").hide();
        jQuery("dl.article dt a").click(function(event){
/*              jQuery(this).parents("dt").next(".thebody").toggle();*/
                jQuery(this).parents("dt").next(".thebody:visible").fadeOut("normal");
                jQuery(this).parents("dt").next(".thebody:hidden").fadeIn("normal");
                return false;
        });
});


/*


jQuery(document).ready(function(){
  jQuery(".article .thebody").hide();
  jQuery("#container .article")
    .prepend("<li class='readbody'><a href='' title='Read the article'>Read Body</a></li>");

  jQuery(".actions li.readbody a").click(function(event){
    jQuery(this).parents("ul").prev(".thebody").toggle();

    // Stop the link click from doing its normal thing
    return false;
  });
});
*/

/*
$(document).ready(function(){
  $(".article .thebody").hide();
});
*/



jQuery(document).ready(function(){
        jQuery(".moreranking").click(function(event){
                jQuery(this).hide();
                jQuery(".rankingBlock").after('<div class="rankingBlock"><ol>');
                return false;
        });
});






/*
Event.observe(window, 'load', function() {
  $$('a[href^=#]:not([href=#])').each(
    function(element) {
      new Effect.ScrollTo(this.hash.substr(1));
      Event.stop(event);
    }.bindAsEventListener(element))
  });
*/





//共有画像へのパス

var imgpath = "/images/common/";


//画像の先読み込み

data = new Array(
        imgpath + "nav_select_ov.gif",
        imgpath + "nav_ranking_ov.gif",
        imgpath + "nav_help_ov.gif"
);

preimg = new Array();

for (i=0; i<data.length; i++) {
        preimg[i] = new Image();
        preimg[i].src = data[i];
}


//画像の差し替え

function swImg0(iName,str){
        document.images[iName].src = imgpath + str;
}

function swImg(iName,str){
        document.images[iName].src = str;
}


/*
function swImg(iName,str){
        document.images[iName].src = imgpath + str;
}
*/


// neco運動会 順位の表示

function resultItem(i){
        jQuery(document).ready(function(){
                        jQuery(".#resultList ol").hide();
                        jQuery("#resultItem" + i).fadeIn("normal");
                        return false;
        });
}

function resultAll(){
        jQuery(document).ready(function(){
                        jQuery(".#resultAllList").hide();
                        jQuery("#resultAllList").fadeIn("normal");
                        return false;
        });
}
