function UnCryptMailto( s )
{
	var n = 0;
	var r = "";
	for( var i = 0; i < s.length; i++)
	{
		n = s.charCodeAt( i );
		if( n >= 8364 )
		{
			n = 128;
		}
		r += String.fromCharCode( n - 1 );
	}
	return r;
}

function linkTo_UnCryptMailto( s )
{
	location.href=UnCryptMailto( s );
}




jQuery().ready(function(){

	$(document).ready(function() {
	  $("a[@href^=http]").each(function() {
	    if(this.href.indexOf(location.hostname) == -1) {
	      $(this).click(function(){window.open(this.href);return false;});
	    }
	  })
	});

	// $("a[@href^=http]").each(
	// 	function(){
	// 		if(this.href.indexOf(location.hostname) == -1) {
	// 			$(this).attr('target', '_blank');
	// 		}
	// 	}
	// )

	$('#expandingContainer').accordion({
		header: "h2",
		animated:"easeslide",
		autoHeight:false
	});

	$("#onlineImages").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		easing:"easeinout",
		speed:200,
		visible:1
	});
	$("#onlineInfos").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		easing:"easeinout",
		speed:400,
		visible:1,
		vertical:true
	});

	$("#printImages").jCarouselLite({
		btnNext: ".pnext",
		btnPrev: ".pprev",
		easing:"easeinout",
		speed:200,
		visible:1
	});

	$("#printInfos").jCarouselLite({
		btnNext: ".pnext",
		btnPrev: ".pprev",
		easing:"easeinout", 
		speed:400,
		visible:1,
		vertical:true
	});

	$('.imageContainer img').fadeTo("fast",0.85);
	$('.imageContainer img').mouseover(function() {
		$(this).fadeTo("fast",1);
	});
	$('.imageContainer img').mouseout(function() {
		$(this).fadeTo("fast",0.85);
	});
	
	$('#rightBox_no_js').remove();
	
});	//end of page functions
