/* Flash Communication Scripts - Version 1.1
   Copyright (c) 2004 ericpaige.com
 */

isIE = (navigator.appName.indexOf("Microsoft") != -1);
isMacIE = ((navigator.appVersion.indexOf("Mac") != -1) && isIE);
isNS6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5);
currentSection="home";

function changeSectionHeader(sectionID) {
      currentSection=sectionID;
      waitUntilLoaded();
}

function waitUntilLoaded() {
  nav = isIE ? flash_header : window.document.flash_header;
  if(nav.PercentLoaded() == 100 && !nav.isPlaying()) {
   nav.SetVariable('flash_link', currentSection);
  // nav.TPlay('/controller');
  } else {
    setTimeout('waitUntilLoaded()',10);
  }
}



function changeSectionHeader_img(imgID) {
      imgSection=imgID;
      waitUntilLoaded_img();
}

function waitUntilLoaded_img() {
  nav = isIE ? flash_header : window.document.flash_header;
  if(nav.PercentLoaded() == 100 && !nav.isPlaying()) {
   nav.SetVariable('flashImg', imgSection);
  // nav.TPlay('/controller');
  } else {
    setTimeout('waitUntilLoaded()',10);
  }
}








//var myFlash = document.getElementById("myFlash").SetVariable("myVar", sendText);

