﻿/*****************************************************************************************
 *
 *    RedDot Global JS (requires jquery.js + jquery.flash.js)
 *
 ****************************************************************************************/
// $$Revision: 3 $$
(function($) { // start our namespace 
    
    
    /*
        Function for Flash replacement text + movie
    */
    function initFlash(){
        
        //show alternative content
        $('#flash-banner .flash-alt-content').show();
        $('#feature .flash-alt-content').show();
        $('body.flashBanner-page .flash-alt-content').show();
        $('body.customers-page .flash-alt-content').show();
        $('body.solutions-page .flash-alt-content').show();
        
        
        
        //flash text replace
        $('h1').flashText({
            src: '/images/HelveticaLightTitle.swf' //normal helvetica light
        });
        $('#sub h2, #news-solutions h2, #webinars h2, #tours h2, #case-studies h2, #contact h2').flashText({
            src: '/images/HelveticaLight_smallText.swf', //adjusted sharpness + thickness to increase readability
            flashvars: { thickness:"-80" }
        });
        $('#footer #subscribe-form label, span.section-name, .teaser p').flashText({
            src: '/images/helvetica55roman.swf'
        });
    }
    
    
    /*
        Setup page + attach event handlers
    */
    $(document).ready(function() {
        //the popup was not working because we it was trying to run this function before we the DOM was ready
        if (!$('body').is('#popup')) {
            initFlash();
        }
    });
})(jQuery);  // end namespace
/*
/images/loadingAnimation.gif
*/