function thisMovie(movieName) 
{
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	
  else {
    return document[movieName]
  }
}

/*
 * Passes the ringtoneid to the flash component
 */
function doPassVar(prodId) 
{
  var movieName = "player";
  thisMovie(movieName).SetVariable("prodId", prodId);
  thisMovie(movieName).TGotoLabel("_level0","reset");
}

/*
 * to show/hide div layers when user clicks on plus/minus 
 * in the left toolbar
 */
function toggle( targetId )
{
  if (document.getElementById) {
    target = document.getElementById( targetId );
    if (target.style.display == "none"){
      target.style.display = "";
    } 
    else {
      target.style.display = "none";
    }
  }
}
  