$(document).ready(function(){
//var _recenturl = "/recent_" + _blogid + ".html";
//$("#recent-entry").load(_recenturl);
var _active = "#nav-" + _blogid;
$(_active).addClass("active");
//$(".lightbox").lightBox();
$(".lightbox").fancybox({
'opacity' : true,
'overlayShow' : true,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
$("a[rel=fbgroup]").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'overlayShow' : true,
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
}
});
$("ins.favicon").each(function(){
var _url = $(this).attr("rel").replace(/^(http:\/\/[^\/]+).*$/, '$1').replace( 'http://', '' );
var _imgurl = "http://www.google.com/s2/favicons?domain=" + _url;
$(this).css({'background-image':'url("'+_imgurl+'")'})
});
$(".douban-c").click(function(){
$(".douban-c").removeClass("douban-c-a");
$(this).addClass("douban-c-a");
var _id = "#" + $(this).attr("id") + "c";
$(".douban-cc").hide();
$(_id).show();
});
});
//document.write("<script src=\"/static/jquery/jquery.lightbox.min.js\"><\/scr"+"ipt>");
document.write("<script src=\"/static/jquery/jquery.mousewheel-3.0.4.pack.js\"><\/scr"+"ipt>");
document.write("<script src=\"/static/jquery/jquery.fancybox-1.3.4.pack.js\"><\/scr"+"ipt>");
document.write("<script src=\"/static/prettify/prettify.js\"><\/scr"+"ipt>");

