/*
* Looks up the location of the dynamic Flash movie
* 
*/


function PopUpWindow (detail_url, title, data){
         window.open(detail_url, null, data);
}

// 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 theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}


function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return document.getElementById(movieName)
  } else {
    return document.getElementById(movieName)
  }
}
/*
* The Style Select is sent a number between 1 and 35
* 
*/
function StyleSelect(x) {
		if (movieIsLoaded(thisMovie(movieName))) {
  thisMovie(movieName).TGotoFrame("/instyleJavascript", (Number(x)));
}
}
