$(document).ready(function(){
			
	// Social Tabs
	
	$(".tab_content").hide();
	$("ul.tabs li:first").addClass("active").show();
	$(".tab_content:first").show();

	$("ul.tabs li").click(function()
       {
		$("ul.tabs li").removeClass("active");
		$(this).addClass("active");
		$(".tab_content").hide();

		var activeTab = $(this).find("a").attr("href");
		$(activeTab).fadeIn();
		return false;
	});
	
	// Fancybox para Imágenes
	
	$('a[href$=".jpg"], a[href$=".jpeg"], a[rel^="attachment"]').fancybox({
	
		'transitionIn'          : 'elastic',
		
		'transitionOut'         : 'elastic',
		
		'overlayColor'          : '#000',
		
		'overlayOpacity'        : '0.5',
		
		'overlayShow'           : 'true',
		
		'titlePosition'     : 'outside',
		
		'titleForma'        : function(title, currentArray, currentIndex,  currentOpts) {
		
			return '<span id="fancybox-title-over">Imagen ' + (currentIndex  + 1) + ' / ' + currentArray.length + (title.length ? ' &amp;amp;amp;nbsp; '  + title : '') + '</span>';
	
		}
	
	});
		
});
<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu-principal");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

//--><!]]>
