// 

function creditView()
	{
	credit = window.open('credits.htm','','height=150,width=384,scrollbars=no');
	};
	
	function email() {
		$("a[@href*=mailto]").each(function() {
			var href = $(this).attr('href');
			var texte = $(this).text();
			var mail = href.substr(7, href.length);
			var reg = /([-_\.0-9a-z]+)@([-_\.0-9a-z]+)\.([a-z]{2,})/;
			if(reg.test(texte)) {
				reg.exec(texte);
				var hote2 = RegExp.$1;
				var mail2 = RegExp.$2;
				var ext2 = RegExp.$3;
				$(this).text(mail2+'@'+hote2+'.'+ext2);
			}			
			reg.exec(mail);
			var hote = RegExp.$1;
			var mail = RegExp.$2;
			var ext = RegExp.$3;
			$(this).attr('href', 'mailto:'+mail+'@'+hote+'.'+ext);
		});
	}
	
	function clic_liens() {
		$('.banniere a').each(function() {
			$(this).click(function() {
				$.get("../library/clic.php", {url: $(this).attr('href')});
				//return false;
			});
		});
	}

	$(document).ready(function(){
		email();
		if(document.getElementById('liens'))
			clic_liens();
	});