$(document).ready(function(){

   //$('#m13news .newsTitle').hide();


   $('#m13news .newsTrigger').hover(function(){
           $('#m13news .newsTitle').css("color", "#2c5a73");
            $(this).parents("li").children(".newsTitle").css("color", "#e42785");
        });


   $('.newsTrigger').click(function () {
                        $('#m13news .newsTitle').hide();

			// animate opacity to full
			$("#m13news").stop().animate({
				opacity: 0.3
			}, "fast");
                        $("#newsBox").show();
                        var path = $(this).parents("li").children("span.bigImg").css("background-image");
			$("#newsImage").css("background-image", path);
                        //alert($(this).parents("li").children(".newsContent").html());
                        $("#boxTitle").html($(this).parents("li").children(".newsTitle").html());
                        $("#boxContent").html($(this).parents("li").children(".newsContent").html());
                       /* $("#newsBox").stop().animate({
				opacity: 1
			}, "fast");*/
		});


    $('#newsImage, #newsImageOut').click(function () {
       /* $("#newsBox").stop().animate({
				opacity: 0
			}, "fast").hide();
                        */
        $('#m13news .newsTitle').show();
        $("#newsBox").hide();
        $("#m13news").stop().animate({
				opacity: 1
			}, "fast");
    });




});
