// JavaScript Document // Show/Hide Pulldown function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i=0) { var windowLocationPart1 = url.substring(0,url.indexOf("jsession")-1); var windowLocationPart2 = url.indexOf("?")>=0?url.substring(url.indexOf("?"),url.length):""; url = windowLocationPart1 + windowLocationPart2; while (url.indexOf("&")>=0) {url = url.replace("&","%26");}; } //url = url.replace("e","a") return url; } function getCurrentWindowTitle() { var documentTitle = document.title; return documentTitle; } function recommend() { var windowLocation = getCurrentWindowUrl(); var documentTitle = getCurrentWindowTitle(); // document.location.href = "mailto:?subject=Website%20Recommendation: " + documentTitle + "&body=Have%20a%20look%20at%20: \n" + windowLocation + "\n\nBest%20regards,"; if (document.location.href.indexOf('www.euromed.de/en/')>=0) document.location.href = "mailto:?subject=Website%20Recommendation: " + document.location.href + "&body=I%20recommend%20the%20following%20website: " + windowLocation; else document.location.href = "mailto:?subject=Website-Empfehlung: " + document.location.href + "&body=Ich%20empfehle%20folgende%20Website: " + windowLocation; } function addToFavorites() { var windowLocation = window.location.toString(); if (windowLocation.indexOf("jsession")>=0) { var windowLocationPart1 = windowLocation.substring(0,windowLocation.indexOf("jsession")-1); var windowLocationPart2 = windowLocation.indexOf("?")>=0?windowLocation.substring(windowLocation.indexOf("?"),windowLocation.length):""; windowLocation = windowLocationPart1 + windowLocationPart2; } if (document.all) { window.external.AddFavorite(windowLocation, document.title); } else if (window.sidebar) { window.sidebar.addPanel(document.title, windowLocation, ""); } else { alert("Sorry! Your browser does not support this function."); } } function hide(obj) { if (obj!=null) { var c = obj.className; c = c.replace('showstyle',''); obj.className = c + " hidestyle"; } } function show(obj) { if (obj!=null) { var c = obj.className; //c = c.replace('hidestyle',''); c = replaceAll (c,'hidestyle',''); obj.className = c + " showstyle"; } } function showHide(obj) { if (obj.className.indexOf('hidestyle')>=0) { show(obj); } else { hide(obj); } } function replaceAll(s, regExp, replacement) { while (s.indexOf(regExp)>=0) s = s.replace(regExp,replacement); return s; }