$(document).ready(function () { 
	$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
	$(".scrollable").scrollable({circular: true});
	$(".next").mouseover(function(){$(this).trigger('click');return false;});
	$(".prev").mouseover(function(){$(this).trigger('click');return false;});
	$("#delay_message").overlay({

		mask: {
		color: '#fff',
		loadSpeed: 50,
		opacity: 0.8
	},
		effect: 'apple',
		load:false
	});
	setTimeout("$('#delay_message').overlay('data').load()",40000);
	$("a[rel]").overlay({

		mask: {

		// you might also consider a "transparent" color for the mask
		color: '#fff',

		// load mask a little faster
		loadSpeed: 50,

		// very transparent
		opacity: 0.8
	},
		

		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"));
		}

	});
/* Overlay Change location*/
	
	
});

