var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
		? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
			continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}

function getFlashHeader() {
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 
		   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
		var flashHeaderFile = "/global/flash/HEADER";
		// Active content hack to allow flash to work correctly in IE
		AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
			'id', 'flashHeader', 'width', '559', 'height', '211', 'src', flashHeaderFile, 'quality',
			'high', 'bgcolor', '3A6E8F', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'movie', flashHeaderFile, 'loop', 'false', 'menu', 'false');
	} else{
		document.write('<img src="/global/images/staticHeader.jpg" width="559" border="0" height="211" alt=""/>');
	}
}

function getPerspectivesFlash() {
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 
		   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
		var flashProspectivesFile = "/global/flash/perspectives";
		// Active content hack to allow flash to work correctly in IE
		AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
			'id', 'perspectives', 'width', '164', 'height', '60', 'src', flashProspectivesFile, 'quality',
			'high', 'bgcolor', '#ffffff', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'movie', flashProspectivesFile, 'loop', 'false', 'menu', 'false');
	} else{
		document.write('<img src="/global/images/staticPerspectives.jpg" width="164" border="0" height="60" alt=""/>');
	}
}

function getDistinctivesFlash() {
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 
		   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
		var flashPerspectivesFile = "/global/flash/distinctives07";
		// Active content hack to allow flash to work correctly in IE
		AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
			'id', 'distinctives', 'width', '166', 'height', '180', 'src', flashPerspectivesFile, 'quality',
			'high', 'bgcolor', '#ddded3', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'movie', flashPerspectivesFile, 'loop', 'false', 'menu', 'false');
	} else{
		document.write('<img src="/global/images/staticDistinctives.jpg" width="166" border="0" height="180" alt=""/>');
	}
}



// START menu hover
function imageChange(id) {
	document.images[id].src = "/global/images/topNavButtons/" + id + "Hover.gif";
}

function resetChange(id) {
	document.images[id].src = "/global/images/topNavButtons/" + id + ".gif";
}
// END menu hover





// START getPage function. used to embed dynamic php into static shtml
function getPage(url)  {
    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.open("GET", url, false);
        req.send(null);
    // branch for IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.open("GET", url, false);
            req.send();
        }
    }
    return req;
}
// END getPage function