
// browser check
IS_DOM = (document.getElementById) ? true : false;
IS_NS4 = (document.layers) ? true : false;
IS_IE = (document.all) ? true : false;
IS_IE4 = IS_IE && !IS_DOM;
IS_Mac = (navigator.appVersion.indexOf("Mac") != -1);
IS_IE50PC = (IS_DOM && IS_IE && !IS_Mac && navigator.userAgent.indexOf("MSIE 5.0")!=-1)

// handle IE5.0 style issues
if (IS_IE50PC) {

	document.write("<style type=\"text/css\">");
	document.write("a.learnMore {background: none;}");
	document.write("</style>");

}

function noClick(sNull) {}

function changeImages() {

	if (document.images && !document.layers) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	}

}

function writeHomepageFlash(sFlashMovieURL, sNoFlashImageURL) {

	var oeTags = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"271\" height=\"143\" id=\"mro007_hp_r1-a2\"><param name=\"movie\" value=\"" + sFlashMovieURL + "\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=\"#66CC66\"><embed src=\"" + sFlashMovieURL + "\" width=\"271\" height=\"143\" autostart=\"false\" quality=\"high\" bgcolor=\"#66CC66\" name=\"mro007_hp_r1-a2\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>";

	var alternateContent = "<img src=\"" + sNoFlashImageURL + "\" width=\"271\" height=\"143\" border=\"0\" alt=\"Flash Animation\" title=\"Flash Animation\" />";

	if (!useRedirect) { 
		if(hasRightVersion) { 
			document.write(oeTags);
		} else { 
			document.write(alternateContent);
		}
	}

}





function displayWindow(url, width, height) {

	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no');
	Win.focus();

}

function openGenericWindow(sURL,iWidth,iHeight,sAttributes) {

	var oWindow = window.open(sURL,'oWindow','width='+iWidth+',height='+iHeight+','+sAttributes);
	oWindow.focus();	

}
