/* FILENAME: documentready.js
PROJECT: TNASAP
DESCRIPTION: Javascript that loads after DOM has rendered
AUTHOR: Lisa Starbuck, lisa@aobe.com
CREATION DATE: Jan 2011
MODIFIED BY/ON:
VARIABLES:

BEGIN documentready.js */
$(document).ready(function(){
   //header flash
   flashembed('flashcontent',{src:'images/flashmovies/asap7.swf', width: 750, height: 230, wmode: 'opaque'});

   //movie modals
   $(".myPlayer").click(function(){
     thelink = $(this).attr('href');
     thetitle = $(this).text();
     $("#player").attr('href',thelink);
     $("#moviewindow").dialog({
         bgiframe: true,
         height:550,
         width:760,
         modal:true,
         overlay: {
           backgroundColor: '#000',
           opacity: 0.5
         },
         title: thetitle,
         open: function(){
         flowplayer("player","js/flowplayer-3.2.5.swf",
            {
               controls:{
                  url:'js/flowplayer.controls-3.2.3.swf',
                  play:true,
                  volume:true,
                  mute:true,
                  time:true,
                  stop:true,
                  fullscreen:true,
                  scrubber: true
               }
            });
         },
        close: function(){
         flowplayer("player").unload();
           $(this).dialog('destroy');
        }
     });
     return false;
   });
   $("#aboutnav,#trainingsnav").click(function(){
      return false;
   });

   //BEGIN Load Google Analytics
      //NOTE: This uses Google's improved Asyncrhonous tracking method http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
 /*  var _gaq = _gaq || [];
   _gaq.push(['_setAccount', 'UA-12710618-16']);
   _gaq.push(['_trackPageview']);
   
   (function() {
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   })(); */
   //END Load Google Analytics
});
/*
END documentready.js
*/

