jQuery(document).ready(function($){
								
//$('#close-sidebar a').toggle(function(){ //选中id="close-sidebar"内的a标签的内容，即“干掉侧边栏”
//	$(this).text("显示侧边栏"); //点击此中内容后改变成“显示侧边栏”
//	$('#sidebar').hide(); //隐藏id="sidebar"的内容，即“侧边栏”
//	$('#main').animate({width: "970px"}, 1000); //让id="content"，即主体部分的宽度伸长至960px，时间为1000毫秒
//	},function(){
//	$(this).text("关闭侧边栏"); //点击此中内容后改变成“关闭侧边栏”
//	$('#sidebar').show(); //显示id="sidebar"的内容，即“侧边栏”
//	$('#main').animate({width: "692px"}, 800); //让id="content"，即主体部分的宽度缩至705px，时间为800毫秒
//});

$('#sidebar li a').hover(function() {
$(this).stop().animate({'left': '5px'}, 'fast');
}, function() {
$(this).stop().animate({'left': '0px'}, 'fast');
});

$('.title a').click(function(){
    $(this).text('页面载入中……');
    window.location = $(this).attr('href');
    });

$('.fn a').attr({ target: "_blank"});

/*
$("a").mouseover(function(e){
	this.myTitle = this.title;
	this.myHref = this.href;
	this.myHref = (this.myHref.length > 30 ? this.myHref.toString().substring(0,30)+"..." : this.myHref);
	this.title = "";
	var tooltip = "<div id='tooltip'><p>"+this.myTitle+"<em>"+this.myHref+"</em>"+"</p></div>";
	$('body').append(tooltip);
	$('#tooltip').css({"opacity":"0.8","top":(e.pageY+20)+"px","left":(e.pageX+10)+"px"}).show('fast');
}).mouseout(function(){this.title = this.myTitle;$('#tooltip').remove();
}).mousemove(function(e){$('#tooltip').css({"top":(e.pageY+20)+"px","left":(e.pageX+10)+"px"});
});
*/

$('#tab-title span').click(function(){
	$(this).addClass("selected").siblings().removeClass();
	$("#tab-content > ul").slideUp('1500').eq($('#tab-title span').index(this)).slideDown('1500');
});


$(".favicons a").each(function(e){
	$(this).prepend("<img src=http://www.google.com/s2/favicons?domain="+this.href.replace(/^(http:\/\/[^\/]+).*$/, '$1').replace( 'http://', '' )+" style=float:left;padding:5px;>");
});
 
$("#nav li a").hover(function(){
		$(this).stop().animate({marginTop:"+=6"}, 250);}
	,function(){
		$(this).stop().animate({marginTop:"0"}, 150);
}); 
								});


