$(document).ready(function () {


    $.ifixpng('images/transparent.gif'); 
    $('#ribbon img, h2 img, #footer img').ifixpng();

    //alert('loaded');

	myShow = function() {
		//alert('ja');
		
		//$(".text").fadeOut();
		//$(".text").fadeIn();
		//$(".text").slideUp();
		//$(".text").slideDown(1000);
		//$(".text").show(1000);
		
		//$(".overlay").slideDown(2000,'easeInElastic',myShow2());
		
		
		$(".overlay").slideDown({ duration: 1250, easing: 'easeOutQuad', complete: myShow2 });

	};
	
    myShow2 = function() {
    

        $(".text").css({display:'block'});
        //$(".video").css({display:'block'});
        //$(".videotxt").css({display:'block'});
    };
	
	myTimer = function() {
		setTimeout(myShow, 500);
		//setTimeout(myShow2, 1500);
	};
	



$.nyroModalSettings({
    
  //debug: true, // Show the debug in the background
  bgColor: 'rgb(13%,13%,13%)', // Background color
  height: 551,
  width: 858,
  endShowContent: myTimer // Will be called once the content is shown
  
    }); // end nyroModalSettings


/*
    $.nyroModalSettings({
    
    
        height: 800,
        width: 315,
    
        css: { // Default CSS option for the nyroModal Div. Some will be overwritten or updated when using IE6
            bg: {
              position: 'absolute',
              overflow: 'hidden',
              top: 0,
              left: 0,
              height: '100%',
              width: '100%'
            },

        wrapper: {
          position: 'absolute',
          top: '30%',
          left: '50%'
        },

        wrapper2: {
          position: 'absolute',
          top: '20%',
          left: '20%',
        },

        content: {
          overflow: 'auto'
        },

    
        } // end css
    
    }); // end nyroModalSettings
    
*/


/*
    $.nyroModalSettings({
    
        minHeight: 469,
        minWidth: 780

    }); // end nyroModalSettings
*/


}); // end document ready

