
//	mangoo rapid application design - copyright 2004-2006 by 10fingers.com and crossconcept.info
	
//	-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
//	allg. Sitefunktionen

	function contact(string)
	{
		if(string == '') return;
		
		var chars 	= 'abcdefghijklmnopqrstuvwxyz0123456789.-_@';
		var map 	= 'ptucdVklmNqXrsbOPjxyQRvWAzYwZaSefnTUghio';
		var j		= string.length;
		var result	= 'mai'+'lto:';

		for(var i = 0; i < j; i++) {
			k = string.charAt(i);
			l = map.indexOf(k);
			result += chars.charAt(l);
		}

		window.location = result;
	}
	
	function getObject(ObjId) {
		if (document.getElementById) {
			var Obj = document.getElementById(ObjId);
		} else if (document.all) {
			var Obj = eval("document.all."+ObjId);
		}
		return Obj;
	}
	
	function show(ObjID) {
		toggleLayerByID('', ObjID);
	}
	
	function hide(ObjID) {
		toggleLayerByID(ObjID, '');
	}
	
	function toggleLayerByID(ObjIDhide, ObjIDshow) {
		if(ObjIDhide != '') {
			var ObjHide = getObject(ObjIDhide);
			ObjHide.style.display = "none";
		}
		if(ObjIDshow != '') {
			var ObjShow = getObject(ObjIDshow);
			ObjShow.style.display = "block";
		}
	}
	
	function viewImage(link, width, height)
	{
		var screenheight = parseInt(height) + 17;
		var left = (screen.availWidth - width) / 2;
		var top = (screen.availHeight - screenheight) / 2;

		imageWindow = window.open("about:blank", "ZOOM", "height="+screenheight+",width="+width+",menubar=no,locationbar=no,status=no,scrollbars=no,resizable=no,left="+left+",top="+top);
		if(document.all) imageWindow.moveTo(left, top);
		imageWindow.document.write("<html><head><title>ZOOM</title></head>");
		imageWindow.document.write("<body style='margin:0;padding:0;' onclick='window.close();'>");
			imageWindow.document.write("<img src='"+link+"' style='width:"+width+";height:"+height+";border:0;margin:0;padding:0;'>");
			imageWindow.document.write("<p style='margin:0;padding:0;background-color:#FFF;width:"+width+"px;font-size:11px;line-height:13px;font-family:Arial,sans-serif;text-align:center;cursor:pointer;cursor:hand;'>close / schlie&szlig;en</p>");
		imageWindow.document.write("</body></html>");
		imageWindow.focus();
	}
	
//	-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
//	The End