function fullScreenLoading(transport)
{
    if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
        jQuery("body","html").css({height: "100%", width: "100%"});
        jQuery("html").css("overflow","hidden");
        if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
            jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
            jQuery("#TB_overlay").click(tb_remove);
        }
    }else{//all others
        if(document.getElementById("TB_overlay") === null){
            jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
            jQuery("#TB_overlay").click(tb_remove);
        }
    }

    if(tb_detectMacXFF()){
        jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
    }else{
        jQuery("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
    }
    
    if(! $j("#TB_load").size()) {
        jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
        jQuery('#TB_load').show();//show loader
    }
}

function endFullScreenLoading()
{
    tb_remove();
}

function search()
{
	location.href= '/search/index/query/' + $F('query');
}

function updateCartInfo()
{
    cartInfoUrl = webroot + "cart/info/ajax/true";
    $j("#cartInfo").load(cartInfoUrl);
}

function displayMessageDiv(text, height)
{
    //show alert
    text = escape(text);
    text = text.replace(/\//g, "forwardSlash");
    if(! height) {
        var alertURL = webroot + "messages/general-error/text/" + text + "/";
    } else {
        var alertURL = webroot + "messages/general-error/text/" + text + "/?height=" + height;
    }
    tb_show('', alertURL);
    //eof show alert
}
