$(document).ready(function(){
	$("#el1").css("color","#FFF");
	
    $('#w-questions').localScroll({
        target:'#w-answers'
    });
    
    $("#w-questions a").click(function(event){
    	$("#w-questions a").css("color","#4A76BE");
        event.preventDefault();
        $('#w-arrow').animate({ top: $(this).attr("rel") } );
        $(this).fadeOut('slow', function() {
			var hrefId = $(this).attr("id");
			$("#"+hrefId).css("color","#FFF").fadeIn("slow");
    	});
    });
});

function jDetails(p,s) {
	var bShow = false;
	var c = '';
	
	if ($('#'+p).is(":hidden")) {
		bShow = true;
		$('#'+p).slideDown("slow");
	}
		
	$("*","#"+s).each(function( i ){
			if($(this).is("div")) {
				c = $(this).attr("id");
				if((c != p) || ((c == p) && (bShow == false))) $('#'+c).slideUp("down"); 
			}
	});
}


$(document).ready(function() {
    $("#contact").css("position", "absolute");
});

$(window).scroll(function() {
    $("#contact").css("top", $(window).scrollTop() + "px");
});

