var doCheck = (document.all!=null);
if (doCheck == false) {
	versionNN = navigator.userAgent.toLowerCase();
	if (versionNN.search(/mozilla\/4/i) != -1) 
		browser = "NN4";
	else 
		browser = "NN6";
} else {
	var agt = navigator.userAgent.toLowerCase();
	if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) 
		browser = "IE";
	else 
		browser = "OP";
}

function browserWarning() {
	if (!document.getElementById) {
		var crumbBrowser=unescape(document.cookie);
	    if (crumbBrowser.indexOf("foxBadBrowserPop=") == -1) { 
			pop('/broswerWarning/upgradePop.html','badBrowserWin',500,160,'no','no');
			document.cookie = "BadBrowserPop=1";
	    }
	}
}

    i = 0;
	fade = "out";
	state = "display";
	fadeWhite = new Array('#ffffff','#F2EBE7','#E4D7CF','#D7C3B7','#CAB0A0','#BC9C88','#AF8870','#A17458','#946040');
	fadeBlack = new Array('#000000','#130C08','#251810','#382418','#4A3020','#5C3C28','#6F4830','#815438','#946040');
	fadeRed = new Array('#990000','#993333','#996666','#CC6666','#CC9999','#FFCCCC','#FFFFFF');
	
	function fader() {
		var getUAuth = getLayer('uberAuth');
		//var getUTime = getLayer('uberTime');
		var getUBody = getLayer('uberBody');
		getUAuth.style.color = fadeBlack[i];
		///getUTime.style.color = fadeRed[i];
		getUBody.style.color = fadeWhite[i];
		if (i < 8 && fade == "out") {
			i++;
			intID = setTimeout('fader()', 100);
		} else if (i == 8 && fade == "out") {
			fade = "in";
			if (promoNum != promoElements)
				promoNum++;
			else 
				promoNum = 1;
			getUAuth.innerHTML = eval('author'+promoNum);
			//getUTime.innerHTML = eval('time'+promoNum);
			getUBody.innerHTML = eval('text'+promoNum);
			intID = setTimeout('fader()', 100);
		} else if (i > 0 && fade == "in"){
			i--;
			intID = setTimeout('fader()', 100);
		} else if (i == 0 && fade == "in") {
			fade = "out"
			clearTimeout(intID);
		}
	}
	
	function uberPromo() {
			if (state == "display") {
				state = "fade";
				intPromoID = setTimeout('uberPromo()', 10000);
			} else if (state == "fade") {
				fader();
				state = "display";
				intPromoID = setTimeout('uberPromo()', 2000);
			}
	}
 function uberLink() {
		uberUrl = eval("url"+promoNum);
		if (uberUrl != "") {
			window.location = uberUrl;
		}
	}
// Hide/Show Layer Scripts for Shows Div
function getLayer(id) {        
   	if (browser == "IE" || browser == "OP")
   		return document.all[id];
	else if (browser == "NN4")
		return document.layers[id];
	else
		return document.getElementById(id);
}
function showLayer(id) {        
   var get = getLayer(id)
   if (get != null)          
     	if (browser != "NN4")
         	get.style.visibility = "visible";
      	else
         	get.visibility = "show";
}
function hideLayer(id) {
	var get = getLayer(id)        
	if (get != null)        
      if (browser != "NN4")
         get.style.visibility = "hidden";
      else
         get.visibility = "hide";
}

		promoNum = 1;
		promoElements = 7;
		text1 = "\"There are two tangible symbols of selfless sacrifice.<br />&nbsp;&nbsp;There are two symbols representing the ultimate offer of one's life for others.<br />&nbsp;&nbsp;One of those symbols is the Cross of Christ and the other is ...<br />&nbsp;&nbsp; the Congressional Medal of Honor.\"<br />";
		author1 = "&nbsp;&nbsp;- Paul Harvey";
		text2 = "\"Their tales of courage, sacrifice and selflessness are so<br />&nbsp;&nbsp;inspiring they cannot help but to inspire us as Americans.\"<br />";
		author2 = "&nbsp;&nbsp;- Tom Brokaw";
		text3 = "\"What is it - something in the water out there in Pueblo...<br/ >&nbsp;&nbsp;all you guys turn out to be heroes.\"<br />";
		author3 = "&nbsp;&nbsp;- President Dwight D. Eisenhower<br />&nbsp;&nbsp;Jerry Murphy Medal Ceremony";
		text4 = "\"Any nation that does not honor its heroes will not long endure.\"<br />";
		author4 = "&nbsp;&nbsp;- President Abraham Lincoln";
		text5 = "\"This documentary pays tribute to our nation's finest heroes ...<br/ >&nbsp;&nbsp; for those who fought and almost died,<br />&nbsp;&nbsp; freedom has a taste that the protected will never know.\"<br />";
		author5 = "&nbsp;&nbsp;- Ross Perot";
		text6 = "\"I would trade my immortal soul for that medal.\"<br />";
		author6 = "&nbsp;&nbsp;- General George Patton";
        text7 =  "\"I would rather have the blue band of the Medal of Honor hung around my neck than be President of the United States\"";
        author7 = "&nbsp;&nbsp;- - President Harry S. Truman";
