function requestSHADOW(){
	
	Shadowbox.close();
	$('#enlace_auxiliar').click();
}

$(document).ready(function(){
						   
	Shadowbox.init();
	$("a[rel=external]").click(function(){popup($(this).attr('href'));return false;});

});

function popup(url){ //(url, ancho, alto)
    //if (ancho > screen.width) { ancho = screen.width;} // El ancho de la ventana no ha de ser mayor que el ancho de la pantalla
    //if (alto > screen.height) { alto = screen.height;}// El alto de la ventana no ha de ser mayor que el alto de la pantalla
    //var x = (screen.width - ancho) / 2; // Centramos la ventana en ancho
    //var y = ((screen.height - alto) / 2) - 30; // Centramos la ventana en alto
    //window.open(url, "Popup", "width=800,height=" + alto + ",left=" + x + ",top=" + y + ",resizable=yes,scrollbars=yes");
	window.open(url, "Capriccio");
}


/*****************************************************************************
The sIFR configuration should typically go in `sifr-config.js`, but in order to
keep the config file clean, and to give a quick overview, it's done here instead.
*****************************************************************************/

var Arial_Rounded = {
	src: '/swf/fuentes/Arial_Rounded_MTBold.swf'
};

var Helvetica_Bold = {
	src: '/swf/fuentes/helvetica_rounded_bold.swf'
};

var americana = {
	src: '/swf/fuentes/americana.swf'
};


sIFR.activate(Arial_Rounded);

sIFR.replace(Arial_Rounded, {
	selector: '.oficinas_centrales'
	,css: {'.sIFR-root': { 'color': '#fe1933', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});


sIFR.activate(Helvetica_Bold);

sIFR.replace(Helvetica_Bold, {
	selector: '.importe'
	,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '24px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});

sIFR.activate(americana);

sIFR.replace(americana, {
	selector: '.tit_principal_marron'
	,css: {'.sIFR-root': { 'color': '#9a5621', 'font-size' : '17px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});

sIFR.replace(americana, {
	selector: '.tit_principal_gris'
	,css: {'.sIFR-root': { 'color': '#3d3d3d', 'font-size' : '17px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});

sIFR.replace(americana, {
	selector: '.tit_reserva_marron'
	,css: {'.sIFR-root': { 'color': '#cc8147', 'font-size' : '14px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});

sIFR.replace(americana, {
	selector: '.tit_reserva_blanco'
	,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '14px','background-color' : 'transparent','letter-spacing': 0 } }
	,wmode : 'transparent'
	,offsetTop : 0
	,tuneWidth : 0
	,forceSingleLine : true
});
