$(document).ready(function () {
    if ($('.AdvertisingBackground')) {
        $('.AdvertisingBackground').css('filter', 'alpha(opacity=70)');
        $('.AdvertisingBackground').css('zIndex', '1');
    }

if ($('#slider .slides .Image').length > 1) {
    $('#slider').loopedSlider({
        container: '.container',
        slides: '.slides',
        pagination: '.pagination',
        containerClick: false, // Click container for next slide
        autoStart: 15000, // Set to positive number for auto start and interval time
        restart: 0, // Set to positive number for restart and restart time
        slidespeed: 500, // Speed of slide animation
        fadespeed: 500, // Speed of fade animation
        autoHeight: false
    });
 }
else {
        $('#SlideNav a').each(function () {
            $(this).bind('click', function (event) {
                event.returnValue = false;
                event.preventDefault();
                event.cancel = true;
            });

        });
}
    $('#tweetSlider').loopedSlider();

    $('.TweetMsg a').each(function (i) {
        $(this).attr("target", "_blank");
    });




  
 if ($('#Recommendslider .slides .Image').length > 1) {
    $('#Recommendslider').loopedSlider({
        container: '.containerRecommend',
        /*  slides: '.slidesRecommend',*/
        pagination: '.paginationRecommend',
        containerClick: false, // Click container for next slide
        autoStart: 15000, // Set to positive number for auto start and interval time
        restart: 0, // Set to positive number for restart and restart time
        slidespeed: 500, // Speed of slide animation
        fadespeed: 500, // Speed of fade animation
        autoHeight: false
    });
}
    else {
        $('#BannerPaggingRecommend a').each(function () {
            $(this).bind('click', function (event) {
                event.returnValue = false;
                event.preventDefault();
                event.cancel = true;
            });

        });
    }  
  


    if ($('#Highlightslider .slides .HighlightContent').length > 1) {
        $('#Highlightslider').loopedSlider({
            container: '.highlightcontainer',
            /*slides: '.slidesHighlight',*/
            pagination: '.paginationHighlight',
            slidespeed: 500,
            autoStart: 5000 // Set to positive number for auto start and interval time
        });
    }
    else {
        $('#HighLightNavWrap a').each(function () {
            $(this).bind('click', function (event) {
                event.returnValue = false;
                event.preventDefault();
                event.cancel = true;
            });

        });
    }
  

     
      

    $('#SlideNav .navi .previous').mouseover(function () {
        $('#SlideNav .navi .previous').css('background-image', 'url(../Images/prev_active.jpg)');
    }).mouseout(function () {
        $('#SlideNav .navi .previous').css('background-image', 'url(../Images/prev_inactive.jpg)');
    });

    $('#SlideNav .navi .next').mouseover(function () {
        $('#SlideNav .navi .next').css('background-image', 'url(../Images/next_active.jpg)');
    }).mouseout(function () {
        $('#SlideNav .navi .next').css('background-image', 'url(../Images/next_inactive.jpg)');
    });



    /*$('#HighLightNavWrap .navi .previous').mouseover(function () {
    $('#HighLightNavWrap .navi .previous').css('background-image', 'url(../Images/hilight_prev.jpg)');
    }).mouseout(function () {
    $('#HighLightNavWrap .navi .previous').css('background-image', 'url(../Images/hilight_prev.jpg)');
    });

    $('#HighLightNavWrap .navi .next').mouseover(function () {
    $('#HighLightNavWrap .navi .next').css('background-image', 'url(../Images/hilight_next.jpg)');
    }).mouseout(function () {
    $('#HighLightNavWrap .navi .next').css('background-image', 'url(../Images/hilight_next.jpg)');
    });*/


});




$('a').mouseover(function(){
       alert("mouseover");
    }).mouseout(function(){
        alert("mouseout");    
    });
