<!--

// [di] digitale informationssysteme gmbh, goma, 25.11.02

// Browsererkennung

	isWindows = (navigator.platform.toLowerCase().indexOf("win") != -1) ? true : false; // Windows
	isMac = (navigator.platform.toLowerCase().indexOf("mac") != -1) ? true : false; // Mac
	ie = (document.all && navigator.appVersion.substring(0,1) >= 4) ? true : false; // IE 4+
	ns4 = (document.layers) ? true : false; // Netscape 4.x
	ns6 = (document.getElementById && !document.all) ? true : false; // Netscape 6

	//alert(ie + " " + ns6);

// Dreamweaver-Scripts


	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}
	
	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<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
		}
	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
	
	function MM_showHideLayers() { //v6.0
	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
		obj.visibility=v; }
	}
	
	
	// Standard Popup-Fenster
	function popUp(file,props) {
	
		myPopUp = window.open(file,'myPopup',props);
		if (myPopUp.focus) {
			myPopUp.focus();
			}
		}
	
	
	// Site-Tool
	function goToUrl (myList) {
		if (myList != "") {
			eval ("myUrl = document.auswahl." + myList + ".options[document.auswahl." + myList +
					".options.selectedIndex].value;");
			if (myUrl != "") {
				top.location.href = myUrl;
				}
			}
		}
	
	// Site-Suche
	function showResults() {
		remotesuche = window.open ('','remotesuche','width=400,height=450,scrollbars');
		screenw = screen.availWidth;
		remotesuche.window.moveTo(screenw-410,0);
		if (remotesuche.focus) {
			remotesuche.focus();
			}
		}
	
	


	function playOnline(refId) {
		if (ns4) {
			playwindowSize = "width=,height=";
			}
		else {
			playwindowSize = "width=100,height=100";
			}
		playwindow = window.open('spiele/' + refId + '/index.php','playwindow',playwindowSize);
		if (playwindow.focus) {
			playwindow.focus();
			}
		}
	
	// Anti-Spam
	function diAntiSpam(addy,subj) {
		if (addy != "") {
			document.write ('<a href="mailto:' + addy + '@' + 'digi-info' + '.de');
			if (subj != "") {
				document.write ('?subject=' + subj);
				}
			document.write ('"><img src="/images/icons/ico_mail.gif" alt="" width="16" height="9" border="0">' +
								addy + '@' + 'digi-info' + '.de</a>\n');
			}
		}
	
	
	
	

	// Druck- und PDF-Version
	function sendTo(what,lang) {
		myForm = document.footer;
		if (!lang) lang = "de";
		if (what == "print" || what == "pdf" || what == "friend") {
			if (what == "print") {
				myForm.action = "/" + lang + "/druckversion/index.php";
				}
			else if (what == "pdf") {
				myForm.action = "/" + lang + "/pdfversion/index.php";
				}
			else if (what == "friend") {
				sendwin = window.open('','sendwin','width=400,height=500');
				screenw = screen.availWidth;
				sendwin.window.moveTo(screenw-410,0);
				if (sendwin.focus) {
					sendwin.focus();
					}
				myForm.action = "/" + lang + "/weitersagen/index.php";
				myForm.target = "sendwin";
				}
			myForm.submit();
			}
		}
	


	// td high-/lowlighten
	function hiLow(id,mod,clr) {

		if (isWindows) {
			// Highlight-Farbe für gewaehltes Element
			if (clr == "") {
				hiColor = "#ffffff";
				}
			else {
				hiColor = clr;
				}
			var myColor = "";

			if (mod == 1) { // highlighten
				myColor = hiColor;
				}
 	 		if (ie) {
				document.all['td' + id].style.setAttribute("backgroundColor",myColor,0);
				}
			else if (ns6) {
				document.getElementById('td' + id).style.backgroundColor = myColor;
				}

			}

		}


	function showContextHelp(strParam) {
		helpwin = window.open("/de/netlaw/lexikon/kontexthilfe.php?" +
								strParam,"helpwin","width=300,height=400,scrollbars");
		screenw = screen.availWidth;
		helpwin.window.moveTo(screenw-310,0);
		if (helpwin.focus) {
			helpwin.focus();
			}
		}



	// goma, 15.09.2003
	// htdig: formatiert Titel und Url der Suchergebnisse und gibt diese als Link aus
	function outLink(title,url,isTitle) {
		var endFlag = "|";
		var maxUrlLength = 60;
		var displayText = "";
		if (url == "") {
			url = "http://www.digi-info.de";
			}
	
		if (isTitle == 1) { // Title soll bis zum titleEnd ausgegeben werden
	
			if (title != "") {
				titleParts = title.split(endFlag);
				displayText = titleParts[0];
				
				//displayText = displayText.replace(/&amp;#8211; InternetAgentur \[di\] digitale informationssysteme &amp;#8211; die Internet- und Multimedia-Agentur in Mannheim/,"");
				//displayText = displayText.replace(/&amp;#8211; Internet agency \[di\] digitale informationssysteme, Mannheim/,"");
				
				var temp = displayText.split("#");
				displayText = temp[0];
				
				displayText = displayText.substring(0, displayText.lastIndexOf("&") - 1);
				
				}
			else {
				displayText = "";
				}
				
			if (displayText == "") {
				if (url.indexOf('/en/') > -1) {
					displayText = " &gt; Home page ";
					}
				else {
					displayText = " &gt; Startseite ";
					}
				}
	
			}
		else { // Url soll bis zu maxUrlLength ausgegeben werden
	
			if (url.length > maxUrlLength) {
				displayText = url.substr(0,(maxUrlLength-3)) + "...";
				}
			else {
				displayText = url;
				}
	
			}
	
		displayText = "<img src='/images/icons/ico_intern_link.gif' width='12' height='11' " +
						"border='0' alt='' align='absmiddle'>" + displayText;
	
		document.write ("<a href=javascript:showPage('" + url + "');>" + displayText + "</a>");
	
		}
		
		
		
		
	
	function showPage (url) {
		/*if (window.opener && window.opener.closed) {
			window.open(url,'newMainWin','width=750,height=550,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
			}
		else {
			window.opener.location.href = url;
			}*/
		if (window.opener != null && !window.opener.closed) {
			window.opener.location.href = url;
			window.opener.focus();
			}
		else {
			window.open(url,'newMainWin','width=750,height=550,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
			}
		}
	

// Popup oeffnen
function openWindow(url,winName,w,h,sb) {
	if (h == 0) {
		h = screen.availHeight-50;		
	}
	newWin = window.open(url, winName, 'width=' + w + ', height=' + h + ', scrollbars=' + sb + ', toolbar=no, location=no, status=no, menubar=no, resizable=no');
	newWin.window.moveTo(0,0);
	if (newWin.focus) newWin.focus();
	return false;
}


//-->

