

$(document).ready(function() {
    

    $("#caroline_cv").hover(
        function () {
            $('#caroline_cv p').css("color","#4CB023");
        },
        function () {
            $('#caroline_cv p').css("color","#333333");
        }
    );
        
    $("#hans_cv").hover(
        function () {
            $('#hans_cv p').css("color","#4CB023");
        },
        function () {
            $('#hans_cv p').css("color","#333333");
        }
    );  
        
    $("#show_all_metod").hover(
        function () {
            $('#show_all_metod p').css("color","#4CB023");
        },
        function () {
            $('#show_all_metod p').css("color","#333333");
        }
    );  
 
 
   
$('.blogg_items').bind('mouseenter mouseleave', function() {
	       $(this).toggleClass('blogg_over');
	  });
 
 
 
    $('#caroline_cv').click(function() {
        $('#caroline_cv_text').slideToggle('slow');
        //$('#hans_cv_text').css("display","none");
        $('#hans_cv_text').slideUp('fast');
    });
    
    $('#hans_cv').click(function() {
        $('#hans_cv_text').slideToggle('slow');
       // $('#caroline_cv_text').css("display","none");
        $('#caroline_cv_text').slideUp('fast');
    });
    
    $('#show_all_metod').click(function() {
        
        $('#metod_box_sh').slideToggle('slow',function () {
            
            if($('#show_all_metod p').text() == 'Read More [ - ]'){
                $('#show_all_metod p').text('Read More [ + ]');
            }else{
                $('#show_all_metod p').text('Read More [ - ]');
            }
            
        });
      
    });


  /*  $('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0});
        return false;
    });*/


    //When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});


});
