//required vars
if(typeof(G6_FlashMenuWidth)=='undefined')
	var G6_FlashMenuWidth=655;
if(typeof(G6_FlashMenuHeight)=='undefined')
	var G6_FlashMenuHeight=34;
	
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

if ( !document.layers ){
	var isKonqueror = ( navigator.userAgent.indexOf( 'Konqueror' ) != -1 );
	var isSafari = ( navigator.userAgent.indexOf( 'Safari' ) != -1 );
	var isMozilla = ( navigator.userAgent.indexOf( 'Gecko' ) != -1 && !isSafari && !isKonqueror);
}

// Handle all the FSCommand messages in a Flash movie.
function flash_menu_DoFSCommand(command, args) {
	var flash_menuObj = isInternetExplorer ? document.all.flash_menu : document.flash_menu;
	eval(args);
}

// 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 flash_menu_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call flash_menu_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

document.write('<OBJECT id="flash_menu" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"\n');
document.write('	height="' + G6_FlashMenuHeight + '" hspace="1" width="'+ G6_FlashMenuWidth + '" align="Left" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">\n');
document.write('	<PARAM NAME="base" VALUE="./files">\n');
document.write('	<PARAM NAME="Movie" VALUE="/g6publish/common/menu/rtv_dynamic_menu.swf?propertiesPath=menu_properties.xml&isInternetExplorer=' + isInternetExplorer + '">\n');
document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');
document.write('	<PARAM NAME="Quality" VALUE="High">\n');
document.write('	<PARAM NAME="SAlign" VALUE="LT">\n');
document.write('	<PARAM NAME="AllowScriptAccess" VALUE="always">\n');
document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');
document.write('	<embed id="flash_menu" src="/g6publish/common/menu/rtv_dynamic_menu.swf?propertiesPath=menu_properties.xml&isInternetExplorer=' + isInternetExplorer + '" width="'+ G6_FlashMenuWidth + '"\n');
document.write('	height="' + G6_FlashMenuHeight + '" hspace="1" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"\n');
document.write('	quality="high" wmode="transparent" scale="noscale" salign="tl" base="./files" />\n');
document.write('</OBJECT>\n');

