/* 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 */
jQuery(document).ready(function(){
   //header flash
   flashembed('flashcontent',{src:'http://harmonyadoptions.org/wp-content/themes/harmony/images/flashmovies/header1.swf', width: 995, height: 204, wmode: 'opaque'});

   //give the last menu item its own class to prevent it from sliding off the page
   jQuery("#menu-menu li:last ul").addClass("lastpulldown");
   //movie modals
 /*  jQuery(".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-2']);
   _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
*/

