/*
 * MAYNE FLASH BANNER
 *	If browser is Safari or Flash is not detected
 * a static image will be used
 * 
 * To use, call displayBanner() where needed
 */
 


function checkIt(string)
{
	var detect = navigator.userAgent.toLowerCase();
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function displayBanner(flashpath,altimagepath)
{
	if(checkIt('safari')) {
		document.write('<img src="'+altimagepath+'" width="586" height="40" alt="Page Banner" style="display:block;" />');
	} else {
		var bannerFlash = new FlashObject(flashpath,"bannerflash","586","40",6,"#FFFFFF");
		bannerFlash.addParam("wmode", "transparent");
		bannerFlash.addParam("quality", "high");
		bannerFlash.altTxt = '<img src="'+altimagepath+'" width="586" height="40" alt="Page Banner" style="display:block;" />';
		bannerFlash.write();
	}
}
function displayBanner2(flashpath,altimagepath)
{
	if(checkIt('safari')) {
		document.write('<img src="'+altimagepath+'" width="586" height="206" alt="Page Banner" style="display:block;" />');
	} else {
		var bannerFlash = new FlashObject(flashpath,"bannerflash","586","206",6,"#FFFFFF");
		bannerFlash.addParam("wmode", "transparent");
		bannerFlash.addParam("quality", "high");
		bannerFlash.altTxt = '<img src="'+altimagepath+'" width="586" height="206" alt="Page Banner" style="display:block;" />';
		bannerFlash.write();
	}
}
function displayBanner3(flashpath,altimagepath)
{
	if(checkIt('safari')) {
		document.write('<img src="'+altimagepath+'" width="148" height="148" alt="Page Banner" style="display:block;" />');
	} else {
		var bannerFlash = new FlashObject(flashpath,"bannerflash","148","148",6,"#FFFFFF");
		bannerFlash.addParam("wmode", "transparent");
		bannerFlash.addParam("quality", "high");
		bannerFlash.altTxt = '<img src="'+altimagepath+'" width="148" height="148" alt="Page Banner" style="display:block;" />';
		bannerFlash.write();
	}
}
