		var delai = 200;
		var taille = 85;
		var arrboites = new Array();
		$(document).ready( function() {
			$('#sous_menu_portfolio li:last').css('margin-right','0');
			
			if ($('#zoneboites').length > 0) {
				$('#zoneboites>a').each(function(){
					var arrdata = new Array();
					arrdata['id'] = $(this).attr('id');
					arrdata['y'] = $(this).position().top;
					arrdata['x'] = $(this).position().left;
					arrdata['sy'] = $(this).height();
					arrdata['sx'] = $(this).width();
					arrboites.push(arrdata);
				});
				
				$('#zoneboites>a').hover(overBox, outBox);
				
				$('#popup>#projet>a#fermer').live('click', function() {
					$('#popup').hide();
					$('#popup').remove();
					return false;
				})
				
				$('a.btprojet').live('click', function(){
					var strurl = window.location.pathname;
					strurl = '/ajax' + strurl.substring(0, strurl.lastIndexOf('/')) + '/' + $(this).attr('href');

					$.get(strurl, function(data){
						if($('#popup').length > 0) {
							$('#popup').remove();
						}
						$('body').append(data)
					});
					return false;
				});			
			}
			
			$('#apercu_projet>li>a').live('click', function() {
				$('#projet').css('background-image','url(' + $(this).attr('href') +')');
				return false;
				
			});
		});	