function strrev(str) {
   if (!str) return '';
   var revstr='';
   for (i = str.length-1; i>=0; i--)
       revstr+=str.charAt(i)
   return revstr;
}
var s1 = "evirdk";
var s2 = "ed.evirdk";
var address='mai' + 'lto:' + strrev(s1) + "\x40" + strrev(s2);


// jQuery
$(document).ready(function() {
// fancybox
/*
	$("a#single_image").fancybox();

	// Using custom settings

	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	// Apply fancybox to multiple items

	$("a.demoimg").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600,
		'speedOut'		:	200,
		'overlayShow'	:	true,
    'overlayOpacity': 0.6,
    'overlayColor': '#888',
    'hideOnContentClick' : true,
    'hideOnOverlayClick' : true,
    'titlePosition': 'inside'
	});
*/

	// jquery.lightbox
	$("a.demoimg").lightBox({
			imageLoading:			'prg/jquery-lightbox/images/loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			'prg/jquery-lightbox/images/previous.png',			// (string) Path and the name of the prev button image
			imageBtnNext:			'prg/jquery-lightbox/images/next.png',			// (string) Path and the name of the next button image
			imageBtnClose:		'prg/jquery-lightbox/images/delete.png',			// (string) Path and the name of the close btn
			imageBlank:				'prg/jquery-lightbox/images/lightbox-blank.gif',	// (string) Path and the name of a blank image (one pixel)
			txtImage: 'Bild',
			txtOf: 'von'
	});
	
});

