$(function () {

    $("ul.HeaderMenu li").hover(function () {

        $(this).addClass("hover");
        $('ul:first', this).css('visibility', 'visible');

    }, function () {

        $(this).removeClass("hover");
        $('ul:first', this).css('visibility', 'hidden');

    });

    $(".image").click(function () {
        var image = $(this).attr("rel");
        $('#image').hide();
        $('#image').fadeIn('slow');
        $('#image').html('<img src="' + image + '"/>');
        return false;
    });
});

    $(document).ready(function() {
        	$('.Slider').each(function () {
                $(this).before('<div class="nav"></div>')
		            .cycle({	
		                speed: '400',
		                timeout: 3000,
		                pause: true,		                
		                pager: $(this).prev()
		            });   
          });
		  
		  $('.NewsTicker').each(function () {
		      $(this).cycle({
		                next: ".NewsUp",
		                prev: ".NewsDown",
		                fx: 'scrollUp',
		                circular: false,
		                speed: '400',
		                timeout: 3000
		            });
		        });

		  $('.PhotoSlider').each(function () {
		      $(this).cycle({
		                fx: 'fade',
		                circular: false,
		                speed: '400',
		                timeout: 3000
		            });   
          });
    });
