// - crypt functions -----------------------------	
// http://www.toulouse-renaissance.net/c_outils/c_mailto_spam.htm
function Crypt(s) 
{
	r='';
	for(i=0;i<s.length;i++)
	{
		n=s.charCodeAt(i); 
		if (n>=8364) 
			{n = 128;} 
			r += String.fromCharCode( n - 3 ); 
	}
	return r;
}

function fapsoiug (name)
{
	var a  ="pdlowr=";
	var m ='&#64;';
	var d =unescape(m);
	var domaine = "parochat.ch";
	var aro = name + d + domaine;
	document.write('<a href='+ Crypt(a) + aro + '>');
	document.write(aro + '</a>');
}
// -----------------------------------------------




$("document").ready (function () {

	$(".not_selected").css({opacity:0.9});
	
	$('.not_selected').each (function () {
		t = $(this);
	//	t.mouseover (function (){$(this).css ({opacity:0.6});});
	//	t.mouseout (function (){$(this).css ({opacity:0.5});});
	})
	
	$('.thumb_selected').each (function () {
		t = $(this);
		t.mouseover (function (){$(this).css ({opacity:0.93});});
		t.mouseout (function (){$(this).css ({opacity:1});});
	})
	
	// Flash messages
	// fadeout flash messages on click
	$('.flashClose').click(function(){
		$(this).parent().fadeOut();
	return false;
	});


});


function isSelected (item) {
	if (item.attr('class').indexOf('selected') == -1) 
		return false;
	else return true;
}
