
/*Homepage slider*/
$(window).load(function() {
    $('#photos').galleryView({
        panel_width: 741,
        panel_height: 441,
        frame_width: 74,
        frame_height: 43,
	overlay_opacity:0.1,
	overlay_height:25
    });
});

$(document).ready(function() {

    /*BOTTOM SMALL CONTENT SLIDER*/
    $('#bottom_slider').bxSlider();



    $('.searchtxt').focus(function() {
        var newValue = $(this).val();
        if ($(this).val() == 'Search site') {
            $(this).attr('value', '');
        } else {
            $(this).val(newValue);
        }
    });

    $('.searchtxt').blur(function() {
        var newValue = $(this).val();
        if ($(this).val() == '') {
            $(this).attr('value', 'Search site');
        } else {
            $(this).val(newValue);
        }
    });
    $(function() {
        $(".newsTicker").jCarouselLite({
            vertical: true,
            visible: 2,
            auto: 2500,
            speed: 2500
        });
    });
    $(function() {
        $('.HolidaysOfMonth').jCarouselLite({
            vertical: true,
            visible: 2,
            auto: 2500,
            speed: 2500
        });
    });

  $('.top_menu').children().each(function(){
      var el = $(this);
     var link = el.find('a');
    
    if(link.attr('title') == '' && link.attr('class') != undefined && link.attr('href') =='')
    {
        el.hide();
        var classN = el.attr('class')+'_div';
       $('.'+classN).hide();
     }
   });
});

