AC_FL_RunContent = 0;
DetectFlashVer = 0;

// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 79;
// -----------------------------------------------------------------------------
//

function ChangeTo()
{
    var e = document.getElementById('DropDownMenu');
    var selectedIndex = e.selectedIndex;
    var target = e.options[selectedIndex].value;
    window.location = target;
}
//sommar_2009/Sommar2009.aspx
//http://www.nfi.se/Error.htm?aspxerrorpath=/sommar_2009/Sommar2009.aspx&FlashAd
//Testfunktion som ska användas i Master filen (Joe 090601)
function NFIFlash() {
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    }
    else {
        var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
        if (hasRightVersion) // if we've detected an acceptable version
        {
            // embed the flash movie
            AC_FL_RunContent(
		                    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0',
		                    'width', '950',
		                    'height', '140',
		                    'src', '/BannerWorking',
		                    'quality', 'high',
		                    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		                    'align', 'middle',
		                    'play', 'true',
		                    'loop', 'true',
		                    'scale', 'showall',
		                    'wmode', 'window',
		                    'devicefont', 'false',
		                    'id', 'BannerWorking',
		                    'bgcolor', '#ffffff',
		                    'name', 'BannerWorking',
		                    'menu', 'true',
		                    'allowScriptAccess', 'sameDomain',
		                    'allowFullScreen', 'false',
		                    'movie', '/BannerWorking',
		                    'salign', ''
		                    ); //end AC code
        }
        else // flash is too old or we can't detect the plugin
        {
            var alternateContent =
	                        '<img alt="Välkommen till NFI" src="/bilder/Fallback.jpg" />';
            document.write(alternateContent);  // insert non-flash content
        }
    }
}




function NFICumulus() {
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    }
    else {
        var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
        if (hasRightVersion) // if we've detected an acceptable version
        {
            // embed the flash movie
            AC_FL_RunContent(
		                    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0',
		                    'width', '169',
		                    'height', '169',
		                    'src', '/Cumulus/tagcloud',
		                    'quality', 'high',
		                    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		                    'align', 'middle',
		                    'play', 'true',
		                    'loop', 'true',
		                    'scale', 'showall',
		                    'wmode', 'window',
		                    'devicefont', 'false',
		                    'id', 'NFICumulus',
		                    'bgcolor', '#ffffff',
		                    'name', 'NFICumulus',
		                    'menu', 'true',
		                    'allowScriptAccess', 'sameDomain',
		                    'allowFullScreen', 'false',
		                    'movie', '/Cumulus/tagcloud',
		                    'salign', ''
		                    ); //end AC code
        }
        else // flash is too old or we can't detect the plugin
        {
            var alternateContent =
	                        ''; //'<img alt="Välkommen till NFI" src="/bilder/Fallback.jpg" />';
            document.write(alternateContent);  // insert non-flash content
        }
    }
}