
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie

// 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 animation_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call animation_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
} else {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub animation_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call animation_DoFSCommand("messagebox", args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
//-->


function animation_DoFSCommand(command, args) {
	//var animation = InternetExplorer ? animation : document.animation;
	//var global_topnav = InternetExplorer ? global_topnav : document.global_topnav;
	if (command == "messagebox") {
		// alert(args);
		if (args=='showhidelayers') {
			onMenuClicked('div_global_topnav');
			onMenuClicked('main_flash');
			onMenuClicked('div_global_botnav');
		}
	return;
	}
}

function getElementById( id ) {
	if (navigator.appVersion.search('Safari') == -1) {
	
		if (navigator.appVersion.search('Windows; en-US') == -1) {
			return document.all[id];
		} else {
			return document.getElementById(id);
		}
		
	} else {
		return document.getElementById(id);
	}
}

function onMenuClicked(id ) {
	
    var eSpan = getElementById(id);
    eSpan.className = (eSpan.className=='clsShow') ? 'clsHide' : 'clsShow';
}


function initArray() {
	this.length = initArray.arguments.length;
		for (var i = 0; i < this.length; i++) {
		this[i] = initArray.arguments[i];
		}
	}
	
function changetext()
	{
	if (browsertype == "new") {
		if (varstartingpoint == 0) {
		document.getElementById('newtext').innerHTML = text[0];
		varstartingpoint = varstartingpoint + 1
		thetimer = setTimeout("changetext()", 4000);
		}
		else
		{
		var currentdate = new Date();
		var id = (varstartingpoint) % text.length;
		document.getElementById('newtext').innerHTML = text[id];
		thetimer = setTimeout("changetext()", 2000);
		varstartingpoint = varstartingpoint + 1
		}
	}
	else if (browsertype == "old") {
		document.write("default message");
	}
}
