﻿//------------------------------------------------------------------------------------------------------------------------------------------

function fInitLocationFinder()
{
    /* Diese Funktionen werden ausgeführt, wenn die Seite aufgerufen und iniziert werden */

    fPreloadMaps();

    fServicekastenPositionieren();


    
    //fNLFinderAuf();

}

//------------------------------------------------------------------------------------------------------------------------------------------

function fServicekastenPositionieren()
{

    // Den Kasten runterschieben
    intHoehe = document.getElementById("UC_LocationFinder_UP_Auswahl_Radio").offsetHeight;
    //alert(intHoehe);
    document.getElementById("RadioButtonNLFinderPlatzhalter").style.height = intHoehe - 12 + "px";

}

//------------------------------------------------------------------------------------------------------------------------------------------

function fPreloadMaps() 
{
    var oMaps = new Array();
    oMaps[0] = new Image()
    oMaps[0].src = "/gwtools/LocationFinder/images/GW-WORLDKarteeuropa.gif"
    oMaps[1] = new Image()
    oMaps[1].src = "/gwtools/LocationFinder/images/GW-WORLDKartewelt.gif"
}

//------------------------------------------------------------------------------------------------------------------------------------------

function oeffnen(id1) 
{
    document.getElementById(id1).style.display = 'block';
}

//------------------------------------------------------------------------------------------------------------------------------------------

function schliessen(id1) 
{
    document.getElementById(id1).style.display = 'none';
}

//------------------------------------------------------------------------------------------------------------------------------------------

function mapChange(id1, id2, id3, id4) 
{
    if (document.getElementById(id2).style.display == "none") 
    {
        document.getElementById(id1).style.display = "none"
        document.getElementById(id2).style.display = "block"
        document.getElementById(id3).style.display = "none"
        document.getElementById(id4).style.display = "block"
    }
    else
    {
        document.getElementById(id2).style.display = "none"
        document.getElementById(id1).style.display = "block"
        document.getElementById(id4).style.display = "none"
        document.getElementById(id3).style.display = "block"
    }
}

//------------------------------------------------------------------------------------------------------------------------------------------

//function fCheckEnter_PlzAuswahl(Mode,Region,CountryCode,TransportTyp)
//{
//    // FireFox verwendet wa anderes als (window.event.keyCode)
//    // Suchen nach "firefox" "window.event.keyCode"
//    if (window.event.keyCode == 13)
//    {
//        fAdressenAusgeben(Mode,Region,CountryCode,TransportTyp);

//        if(window.event)
//        {
//            window.event.returnValue = false;
//        }
//        else
//        {
//            // funkioniert nicht
//            //e.stopPropagation();
//            //e.preventDefault();
//        }
//    }
//}

////------------------------------------------------------------------------------------------------------------------------------------------
function fNLFinderAuf()
{
   toggleMe('RightNavService1','RightNavService2','RightNavServiceButton');
}
//------------------------------------------------------------------------------------------------------------------------------------------

//function  fOnclickFuerTableAustauschen()
//{
////    document.getElementById("LocationFinderButton").onclick = function(){toggleMe('RightNavService1','RightNavService2','RightNavServiceButton');};
//}
//------------------------------------------------------------------------------------------------------------------------------------------

