var browserVer=0;
var scriptflag=true;

if (navigator.appName.indexOf("Netscape")!=-1)
{
	temp=navigator.userAgent.split("Netscape6/");
	browserVer=parseFloat(temp[1]);
	
	if (!(document.getElementById&&!document.all) || (browserVer <= 6.02))	/* Executes only if the browser is below ns6.1 */
			scriptflag=false;
}

if (window.opera) {
       if ((i = navigator.userAgent.indexOf("Opera")) >= 0) {
          ver = parseFloat(navigator.userAgent.substr(i + "Opera".length));
          scriptflag=false;
          if (ver == 7.52 || ver >= 7.54)  scriptflag=true; 
       } 
} else {
	/* Executes only if the opera browser is not detected */
	/* This check is required as some opera browsers are detected as ie */
	if (navigator.appVersion.indexOf("MSIE")!=-1)
	{
		temp=navigator.appVersion.split("MSIE");
		browserVer=parseFloat(temp[1]);
		if (browserVer < 5.5) { 
                  if (!window.attachEvent) {
		    i = navigator.userAgent.indexOf("MSIE");
		    ver = parseFloat(navigator.userAgent.substr(i + "MSIE".length));
 		    if( ver >= 5.21) scriptflag=true; 
		    else
			scriptflag = false;
                  } else {
		    scriptflag=false;
                  }
                }
	} else if (navigator.userAgent.indexOf("Safari") != -1) scriptflag=false; 
}

function alternate_menu(menu_id,css_class) {//for non supported browsers
eval("cdd_menu"+menu_id+"()");
var strHtml="<table border='0' cellpadding='0' cellspacing='0'"
if (menu_id ==0){strHtml +="><tr valign='middle' height='22'>";var p=0;var strTmp;
while((strTmp=eval("this.item"+p))!= null){if(typeof(strTmp)=="undefined")break;
strHtml+="<td nowrap><A class='item"+(p?"":"highlight")+"'HREF='"+eval("this.url"+p)+"'>"+strTmp+"</A></td><td class=" + css_class + " nowrap><img src='/images/clear.gif'></td>";
p++;}}else{strHtml+="width='100%' class='viewaccountsbg'><tr><td nowrap></td><td class='menugif' border='0' nowrap></td><td nowrap><A class='"+css_class+"' HREF='"+eval("this.url0")+"'> "+eval("this.item0")+"</A></td>";}
document.write(strHtml +"</tr></table>");}

/* Copyright & Base Path Settings */
cdd__notice='';

cdd__codebase='/includes/';	/* location of script files */
cdd__codebaseimages='/images/';	/* location of script files */
cdd__database='';	/* location of data - settings files */

/* global settings (applies to all menus) */
cdd__activate_onclick = false;			/* Choose between click or mouse over menu functionality */
cdd__showhide_delay = 0;			/* Defined in milliseconds */
cdd__url_target = "_self";			/* Default target - use: _self, _top, _blank, _parent, (frame name) */
cdd__url_features = "";				/* Sample: "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no" */
cdd__display_urls_in_status_bar = true;
cdd__default_statusbar_text = "";
/* unlock statements for Opencube software */
um0http = 1;
/* Web Menu Code (Warning: Do Not Alter!) */
var b_type="";
if (window.showHelp){b_type = "ie"; if (!window.attachEvent) b_type += "mac";}if (document.createElementNS) b_type = "dom";if (window.opera) b_type = "opera"; qmap1 = "\<\script language=\"JavaScript1.2\" src=\""; qmap2 = ".js\"\>\<\/script\>";
if (scriptflag)
{
document.write(qmap1+cdd__codebase+"cbrowser_"+b_type+qmap2);document.close();
}

function SignIn()
{
alert("Please Sign Into Your Account.\n\nRedirecting You to Subscriber Only Login Now.");
window.location="/service.asp";
}

function SignInGoTo(varlocation,msg1)
{
alert("In order to " + msg1 + ", please sign into your account.\n\nRedirecting you to subscriber only login now.\n\nOnce signed into your account, you will be redirected back to " + msg1 + ".");
window.location=varlocation;
}

function PayDue()
{
alert("You must pay for your subscription\nor sign into your active account before\nbeing able to view the Digital Edition.");
window.location="/service.asp";
}