var menu = {
 init : function(){
   $("#menu ul li img").each( function(index){
   $(this).hover(function(){this.src="http://elmedan.com/wp-content/themes/elmedan_theme/files/images/menu_"+index+"_sel.gif";})
   .mouseout(function(){this.src="http://elmedan.com/wp-content/themes/elmedan_theme/files/images/menu_"+index+".gif";});
    });
 }
}

   jQuery(document).ready(function($) {

  // Add Scroller Object
  $("#tab-titles").tabs();
  $(".standings-tab").tabs();
  $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
$("#comment-title").click(function(){  $("#comment-form form").toggle(); });
$("#add-new-comment").click(function(){  $("#comment-form form").toggle(); });
  // Start Autoscroller
$("#carousel").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev"
});


  // menu
  menu.init();
});