jQuery.noConflict();
jQuery(document).ready(function($) {
	
	// Scrolling page
	$('#footer .link').click(function() {
		$("html").animate({scrollTop: 0}, 1000);
		return false;
	});
	
	// Clearing input
	var CLASS = '#q';	
	 
	$(CLASS).each(function() {
	
		var VALUE = $(this).attr('value');
			
		$(this).focus(function() {
		 	if ($(this).attr('value') == VALUE)
				$(this).attr('value', '');
		});
		
		$(this).blur(function() {
		 	if ($(this).attr('value') == '')
				$(this).attr('value', VALUE);
		});
	});

	
});



jQuery(document).ready(function($){
        $(".avatar-link").bind("mouseover",function(){
                nickname=$(this).attr('nickname');
                company=$(this).attr('company');
                $(this).css('z-index', '9999');
                if(company != '')
                        $(this).prepend('<div class="rcff-hover"><span><em>'+nickname+'</em> <div>'+company+'</div></span></div>');
                else
                        $(this).prepend('<div class="rcff-hover"><span><em style="padding-top:15px">'+nickname+'</em></span></div>');
        });
        $(".avatar-link").bind("mouseout",function(){
             	$(this).css('z-index', '10');
                $(".rcff-hover").remove();
        });
        $(".jqdeleteexp").bind("click",function(){
		eid=$(this).attr("eid");
		var dis=$(this);
		$.post('/experience/deleteExperience?id='+eid,function(data){
			dis.parents("li").hide();
		});
		return false;
        });
});
                

