function mycarousel_initCallback(carousel) {
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

// jCarousel init...
jQuery(document).ready(function() {
	if (jQuery('#mycarousel').length > 0) {
		jQuery('#mycarousel').jcarousel({
			auto: 5,
			wrap: 'last',
			scroll: 1,
			visible: 1,
			animation: "slow",
			initCallback: mycarousel_initCallback
		});
	}

	if (jQuery('#flashintro-en').length > 0) {
		jQuery('#flashintro-en').flash({
			swf: 'swf/loader.swf',
			//swf: 'swf/old/cabecera_v06.swf',
			wmode: 'transparent',
			width: '100%',
			height: '100%',
			id: 'coolflashmovie',
			flashvars: 'settings=banners-en.xml'
		});
	}
	if (jQuery('#flashintro-es').length > 0) {
		jQuery('#flashintro-es').flash({
			swf: 'swf/loader.swf',
			//swf: 'swf/old/cabecera_v06.swf',
			wmode: 'transparent',
			width: '100%',
			height: '100%',
			id: 'coolflashmovie',
			flashvars: 'settings=banners-es.xml'
		});
	}
	
	if (jQuery('.picgallery .pic a').length > 0) {
		//jQuery('.picgallery .pic a').colorbox();
		jQuery('.picgallery .pic a').attr('rel', 'autogallery');
		jQuery("a[rel='autogallery']").colorbox();
	}
	
	if (jQuery('.colorboxtrailer').length > 0) {
		jQuery('.colorboxtrailer').colorbox({
			iframe: true,
			width: 697,
			height: 597
		});
	}
});
