$(function(){

//slideshow for hompage
$('#homepage-slideshow').cycle({
fx:     'fade',
speed: 500,
pager: '#home-pager',
delay:  5000,     // additional delay (in ms) for first transition (hint: can be negative)
timeout: 6000,  // milliseconds between slide transitions (0 to disable auto advance) 
pauseOnPagerHover: 1,   // true to pause when hovering over pager link
pause: 1  // true to enable "pause on hover" 
});

//init SCROLL PANE	
$(".scrollpane").jScrollPane();

//slideshow for hompage
/*
$('#gtl-slide-wrapper').cycle({
fx:     'fade', 
speed: 1000 
});
*/
	
		

//Init tooltip
$("a.tooltip").tooltip({
track:true,
showURL:false
});
	
//hover fade images	on gallery index
$("#content-ee-site-gallery img").hover(
		function(){
			$(this).animate({'opacity':'0.7'});
		},
		function() {$(this).animate({'opacity':'1.0'});
		});
		
//hover fade images	on gallery thumbs
$('.portfolio-thumb img').hover(
		function(){
			$(this).find('.portfolio-thumb-inner').animate({'opacity':'0.7'}).fadeIn(400);
		},
		function() {$(this).find('.portfolio-thumb-inner').fadeOut(400).animate({'opacity':'1.0'});
		});
		
		

//FancyBox init	
$("a[rel=example_group]").fancybox({
'transitionIn'		: 'none',
'transitionOut'		: 'none',
'titlePosition' 	: 'over',
'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
}
});





}); //end doc ready

