$(document).ready(function() {

    $(".go").hover(
      function() {
          $(this).find("ul:first").toggle();
      },
      function() {
          $(this).find("ul:first").toggle();
      }
    );

    $('#main_nav > li').hover(
        function() {
            $(this).addClass('hover');
            $('> ul', this).show();
        },
        function() {
            $(this).removeClass('hover');
            $('> ul', this).hide();
        }
    );

    $('input').customInput();

    $('.shadow_left, .shadow_right, .img_shadow').height($('#slide_gallery').innerHeight());
    
});
function showImg(el, ind) {
    var conteiner = $('#slide_gallery');
    var thisEl = $(el);
    conteiner.find('img').hide();
    conteiner.find('img:eq(' + ind + ')').show();
    var conteinerHeight = conteiner.innerHeight();
    conteiner.parent().height(conteinerHeight);
    $('.shadow_left, .shadow_right').height(conteinerHeight);
    $('.img_thumb li').each(function() {
        $(this).removeClass('selected');
    });
    thisEl.parent().addClass('selected');

    return false;
}

function menu_hover(){
	$(this).find("ul:first").toggle();	
}
