
function lien_ext() {
	var liens = document.getElementsByTagName('a');
	for (var i = 0 ; i < liens.length ; ++i)  {
		if (liens[i].className == 'spip_out')  {
			liens[i].title = 'ouvre une nouvelle fenetre';
			liens[i].onclick = function()  {
				window.open(this.href);
				return false; 
			}
		}
	}
}

function popdoc() {
	var liens = document.getElementsByTagName('a');
	for (var i = 0 ; i < liens.length ; ++i)  {
		if (liens[i].className == 'popdoc') {
			
			liens[i].onclick = function() {
				image=window.open('','image','width='+screen.width/4*2+',height='+screen.height+',top=0,left='+screen.width/2+',scrollbars=yes,resizable=yes,status=no,location=no,copyhistory=yes,directories=no,menubar=no,toolbar=no,border=no');
				image.document.write('<html><head><title>Jean Raine Actualit&eacute;s - image</title><meta http-equiv="imagetoolbar" content="no" /><link rel="stylesheet" href="http://blog.jeanraine.info/squelettes/JR_style_blog.css" type="text/css" media="projection, screen, tv" /></head><body id="document_image">');
				image.document.write('<a href="#" onclick="window.close()" title="fermez">cliquez l\'image pour la fermer</a><br />');
				image.document.write('<a href="#" onclick="window.close()" title="fermez">');
				image.document.write('<img src="');
				image.document.write(this.href);
				image.document.write('" alt="image agrandie" />');
				image.document.write('</a></body></html>');
				image.document.close();
				image.focus();
				return false;
			}
		}
	}
}

window.onload = function() {
lien_ext();
popdoc();
}



