(function($){
		$(function(){
				$("div.contextual_link > a").click(function(){$(this).closest("div").find("div.contextual_link_ctn").slideToggle("fast"); return false;});
			});
			$(document).ready(function(){
					$('.left_column a[href^=PERSODEV]').each(function() { $(this).attr('href', transMail( $(this).attr('href') ) ); $(this).html( transMail( $(this).attr('href') , true ) ); });
					$('.left_column a[href^=INSTITUT]').each(function() { $(this).attr('href', transMail( $(this).attr('href') ) ); });
			});
})(jQuery);

function setTab_1(name_1,curse,n){ 
	for(var i=1;i<=n;i++){ 
		var menu=document.getElementById(name_1+i); 
		var con=document.getElementById("switch_"+name_1+"_"+i); 
		menu.className=i==curse?"active":""; 
		con.style.display=i==curse?"block":"none"; 
	} 
}



function favoris() {
	if ( navigator.appName != 'Microsoft Internet Explorer' ){
		window.sidebar.addPanel("Institut PersoDev",request_uri,""); 
	}else { 
		window.external.AddFavorite(request_uri,"Institut PersoDev"); 
	}
}

function transMail(subj, justMail) {
StrCode = "myx7km75@zo35ynoa.p3";
StrCodage = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ1234567890";
IntLong=StrCode.length;
StrLien="";
for (i=0; i<StrCode.length; i++) { if (StrCodage.indexOf(StrCode.charAt(i))==-1) { StrLettre=StrCode.charAt(i); StrLien+=(StrLettre); } else { StrLettre = (StrCodage.indexOf(StrCode.charAt(i))-IntLong+StrCodage.length) % StrCodage.length; StrLien+=(StrCodage.charAt(StrLettre)); } }
if(justMail === true) return StrLien;
else return 'mailto:'+StrLien+'?subject='+subj; }

