var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function CustomerStories_DoFSCommand(command, args) {
	var CustomerStoriesObj = isInternetExplorer ? document.all.CustomerStories : document.CustomerStories;
		
	if (command == "navigate") 
	{
		window.location.href = args;
	}
	if (command == "trace")
	{
		alert(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 CustomerStories_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call CustomerStories_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}