
		jQuery(document).ready(function() {
			
			// Replace the href of vimeo videos (<img> that works with prettyPhoto and pops up a Vimeo video)
			// Source href (works with js desabled):
			// http://vimeo.com/moogaloop.swf?clip_id=13251696&amp;flashvars=server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1&autoplay=1&width=640&height=480
			// prettyPhoto-compliant href:
			// http://vimeo.com/moogaloop.swf?width=580&amp;height=326&flashvars=clip_id=4321799&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
			
			var href = $('.vimeo-video').attr('href');
			if (href != null) {
				var base = href.substring(0, href.indexOf('?') + 1);
				href = href.substring(href.indexOf('?') + 1);
				var tmp = href.split('&');
				var flashvars = [];
				
				for (var str in tmp) {
					var tmp2 = tmp[str].split('=');
					var prop= tmp2[0];
					var val = tmp2[1];
					switch (prop) {
						case 'width':
						case 'height':
							base += prop + '=' + val + '&';
						default:
							flashvars.push(prop + '=' + val);
					}
				}
				var newhref = base + 'flashvars=' + flashvars.join('&amp;');
				$('.vimeo-video').attr('href', newhref);
			}
			
			
			
			// Lightbox, image slideshow & video
			var images = $("a[rel^='prettyPhoto']");
			
			// An den valoume to if etrexe to script xoris na iparxoun eikones
			
			if (images.length > 0 ) {
				images.prettyPhoto({
					theme: 'dark_rounded',
					showTitle: false
				});
			}
			
			
			// FAQ
			
			$('ul#faqList').simpleFAQ({
			  showOnlyOne: true
			});
			
			
			// Carousel
			
			$('ul#mycarousel').jcarousel();
			
			
			
			
		});	// close document ready function
