$(function() {
	//overlay widget
	$("button[rel]").overlay({mask: '#000', effect: 'apple'});

	//accordion widget
	//$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});

	//tabs widget
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$("ul.tabs").tabs("div.panes > div", {effect:'fade', fadeOutSpeed:1200, fadeInSpeed:1200 });

	//slideshow widget
	$(".slidetabs").tabs(".slides > div", {
		// enable "cross-fading" effect
		effect: 'fade',
		fadeOutSpeed: "slow",
		// start from the beginning after the last tab
		rotate: true
		// advance to the next tab by clicking on the visible pane
		// clickable: true
	// use the slideshow plugin. It accepts its own configuration
	}).slideshow();

	// Unfortunately one problem remains with Internet Explorer. In most cases, there is a short but visible delay before the text is replaced. You can avoid this issue by inserting the following snippet right before the closing </body> tag (or before any external scripts such as Google Analytics)
	Cufon.now();

});
//initializes the Page fadeIn effect - it uses jQuery
//if (!$.browser.msie) {
//	$('body').hide();
//}

	
//FLASH EMBED
//triggers on window resize the "adjustDiv" function at !_initialize.head.js
window.onload = adjustDiv;
window.onresize = adjustDiv;
