 $(document).ready(function() {
	
		
	$('#slideshowHolder .gallery img').unwrap().unwrap().unwrap();
	$('#slideshowHolder .gallery br').remove();
 jQuery('#slideshowHolder .gallery').jqFancyTransitions({ 					
							effect: 'zipper', // wave, zipper, curtain
							width: 703, 
							height: 443,
							strips: 10,
							delay: 3500,
							stripDelay: 50, // delay beetwen strips in ms
							titleOpacity: 0, // opacity of title
							titleSpeed: 0, // speed of title appereance in ms
							position: 'curtain', // top, bottom, alternate, curtain
							direction: 'left',
							navigation: false, // prev and next navigation buttons
							links: false // show images as links
						});  

	
	$('a[href$=".jpg"],a[href$=".png"],a[href$=".gif"]').attr('rel','lightbox[web]').prettyPhoto();

	$( "#dialog" ).dialog({
	        modal: true,
			resizable: false,
			position:'center',
			width: 520,
			draggable: false
		});
		function hide_popup(){
      $(".ui-icon.ui-icon-closethick").click();
		};
		window.setTimeout( hide_popup, 5000 );
	
});

