$(document).ready(function(){	

	$(function() {
        $('.media').media({ 
            autoplay:  true,
            flashvars: { autostart: 'true' } , 
			width: 617,
			height: 291,
            params:    { wmode: 'transparent', quality: 'high' }, // object params/embed attrs 
            caption:   false // supress caption text 
        });    
    });
	
	Shadowbox.init();
});
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();

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

	/*****************************************************************************
    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 PanEuropa = {
		src: '/swf/fuentes/paneuropa.swf'
    };
	
	var DinMedium = {
		src: '/swf/fuentes/din.swf'
    };
	
	
  
	sIFR.activate(PanEuropa);
	sIFR.activate(DinMedium);
	
	
	sIFR.replace(PanEuropa, {
		selector: '#texto-email'
		,css: {'.sIFR-root': { 'color': '#666666', 'font-size' : '26px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	sIFR.replace(PanEuropa, {
		selector: '#texto-amarillo'
		,css: {'.sIFR-root': { 'color': '#ffc300', 'font-size' : '17px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(DinMedium, {
		selector: '.apart-poblacion'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '12px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	

