/*
 * @file
 * @description Contains wrapper functions to init and descruct the thiskbox.
 *
 * @author Keve Kutner <keve.kutner@4digits.hu>
 * @owner  4DIGITS Kft. <http://4digits.hu>
 */

/**
 * @function
 * @description Shows the thiskBox and fills it with content
 *
 * @param gId The id of the div which will serve as a grayer.
 * @param cId The id of the div which will serve as the content div.
 * @param content The content which will be assigned to the content div's innerHTML
 * @param w The content div's width
 * @param h The content div's height
 *
 * @returns void
 */
function initLoader(gId, cId, content, w, h) {
    var tbObj = new thiskBox(gId, cId);
    tbObj.setSize(w, h);
    tbObj.alignGrayer();
    tbObj.alignContent();
    tbObj.setContent(content);
    tbObj.show();
}//end init()

/**
 * @function
 * @description Hides the thiskBox
 *
 * @param gId The id of the div which will serve as a grayer.
 * @param cId The id of the div which will serve as the content div.
 *
 * @returns void
 */
function destructLoader(gId, cId) {
    var tbObj = new thiskBox(gId, cId);
    tbObj.hide();
}//end desctruct()