/* Dom Ready */
$(document).ready(function(){
    
    /* Post Height
    $("#leftCol div.post").each(
        function() {
            if($(this).find("img").length > 0 && $(this).find("img").height() >= $(this).height())
	    {
                $(this).height($(this).find("img").height());
            }
        }
    );
    */

    /* Blog Search */
    $("#searchSubmit").click(
        function() {
            $("form#blogSearch").submit();
        }
    );

    /* Open Comments */
    $("h4.comments a").click(
        function() {
            var moveLeft = (screen.width/2) - 147;
            var moveTop = (screen.height/2) - 260;
            var blogCommentsWin = window.open("blog-comments.asp","blogComments","width=295,height=520,status=0,toolbar=0,location=0,menubar=0,resizable=0,scrollbars=1,directories=0");
            blogCommentsWin.moveTo(moveLeft,moveTop);
            blogCommentsWin.focus();
        }
    );

});
    

