/* Detected Flash Functions */
var requiredFlashVersion = 6

function fWriteFlash(strPageRoot, strSection, strSection2, strImage, strText) {
	var strExtra = "";
	strFlash = "ms_" + strSection + ".swf";
	if (strSection2) {
		if (strSection2.length > 0) {
			strFlash = "ms_tier.swf?sRoot=" + escape(strPageRoot) + "&sURL=" + escape(strImage) + "&sText=" + escape(strText);
		}
		//alert(strFlash);
	}
	document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"780\"><tr><td>");
	document.writeln("<td><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" name=\"objflashtop\" id=\"objflashtop\" width=\"860\" height=\"142\">");
	document.writeln("<param name=\"movie\" value=\"" + strPageRoot + "\/flash\/" + strFlash + "\"><param name=\"loop\" value=\"true\"><param name=\"quality\" value=\"high\">");
	document.writeln("<param name=\"menu\" value=\"false\"><param name=\"bgcolor\" value=\"#ffffff\">");
	document.writeln("<embed name=\"objflashtop\" id=\"objflashtop\" src=\"" + strPageRoot + "\/flash\/" + strFlash + "\" width=\"860\" height=\"142\" loop=\"true\" quality=\"high\" ");
	document.writeln("menu=\"false\" bgcolor=\"#ffffff\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?p1_prod_version=shockwaveflash\"><\/embed>");
	document.writeln("<\/object>");
	document.writeln("<\/td><\/tr><\/table>");
}

/* pop-up 760 x 600 */
function popOpen(strURL) {
  var win = window.open(strURL,"Mohegan","width=760,height=600,scrollbars=0,location=0,menubar=0,resizable=0");
  win.focus();
  return false;
}

/* pop-up takes url to open, height and width */
function popUpPage(url,w,h,scroll) {
 if (scroll == null){
   scroll = 0;
 }
  var win = window.open(url,"Mohegan","width="+w+",height="+h+",scrollbars="+scroll+",location=0,menubar=0,resizable=0");
  win.focus();
  return false;
}

/* quick and easy toggle script */
/* Use like this: href="javascript:toggle('idOfDivToBeToggled');" */
function toggle(divID) {
		document.getElementById(divID).style.display = (document.getElementById(divID).style.display=='none'?'block':"none");
}

