$(document).ready(function(){
  Shadowbox.init();
});

$(function() {
	$('.media').media({ 
		autoplay:  true,
		flashvars: { autostart: 'true' } , 
		params:    { wmode: 'transparent', quality: 'high',allowscriptaccess:'always' }, // object params/embed attrs 
		caption:   false // supress caption text 
	});
	
	$('.media_banner').media({ 
		autoplay:  true,
		flashvars: { autostart: 'true' } , 
		params:    { wmode: 'transparent', quality: 'high',allowscriptaccess:'always' }, // object params/embed attrs 
		caption:   false // supress caption text 
	}); 
});
 
function requestRECOMENDAR(){
	Shadowbox.close();
	setTimeout ('showRequest()',1000);
}

function showRequest(){
	$('#ok-request-recomendar').click(); 
}


/*****************************************************************************
    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 Helvetica = {
		src: '/swf/fuentes/helvetica_rounded_bold.swf'
    };
	var Arial = {
		src: '/swf/fuentes/Arial_Rounded_MTBold.swf'
    };
	var Tondo = {
		src: '/swf/fuentes/tondo.swf'
    };
	
	
  
	sIFR.activate(Helvetica);
	sIFR.activate(Arial);
	sIFR.activate(Tondo);
	
	/**helvetica**/
	sIFR.replace(Helvetica, {
		selector: '.desde'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '16px','background-color' : 'transparent','letter-spacing': -2 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	sIFR.replace(Helvetica, {
		selector: '.precio'
		,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '32px','background-color' : 'transparent','letter-spacing': -2 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	
	/**arial rounded**/
	sIFR.replace(Arial, {
		selector: '#titulo-morado'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '28px','background-color' : 'transparent','letter-spacing': -2 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#titulo-gris'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '28px','background-color' : 'transparent','letter-spacing': -2 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	
	sIFR.replace(Arial, {
		selector: '.t'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '25px','background-color' : 'transparent','letter-spacing': -2 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '.tlfn-ofi'
		,css: {'.sIFR-root': { 'color': '#862aa7', 'font-size' : '25px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 3
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#subtitulo-morado'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '.subtitulo-morado'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#subtitulo-gris'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '.subtitulo-gris'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#memo-morado'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '19px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#memo-gris'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '19px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#desde'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '15px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '#mas'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '18px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 2
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '.tit_condiciones'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '19px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	sIFR.replace(Arial, {
		selector: '.titulo_edival'
		,css: {'.sIFR-root': { 'color': '#700092', 'font-size' : '19px','background-color' : 'transparent','letter-spacing': 0 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	/**tondo**/
	sIFR.replace(Tondo, {
		selector: '#5razones'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '20px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(Tondo, {
		selector: '#oficina-izq'
		,css: {'.sIFR-root': { 'color': '#862aa7', 'font-size' : '23px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	sIFR.replace(Tondo, {
		selector: '.oficina-izq'
		,css: {'.sIFR-root': { 'color': '#862aa7', 'font-size' : '23px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(Tondo, {
		selector: '.ventas-izq'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '23px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	sIFR.replace(Tondo, {
		selector: '#creamos-edival'
		,css: {'.sIFR-root': { 'color': '#862aa7', 'font-size' : '23px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	sIFR.replace(Tondo, {
		selector: '#creamos-viviendas'
		,css: {'.sIFR-root': { 'color': '#364446', 'font-size' : '18px','background-color' : 'transparent','letter-spacing': -1 } }
		,wmode : 'transparent'
		,offsetTop : 0
		,tuneWidth : 0
		,forceSingleLine : true
	});
	
	