// JavaScript Document

<!--  
// HANDLES FSCOMMAND CALL FOR INTERNET EXPLORER

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {

document.write('<SCRIPT LANGUAGE=VBScript\> \n');

document.write('on error resume next \n');

document.write('Sub testcommand_FSCommand(ByVal command, ByVal args)\n');

document.write(' call testcommand_DoFSCommand(command, args)\n');

document.write('end sub\n');

document.write('</SCRIPT\> \n');

}

//-->

var movieName = "testcommand";

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;
  }
}

function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}





// FScommand catcher script here

function testcommand_DoFSCommand(linkid,color) { 
    document.getElementById(linkid).style.color=color;
	//alert(a + b);
}



// Color changer script here

function cc(linkid,color)
{
   document.getElementById(linkid).style.color=color;
  // return false;
}


//--> 
