/*----------------------------------- CopyRight ------------------------*/
/*                                                                      */
/*  JavaScript Document para Soluteca.com                               */
/*  Pixelmio - www.pixelmio.net - pixelmio@pixelmio.com                 */
/*  Version 1.0-001 - 22/03/2011                                        */
/*                                                                      */
/*----------------------------------- /CopyRight -----------------------*/

// 
$(document).ready(function(){
	//Hace que las cajitas de la home sean clickeables
	$("div.cajaRoja,div.cajaVerde").css('cursor','pointer').click(function(){
		window.location=$(this).find("a").attr("href");
		return false;
	});

	//gestion del rel external
	$('a[rel=external]').attr('target', 'blank');
	
	//create a bubble popup for each DOM element with class attribute as "text", "button" or "link" and LI, P, IMG elements.
	//var texto = $('li.toooltip a img').attr("alt");
			
	$('li.toooltipTwitter').CreateBubblePopup({
		position : 'top',
		align	 : 'center',
		innerHtml: 'Sigue a <strong>Soluteca</strong> en Twitter',
		
		innerHtmlStyle: {
			color:'#005580',
		 	'text-align':'center'
		 },
		themeName: 	'green',
		themePath: 	'images/jquerybubblepopup-theme'
		});

	$('li.toooltipFace').CreateBubblePopup({
		position : 'top',
		align	 : 'center',
		innerHtml: 'Hazte fan de <strong>Soluteca</strong> en Facebook',
		
		innerHtmlStyle: {
			color:'#005580',
		 	'text-align':'center'
		 },
		themeName: 	'green',
		themePath: 	'images/jquerybubblepopup-theme'
		});


});
