$(document).ready(function(){
	Shadowbox.init();
	$('body').ajaxComplete(function(request, settings){ //Para poder utilizar shadowbox despues de peticion AJAX
	Shadowbox.init();
	});
	
	if($('#request'))
		$('#request').click();
		
	$(function() {
        $('.media').media({ 
            autoplay:  true,
            flashvars: { autostart: 'true' } , 
			width: 513,
			height: 430,
            params:    { wmode: 'transparent', quality: 'high' }, // object params/embed attrs 
            caption:   false // supress caption text 
        });    
    });
});


/*****************************************************************************
    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 univers = {
      src: '/swf/fuentes/univers.swf'
    };
	
  sIFR.activate(univers);

	  sIFR.replace(univers, {
      selector: 'h2'
	  ,css: {'.sIFR-root': { 'color': '#ffffff', 'font-size' : '14px','background-color' : 'transparent','letter-spacing': 0,'text-transform': 'uppercase','text-align':'right' } }
	  ,wmode : 'transparent'
	  ,offsetTop : 0
    });
	
