/*

 @description: Layout Javascript
 @auteur: Neov
 @creation: 20081104
 @modification: -

*/

// document ready
$(function(){
	
	// simulation target blank
	$('a.target-blank').each(
		function()
		{
			this.link = $(this).attr('href') ;
			$(this).click(
				function()
				{
					window.open(this.link);
					return false;
				}
			);
		}
	);
	
	// affichage aleatoire du background de la home	
	var bgNbr = 3;
	var n = ( Math.floor( Math.random() * bgNbr ) ) + 1;
	var bg = 'url(images/data/home/home-background-' + n +'.jpg)';
	$('.homepage-bg').css('background-image', bg);

});
