function showVideo(source, title, type){
	var divObject = document.getElementById("media");
	if(type == "flv"){
		var source2=eval(source);
		var innerHTMLCode = "<embed width=\"400\" height=\"300\" ";
		innerHTMLCode+= "flashvars=\"width=400&amp;height=300&amp;file="+source2+"&amp;displayheight=300&amp;autostart=true\" ";
		innerHTMLCode+= "wmode=\"transparent\" allowfullscreen=\"true\" allowscriptaccess=\"always\" quality=\"high\" bgcolor=\"#FFFFFF\" name=\"mymovie\" id=\"mymovie\" src=\"/swf/flvplayer.swf\" ";
		innerHTMLCode+= "type=\"application/x-shockwave-flash\"/>";
	}else if(type == "youTube"){
		var source2=eval(source);
		var innerHTMLCode = "<object width=\"400\" height=\"300\">";
		innerHTMLCode+= "<param name=\"movie\" value=\""+source2+"\"></param>";
		innerHTMLCode+= "<param name=\"wmode\" value=\"transparent\"></param>";
		innerHTMLCode+= "<embed src=\"http://www.youtube.com/v/"+source2+"&hl=es&rel=0\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"400\" height=\"300\" ></embed>";
		innerHTMLCode+= "</object>";
	}else if(type == "embed"){
		var innerHTMLCode = eval(source);
	}else{
		var innerHTMLCode = "<img src=\""+source+"\" alt=\""+title+"\" title=\""+title+"\" width=\"400\" />";
	}
	divObject.innerHTML = innerHTMLCode;
}

function condicionesLegales_es(){
	window.open("/es/condicionesLegales.html","_blank", "height=400,width=1000,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
}
function condicionesLegales_en(){
	window.open("/en/condicionesLegales.html","_blank", "height=400,width=1000,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
}
function condicionesLegales_ca(){
	window.open("/ca/condicionesLegales.html","_blank", "height=400,width=1000,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
}

function onLoadCallback() {
	sIFR.replace(BlockheadBlackFace, {
 		selector: 'h2.groove',
	  css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent',
		thickness: -50,
		selectable: false,	
		fitExactly: true,
		offsetTop: -2,
		tuneHeight: -8,
		ratios: [7, 1.74, 11, 1.68, 13, 1.62, 17, 1.6, 24, 1.58, 28, 1.56, 30, 1.57, 36, 1.56, 44, 1.55, 74, 1.54, 82, 1.53, 84, 1.54, 1.53]
	});

	sIFR.replace(BlockheadBlackFace, {
	  selector: 'p.groove',
	  css: '.sIFR-root { color: #FFFFFF; }',
		wmode: 'transparent',
		thickness: -50,
		selectable: false,	
		fitExactly: true,
		offsetTop: -2,
		tuneHeight: -8,
		ratios: [7, 1.74, 11, 1.68, 13, 1.62, 17, 1.6, 24, 1.58, 28, 1.56, 30, 1.57, 36, 1.56, 44, 1.55, 74, 1.54, 82, 1.53, 84, 1.54, 1.53]
	});

	sIFR.replace(BlockheadBlackFace, {
	  selector: '#tagLineCopy',
	  css: '.sIFR-root { color: #000000; }',
		wmode: 'transparent',
		thickness: 0,
		selectable: false,	
		fitExactly: true,
		offsetTop: -2,
		tuneHeight: -8,
		ratios: [7, 1.74, 11, 1.68, 13, 1.62, 17, 1.6, 24, 1.58, 28, 1.56, 30, 1.57, 36, 1.56, 44, 1.55, 74, 1.54, 82, 1.53, 84, 1.54, 1.53]
	});
}
