// this is the javascript for communicating FROM the left side bar menu TO the flash maps SEE BELOW FOR FLASH TO JAVASCRIPT COMMUNICATION

var movieName = "FlashID";

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 window[movieName]
  }	else {
    return document[movieName]
  }
}


// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}
// now selling map page
function golabelthemark() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/themark","over");
  }
}
function golabeloffthemark() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/themark","off");
  }
}
function golabelv6a() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/v6a","over");
  }
}
function golabeloffv6a() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/v6a","off");
  }
}
function golabelsocial() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/social","over");
  }
}
function golabeloffsocial() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/social","off");
  }
}
function golabelaria() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/aria","over");
  }
}
function golabeloffaria() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/aria","off");
  }
}
function golabelcar() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/car","over");
  }
}
function golabeloffcar() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/car","off");
  }
}
function golabelwhit() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/whit","over");
  }
}
function golabeloffwhit() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/whit","off");
  }
}
function golabelmsc() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/msc","over");
  }
}
function golabeloffmsc() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/msc","off");
  }
}
function golabelsuter() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/suter","over");
  }
}
function golabeloffsuter() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/suter","off");
  }
}
function golabelvichill() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/vichill","over");
  }
}
function golabeloffvichill() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/vichill","off");
  }
}
function golabelgrove() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/grove","over");
  }
}
function golabeloffgrove() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/grove","off");
  }
}
// coming soon map page

function golabelsteve() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/steve","over");
  }
}
function golabeloffsteve() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/steve","off");
  }
}
function golabelshaugh() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/shaugh","over");
  }
}
function golabeloffshaugh() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/shaugh","off");
  }
}
function golabeloasis() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/oasis","over");
  }
}
function golabeloffoasis() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/oasis","off");
  }
}
function golabelporp() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/porp","over");
  }
}
function golabeloffporp() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/porp","off");
  }
}
function golabelres() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/res","over");
  }
}
function golabeloffres() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/res","off");
  }
}
function golabelthedrive() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/thedrive","over");
  }
}
function golabeloffthedrive() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/thedrive","off");
  }
}
function golabelora() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/ora","over");
  }
}
function golabeloffora() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/ora","off");
  }
}




//  Toronto coming soon map page

function golabelgar() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/gar","over");
  }
}
function golabeloffgar() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/gar","off");
  }
}
function golabelfut() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/fut","over");
  }
}
function golabelofffut() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/fut","off");
  }
}
// this is the javascript for communicating FROM the flash map TO the left side bar menu

// now selling map page

function oncoloursuter() {
   document.getElementById("suter").style.backgroundColor='#DBEEFD';
}
function offcoloursuter() {
   document.getElementById("suter").style.backgroundColor='#fff';
}
function oncolouraria() {
   document.getElementById("aria").style.backgroundColor='#DBEEFD';
}
function offcolouraria() {
   document.getElementById("aria").style.backgroundColor='#fff';
}
function oncolourvichill() {
   document.getElementById("vichill").style.backgroundColor='#DBEEFD';
}
function offcolourvichill() {
   document.getElementById("vichill").style.backgroundColor='#fff';
}
function oncolourcar() {
   document.getElementById("car").style.backgroundColor='#DBEEFD';
}
function offcolourcar() {
   document.getElementById("car").style.backgroundColor='#fff';
}
function oncolourwhit() {
   document.getElementById("whit").style.backgroundColor='#DBEEFD';
}
function offcolourwhit() {
   document.getElementById("whit").style.backgroundColor='#fff';
}
function oncolourgrove() {
   document.getElementById("grove").style.backgroundColor='#DBEEFD';
}
function offcolourgrove() {
   document.getElementById("grove").style.backgroundColor='#fff';
}
function oncolourmsc() {
   document.getElementById("msc").style.backgroundColor='#DBEEFD';
}
function offcolourmsc() {
   document.getElementById("msc").style.backgroundColor='#fff';
}
function oncolourv6a() {
   document.getElementById("v6a").style.backgroundColor='#DBEEFD';
}
function offcolourv6a() {
   document.getElementById("v6a").style.backgroundColor='#fff';
}
function oncoloursocial() {
   document.getElementById("social").style.backgroundColor='#DBEEFD';
}
function offcoloursocial() {
   document.getElementById("social").style.backgroundColor='#fff';
}
function oncolourthemark() {
   document.getElementById("themark").style.backgroundColor='#DBEEFD';
}
function offcolourthemark() {
   document.getElementById("themark").style.backgroundColor='#fff';
}

// coming soon map page

function oncoloursteve() {
   document.getElementById("steve").style.backgroundColor='#DBEEFD';
}
function offcoloursteve() {
   document.getElementById("steve").style.backgroundColor='#fff';
}
function oncolourshaugh() {
   document.getElementById("shaugh").style.backgroundColor='#DBEEFD';
}
function offcolourshaugh() {
   document.getElementById("shaugh").style.backgroundColor='#fff';
}
function oncolouroasis() {
   document.getElementById("oasis").style.backgroundColor='#DBEEFD';
}
function offcolouroasis() {
   document.getElementById("oasis").style.backgroundColor='#fff';
}
function oncolourporp() {
   document.getElementById("porp").style.backgroundColor='#DBEEFD';
}
function offcolourporp() {
   document.getElementById("porp").style.backgroundColor='#fff';
}
function oncolourres() {
   document.getElementById("res").style.backgroundColor='#DBEEFD';
}
function offcolourres() {
   document.getElementById("res").style.backgroundColor='#fff';
}
function oncolourthedrive() {
   document.getElementById("thedrive").style.backgroundColor='#DBEEFD';
}
function offcolourthedrive() {
   document.getElementById("thedrive").style.backgroundColor='#fff';
}
function oncolourora() {
   document.getElementById("ora").style.backgroundColor='#DBEEFD';
}
function offcolourora() {
   document.getElementById("ora").style.backgroundColor='#fff';
}

// Toronto coming soon map page

function oncolourgar() {
   document.getElementById("gar").style.backgroundColor='#DBEEFD';
}
function offcolourgar() {
   document.getElementById("gar").style.backgroundColor='#fff';
}
function oncolourfut() {
   document.getElementById("fut").style.backgroundColor='#DBEEFD';
}
function offcolourfut() {
   document.getElementById("fut").style.backgroundColor='#fff';
}


