$(document).ready(function() {     

    //open in new window
    $(function(){
        $('a.new-window').click(function(){
          window.open(this.href);
          return false;
        });
    });
    
    //BX Slider
    /*
    $('#slideshow ul').bxSlider({
        mode: "fade",
        randomStart: true,
        auto: true,
        pause: 5000,
        controls: false,
        pager: true
    
    });     
    */
    
    $('#slider').nivoSlider();
    
    
    //popup box 
	$('a[rel*=facebox]').facebox()
	
	//******************************************
    //Fading color on hover (requires jQuery UI)
    //******************************************

    $("#menu a").hover(function(){
        $(this).stop().animate({ color: "#45A101" }, 500);
    }, function(){
        $(this).stop().animate({ color: "#1186D8" }, 300);
    });
    
    $("a").hover(function(){
        $(this).stop().animate({ color: "#45A101" }, 500);
    }, function(){
        $(this).stop().animate({ color: "#1186D8" }, 300);
    });
    
    $("a#forum-main-page, a#forum-new-topic, a#forum-admin, a#forum-admin-logout, a#forum-change-password, a#forum-reply-topic").hover(function(){
        $(this).stop().animate({ color: "#45A101" }, 500);
    }, function(){
        $(this).stop().animate({ color: "#000000" }, 300);
    });   
    
    $("#games .read-more a").hover(function(){
        $(this).stop().animate({ color: "#FFFFFF" }, 500);
    }, function(){
        $(this).stop().animate({ color: "#C3F950" }, 300);
    });
    
    $("#activities .read-more a").hover(function(){
        $(this).stop().animate({ color: "#FFFFFF" }, 500);
    }, function(){
        $(this).stop().animate({ color: "#5AF9FF" }, 300);
    });
    

});     


