/**
*	CryptMail
*
*	Simple Javascript Email-Address crypter / uncrypter.
*	(C) 2005 KLITSCHE.DE // DIRK ALBAN ADLER
*	http://cryptmail.klitsche.org
*	
*	CryptMail is published under the CC-GNU LGPL
*	http://creativecommons.org/licenses/LGPL/2.1/
*
*	It is provided as is. No warrenties. No support.	
*/
function mailto (s)	
{
	document.location.href =  "mailto:" + unCryptMail(s);
}

function unCryptMail (r)  
{
	r = unescape (r);
	var l = r.length;
	var o = "";
	for (i = 0; i < l; i++)
	{
		o += String.fromCharCode (r.charCodeAt (i) - 1);
	}
	return o; 
}

function cryptMail (r) 
{
	var l = r.length;
	var o = "";
	for (i = 0; i < l; i++)
	{
		o += String.fromCharCode (r.charCodeAt (i) + 1);
	}
	return escape (o);
}

/* Ausklappen der Filialen */
$(document).ready(function() {
			$('#filialen2').click(function(){
			$('#filialen21').slideToggle("slow");
			});
		});
		
/* Ausklappen der Box 2 */
$(document).ready(function() {
			$('#more1').click(function(){
			$('#more11').slideToggle("slow");
			});
		});
		
/* Ausklappen der Box 3 */
$(document).ready(function() {
			$('#more2').click(function(){
			$('#more21').slideToggle("slow");
			});
		});
		
/* Den IE dazu bringen, Listenpunkte zu hovern */
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
