/* 
 * This file contains functions used by the Image Editor 
 */

//this function helps to show the form for getting a message
       function blog_showBlog()
 {
     //find a tab to display
       var home_tabpanel =  tabController.findTab("Blog");

       //put a div in the panel to contain the content
       home_tabpanel.innerHTML = "<div id='div_show_blog'></div>";

         //url
       var action_file_path = "blog/index.php";
       var actioncmd = "?show_blog_request=1";
       var url = action_file_path+actioncmd;
       url=url+"&sid="+Math.random();

       //get the content to display using ajax
        $.ajax({
            method: "get",url:url,data: "page",
            beforeSend: function()
                {
                 document.getElementById("div_show_blog").innerHTML=showSpinner();
                }, //show loading just when link is clicked
            complete: function(){$("#loading").hide("fast");}, //stop showing loading when the process is complete
            success: function(html)
            { //so, if data is retrieved, store it in html
                $("#div_show_blog").html(html); //show the html inside .content div
            }
       }); //close $.ajax()

       //we clear the "div_multi_purpose_leftcol" div on the left to avoid showing
       //the captcha form there

       document.getElementById("div_multi_purpose_leftcol").innerHTML="";
 }//blog_showBlog()

