if (typeof NCC == "undefined") NCC = new Object();
if (typeof NCC.blog == "undefined") NCC.blog = new Object();

NCC.init_blog = function ()
{	
	console.log("NCC.init_blog()");	
	NCC.blog.fix_post();
}

NCC.blog.fix_post = function ()
{
    console.log("NCC.blog.fix_post()");
    $("#BlogForm img").each(function () {        

        if($(this).attr("alt") == "")
        {   
           $(this).attr("alt", "");
        }
        
        $(this).wrap("<div />");
        
    });
    
    $("#BlogForm div:empty").each(function () {
        $(this).remove();        
    });
    
    $("#BlogForm .PostBody > br").each(function () {
        $(this).remove();
    });
}
