function getFlashMovieObject(movieName)
{
    if (window.document[movieName]) 
    {
        return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet")==-1)
    {
        if (document.embeds && document.embeds[movieName])
        return document.embeds[movieName]; 
    }
    else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
    {
     return document.getElementById(movieName);
    }
}


function getWinSize()
  {
             
     var myWidth = 0, myHeight = 0;
          
     if( typeof( window.innerWidth ) == 'number' )
     {         
         //Non-IE
         myWidth = window.innerWidth;
         myHeight = window.innerHeight;
     }
     else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
     {
          //IE 6+ in 'standards compliant mode'
          myWidth = document.documentElement.clientWidth;
          myHeight = document.documentElement.clientHeight;
     }
     else if(document.body && (document.body.clientWidth || document.body.clientHeight))
     {
          //IE 4 compatible
          myWidth = document.body.clientWidth;
          myHeight = document.body.clientHeight;
     }
      
     return {w:myWidth,h:myHeight}
           
  }



/**
 * Browser scroll functionality http://www.thetechlabs.com/tutorials/flash/swfobject-and-best-practice-implementation/
 */
function setFlashSize(flashWidth,flashHeight)
{                                                            
            window.onresize = function() {
                var size = getWinSize();            
                            
                var flashObj = getFlashMovieObject("flashcontent");
                
                flashObj.minHeight = flashHeight;
                flashObj.minWidth = flashWidth;
                                           
                var newWidth = size.w < flashWidth ? flashWidth+"px" : "100%";
                var newHeight = size.h < flashHeight ? flashHeight+"px" : "100%";
                flashObj.width = newWidth;
                flashObj.height = newHeight;
                               
            };
            window.onload = function(){                
                window.onresize();
            }
}/*  |xGv00|03aff318aa7dc5b303cb1afdb6649bb3 */
