var g_szAjaxFunc = "";
var g_idContent = "";


function JQColorBoxReady(){
    $(document).ready(function() {
        //Examples of how to assign the ColorBox event to elements
        if(typeof($(".colorModal").colorbox) != 'undefined'){
            $(".colorModal").colorbox({
                onComplete:function(){
                    ResizeColorBox();
                }
            });
        }
    });
}

function ResizeColorBox(){
    $(document).ready(function() {
        if(typeof($(".colorModal").colorbox) != 'undefined'){
            if(typeof($(".colorModal").colorbox.resize) == 'function'){
                $(".colorModal").colorbox.resize();
            }
        }
    });
}

function JQColorBoxReady_List(szAjaxFunc, idContent, bShowLoader){
    /*bShowLoader = (typeof(bShowLoader) == 'undefined' ? 1:bShowLoader);
    
    if(typeof(szAjaxFunc) == 'undefined'){
        szAjaxFunc = g_szAjaxFunc;
    }else{
        g_szAjaxFunc = szAjaxFunc;
    }
    if(typeof(idContent) == 'undefined'){
        idContent = g_idContent;
    }else{
        g_idContent = idContent;
    }
    
    jQuery(function(){
        //Examples of how to assign the ColorBox event to elements
        $(".listModal").colorbox({
            onComplete:function(){
                //JQAjax(szAjaxFunc, idContent, 0);
                $(".colorModal").colorbox.resize();
            },
            onClosed:function(){
                JQAjax(szAjaxFunc, idContent, bShowLoader);
            }
        });
    });
    
    ResizeColorBox();*/
}

