		$(document).ready(function(){

			// ColorBox
			// Parametros configuracion colorbox				
			/*$.fn.colorbox.settings.transition = "elastic";
			$.fn.colorbox.settings.speed = 350;
			$.fn.colorbox.settings.maxWidth = "false";
			$.fn.colorbox.settings.maxHeight = "false";
			//$.fn.colorbox.settings.resize = true;
			$.fn.colorbox.settings.opacity = 0.8;
			//$.fn.colorbox.settings.preloading = true;
			$.fn.colorbox.settings.current = "  {current} de {total}";
			$.fn.colorbox.settings.previous = "previus";
			$.fn.colorbox.settings.next = "next";
			$.fn.colorbox.settings.close = "cerrar";
			$.fn.colorbox.settings.overlayClose = true;
			$.fn.colorbox.settings.slideshow = true;
			$.fn.colorbox.settings.slideshowAuto = true;
			$.fn.colorbox.settings.slideshowSpeed = 4000;
			$.fn.colorbox.settings.slideshowStart =  "start";
			$.fn.colorbox.settings.slideshowStop = "stop";

			$.fn.colorbox.settings.slideshow = true;
			$.fn.colorbox.settings.slideshowAuto = true;
			$("a[rel*=lightbox]").colorbox();
			  	
			
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='example1']").colorbox();
			$("a[rel='example2']").colorbox({transition:"fade"});
			$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
			$("a[rel='example4']").colorbox({slideshow:true});
			$(".single").colorbox({}, function(){
				alert('Howdy, this is an example callback.');
			});
			$(".colorbox").colorbox();
			$(".youtube").colorbox({iframe:true, width:650, height:550});
			$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
			$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
			*/
			
			//Qtip
			// LLamadas necesarias qtip
			// By suppling no /content/jquery/colorbox attribute, the library uses each elements title attribute by default
			$('#privacidad a[href][title]').qtip({
			  //title: 'Texto title',
			  content: {
				 text: false // Use each elements title attribute
			  },
			  //style: 'cream' // Give it some style
			  style: { 
					  width: 350,
					  padding: 10,
					  background: '#FFFFFF',
					  color: '#666',					  
					  textAlign: 'left',
					  border: {
						 width: 0,
						 radius: 1,
						 color: '#999'
					  },
					  tip: 'leftMiddle',
					  name: 'dark' // Inherit the rest of the attributes from the preset dark style
				},
				position: {
					corner: {
						target: 'topMiddle',
						tooltip: 'leftMiddle'
					}
				}
			});

			//filtros y busquedas boton de cierre	
		   $('#filtros a').each(function()
		   {
			  $(this).qtip(
			  {
				 content: '<img src="/images/ba.gif" alt="Eliminar" title="Eliminar">', // Give it some content
				 position: 'topRight', // Set its position
				 hide: {
					fixed: true // Make it fixed so it can be hovered over
				 },
				 style: {
					border: { color: '#fff' },
					padding: '0'
				 }
			  });
		   });
				
				
				
		});

