/* Copyright © 2001 - Guidesign, LLC - This Javascript is intellectual property of Guidesign, LLC and may be used only by Guidesign, LLC clients and for their own use in their own websites - All Rights Reserved */

loadstatus = 'initial';
oldiey = 0;
if (navigator.appVersion.substring(0,1) > 4 && document.getElementsByTagName("*")) document.all = document.getElementsByTagName("*");
ieversion = navigator.userAgent.indexOf("MSIE");
if (ieversion != -1) ieversion = navigator.userAgent.substring(ieversion+5,ieversion+6);

function positlogo()
 {
 iey = window.right.document.images["holdspace"].offsetTop;
 if (oldiey != iey)
  {
  oldiey = iey;
  if (iey < 300)
   {
   window.right.document.all.logo.style.visibility = "hidden";
   window.ttop.document.all.toplogo.style.visibility = "visible";
   }
  else
   {
   window.right.document.all.logo.style.top = iey-68;
   window.right.document.all.logo.style.visibility = "visible";
   window.ttop.document.all.toplogo.style.visibility = "hidden";
   }
  }
 }

function ninit()
 {
 window.onresize = checkframes;
 if (navigator.appVersion.substr(0,1) < '5') checkframes();
 current = 'nav'+window.docnum;
 switcher(window.docnum);
 }

function minit()
 {
 positlogo();
 current = 'nav'+window.docnum;
 switcher(window.docnum);
 if (ieversion < 5) window.onresize = reloadit; else window.onresize = positlogo;
 }

function reloadit()
 {
 window.history.go(0);
 }

function checkframes()
 {
 if (navigator.appVersion.substr(0,1) < '5')
  {
  currheight = window.innerHeight;
  if (" 582 521 474 429 400 372 343 322 304 282".indexOf(" "+currheight) == -1)
   {
   if (currheight > 582) currheight = 582; else
   if (currheight > 521) currheight = 521; else
   if (currheight > 474) currheight = 474; else
   if (currheight > 429) currheight = 429; else
   if (currheight > 400) currheight = 400; else
   if (currheight > 372) currheight = 372; else
   if (currheight > 343) currheight = 343; else
   if (currheight > 322) currheight = 322; else
   if (currheight > 304) currheight = 304; else currheight = 282;
   window.innerHeight = currheight;
   window.history.go(0);
   }
  }
 else window.history.go(0);
 }

function doitnow()
 {
 if (navigator.appName == 'Netscape') ninit(); else minit();
 loadstatus = 'subsequent';
 }

function switcher(navname)
 {
 eval('next = "nav'+navname+'"');
 eval('window.right.'+current+'l.src = "./images/'+current+'l.gif"');
 if ((navigator.appName == 'Netscape') && (navigator.appVersion.substring(0,1) < 5) && (loadstatus == 'initial')) eval('window.right.'+next+'l.src = "./site~/images/'+next+'h.gif"');
 else eval('window.right.'+next+'l.src = "./images/'+next+'h.gif"');
 eval('window.right.document.'+current+'.src = window.right.'+current+'l.src');
 eval('window.right.document.'+next+'.src = window.right.'+next+'l.src');
 current = next;
 if (navigator.appName == 'Netscape')
  {
  if (navigator.appVersion.substr(0,1) > '4')
   {
   positlogo();
   }
  else
   {
   nsy = window.right.document.images["holdspace"].y;
   if (nsy < 360)
    {
    window.right.document.layers.logo.visibility = "hidden";
    top.ttop.document.layers.toplogo.visibility = "visible";
    }
   else
    {
    window.right.document.layers.logo.top = nsy-90;
    window.right.document.layers.logo.visibility = "visible";
    top.ttop.document.layers.toplogo.visibility = "hidden";
    }
   }
  }
 }

content = 'main.htm';
caller = "'"+self.location+"'";
if ((navigator.appVersion.substring(0,1) < 5) && (navigator.appName == 'Netscape'))
 {
 ht = 47;
 righty = 'rightnets4';
 }
else
 {
 ht = 47;
 righty = 'right';
 }

if (caller.indexOf('?') != -1)
 {
 content = caller.substring(caller.indexOf('?')+1,caller.length-1);
 }
document.write('',
 '<frameset rows="10,*,6" onLoad="doitnow()"  border="0"        frameborder="0"           framespacing="0">',
 '  <frame src="./site~/black.htm"            name="xtop"       noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '  <frameset cols="608,178,*"     border="0" frameborder="0"   framespacing="0">',
 '    <frameset rows="57,*,'+ht+'" border="0" frameborder="0"   framespacing="0">',
 '      <frame src="./site~/top.htm"          name="ttop"       noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '      <frameset cols="23,585"   border="0"  frameborder="0"   framespacing="0">',
 '        <frame src="./site~/left.htm"       name="left"       noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '        <frameset rows="*,7"    border="0"  frameborder="0"   framespacing="0">',
 '          <frame src="./site~/'+content+'"  name="body"       noresize scrolling="auto" frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '          <frame src="./site~/white.htm"    name="mbot"       noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '        </frameset>',
 '      </frameset>',
 '      <frame src="./site~/bottom.htm"       name="bot"        noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '    </frameset>',
 '    <frame src="./site~/'+righty+'.htm"     name="right"      noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '    <frame src="./site~/black.htm"          name="rright"     noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '  </frameset>',
 '  <frame src="./site~/black.htm"            name="xbot"       noresize scrolling="no"   frameborder="0" framespacing="0" marginwidth="0" marginheight="0">',
 '</frameset>');

