

function netscapeflash()
{
    flashinstalled = false;
    if (!(navigator.plugins)) return;
	if (navigator.plugins["Shockwave Flash"])
	{
	    flashinstalled = true;
        flashdescription = navigator.plugins["Shockwave Flash"].description;

	    // Get the plug-in version and revision:
	    var words = flashdescription.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		flashversion = words[i];
		flashrevision = parseInt(words[i + 1].substring(1));
	    }
   }
}

function FlashDispatch(contentURL, contentVersion,upgradeURL,installURL)
{
    
    netscapeflash();
    if (!flashinstalled) location.replace(installURL);
	else
	if (parseInt(contentVersion) <= flashversion) location.replace(contentURL);
	else
	location.replace(upgradeURL);
}
