/**
 * @author lkuhs
 */
function maphover(idContinent) {
    var objMap = document.getElementById("world_map_hover");
    var intPos = -100 * idContinent -6;
    if(objMap) {
        objMap.style.backgroundPosition = "-208px " + intPos + "px"
    }
}
function checkContinent() {
    var stringURI = window.location.href.toLowerCase();
    var objMap = document.getElementById("world_map");
    var idContinent = 0;
    var intPos = 0;
    if(objMap) {
        //check which on continent we are
        if(stringURI.indexOf("/amerique/") > -1) {
            idContinent = 1;
        }else if(stringURI.indexOf("/americas/") > -1) {
            idContinent = 1;
        }else if(stringURI.indexOf("/europe/") > -1) {
            idContinent = 2;
        }else if(stringURI.indexOf("/afrique/") > -1) {
            idContinent = 3;
        }else if(stringURI.indexOf("/africa/") > -1) {
            idContinent = 3;
        }else if(stringURI.indexOf("/asia/") > -1) {
            idContinent = 4;
        }else if(stringURI.indexOf("/asie/") > -1) {
            idContinent = 4;
        }else if(stringURI.indexOf("/oceanie/") > -1) {
            idContinent = 5;
        }else if(stringURI.indexOf("/oceania/") > -1) {
            idContinent = 5;
        }
        intPos = -100 * idContinent -6;
        objMap.style.backgroundPosition = "0px " + intPos + "px"
    }
}

/**
 * @author iwoersdoerfer
 */
 function showSearchButton(){
    var txtField = document.getElementById("InputKeywords");
    var searchBtn = document.getElementById("SearchButton");

    if(txtField.value != '')
        searchBtn.style.display="block";
    else
        searchBtn.style.display="none";
 }

 function changeBgImg(nr){
    if(nr=1)
        document.getElementById("SearchButton").style.backgroundImage="../images/search_hover.gif";
    else
        document.getElementById("SearchButton").style.backgroundImage="../images/search.gif";
 }

/**
 * SOS Includes made by Siemens
 */
try {
    document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


function ExecuteSearch(event) {
    // using standard functionality for performing search tasks
    if(event.which || event.keyCode)
    {
        if ((event.which == 13) || (event.keyCode == 13))
        {
            ExecuteSearchButton();
        }
    }
}

function ExecuteSearchButton() {
    // using standard functionality for performing search tasks
    GoSearch(null,'InputKeywords',null,true,false,null,null,null,null,'\u002fSuche\u002fdefault.aspx', 'This Site','This List', 'This Folder', 'Related Sites', '\u002f_layouts\u002fOSSSearchResults.aspx');

}

function bookmark()
{
    bookmarkurl=window.location.href;
    bookmarktitle=window.document.title;

    if (document.all)
        window.external.AddFavorite(bookmarkurl,bookmarktitle)
    else if (window.sidebar) // firefox
        window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");
}

function printPage()
{
    window.print();
}
