$(document).ready(function () {
    if ($("#s").val()==""){
       $("#s").val("Search");
    }
    $("#s").live("click",function(){
        $("#s").val("");
    });


    // close calendar
    $("#calendarShow").live("click",function(){
        $("#calendarShow").hide();
    });

    // end close calendar

    


    // same height columns in section list columns

    // set min-height first
    $('.section_list_text').css("min-height","30px");
    var highestCol = Math.max($('.sl1').height(),$('.sl2').height(),$('.sl3').height(),$('.sl4').height());
    $('.section_list_text').height(highestCol);

    //end height columns in section list columns


    // same height columns in sponsor and social networking section

    // set min-height first
    $('.sponsors_col').css("min-height","100px");
    var highestCol = Math.max($('.follow_us_content').height(),$('.twitter_box_content').height(),$('.social_network_box_content').height());
    $('.sponsors_col').height(highestCol);

    //end same height columns in sponsor and social networking section


    // same height side bar as column 1

    // set min-height first
    var highestCol = Math.max($('#col1').height(),$('#side_bar').height());
    $('.column').height(highestCol);

    //end ssame height side bar as column 1

   // Easy Slider
   $("#easy_slider").easySlider({
		auto: true,
		continuous: true,
                controlsShow: false,
                pause:3000

	});

   // Drop downs
   var p=$(".get_Involved_nav").position();
   $("#eventsSubNav").css("left",p.left-20);

   $("#top_nav li:not('.get_Involved_nav')").mouseover(function(){
       $("#eventsSubNav").hide();
   });
   $("#top_banner").mouseover(function(){
       $("#eventsSubNav").hide();
   });
  
   $(".get_Involved_nav").mouseover(function(){
       $("#eventsSubNav").show();
   });
   $("#eventsSubNav").mouseover(function(){
       $("#eventsSubNav").show();

   });
   $("#eventsSubNav").mouseout(function(){
       $("#eventsSubNav").hide();

   });

});



