// Verschluesselung Email-Adressen
function decrypt(encoded){
  var legalchar="!#$%'*+-./0123456789=?@^_abcdefghijklmnopqrstuvwxyz{|}ABCDEFGHIK";
  var clear="";
  var encloc;
  var key=encoded.substr(0,1)
  var keyval=key.charCodeAt(0)-83;
  
  for (var i=1;i < encoded.length; i++){
    encloc=legalchar.indexOf(encoded.substr(i,1));
    clear += legalchar.charAt(encloc^keyval);
  }
  return clear;
}

// Bild-Slider (mit jQuery)
$(document).ready(function(){
  $('.pictureslider').hover(function(){
    $(".cover", this).stop().animate({left:'545px'},{queue:false,duration:500});
  }, function() {
    $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:500});
  });
});

// Grosser Slieder (jshowoff mit jQuery)
$(document).ready(function(){
  $('.jshowoff-slider').jshowoff({
    changeSpeed:800,
    controlText:{
      play:'start',
      pause:'stop',
      previous:'zurück',
      next:'weiter'
    },
    speed:8000,
    hoverPause:false
  });
});

