// JavaScript Document

function WiTV_DoFSCommand(command, args, args2, args3) { 
  if (command == "buy_product") { 
    //alert("Thank you for buy item ID: " + args);
  }
  if (command == "event_notifier") { 
    //alert("Just Play this EVENT ID: " + args);
  }
  if (command == "jump_focus") { 
    //alert("Open Link for FOCUS ID: " + args + ","+ args2);
  }
  if (command == "adv_notifier") { 
    //alert("Just play this advertising: " + args);
  }
  if (command == "jump_adv") { 
    //alert("Just play this advertising: " + args);
  }
    if (command == "download_podcast") { 
    //alert("Just Download Podcast: " + args);
  }
    if (command == "download_file") { 
    //alert("Just Download Video File: " + args);
  }
    if (command == "download_other") { 
    //alert("Just Download Other file: " + args);
  }
    if (command == "frame_focus") { 
    //alert("Syncronized this content in other Frame window. Content source: " + args);
  }
  if (command == "frame_ecommerce") { 
    //alert("Syncronized eCommerce Box in other Frame window. Product ID: " + args);
  }
  
}


function callFlash(args) {
  getFlashMovie("WiTV").alertMsgExternal(sendText);
}

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
 }


