
	function PicPrev(url, src) {
		url = url + "?src=" + src;
		NewWindow(url, 100, 100, "showimg", "yes");
	}

	function NewWindow(url, w, h, name, scroll) {
		NewWin = window.open(url,name,"width="+w+",height="+h+",scrollbars="+scroll+",status=no,toolbar=no,menubar=no,resizable=yes");
		NewWin.focus();
	}

	function preview() {
		url = p + ";bPrint:1";
		printWin = window.open(url, "printpage", "width=810,height=600,scrollbars=yes,status=no,toolbar=no,menubar=yes,resizable=no");
		printWin.focus();
	}

	function search() {
		document.frmSearch.submit();
	}

	function newwin(w,h) {
	  myparm = 'width='+ w +',height='+ h +',scrollbars=no,status=no,toolbar=no,menubar=no'

	  mywindow=window.open('','newwin',myparm)
	  mywindow.focus();
	}


	/* SET FOOTER */

	var bNameLong = navigator.appName;
	var bAdd	  = navigator.vendor;
	var bName	  = bNameLong.substr(0, 4);

	if (bName=="Nets" && bAdd == "Apple Computer, Inc.") {
		bName = "Safa";
	}

	var iFtPx = 0;
	switch (bName) {
		case "Micr":
			iFtPx = 0;
			break;
		case "Safa":
			iFtPx = 0;
			break;
		case "Nets":
			iFtPx = 1;
			break;
		default:
			iFtPx = 0;
			break;
	}

	function getWindowHeight() {
		var windowHeight = 0;
		if (typeof(window.innerHeight)=="number") {
			windowHeight = window.innerHeight;
		}
		else {
			if (document.documentElement&&document.documentElement.clientHeight) {
				windowHeight = document.documentElement.clientHeight;
			}
			else {
				if (document.body&&document.body.clientHeight) {
					windowHeight=document.body.clientHeight;
				}
			}
		}
		return windowHeight;
	}


	function setFooter() {
		
		if (document.getElementById) {
			var windowHeight = getWindowHeight();
			if (windowHeight>0) {
				var headHeight = document.getElementById("header").offsetHeight;
				var pageHeight = document.getElementById("page").offsetHeight;
				var contentHeight = headHeight + pageHeight;
				var footerElement = document.getElementById("footBox");
				var footerHeight  = footerElement.offsetHeight;
				if (windowHeight-(contentHeight+footerHeight)>=0) {
					footerElement.style.top = (windowHeight-(contentHeight+footerHeight+iFtPx)) + "px";
				}
				else {
					footerElement.style.top = "0px";
				}
			}
		}
		
	}






	window.onload = function() {
	//	setFooter();
		initDom();
		//$$('F').setProperty('value', '1');
	}


	window.onresize = function() {
		//setFooter();
	}

	function resetNewsletterField(){
		$('sNlEmail').setProperty('value', '');
		$('sNlEmail').setStyle('color', '#000');
	}

	function jumpToNewsletter(){
		document.frmNL.submit();
	}



	bLng = false;

	function initDom() {
		$$('#languageBox').addEvent('click', function(){  doShwHdeLng() });
	}



	function doShwHdeLng() {
		if (!bLng) {
			$('languageListBox').fade(1);
			bLng = true;
		}
		else if (bLng) {
			$('languageListBox').fade(0);
			bLng = false;
		}
	}

	/* SERVICE AUSSENDIENST KARTE */

	function showBox(id) {
		var j = "box" + id;
		var k = 'marker' + id;
		var elbox = document.getElementById(j);
		var elmarker = document.getElementById(k);
		if (elbox.style.display == 'none' || elbox.style.display == '') {
			elbox.style.display = 'block';
		}
		if (elmarker.style.display == 'none' || elmarker.style.display == '') {
			elmarker.style.display = 'block';
		}
	}
	function hideBox(id) {
		var j = "box" + id;
		var k = 'marker' + id;
		var elbox = document.getElementById(j);
		var elmarker = document.getElementById(k);
		if (elbox.style.display == 'block' ) {
			elbox.style.display = 'none';
		}
		if (elmarker.style.display == 'block' ) {
			elmarker.style.display = 'none';
		}
	}

/*
	function init (id) {
		var m = document.getElementById(id);
		m.onmouseover = showBox(id);
		m.onmouseout = hideBox(id);
	}
	window.onload = init('box1');
*/




	