﻿// Handle all the the FSCommand messages in a Flash movie
function topic_ai_DoFSCommand(command, args) {
    for (var i = 0; i <5; i++)
    {
       document.getElementById("FNewslist"+i).className= 'li h';
       document.getElementById("FNewslist"+i).style.display = "none";
    }
    document.getElementById("FNewslist"+args).className= 'li s';
     document.getElementById("FNewslist"+args).style.display = "block";
  }
// Hook 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 topic_ai_FSCommand(ByVal command, ByVal args)\n');
    document.write('  call topic_ai_DoFSCommand(command, args)\n');
    document.write('end sub\n');
    document.write('</SCRIPT\> \n');

    }
    
     if (typeof(HTMLElement) != "undefined")
			    HTMLElement.prototype.__defineGetter__ 
			    ( 
			    "innerText", 
			    function () 
			    { 
				    var anyString = ""; 
				    var childS = this.childNodes; 
				    for(var i=0; i<childS.length; i++) 
				    { 
					    if(childS[i].nodeType==1) 
					    anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText; 
					    else if(childS[i].nodeType==3) 
					    anyString += childS[i].nodeValue; 
				    } 

				    return anyString; 
			    } 
			    );
	