$(function () {

	$('#slides').cycle({ 
	    fx:    'fade', 
	    speed:  2500 
	 });

	$('#boot-slides').cycle({ 
	    fx:    'fade',
	    pager:	'#slide-control', 
	    timeout:	0,
	    speed:  1000, 
		pagerAnchorBuilder: function(idx, slide) {
			return '#slide-control li:eq(' + idx + ') a'; 
    	}
	 });


	var imgWrapper = $('#tech-image > img');
	// only show the first image, hide the rest
	imgWrapper.hide().filter(':first').show();
	
	$('.inner li a').hover(function () {
	
		// check if this item doesn't have class "current"
		// if it has class "current", don't execute again
		if (this.className.indexOf('current') == -1){
			imgWrapper.fadeOut(1000);
			imgWrapper.filter(this.hash).fadeIn(500);
			$('.inner li a').removeClass('current');
			$(this).addClass('current');
		}
		return false;
	});

$("#boot-slides").yoxview( { backgroundColor: '#282424', playDelay: 5000, cacheImagesInBackground: false, infoBackColor: '#383434', backgroundOpacity: 0.9, lang: 'en' } );
$("#boot-slides.fr").yoxview( { backgroundColor: '#282424', playDelay: 5000, cacheImagesInBackground: false, infoBackColor: '#383434', backgroundOpacity: 0.9, lang: 'fr' } );

})