//CUSTOM SCRIPTS FOR THE HEAD

// Run javascript after DOM is initialized
$(document).ready(function(){
	//Page FadeIn function - it uses jQuery
	//if (!$.browser.msie) {
		//$('body').css({ display: 'none'}).fadeIn(1200);
	//}
	
	// Gallery, Lightbox
	$('#lightbox_gallery a').lightBox();
	$("ul.tabs").tabs("div.panes > div");
	$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
	//$('.tblink .portlet-title-text').blink({speed:1000,blinks:100});

});

// Gallery, Lightbox - Configuration related to images
var lightboxImageLoading ='/imc-theme/new/images/icon_processing_large.gif';		// (string) Path and the name of the loading icon
var lightboxImageBtnPrev ='/imc-theme/new/modules_gallery_lightbox/images/lightbox-btn-prev.png';			// (string) Path and the name of the prev button image
var lightboxImageBtnNext ='/imc-theme/new/modules_gallery_lightbox/images/lightbox-btn-next.png';			// (string) Path and the name of the next button image
var lightboxImageBtnClose ='/imc-theme/new/images/icon_cancel.png';		// (string) Path and the name of the close btn
var lightboxImageBlank ='/imc-theme/new/modules_gallery_lightbox/images/lightbox-blank.gif';			// (string) Path and the name of a blank image (one pixel)


function initializeUI(){
	//if (!$.browser.msie) {
	//	$('body').hide();
	//}

	//Flowplayer.Tools.Tabs_Slideshow
	$(".slidetabs").tabs(".slides > div", {
		// enable "cross-fading" effect
		effect: 'fade',
		fadeOutSpeed: 'slow',
		// start from the beginning after the last tab
		rotate: true,
		history: true,
		// advance to the next tab by clicking on the visible pane
		clickable: false
	// use the slideshow plugin. It accepts its own configuration
	}).slideshow();

	//Flowplayer.Tools.Scrollable
	$(".scrollable").scrollable();

	resetUIElements();
}

function resetUIElements(){
}
