function workWithCollectpl()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/galeria/view/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 3
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'facebook' });
				
						});
						
			
										   });
				
				
			});
			
			
			
			
}



function workWithCollecten()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/kolekcjeen/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
			
			
			
}

function workWithCollectde()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/kolekcjede/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
			
			
			
}

function workWithCollectfr()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/kolekcjefr/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
			
			
			
}








function workWithCollectionspl()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				$("#image_holder").html('<img src="" alt=""/>');
				$("#image_holder")
					.fadeOut(500);
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500);
				
				setTimeout(function() 
				{				
					$("#collecton_images")	
						.load('/kolekcjepl/get_list/'+collection_id, function()
						{
							$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							})
							.children("li")
								.click(function()
								{
									yoou = $(this).children('.file').text();
									$("#image_holder")
										.fadeOut(500)
										.queue(function()
										{
											$(this)
												.html('');
											$(this)
												.append('<img>');
												
											$(this)
												.children('img')	
													.attr('src', yoou);
													
											$(this)
												.dequeue();
										})
										.fadeIn(500);
					
								});
						});
				}, 500);
			});

}

function workWithCollectionsen()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				$("#image_holder").html('<img src="" alt=""/>');
				$("#image_holder")
					.fadeOut(500);
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500);
				
				setTimeout(function() 
				{				
					$("#collecton_images")	
						.load('/kolekcjeen/get_list/'+collection_id, function()
						{
							$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							})
							.children("li")
								.click(function()
								{
									yoou = $(this).children('.file').text();
									$("#image_holder")
										.fadeOut(500)
										.queue(function()
										{
											$(this)
												.html('');
											$(this)
												.append('<img>');
												
											$(this)
												.children('img')	
													.attr('src', yoou);
													
											$(this)
												.dequeue();
										})
										.fadeIn(500);
					
								});
						});
				}, 500);
			});

}

function workWithCollectionsde()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				$("#image_holder").html('<img src="" alt=""/>');
				$("#image_holder")
					.fadeOut(500);
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500);
				
				setTimeout(function() 
				{				
					$("#collecton_images")	
						.load('/kolekcjede/get_list/'+collection_id, function()
						{
							$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							})
							.children("li")
								.click(function()
								{
									yoou = $(this).children('.file').text();
									$("#image_holder")
										.fadeOut(500)
										.queue(function()
										{
											$(this)
												.html('');
											$(this)
												.append('<img>');
												
											$(this)
												.children('img')	
													.attr('src', yoou);
													
											$(this)
												.dequeue();
										})
										.fadeIn(500);
					
								});
						});
				}, 500);
			});

}

function workWithCollectionsfr()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				$("#image_holder").html('<img src="" alt=""/>');
				$("#image_holder")
					.fadeOut(500);
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500);
				
				setTimeout(function() 
				{				
					$("#collecton_images")	
						.load('/kolekcjefr/get_list/'+collection_id, function()
						{
							$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							})
							.children("li")
								.click(function()
								{
									yoou = $(this).children('.file').text();
									$("#image_holder")
										.fadeOut(500)
										.queue(function()
										{
											$(this)
												.html('');
											$(this)
												.append('<img>');
												
											$(this)
												.children('img')	
													.attr('src', yoou);
													
											$(this)
												.dequeue();
										})
										.fadeIn(500);
					
								});
						});
				}, 500);
			});

}

function workWithMediapl()
{
	
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/mediapl/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
					
				
	
		
	
}

function workWithMediaen()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/mediaen/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithMediade()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/mediade/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithMediafr()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/mediafr/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithPokazypl()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/pokazypl/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithPokazyen()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/pokazyen/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithPokazyde()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/pokazyde/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithPokazyfr()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/pokazyfr/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithSesjeZdjeciowepl()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/sesjezdjeciowepl/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithSesjeZdjecioween()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/sesjezdjecioween/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}

function workWithSesjeZdjeciowede()
{
	
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/sesjezdjeciowede/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
					
				
	
		
	

}

function workWithSesjeZdjeciowefr()
{
	
			
				
	
		
	$('#collections_carousel')
		.jcarousel({
			wrap : 'circular'
		})
		.children("li")
			.click(function()
			{
				$("#collect")
				.slideToggle(500);
				
					
				collection_id = $(this).children('.id').text();
				$("#collecton_images")
					.fadeOut(500, function(){
				
								
						$("#collecton_images")	
						.load('/sesjezdjeciowefr/get_list/'+collection_id, function()
						{		
					$("#collecton_images")
								.fadeIn(500);
								
							$('#collection_carousel').jcarousel({
								wrap : 'circular',
								scroll : 5
							});
							
							$(".pp_pic_holder, .pp_overlay, .ppt")
			.remove();
		$("a[rel^='pretty']")
				.prettyPhoto({ theme: 'dark_rounded' });
				
						});
						
			
										   });
				
				
			});
			
}
