/*
    Generates Result-Detail
*/
function getResultDetail(adrnr, sprachkz) {

    /* Load detail-data on row-click-event only if "Merkliste" - checkbox was not clicked! */

    flobu.enable();
    $.ajax({
        type: "POST",
        url:  contextPath + "/ajax/aussteller-detail?adrnr=" + adrnr + "&sprachkz=" + sprachkz,
        success: function(html){
            posLeft = $("#container-neuheiten").position().left;
            posTop = $("#container-neuheiten").position().top;
            $("#container-result-detail").replaceWith(html);
            $("#container-result-detail").css({ "display":"block", "position":"absolute", "left": posLeft, "top": posTop });
            $("#container-neuheiten").css({ "display":"none" });
            flobu.disable();
        },
        error: function(){
            flobu.disable();
        }
    });
}

/*
    Close Result-Detail
*/
function closeDetail() {
    $("#container-result-detail").hide("slow");
    $("#container-neuheiten").css({ "display":"block" });
}

/*
    Wait-Cursor
*/
var flobu;
$(function(){
	flobu = new flower_bubble ({
		base_obj: $('.dreispaltig_mitte'),
		base_dir: contextPath + '/images/flobu/',
		background: { css: 'white', opacity: 0.78 },
		flower: { image: 'flower.gif', width: 32, height: 32 },
		block_mode: 'base_obj'
	});
});