$(document).ready(function() {

	if(jQuery().fancybox) {$(".fancybox").fancybox();}
	if(jQuery().colorbox) {$(".colorbox").colorbox();}
	if(jQuery().codaSlider) {$("#coda-slider-1").codaSlider();}
	if(jQuery().adGallery) {$(".ad-gallery").adGallery({ width: 500});}
	if(jQuery().coinslider) {$('#coin-slider').coinslider({width: 500, height: 309, delay: 75000});}
	if(jQuery().nivoSlider) {$('#slider').nivoSlider({
		navigation: false, 
		controlNav:false,
		pauseTime:5000,
		directionNavHide:false,
		directionNav:false
	});}
	
	//ACCORDIONS
	if(jQuery().initMenu) {$('.menu').initMenu();}
	if(jQuery().easyAccordion) {$('#accordion-1').easyAccordion({autoStart: false,slideInterval: 3000,slideNum: true});}

	if(jQuery().jqzoom) {$(".jqzoom").jqzoom({});}
	if(jQuery().tipTip) {$(".conTooltip").tipTip({});}
	
	$('#guarda_notas_seccion').live('submit', function(eve){
    eve.preventDefault();
    
		$.post(base_url + 'secciones/ctn_inicio/guarda_notas_seccion' , $(this).serialize() , function(html){
				
				//MENSAJE OK
		 		$('#mensajes').text('Datos Guardados');
		 		$('#mensajes').slideDown(400).delay(1100).slideUp(500);		

		});
    });
    
	if(jQuery().captify) {$('img.captify').captify({
	
/*
			speedOver: 'fast',				// speed of the mouseover effect
			speedOut: 'normal',				// speed of the mouseout effect
			hideDelay: 500,					// how long to delay the hiding of the caption after mouseout (ms)
			animation: 'slide',				// 'fade', 'slide', 'always-on'
			prefix: '',						// text/html to be placed at the beginning of every caption
			opacity: '1',				// opacity of the caption on mouse over
			className: 'caption-bottom',	// the name of the CSS class to apply to the caption box         
			position: 'bottom',				// position of the caption (top or bottom)         
			spanWidth: '100%'				// caption span % of the image
*/
			
		});  
	}  
	
	
	
	
	
	
	
	
    
});	

