                // What is $(document).ready ? See: http://flowplayer.org/tools/documentation/basics.html#document_ready
                $(function() {
                
                $(".slidetabs").tabs(".images > div", {
                
                    // enable "cross-fading" effect
                    effect: 'fade',
					fadeInSpeed: 'slow',
                    fadeOutSpeed: 'slow',
                    rotate: 'true',
                
                // use the slideshow plugin. It accepts its own configuration
                })
				
				.slideshow({
						 
				autoplay: 'true',
				interval: '6000',  
						   
						   });
				
				$("a.moreBox[title]").tooltip({ 
				 effect: 'slide',
				 offset: [115, 150],
				 
				 });
				
				$("a[rel]").overlay();
				
                });
				
				
				// if the function argument is given to overlay,
	// it is assumed to be the onBeforeLoad event listener
	$("a[rel]").overlay({

		mask: 'darkred',
		effect: 'apple',

		onBeforeLoad: function() {

			// grab wrapper element inside content
			var wrap = this.getOverlay().find(".contentWrap");

			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
		}

	});
	
	

