// ########## VERSCHIEDENE INCLUDES START

function AutoInclude()
{
    (
        function ()
         {
            IncludeOpacityImage();      //  Anzeigen farbiger Images beim Mouseover im Menü
            IncludeChangeRowColor();    //  Wechseln der Farbe in der <tr> beim mouseover
         }
    )();
}
var obj = new AutoInclude;

//  Wechseln der Farbe in der <tr> beim mouseover
function IncludeChangeRowColor()
{
    $(document).ready(function()
	{
        $('#tbody_btw_list')
            .bind('mouseover',  function(e){    $(e.target).closest('tr').children('td').css('background-color','#F0F0F0');    })
            .bind('mouseout',   function(e){    $(e.target).closest('tr').children('td').css('background-color','#E8E8E8');    });
    });
}

//  Anzeigen farbiger Images beim Mouseover im Menü
function IncludeOpacityImage()
{
    $(document).ready(function()
	{
        //  MENÜ LINKS
        $(".menu-bg-top li").hover(
            function()
            {
                $(this).children("a").children("img:nth-child(1)").css("display","none");
                $(this).children("a").children("img:nth-child(2)").css("display","inline");
            },
            function() {
                $(this).children("a").children("img:nth-child(1)").css("display","inline");
                $(this).children("a").children("img:nth-child(2)").css("display","none");
            }
        );
        //  SYMBOLMENÜ LINKS
        $(".symbolmenu-left a").hover(
            function()
            {
                $(this).children("img:nth-child(1)").css("display","none");
                $(this).children("img:nth-child(2)").css("display","inline");
            },
            function() {
                $(this).children("img:nth-child(1)").css("display","inline");
                $(this).children("img:nth-child(2)").css("display","none");
            }
        );

        $(".opacity-image img").css({
            opacity:"0.8"
        });
        
        $(".opacity-image").mouseenter(function(){
            $(this).children("a").children("img").css("opacity", "1");
            $(this).children("img").css("opacity", "1");
        });

        $(".opacity-image").mouseleave(function(){
            $(this).children("a").children("img").css("opacity", "0.8");
            $(this).children("img").css("opacity", "0.8");
        });
	});
}

// ########## VERSCHIEDENE INCLUDES ENDE

// ########## FUNCTIONS REPORT IMAGE START

function info_box_over(imgobj,titlecode,brfulljs)
{
    $("<div id='info-box'></div>").appendTo("body");
    $("#info-box").delay(400).fadeTo(300,1);
    
    var boxwidth=185;
    var box_moveleft=8;
    if(brfulljs==0) box_moveleft=box_moveleft - 8;
    var position=$(imgobj).position();
    
    $("#info-box").width(boxwidth).html(titlecode);
    
    var diff=Math.round(($("#info-box").height() - imgobj.height)/2);
    $("#info-box").
    css("top",position.top - diff - 2).
    css("left",position.left - (boxwidth + box_moveleft));
    
    var position_box=$("#info-box").position();
    $("<div id='info-box-marker'></div>").appendTo("body");
    $("#info-box-marker").show();
    
    $("#info-box-marker").
    css("top",position_box.top + ($("#info-box").height()/2) - 3).
    css("left",position_box.left + boxwidth + box_moveleft - 1);
}

function info_box_out(imgobj)
{
    $("#info-box").remove();
    $("#info-box-marker").remove();
}

// ########## FUNCTIONS REPORT IMAGE END
