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

function showRequest(){
	alert("HOLA");
	//$('#enlace_auxiliar').attr("href", "/contacto-request.php");

	//$('#enlace_auxiliar').click();
}

$(document).ready(function(){
						   
	$(function() {
		$('.media').media({ 
			autoplay:  true,
			width: 446,
			height: 246,
			flashvars: { autostart: 'true' } , 
			params:    { wmode: 'transparent', quality: 'high' }, // object params/embed attrs 
			caption:   false // supress caption text 
		}); 
	});
						  

	
	
	Shadowbox.init();
});

/*****************************************************************************
    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 futura_heavy = {
		src: '/swf/fuentes/futura_heavy.swf'
    };
	
	var futura_bold = {
		src: '/swf/fuentes/futura_bold.swf'
    };
	
	var futura_light_condensed = {
		src: '/swf/fuentes/futura_light_condensed.swf'
    };
	
  
	sIFR.activate(futura_heavy);
	
	sIFR.replace(futura_heavy, {
		selector: '.heavy'
		,css: {'.sIFR-root': { 'color': '#4b0b2f', 'font-size' : '20px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 8
		,offsetLeft : 10
		,tuneWidth : 10
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_heavy, {
		selector: '.heavy2'
		,css: {'.sIFR-root': { 'color': '#823a5f', 'font-size' : '20px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 8
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_heavy, {
		selector: '.desde'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '10px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_heavy, {
		selector: '.importe'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '20px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : -2
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_heavy, {
		selector: '.importe2'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '30px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.activate(futura_light_condensed);
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 8
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed2'
		,css: {'.sIFR-root': { 'color': '#823a5f', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 8
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed3'
		,css: {'.sIFR-root': { 'color': '#4b0b2f', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0,'text-transform':'uppercase' } }
		,wmode : 'transparent'
		,offsetTop : 8
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed4'
		,css: {'.sIFR-root': { 'color': '#4b0b2f', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed5'
		,css: {'.sIFR-root': { 'color': '#823a5f', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 2
		,forceSingleLine : true
	});
	
	sIFR.replace(futura_light_condensed, {
		selector: '.condensed6'
		,css: {'.sIFR-root': { 'color': '#4b0b2f', 'font-size' : '22px','background-color' : 'transparent','letter-spacing': 0,'font-weight':'bold' } }
		,wmode : 'transparent'
		,offsetTop : 2
		,tuneWidth : 2
		,forceSingleLine : true
	});
	
function newsletterSubmit(value){
	var filter=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	
	$('#enlaceNewsletter').attr('href', 'includes/newsletter/newsletter.php?email='+value);

	Shadowbox.init();

	$('#enlaceNewsletter').click();

	if (filter.test(value)) {

		$('#email').val('Introduce tu dirección de e-mail');

	}

	$('#email').focus();
}
	
	
