/****************************************************************************************/
/*																						*/
/*	Accordent Link Menu v1.00															*/
/*	=========================															*/
/*																						*/
/*	Last Edited: 9/2/2005																*/
/*	Please send all comments & bug reports to: John Malick <jmalick@accordent.com>		*/
/*																						*/
/****************************************************************************************/
	

function isBrowserIeWin() {
	var iewin = false;
	var ua = navigator.userAgent.toLowerCase();
	if ((ua.indexOf('ie') > -1) & (ua.indexOf('win') > -1))
		iewin = true;
	return iewin;
}

function MenuCheck() {
	var onDemand = 'visible';
	var P25 = false;
	var plugin = navigator.mimeTypes && navigator.mimeTypes["application/x-ms-wmp"];
	var FFcheck = navigator.userAgent.indexOf("Firefox");
	if (plugin && FFcheck != -1)
		P25 = true;
		
	try{
		if ((!isBrowserIeWin() && P25 != true) || onDemand != 'visible')	// hide chapters from non-windows os and non-ie browsers
			document.getElementById('chapters').innerHTML = '';
		
		if (onDemand == 'visible') {
			var emailHtml = '';
			var emailTo = 'options@theocc.com';
			var chkNoTag = emailTo.indexOf("<@");
			if (emailTo != '' & chkNoTag < 0)	// email address
				var ty4 = "Options Symbology Initiative";
				var ty4a = escape(ty4);
				emailHtml = '&nbsp;|&nbsp;<a href=\"mailto:' + emailTo + '?subject=' + ty4a + '\" id=\"whiteLink\">Email</a>';
			document.getElementById('email').innerHTML = emailHtml;
		}
		
		var dlVar = 'Yes';
		var downloadFile = dlVar.toLowerCase();
		if (downloadFile != 'yes')
			document.getElementById('download').style.display = 'none';
	} catch(e) {}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Lvl_openWin(u,n,w,h,l,t,c,f) {
  var x=((screen.width-w)/2);if(c==1){l=x;t=(screen.height-h)/2;}if(c==2){l=x}
	f+=',top='+t+',left='+l;LvlWin=window.open(u,n,f);LvlWin.focus();
}



