var COOKIE_NAME = 'betis_san_isidro';
var ADDITIONAL_COOKIE_NAME = 'betissanisidro';
var options = { path: '/', expires: 1 };


$(document).ready( function() {


	if ($('#socios_banner').length>0) {
			if (!$.cookie(COOKIE_NAME)) {
				$.cookie(COOKIE_NAME, 'test', options);
		        $('#socios_banner').modal({onOpen: function (dialog) {
		        dialog.overlay.fadeIn('slow', function () {
		                dialog.container.slideDown('slow', function () {
		                        dialog.data.fadeIn('slow');
		                	});
		        		});
				}});
			}
		}


	
	var veteransHeight = $('#veteranos_data').height();
	$('#veteranos_data').height(350);
	$('#label_results').click(function(){
		var texto = $(this).html();
		if (texto == 'Ver todos los resultados') {
			$(this).html('Esconder los resultados');
			$('#veteranos_data').animate({
			    height: veteransHeight
			  }, 1000, function() {
			    // Animation complete.
			  });
		} else {
			$(this).html('Ver todos los resultados');
			$('#veteranos_data').animate({
			    height: 350
			  }, 500, function() {
			    // Animation complete.
			  });
		}
	});

	$("#slider").easySlider({
		auto: false, 
		continuous: true,
		numeric: true
	});

	//move the image in pixel
	var move = -10;
	
	//zoom percentage, 1.2 =120%
	var zoom = 1.3;

	//On mouse over those thumbnail
	$('.zitem').hover(function() {
		
		//Set the width and height according to the zoom percentage
		width = $('.zitem').width() * zoom;
		height = $('.zitem').height() * zoom;
		
		//Move and zoom the image
		$(this).find('img').stop(false,true).animate({'width':width-20, 'height':height-20, 'top':move, 'left':move}, {duration:200});
		
		//Display the caption
		$(this).find('div.caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		$(this).find('img').stop(false,true).animate({'width':$('.zitem').width(), 'height':$('.zitem').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		$(this).find('div.caption').stop(false,true).fadeOut(200);
	});
	
	$('.zitem2').hover(function() {
		
		//Set the width and height according to the zoom percentage
		width = $('.zitem2').width() * zoom;
		height = $('.zitem2').height() * zoom;
		
		//Move and zoom the image
		$(this).find('img').stop(false,true).animate({'width':width-20, 'height':height-20, 'top':move, 'left':move}, {duration:200});
		
		//Display the caption
		$(this).find('div.caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		$(this).find('img').stop(false,true).animate({'width':$('.zitem').width(), 'height':$('.zitem').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		$(this).find('div.caption').stop(false,true).fadeOut(200);
	});
	
	
	
	var d = new Date();
	var y = d.getFullYear();
	var m = d.getMonth();

	$('#calendar').fullCalendar({
		draggable: false,
		events: [
			{
				id: 1,
				title: "Torneo Torrelodones",
				start: new Date(y, 8, 5, 17, 0),
				end: new Date(y, 8, 7)
			},
			{
				id: 2,
				title: "Betis vs Villaverde Boetticher",
				start: new Date(y, 8, 13 )
			},
			{
				id: 3,
				title: "Villaviciosa de Odón vs Betis",
				start: new Date(y, 8, 20)
			},
			{
				id: 4,
				title: "Betis vs Internacional de Madrid",
				start: new Date(y, 8, 27)
			},
			{
				id: 5,
				title: "Arroyomolinos vs Betis",
				start: new Date(y, 9, 4)
			},
			{
				id: 6,
				title: "Betis vs Loeches",
				start: new Date(y, 9, 11)
			},
			{
				id: 7,
				title: "Alcorcón B vs Betis",
				start: new Date(y, 9, 18)
			},
			{
				id: 8,
				title: "Betis vs Griñon",
				start: new Date(y, 9, 25)
			},
			{
				id: 9,
				title: "Colmenar de Oreja vs Betis",
				start: new Date(y, 10, 1)
			},
			{
				id: 10,
				title: "Betis vs Moscardó",
				start: new Date(y, 10, 8)
			},
			{
				id: 11,
				title: "Álamo vs Betis",
				start: new Date(y, 10, 15)
			},
			{
				id: 12,
				title: "Fortuna vs Betis",
				start: new Date(y, 10, 22)
			},
			{
				id: 13,
				title: "Betis vs Leganés B",
				start: new Date(y, 10, 29)
			},
			{
				id: 14,
				title: "Los Yebenes vs Betis",
				start: new Date(y, 11, 13)
			},
			{
				id: 15,
				title: "Betis vs Atl. Valdemoro",
				start: new Date(y, 11, 20)
			},
			{
				id: 16,
				title: "Real Aranjuez vs Betis",
				start: new Date(2010, 0, 10)
			},
			{
				id: 17,
				title: "Betis vs Parla Escuela",
				start: new Date(2010, 0, 17)
			},
			{
				id: 18,
				title: "Puerta Bonita vs Betis",
				start: new Date(2010, 0, 24)
			},
			{
				id: 19,
				title: "Villaverde vs Betis",
				start: new Date(2010, 0, 31)
			},
			{
				id: 20,
				title: "Betis vs Villaviciosa",
				start: new Date(2010, 1, 7)
			},
			{
				id: 21,
				title: "Internacional Madrid vs Betis",
				start: new Date(2010, 1, 14)
			},
			{
				id: 22,
				title: "Betis vs Arroyomolinos",
				start: new Date(2010, 1, 21)
			},
			{
				id: 23,
				title: "Loeches vs Betis",
				start: new Date(2010, 1, 28)
			},
			{
				id: 24,
				title: "Betis vs Alcorcón B",
				start: new Date(2010, 2, 7)
			},
			{
				id: 25,
				title: "Griñon vs Betis",
				start: new Date(2010, 2, 14)
			},
			{
				id: 26,
				title: "Betis vs Colmenar de Oreja",
				start: new Date(2010, 2, 21)
			},
			{
				id: 27,
				title: "Moscardó vs Betis",
				start: new Date(2010, 2, 28)
			},
			{
				id: 28,
				title: "Betis vs Álamo",
				start: new Date(2010, 3, 11)
			},
			{
				id: 29,
				title: "Betis vs Fortuna",
				start: new Date(2010, 3, 18)
			},
			{
				id: 30,
				title: "Leganés B vs Betis",
				start: new Date(2010, 3, 25)
			},
			{
				id: 31,
				title: "Betis vs Los Yebenes",
				start: new Date(2010, 4, 9)
			},
			{
				id: 32,
				title: "Atl. Valdemoro vs Betis",
				start: new Date(2010, 4, 16)
			},
			{
				id: 33,
				title: "Betis vs Real Aranjuez",
				start: new Date(2010, 4, 23)
			},
			{
				id: 34,
				title: "Parla Escuela vs Betis",
				start: new Date(2010, 4, 30)
			},
			{
				id: 35,
				title: "Betis vs Puerta Bonita",
				start: new Date(2010, 5, 6)
			}
			
		]
	});
	
	
	// MENU
	//transitions
	//for more transition, goto http://gsgd.co.uk/sandbox/jquery/easing/
	var style = 'easeOutExpo';
	var default_left = Math.round($('#menu li.selected').offset().left - $('#menu').offset().left);
	var default_top = $('#menu li.selected').height();

	//Set the default position and text for the tooltips
	$('#box').css({left: default_left, top: default_top});
	$('#box .head').html($('#menu li.selected').find('img').attr('alt'));				
	
	//if mouseover the menu item
	$('#menu li').hover(function () {
		
		left = Math.round($(this).offset().left - $('#menu').offset().left);

		//Set it to current item position and text
		$('#box .head').html($(this).find('img').attr('alt'));
		$('#box').stop(false, true).animate({left: left},{duration:500, easing: style});	

	
	//if user click on the menu
	}).click(function () {
		
		//reset the selected item
		$('#menu li').removeClass('selected');	
		
		//select the current item
		$(this).addClass('selected');

	});
	
	//If the mouse leave the menu, reset the floating bar to the selected item
	$('#menu').mouseleave(function () {

		default_left = Math.round($('#menu li.selected').offset().left - $('#menu').offset().left);

		//Set it back to default position and text
		$('#box .head').html($('#menu li.selected').find('img').attr('alt'));				
		$('#box').stop(false, true).animate({left: default_left},{duration:1500, easing: style});	
		
	});
	
	
});




f// unction albertoGonzalez(url) {
// 		$('#basic-modal-content').modal({onOpen: function (dialog) {
// 	        dialog.overlay.fadeIn('slow', function () {
// 	                dialog.container.slideDown('slow', function () {
// 	                        dialog.data.fadeIn('slow');
// 	                	});
// 	        		});
// 			}});
// 		
// 		$('#datosFotos img').attr('src',url);
// 		$('#nombre').html('Alberto González');
// 		$('#puesto').html('Portero');
// 		$('#fecha').html('24-06-1973');
// 		$('#lugar').html('Madrid');
// 		$('#equipo').html('Loeches');
// 		$('#peso').html('78 kg');
// 		$('#altura').html('1,80 m');
// 		
// 		$('#partidos').html('24');
// 		$('#minutos').html('2101');
// 		$('#goles').html('32');
// 		$('#amarillas').html('2');
// 		$('#rojas').html('0');
// }

function carrasquilla(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
    $('#datosFotos img').attr('src',url);
		$('#nombre').html('Juan C. Carrasquilla');
		$('#puesto').html('Portero');
		$('#fecha').html('09-05-1973');
		$('#lugar').html('Madrid');
		$('#equipo').html('Navalcarnero');
		$('#peso').html('85 kg');
		$('#altura').html('1,77 m');
		
		$('#partidos').html('4');
		$('#minutos').html('240');
		$('#goles').html('5');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


// function ibanez(url) {
//         $('#basic-modal-content').modal({onOpen: function (dialog) {
//         dialog.overlay.fadeIn('slow', function () {
//                 dialog.container.slideDown('slow', function () {
//                         dialog.data.fadeIn('slow');
//                 	});
//         		});
// 		}});
// 		
//     $('#datosFotos img').attr('src',url);
// 
// 		$('#nombre').html('Alejandro Ibañez');
// 		$('#puesto').html('Portero');
// 		$('#fecha').html('07-02-1988');
// 		$('#lugar').html('Madrid');
// 		$('#equipo').html('San Agustín');
// 		$('#peso').html('73 kg');
// 		$('#altura').html('1,78 m');
// 		
// 		$('#partidos').html('0');
// 		$('#minutos').html('0');
// 		$('#goles').html('0');
// 		$('#amarillas').html('0');
// 		$('#rojas').html('0');
// }

// function huss(url) {
//         $('#basic-modal-content').modal({onOpen: function (dialog) {
//         dialog.overlay.fadeIn('slow', function () {
//                 dialog.container.slideDown('slow', function () {
//                         dialog.data.fadeIn('slow');
//                 	});
//         		});
// 		}});
// 		
//     $('#datosFotos img').attr('src',url);
// 		$('#nombre').html('Benjamín Huss-Massardier');
// 		$('#puesto').html('Defensa');
// 		$('#fecha').html('20-08-1989');
// 		$('#lugar').html('Francia');
// 		$('#equipo').html('Colmenar Viejo');
// 		$('#peso').html('74 kg');
// 		$('#altura').html('1,84 m');
// 		
// 		$('#partidos').html('24');
// 		$('#minutos').html('2002');
// 		$('#goles').html('0');
// 		$('#amarillas').html('7');
// 		$('#rojas').html('1');
// }

function danielHerrera(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
    $('#datosFotos img').attr('src',url);
		$('#nombre').html('Daniel Herrera');
		$('#puesto').html('Defensa');
		$('#fecha').html('07-02-1985');
		$('#lugar').html('Madrid');
		$('#equipo').html('Brunete');
		$('#peso').html('69 kg');
		$('#altura').html('1,77 m');
		
		$('#partidos').html('25');
		$('#minutos').html('2190');
		$('#goles').html('0');
		$('#amarillas').html('5');
		$('#rojas').html('1');
}

function joaquin(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
    $('#datosFotos img').attr('src',url);
		$('#nombre').html('Joaquín Almuzara');
		$('#puesto').html('Defensa');
		$('#fecha').html('03-04-1981');
		$('#lugar').html('Madrid');
		$('#equipo').html('Betis San Isidro');
		$('#peso').html('70 kg');
		$('#altura').html('1,73 m');
		
		$('#partidos').html('13');
		$('#minutos').html('426');
		$('#goles').html('0');
		$('#amarillas').html('1');
		$('#rojas').html('1');
}

function albertoSanchez(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
    $('#datosFotos img').attr('src',url);
		$('#nombre').html('Alberto Sánchez');
		$('#puesto').html('Defensa');
		$('#fecha').html('24-10-1984');
		$('#lugar').html('Madrid');
		$('#equipo').html('Arroyomolinos');
		$('#peso').html('72 kg');
		$('#altura').html('1,83 m');
		
		$('#partidos').html('25');
		$('#minutos').html('2106');
		$('#goles').html('0');
		$('#amarillas').html('5');
		$('#rojas').html('0');
}


function camacho(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
    $('#datosFotos img').attr('src',url);
		$('#nombre').html('J.Carlos Camacho');
		$('#puesto').html('Defensa');
		$('#fecha').html('24-11-1980');
		$('#lugar').html('Madrid');
		$('#equipo').html('Villarejo');
		$('#peso').html('88 kg');
		$('#altura').html('1,87 m');
		
		$('#partidos').html('22');
		$('#minutos').html('1841');
		$('#goles').html('0');
		$('#amarillas').html('9');
		$('#rojas').html('3');
}


function samu(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);

		$('#nombre').html('Samuel Ruiz');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('13-05-1982');
		$('#lugar').html('Madrid');
		$('#equipo').html('Betis San Isidro');
		$('#peso').html('73 kg');
		$('#altura').html('1,77 m');
		
		$('#partidos').html('20');
		$('#minutos').html('1224');
		$('#goles').html('0');
		$('#amarillas').html('5');
		$('#rojas').html('2');
}


function mario(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);


		$('#nombre').html('Mario Sánchez');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('14-03-1986');
		$('#lugar').html('Madrid');
		$('#equipo').html('Orcasitas');
		$('#peso').html('75 kg');
		$('#altura').html('1,82 m');
		
		$('#partidos').html('15');
		$('#minutos').html('1261');
		$('#goles').html('5');
		$('#amarillas').html('2');
		$('#rojas').html('1');
}

function portu(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('Daniel López');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('28-04-1979');
		$('#lugar').html('Madrid');
		$('#equipo').html('Boadilla');
		$('#peso').html('75 kg');
		$('#altura').html('1,74 m');
		
		$('#partidos').html('3');
		$('#minutos').html('34');
		$('#goles').html('0');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


function ivan(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('Iván Hernández');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('26-02-1989');
		$('#lugar').html('Madrid');
		$('#equipo').html('Betis San Isidro');
		$('#peso').html('69 kg');
		$('#altura').html('1,73 m');
		
		$('#partidos').html('10');
		$('#minutos').html('265');
		$('#goles').html('0');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


function salazar(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('Antonio Salazar');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('14-09-1987');
		$('#lugar').html('Madrid');
		$('#equipo').html('Griñon');
		$('#peso').html('66 kg');
		$('#altura').html('1,78 m');
		
		$('#partidos').html('24');
		$('#minutos').html('2054');
		$('#goles').html('0');
		$('#amarillas').html('8');
		$('#rojas').html('1');
}


// function hector(url) {
//         $('#basic-modal-content').modal({onOpen: function (dialog) {
//         dialog.overlay.fadeIn('slow', function () {
//                 dialog.container.slideDown('slow', function () {
//                         dialog.data.fadeIn('slow');
//                 	});
//         		});
// 		}});
// 		
//         $('#datosFotos img').attr('src',url);
//                         
// 
// 
// 		$('#nombre').html('Hector Pérez');
// 		$('#puesto').html('Mediocentro');
// 		$('#fecha').html('07-10-1977');
// 		$('#lugar').html('Madrid');
// 		$('#equipo').html('Betis San Isidro');
// 		$('#peso').html('83 kg');
// 		$('#altura').html('1,76 m');
// 		
// 		$('#partidos').html('10');
// 		$('#minutos').html('217');
// 		$('#goles').html('0');
// 		$('#amarillas').html('0');
// 		$('#rojas').html('0');
// }

function pedro(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('J.Pedro Valiente');
		$('#puesto').html('Mediocentro');
		$('#fecha').html('05-10-1986');
		$('#lugar').html('Madrid');
		$('#equipo').html('Fortuna');
		$('#peso').html('67 kg');
		$('#altura').html('1,76 m');
		
		$('#partidos').html('25');
		$('#minutos').html('1779');
		$('#goles').html('2');
		$('#amarillas').html('9');
		$('#rojas').html('1');
}


function jandro(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
        $('#nombre').html('Alejandro López');
		$('#puesto').html('Delantero');
		$('#fecha').html('13-05-1982');
		$('#lugar').html('Madrid');
		$('#equipo').html('Puerta Bonita');
		$('#peso').html('64 kg');
		$('#altura').html('1,65 m');		
		$('#partidos').html('25');
		$('#minutos').html('1970');
		$('#goles').html('7');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


function samuel(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
		$('#nombre').html('Samuel Fernández');
		$('#puesto').html('Delantero');
		$('#fecha').html('18-09-1985');
		$('#lugar').html('Madrid');
		$('#equipo').html('Griñon');
		$('#peso').html('75 kg');
		$('#altura').html('1,78 m');		
		$('#partidos').html('12');
		$('#minutos').html('781');
		$('#goles').html('1');
		$('#amarillas').html('1');
		$('#rojas').html('0');
}


function santiago(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
		$('#nombre').html('Santiago Sánchez');
		$('#puesto').html('Delantero');
		$('#fecha').html('11-03-1972');
		$('#lugar').html('Madrid');
		$('#equipo').html('Puerta Bonita');
		$('#peso').html('73 kg');
		$('#altura').html('1,70 m');		
		$('#partidos').html('8');
		$('#minutos').html('338');
		$('#goles').html('2');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


function bermejo(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
		$('#nombre').html('David Bermejo');
		$('#puesto').html('Delantero');
		$('#fecha').html('22-11-1981');
		$('#lugar').html('Madrid');
		$('#equipo').html('Betis San Isidro');
		$('#peso').html('75 kg');
		$('#altura').html('1,83 m');		
		$('#partidos').html('13');
		$('#minutos').html('488');
		$('#goles').html('0');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}


function rober(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('Roberto Rodríguez');
		$('#puesto').html('Mediocampista');
		$('#fecha').html('17-02-1977');
		$('#lugar').html('Madrid');
		$('#equipo').html('Boadilla');
		$('#peso').html('74 kg');
		$('#altura').html('1,75 m');		
		$('#partidos').html('4');
		$('#minutos').html('51');
		$('#goles').html('0');
		$('#amarillas').html('0');
		$('#rojas').html('0');
}

function sojo(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
                        


		$('#nombre').html('Carlos Sojo');
		$('#puesto').html('Delantero');
		$('#fecha').html('11-12-1987');
		$('#lugar').html('Madrid');
		$('#equipo').html('Carabanchel');
		$('#peso').html('71 kg');
		$('#altura').html('1,79 m');		
		$('#partidos').html('23');
		$('#minutos').html('1394');
		$('#goles').html('4');
		$('#amarillas').html('4');
		$('#rojas').html('1');
}


function moro(url) {
        $('#basic-modal-content').modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
                dialog.container.slideDown('slow', function () {
                        dialog.data.fadeIn('slow');
                	});
        		});
		}});
		
        $('#datosFotos img').attr('src',url);
		$('#nombre').html('Jorge Moro');
		$('#puesto').html('Delantero');
		$('#fecha').html('1987');
		$('#lugar').html('Madrid');
		$('#equipo').html('Orcasitas');
		$('#peso').html('- kg');
		$('#altura').html('- m');		
		$('#partidos').html('21');
		$('#minutos').html('1698');
		$('#goles').html('3');
		$('#amarillas').html('3');
		$('#rojas').html('0');
}

$(function() {
    $("div.block h2 a").truncate(73);
});


