$(document).ready(function(){
			$.dpSocialBar({
				items: {
					facebook: { url: 'http://facebook.com/', text: 'Perfil en Facebook' },
					linkedin: { url: 'http://www.linkedin.com', text: 'Perfil en Linkedin' },
					skype: { url: 'http://www.skype.com', text: 'Aņadir a Skype' },
					google: { url: 'http://www.google.com', text: 'Perfil en Google+' },
					contact: { url: '/index/contacto', text: 'Contactar' },
					youtube: { url: 'http://www.youtube.com', text: 'Ver videos de nuestro canal de Youtube' },
					picasa: { url: 'http://www.picasa.com', text: 'Album en Picasa' },
				},
				show: 2,
				move:2,
				position: "left",
				skin: "clear"
			});
			
		});




function afterVideo(){
	if(window.ixedit){ixedit.deployed = true; };
	if(window.jQuery){jQuery(function(){
		(function(){
			var target = jQuery('div#flashContent');
			target.remove();
			var target = jQuery('div.media-container');
			
			target.animate({ 
			    height: 200
			  }, 700,"swing");
			target.queue(function () {
				//target.delay(1000);
				target.css('background-color','#000000');
				target.html('<img src="/images/backtop14.png" alt="" id="frontimage" border="0">');
				target.hide();
				target.fadeIn("slow");
				var targetx = jQuery('div#prueba');
				targetx.animate({ 
				    height: 1
				  }, 700,"swing");
				
				$(this).dequeue();


				    
				  });

			  
			
		
			;
		})();
	});

	};
	
}



$(function() {
	$( "#dialog" ).dialog({
		width: 400,
		height: 470,
		autoOpen: false,
		modal: true,
		resizable:false
	});

});




$(document).ready(function(){
	
	// first example
	$("#browser").treeview();
	
	// second example
	$("#navigation1").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	$("#navigation2").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	$("#navigation3").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	$("#navigation4").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	$("#navigation8").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	// third example
	$("#red").treeview({
		animated: "fast",
		collapsed: true,
		unique: true,
		persist: "cookie",
		toggle: function() {
			window.console && console.log("%o was toggled", this);
		}
	});
	
	// fourth example
	$("#black, #gray").treeview({
		control: "#treecontrol",
		persist: "cookie",
		cookieId: "treeview-black"
	});

});

jQuery(function($){
 	$('.closingContent').hide();

 	$('.toggle').click(function(){
	
 		 $('.closingContent').toggleClass('hide').parent().parent().find('.closingContent').slideToggle(300);
        return false; 
    });

 	$('.closingContent2').hide();

 	$('.toggle2').click(function(){
	
 		 $('.closingContent2').toggleClass('hide').parent().parent().find('.closingContent2').slideToggle(300);
        return false; 
    });
 	
 });


