function fbs_click() {
    u=location.href;t=document.title;
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
    return false;
}

$("a.jcepopup").prettyPhoto();

function hideTabs(){
    $('#archives-2, #recent-posts-3, #rss-4').hide();
}
hideTabs();
$('#recent-posts-3').show();
$('#mostReadTab').click(function(){
    hideTabs();$('#recent-posts-3').fadeIn("slow");
});
$('#archiveTab').click(function(){
    hideTabs();$('#archives-2').fadeIn("slow");
});
$('#twitterTab').click(function(){
    hideTabs();$('#rss-4').fadeIn("slow");
});

$('.wp-caption').corners('3px');
            
$('#content').corners('25px top-right');
$(".subscribe").corners("8px right");

$('#category-list a').dropShadow({
    left: 0,
    top: 0,
    blur: 1,
    opacity: .5,
    color: "black",
    swap: false
});

$('.current-cat a').removeShadow();

$(document).ready(function(){
   $("img.dropshadow").wrap("<div class='imgwrap1'><div class='imgwrap2'>" +
     "<div class='imgwrap3'></div></div></div>");

$("img.dropshadow").each(function(){

if($(this).parents(".wp-caption")){
    var caption = $(this).parents(".wp-caption");
    var cwidth = (caption.width()+15) + 'px';
    caption.css('width', cwidth);
}

if($(this).is(".alignright")){

$(this).removeClass('alignright');

$(this).parents(".imgwrap1").css({"float":"right", "clear": "both"});
}

if($(this).is(".aligncenter")){

$(this).removeClass("aligncenter");

var fwidth = ($(this).width()+15)+'px'

$(this).parents(".imgwrap1").css({"margin-left": "auto", "margin-right": "auto", "float": "none", "width" : fwidth});
}

$(this).removeClass("alignleft");
});
 });

