function isCheckableBox(me){return me&&me.nodeType==1&&me.nodeName.toUpperCase()=="INPUT"&&me.getAttribute("type")&&(me.getAttribute("type").toUpperCase()=="CHECKBOX"||me.getAttribute("type").toUpperCase()=="RADIO")}
function checkBefore(me){if(me)while(me.previousSibling&&!isCheckableBox(me))me=me.previousSibling;if(isCheckableBox(me)){me.checked=!me.checked;me.onchange()}}
function openPage(url){document.getElementById('scountrylink').href=url}
function switchCountry(ele){hoCo(ele,1);var href=ele.getAttribute("title");while(ele.nodeName!='A')ele=ele.parentNode;ele.href="http://"+href}
function switchElement(ele){hoCo(ele,1);var href=ele.getAttribute("title");while(ele.nodeName!='A')ele=ele.parentNode;ele.href="http://"+window.location.hostname+"/"+href}
function childsVis(ele,vis,menuname){var vis=vis?"visible":"hidden";ele=ele.firstChild;while(ele){if(ele.style&&ele.nodeName.toUpperCase()=="SPAN"&&ele.getAttribute("id")==menuname)ele.style.visibility=vis;ele=ele.nextSibling}}
function hoCo(ele,hov){if(hov){if(ele.className.indexOf("hover")==-1)if(ele.className.length>0){ele.className+=" hover"}else ele.className="hover"}else if(ele.className.indexOf("hover")!=-1)if(ele.className.length=="hover".length){ele.className=""}else ele.className=ele.className.substr(0,ele.className.indexOf(" hover"))}
function lesezeichen(){var url=document.location.href,title=document.title;if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(url,title)}else if(navigator.appName=="Netscape"){window.sidebar.addPanel(title,url,"")}else alert("Verwenden Sie bitte die Bookmark Funktion Ihres Browsers.")}
