SiteIntro = {
	display: function(file) {
		ww = (window.innerWidth ? window.innerWidth : $(window).width());
		wh = (window.innerHeight ? window.innerHeight : $(window).height());
		w = 960; h = 720;
		$('#pagina').hide();
		$('#divIntro').html('<input class="button skip" type="button" onclick="javascript: hideIntro()" value="Saltar >>" name="skip"/><div id="swfintro"></div>');
		var flashFile = file;
    	swfobject.embedSWF("sion/files/"+flashFile, "swfintro", w, h, "9.0", "js/swfobject/expressInstall.swf");
		var hasRightVersion = swfobject.hasFlashPlayerVersion("9.0.0");
        if(!hasRightVersion)
        {
        	$('#divIntro').html($('#divIntro').html() +
        		"<div style='float:right;'><br/>Si no desea instalar Flash Player puede <a href='javascript: SiteIntro.close()'>saltar la intro</a>.</div>");
        }
		
		$('#divIntroContainer').width(ww);
		//$('#divIntroContainer').height(wh);
		$('#divIntro').height( h + $('#divIntro input.skip').height() + 20);
		$('#divIntroContainer').show();
		var t=setTimeout('hideIntro()',5000);

	},
	close: function (){
		$('#pagina').show();
		$('#divIntroContainer').hide();
	}
}
function hideIntro(){SiteIntro.close();}

App = {
	defaultLightBoxSettings: {
		overlayBgColor: '#990000',
		captionClass: 'lightboxDesc',
		fixedNextPrevLinks:	true,
		imageLoading: 'css/lightbox/images/loader.gif',
		imageBtnPrev: 'css/lightbox/images/prevlabel.gif',
		imageBtnNext: 'css/lightbox/images/nextlabel.gif',
		imageBtnClose: 'css/lightbox/images/closelabel.gif',
		imageBlank: 'css/lightbox/images/pixel.gif',
		txtImage: 'Imagen',
		txtOf: 'de'
	}
}