<!--  


function getMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  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);
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
    // If it is, check how much of it is loaded.
    return true; 
		//theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}
function playMovie(movieName, rewind) {
  if (movieIsLoaded(getMovie(movieName))) {
    if (rewind)
			 getMovie(movieName).Rewind();
		getMovie(movieName).Play();
  }
}
function stopMovie(movieName){
  if (movieIsLoaded(getMovie(movieName))) {
    getMovie(movieName).StopPlay();
  }
}
function rewindMovie(movieName){
  if (movieIsLoaded(getMovie(movieName))) {
    getMovie(movieName).Rewind();
  }
}
function togglePlayback(movieName, rewind){
  if (movieIsLoaded(getMovie(movieName))) {
    if (getMovie(movieName).IsPlaying())
			 getMovie(movieName).StopPlay();
		else
		{
		 	 if (rewind)
  			 getMovie(movieName).Rewind();
			 getMovie(movieName).Play();
		}
  }
}

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}

function popFlash(movieName,title, w, h){
	var optNN='scrollbars=no,width='+w+',height='+h+',left=100,top=100';
	var optIE='scrollbars=no,width='+w+',height='+h+',left=100,top=100';			 
  if (isNN){imgWin=window.open('popFlash.php?movieName='+movieName+'&movieWidth='+w+'&movieHeight='+h,'',optNN);}
  if (isIE){imgWin=window.open('popFlash.php?movieName='+movieName+'&movieWidth='+w+'&movieHeight='+h,'',optIE);}
}





//-->
