$(function(){
	
	//setTimeout('$("#anuncio").slideDown()',1000);
	Shadowbox.init({

		modal: true
	});	
	
	$("img[alt]:not(.notip img)").each(function(){
		
		
		var foo,foo2;
		foo = $(this).attr("alt").split(";")
		if(foo.length>1)
		
			for(var i in foo){
				foo2 = foo[i].split(":");
				$(this).attr(foo2[0],foo2[1]);
				
			}
		else
			$(this).attr("title",$(this).attr("alt"));
		//$(this).hide();
	});
	
	
	
	$("a[title],img[alt]:not(.notip)")

		.qtip({
			content:{
				title: function(api){
					var foo = $(this).attr("rel");
					
					return foo?foo:"Desarrollo <strong><em>TIC</em></strong>";
				}
			},
			position:{
				target: "mouse",
				my: "left bottom",
				at: "right top"
			},
			show:{
				delay: 500
			},
			hide: {
				delay: 0
			}
			
			
			
		})

		;
	
});
