function xmlhttpGet(strURL) {
    var xmlHttpReq = false;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlHttpReq.open('GET', strURL, false);
    xmlHttpReq.send(null);
    return xmlHttpReq.responseText;
}


var lc_strLongtextFile = '';
function onLcContentPageLoaded_realLongtextChangeHandler()
{
    bool=0;
    try
    {
        if(lc_strLongtextFile.length > 0 && top.bannerFrame)
        {        	
            read_in = xmlhttpGet('http://www.noisegate.at/_lccms_/menuitemactions/actiontexts/' + lc_strLongtextFile + '.htm');

            top.bannerFrame.document.getElementById('actiontext').innerHTML='<table width="100%" height="100" border="0"><tr><td style="vertical-align:bottom;" align="center" width="100%" height="100%">'+read_in+'</td></tr></table>';
            top.contentFrame.document.getElementById('actiontext2').innerHTML='<table width="100%" height="100" border="0"><tr><td style="vertical-align:bottom;" align="center" width="100%" height="100%">'+read_in+'</td></tr></table>';
            bool=1;
        }
        else if(lc_strLongtextFile.length < 1 && top.bannerFrame)
        {
            top.bannerFrame.document.getElementById('actiontext').innerHTML='';
            top.contentFrame.document.getElementById('actiontext2').innerHTML='';
        }
    }
    catch(ex)
    {
        if(bool==0)
        {
            window.setTimeout('onLcContentPageLoaded_realLongtextChangeHandler()', 100);
        }
    }
}

function onLcContentPageLoaded_longtextChangeHandler(strLongtextFile)
{
    lc_strLongtextFile = strLongtextFile;
    onLcContentPageLoaded_realLongtextChangeHandler();
}

var lc_strBannerID = '';
var strCurrentBannerID = '';

function onLcContentPageLoaded_realBannerChangeHandler()
{
    try
    {    	
        if(strCurrentBannerID != lc_strBannerID)
        {        	
            if(lc_strBannerID.length > 0)
            {
                top.bannerFrame.document.getElementById('actionbannerdiv').innerHTML='<IFRAME NAME="actionbannerFrame" MARGINWIDTH="0" MARGINHEIGHT="0" SRC="http://www.noisegate.at/_lccms_/banners/' + lc_strBannerID + '/bannerinclude.htm" WIDTH="149" HEIGHT="183" SCROLLING="No" NORESIZE FRAMEBORDER="0" HSPACE="0" VSPACE="0" ALIGN="left"></IFRAME>';
            }
            else
            {
                top.bannerFrame.document.getElementById('actionbannerdiv').innerHTML='<IFRAME NAME="actionbannerFrame" MARGINWIDTH="0" MARGINHEIGHT="0" SRC="http://www.noisegate.at/actionbannerFrame.htm" WIDTH="149" HEIGHT="183" SCROLLING="No" NORESIZE FRAMEBORDER="0" HSPACE="0" VSPACE="0" ALIGN="left"></IFRAME>';
            }


            strCurrentBannerID = lc_strBannerID;
        }
    }
    catch(ex)
    {
        window.setTimeout('onLcContentPageLoaded_realBannerChangeHandler()', 100);
    }
}

function onLcContentPageLoaded_bannerChangeHandler(strBannerID)
{
    lc_strBannerID = strBannerID;
    onLcContentPageLoaded_realBannerChangeHandler();
}

function onLcContentPageLoaded_bannerChangeHandler(strBannerID)
{
    lc_strBannerID = strBannerID;
    onLcContentPageLoaded_realBannerChangeHandler();
}

var lc_strImgUrl = '';

var lc_arMenuObject;
var lc_iMenuIndex;
var lc_strMenuName;

    if(typeof(displayMenu) == 'undefined')
    {
        var displayMenu = 'ger';

        var iPos = self.location.search.indexOf('?LANG=');
        if(iPos == -1)
        {
            iPos = self.location.search.indexOf('&LANG=');
        }

        if(iPos > -1)
        {
            displayMenu = self.location.search.substr(iPos + 6);
        }
        }


function onLcContentPageLoaded_userDefHandler(arMenuObject, iMenuIndex, strMenuName)
{
    lc_arMenuObject = arMenuObject;
    lc_iMenuIndex = iMenuIndex;
    lc_strMenuName = strMenuName;

    onLcContentPageLoaded_realUserDefHandler();
}

function onLcContentPageLoaded_realUserDefHandler()
{
    try
    {
        var iIndex = -1;
        if(lc_strMenuName == 'Menü Deutsch')
        {
            for(var i = 0; i < LCSiteMenus.length; i++)
            {
                if(LCSiteMenus[i][0] == 0 && LCSiteMenus[i][3] == lc_strMenuName)
                {
                    iIndex = lc_iMenuIndex - i - 1;
                }
            }
        }

        if(iIndex >= 0)
        {
            top.menuFrame.Menu_OnPageLoadHandler(iIndex);
        }
        else
        {
            top.menuFrame.SetActiveItem(null);
        }

    }
    catch(E)
    {
        window.setTimeout('onLcContentPageLoaded_realUserDefHandler();', 250);
    }
}

