if (window.location.protocol == "https:") {
  serverroot = 'https://secure.nevrona.com';
} else {
  serverroot = 'http://www.nevrona.com';
}

var sidebarnum = 1;
var sidebaridx = Math.floor(Math.random() * sidebarnum);
var sidebarlink = new Array (sidebarnum)
var sidebarimg = new Array (sidebarnum)

sidebarlink[0] = '<a href="http://www.nevrona.com/lists">'
sidebarimg[0]  = '<img src="' + serverroot + '/frame/ann_lists.gif" width=100 height=100 border=0 alt="Announcement Lists">'

sidebarlink[1] = '<a href="http://www.nevrona.com/rave/download.html">'
sidebarimg[1]  = '<img src="' + serverroot + '/frame/SidebarRave4Demo.gif" width=100 height=100 border=0 alt="Rave 4.0 Demo Available">'

sidebarlink[2] = '<a href="http://www.nevrona.com/news/index.html#newfax">'
sidebarimg[2]  = '<img src="' + serverroot + '/frame/newfaxbutton.gif" width=100 height=100 border=0 alt="New Fax: 480.491.3376">'


var profilenum = 3;
var profileidx = Math.floor(Math.random() * profilenum);
var profiletext = new Array (profilenum)
var profilelink = new Array (profilenum)
var profileimg = new Array (profilenum)

profiletext[0] = "When <b>Bank One</b> went looking for a specialized database solution they "
profiletext[0] = profiletext[0] + "went to database guru Mack G. McLendon of Phoenix, Arizona. And when Mack went "
profiletext[0] = profiletext[0] + "looking for a report-writing tool he went to Nevrona Designs, creator of "
profiletext[0] = profiletext[0] + "ReportPrinter Pro now known as RAVE 4.0.<BR> "
profilelink[0] = "<a href='corporate/casestudies/mgmdata/'>"
profileimg[0]  = "<img src='frame/mgm.jpg' width=97 height=140 border=0 alt='Mack G. McLendon - MGM Data Systems'>"

profiletext[1] = "When <b>Bank One</b> went looking for a specialized database solution they "
profiletext[1] = profiletext[1] + "went to database guru Mack G. McLendon of Phoenix, Arizona. And when Mack went "
profiletext[1] = profiletext[1] + "looking for a report-writing tool he went to Nevrona Designs, creator of "
profiletext[1] = profiletext[1] + "ReportPrinter Pro now known as RAVE 4.0.<BR> "
profilelink[1] = "<a href='corporate/casestudies/mgmdata/'>"
profileimg[1]  = "<img src='frame/mgm.jpg' width=97 height=140 border=0 alt='Mack G. McLendon - MGM Data Systems'>"

profiletext[2] = "When <b>Bank One</b> went looking for a specialized database solution they "
profiletext[2] = profiletext[2] + "went to database guru Mack G. McLendon of Phoenix, Arizona. And when Mack went "
profiletext[2] = profiletext[2] + "looking for a report-writing tool he went to Nevrona Designs, creator of "
profiletext[2] = profiletext[2] + "ReportPrinter Pro now known as RAVE 4.0.<BR> "
profilelink[2] = "<a href='corporate/casestudies/mgmdata/'>"
profileimg[2]  = "<img src='frame/mgm.jpg' width=97 height=140 border=0 alt='Mack G. McLendon - MGM Data Systems'>"

function NavHead(Item,URL) {
  if (URL != '') {
    return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif"><a href="' + URL + '" class="dsnavhead"><b>' + Item + '</b></a></td></tr>';
  } else {
    return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif" class="dsnavhead"><b>&nbsp;' + Item + '</b></td></tr>';
  }
}

function NavSubHead(Item,URL) {
  return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif"><a href="' + URL + '" class="dsnavsubhead"><b>' + Item + '</b></a></td></tr>';
}

function NavItem(Item,URL) {
  if (URL != '') {
    return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif"><a href="' + URL + '" class="dsnavitem"><b>&nbsp;' + Item + '</b></a></td></tr>';
  } else {
    return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif" class="dsnavitem"><b>&nbsp;' + Item + '</b></td></tr>';
  }
}

function NavSpacer() {
  return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif">&nbsp;</td></tr>';
}

function NavImg(Image, ImgWidth, ImgHeight, URL) {
  return '<tr><td width="150" background="' + serverroot + '/frame/trans.gif" >&nbsp;<a href="' + URL + '"><img src="' + Image + '" width="' + ImgWidth + '" height="' + ImgHeight + '" border="0" ></a></td></tr>';
}

function NavMenu(Body) {
  return '<table valign="top" width="80%" border="0" cellspacing="4" cellpadding="0">' + Body + '</table>' +
   '&nbsp;&nbsp;&nbsp;' + sidebarlink[sidebaridx] + sidebarimg[sidebaridx] + '</a>';
}

