$(window).load(function () {
	
	/* ===[ ASIDE ]=== */
    $('#aside')
    .wrapInner('<div class="inner" />')
    .prepend('<div class="top" />')
    .append('<div class="bot" />');
    
    /* ===[ EQUAL HEIGHTS ]=== */
    $.getScript("js/equalheight.js", function () {
        $('#main, #aside .inner').equalheight();
    });
    
    /* ===[ GALLERY ]=== */
	if ($('#gallery')) {
		$("#gallery ul li:nth-child(3n)").addClass("last");
	}
	
    /* ===[ IE6 PNG FIX ]=== */
    if ($.browser.msie && $.browser.version < 7) { // IE6
        $.getScript("js/pngfix.js", function () {
            DD_belatedPNG.fix('#logo a, .entry .date, .entry .read-more, .pagination a, #aside .top, #aside .inner, #aside .bot, #aside .block h3, #aside #date, #aside button, .feature h3, .page h3, #toTop, #toTopHover');
        });
    }
    
    
    
			$().UItoTop({ easingType: 'easeOutQuart' });
			
    
    
    
});


/* ===[ Facebook share ]=== */


function fbs_click(u,t) {
    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;
}


