/** * @author lkuhs */ function maphover(idContinent) { var objMap = document.getElementById("world_map_hover"); var intPos = -121 * idContinent; 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("/amerika/") > -1) { idContinent = 1; }else if(stringURI.indexOf("/europa/") > -1) { idContinent = 2; }else if(stringURI.indexOf("/afrika/") > -1) { idContinent = 3; }else if(stringURI.indexOf("/asien/") > -1) { idContinent = 4; }else if(stringURI.indexOf("/ozeanien/") > -1) { idContinent = 5; } intPos = -121 * idContinent; 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) { var keyCode=0; if(event.which) keyCode=event.which; else if(event.keyCode) keyCode=event.keyCode; if(keyCode==13) { if (event.stopPropagation) event.stopPropagation(); else event.cancelBubble = true; if (event.preventDefault) event.preventDefault(); else event.returnValue = false; ExecuteSearchButton(); return false; } return true; } function ExecuteSearchButton() { // using standard functionality for performing search tasks location.href='/buscar/default.aspx?k='+encodeURIComponent(document.getElementById('InputKeywords').value); return false; } function ExecuteEmail(event) { var keyCode=0; if(event.which) keyCode=event.which; else if(event.keyCode) keyCode=event.keyCode; if(keyCode==13) { if (event.stopPropagation) event.stopPropagation(); else event.cancelBubble = true; if (event.preventDefault) event.preventDefault(); else event.returnValue = false; ExecuteEmailButton(); return false; } return true; } function ExecuteEmailButton() { location.href='/conheca/noticias/Pages/newsletter.aspx?em='+document.getElementById('InputEmail').value; } function showEmailButton(){ var txtField = document.getElementById("InputEmail"); var searchBtn = document.getElementById("EmailButton"); if(txtField.value != '') searchBtn.style.display="block"; else searchBtn.style.display="none"; } 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(); }