function getParam(url, param) {
  var pos = url.indexOf('?' + param + '=');
  if (pos == -1) {
    pos = url.indexOf('&' + param + '=');
  }
  var result = '';
  if (pos != -1) {
    pos += param.length + 1;
    while (++pos < url.length) {
      if (url.substr(pos,1) != '&') {
        result = result + url.substr(pos,1);
      } else {
        break;
      }
    }
  }
  return result;
}

function setmmref() {
  var param = getParam(window.location.search,'mmref');
  if (param != '') {
    var expires = new Date();
    expires.setTime(expires.getTime() + 1000*60*60*24*365);
    document.cookie = 'mmref=' + escape(param) + '; expires=' + expires.toGMTString() +
     '; domain=nevrona.com; path=/';
  }
}

function getCookie(Name) {
  var search = Name + "=";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search);
    if (offset != -1) {
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) {
        end = document.cookie.length;
      }
      return unescape(document.cookie.substring(offset, end));
    }
  }
}

function gotommref(text) {
  var mmref = getCookie('mmref');
  var href = 'https://secure.nevrona.com/miramail/signup.html';
  switch (mmref) {
    case "fastq":
      break;
    case "quik_azob":
      break;
  }
  document.writeln('<a href="' + href + '">' + text + '</a>');
}

function printTopFrame(navMenu) {
  document.writeln('<!-- Logo -->');
  document.writeln('  <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
  document.writeln('        <td width="150">');
  document.writeln('          <table border="0" cellspacing="10" cellpadding="0"><tr><td valign="top">');
  document.writeln('          <a href="http://www.nevrona.com"><img src="/frame/ndlogoheader.jpg" width="225" height="65" border="0" alt="" align="top"></a>');
  document.writeln('          </td></tr></table>');
  document.writeln('    </td>');
  document.writeln('        <td width="200" background="/frame/headerback.jpg">');
  document.writeln('      <img src="/frame/trans.gif" width="200" height="4" border="0" alt="">');
  document.writeln('    </td>');
  document.writeln('    <td width="100%" background="/frame/headerback.gif">');
  document.writeln('          <table width="10" border="0" cellspacing="0" cellpadding="0"><tr><td>&nbsp;');
  document.writeln('          </td></tr></table>');
  document.writeln('        </td>');
  document.writeln('  </tr></table>');
  document.writeln('');
  document.writeln('<!-- Menu bar -->');
  document.writeln('  <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
  document.writeln('    <td width="100%" valign="top" background="/frame/menuback.gif">');
  document.writeln('          <table border="0" cellspacing="0" cellpadding="0" align="right"><tr>');
  document.writeln('        <td height="19" valign="top" background="/frame/menuback.gif">');
  document.writeln('          <span class="mnu">');
  document.writeln('          <a href="http://www.nevrona.com/index.html" class="mnu">&nbsp;HOME&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="http://www.nevrona.com/news/index.html" CLASS="mnu">&nbsp;NEWS&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="http://www.nevrona.com/products/index.html" CLASS="mnu">&nbsp;PRODUCTS&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="http://www.nevrona.com/support/index.html" CLASS="mnu">&nbsp;SUPPORT&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="https://secure.nevrona.com/order/index.html" CLASS="mnu">&nbsp;ORDER&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="http://www.nevrona.com/corporate/index.html" CLASS="mnu">&nbsp;CORPORATE&nbsp;&nbsp;</a>|');
  document.writeln('              <a href="http://www.nevrona.com/search.html" CLASS="mnu">&nbsp;SEARCH&nbsp;&nbsp;</a>');
  document.writeln('          </span>');
  document.writeln('                </td>');
  document.writeln('          </tr></table>');
  document.writeln('        </td>');
  document.writeln('  </tr></table>');
  document.writeln('');
  document.writeln('<!-- Navigation and content -->');
  document.writeln('  <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
  document.writeln('    <td valign="top" width="150" background="/frame/navback.gif">');
  document.writeln('      <img src="/frame/trans.gif" width="150" height="4" border="0" alt="">');
  document.writeln(navMenu);
  document.writeln('    </td>');
  document.writeln('        <td width="10"><img src="/frame/trans.gif" width="10" height="4" border="0" alt=""></td>');
  document.writeln('    <td width="100%">');
  document.writeln('      <table border="0" cellspacing="0" cellpadding="2">');
  document.writeln('        <tr><td>&nbsp;</td></tr>');
  document.writeln('        <tr><td>');
}

function printBottomFrame() {
  document.writeln('        </td></tr>');
  document.writeln('        <tr><td>&nbsp;</td></tr>');
  document.writeln('      </table>');
  document.writeln('    </td>');
  document.writeln('        <td width="10"><img src="/frame/trans.gif" width="10" height="4" border="0" alt=""></td>');
  document.writeln('  </tr></table>');
  document.writeln('');
  document.writeln('  <hr>');
  document.writeln('');
  document.writeln('  <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>');
  document.writeln('    <p class="PageFooter">For questions or comments contact');
  document.writeln('    <a href="mailto:webmaster@nevrona.com">webmaster@nevrona.com</a>');
  document.writeln('    - Copyright © 1995-2005 Nevrona Designs<br><br>');
  document.writeln('  </td></tr></table>');
}