$(document).ready(function(){
    $('#col p:first').css('background', 'url(/imagenes/faqs/flecha-on.gif) no-repeat 25px 3px');
	$('#col div:first').css('display', 'block');
	
	$(function() {
		$('.media').media({ 
			autoplay:  true,
			width: 987,
			height: 164,
			flashvars: { autostart: 'true' } , 
			params:    { wmode: 'transparent', quality: 'high' }, // object params/embed attrs 
			caption:   false // supress caption text 
		}); 
	});
	
	
});

function desplegarFaq(p){
	if ($(p).next().css('display') == 'none') {
		$('#interior div div div').slideUp('normal');
		$('.col p.faq').css('background', 'url(/imagenes/faqs/flecha-off.gif) no-repeat 25px 3px');;
		$('.col p.faq').css('background', 'url(/imagenes/faqs/flecha-on.gif) no-repeat 25px 3px');
		if($(p).parent().attr('id')=='col')
			$(p).css('background', 'url(/imagenes/faqs/flecha-on.gif) no-repeat 25px 3px');
		else
			$(p).css('background', 'url(/imagenes/faqs/flecha-on.gif) no-repeat 25px 3px');
		$(p).next().slideDown('normal');
	}
	else {
		$(p).next().slideUp('normal');
		if($(p).parent().attr('id')=='col')
			$(p).css('background', 'url(/imagenes/faqs/flecha-off.gif) no-repeat 25px 3px');
		else
			$(p).css('background', 'url(/imagenes/faqs/flecha-off.gif) no-repeat 25px 3px');
	}	
}	

/*****************************************************************************
    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.swf'
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(helvetica);

    sIFR.replace(helvetica, {
      selector: 'h2.azulnegrita'
	  ,css: {'.sIFR-root': { 'color': '#066aa7', 'font-size' : '30px','background-color' : 'transparent','letter-spacing': -0.5, 'text-transform': 'capitalize' } }
	  ,wmode : 'transparent'
    });

	sIFR.replace(helvetica, {
      selector: 'h3'
	  ,css: {'.sIFR-root': { 'color': '#b3b3b3', 'font-size' : '45px','background-color' : 'transparent','letter-spacing': -0.5, 'text-transform': 'capitalize' } }
	  ,wmode : 'transparent'
    });



