$(document).ready(function(){
	$("#partager").hide();
	$(".zoomcon a").click(function(event) {    
		event.preventDefault();
		$("#partager").slideDown();		
	}); 
	
	$(".photo_zoom").prepend("<tr><td align=right><p id=zoomvideobig class=mdj><a href='#'><img width=29 height=15 alt='Agrandir la vid&eacute;o' src='images/zoomvideo.png' border=0></a></p></td><td>&nbsp;</td></tr>");
	bindbig();
	 
});

function bindbig() {
	$("#zoomvideobig").click(function(event) {    
		event.preventDefault();
		$(".photo_zoom tr td:odd").hide();
		$(".vidplay").parent().attr("width","600");	
		$(".vidplay embed").attr("width","600").attr("height","365");	
		$(this).parent().html("<p id=zoomvideosmall class=mdl><a href='#'><img width=29 height=15 alt='R&eacute;duire la vid&eacute;o' src='images/minimizevideo.png' border=0></a></p>");
		bindsmall();
	}); 
}
function bindsmall() {
	$("#zoomvideosmall").click(function(event) {    
		event.preventDefault();
		$(".vidplay").parent().attr("width","400");	
		$(".vidplay embed").attr("width","400").attr("height","330");			
		$(".photo_zoom tr td:odd").show();
		$(this).parent().html("<p id=zoomvideobig class=mdl><a href='#'><img width=29 height=15 alt='Agrandir la vid&eacute;o' src='images/zoomvideo.png' border=0></a></p>");
		bindbig();
	}); 
}
