
page = "";
icon = new Array();
navs = new Array();
sbar = new Array();
temp = new Array();

function init(CurPg)
{
   page = CurPg;

   nImg            = new Array();
   nImg["on"]      = "img/main_contactus_on.gif";
   nImg["off"]     = "img/main_contactus_off.gif";
   nImg["act"]     = "img/main_contactus_active.gif";
   navs["GetUs"]   = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_careers_on.gif";
   nImg["off"]     = "img/main_careers_off.gif";
   nImg["act"]     = "img/main_careers_active.gif";
   navs["Careers"]   = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_datestoremem_on.gif";
   nImg["off"]     = "img/main_datestoremem_off.gif";
   nImg["act"]     = "img/main_datestoremem_active.gif";
   navs["Dates2"]  = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_faq_on.gif";
   nImg["off"]     = "img/main_faq_off.gif";
   nImg["act"]     = "img/main_faq_active.gif";
   navs["FAQ"]     = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_financialcalc_on.gif";
   nImg["off"]     = "img/main_financialcalc_off.gif";
   nImg["act"]     = "img/main_financialcalc_active.gif";
   navs["FinCal"]  = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_home_on.gif";
   nImg["off"]     = "img/main_home_off.gif";
   nImg["act"]     = "img/main_home_active.gif";
   navs["HomePg"]  = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_news_on.gif";
   nImg["off"]     = "img/main_news_off.gif";
   nImg["act"]     = "img/main_news_active.gif";
   navs["News"]  = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_ourfirm_on.gif";
   nImg["off"]     = "img/main_ourfirm_off.gif";
   nImg["act"]     = "img/main_ourfirm_active.gif";
   navs["OurFirm"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_ourpeople_on.gif";
   nImg["off"]     = "img/main_ourpeople_off.gif";
   nImg["act"]     = "img/main_ourpeople_active.gif";
   navs["OurPeople"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_ournetwork_on.gif";
   nImg["off"]     = "img/main_ournetwork_off.gif";
   nImg["act"]     = "img/main_ournetwork_active.gif";
   navs["Netwk"]   = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_ourservices_on.gif";
   nImg["off"]     = "img/main_ourservices_off.gif";
   nImg["act"]     = "img/main_ourservices_active.gif";
   navs["OurServices"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_statetax_on.gif";
   nImg["off"]     = "img/main_statetax_off.gif";
   nImg["act"]     = "img/main_statetax_active.gif";
   navs["StateTax"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_refund_on.gif";
   nImg["off"]     = "img/main_refund_off.gif";
   nImg["act"]     = "img/main_refund_active.gif";
   navs["Refund"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_cartoon_on.gif";
   nImg["off"]     = "img/main_cartoon_off.gif";
   nImg["act"]     = "img/main_cartoon_active.gif";
   navs["Cartoon"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_glossary_on.gif";
   nImg["off"]     = "img/main_glossary_off.gif";
   nImg["act"]     = "img/main_glossary_active.gif";
   navs["Glossary"] = nImg;

   nImg            = new Array();
   nImg["on"]      = "img/main_pripol_on.gif";
   nImg["off"]     = "img/main_pripol_off.gif";
   nImg["act"]     = "img/main_pripol_active.gif";
   navs["PriPol"]  = nImg;

  // icon["Dates2"]  = "img/icon_datestoremem.gif";
  // icon["FAQ"]     = "img/icon_faqs.gif";
  // icon["FinCal"]  = "img/icon_calculator.gif";
 //  icon["GetUs"]   = "img/icon_contactus.gif";
 //  icon["HomePg"]  = "img/icon_home.gif";
 //  icon["LearnC"]  = "img/icon_learningcenter.gif";
 //  icon["Netwk"]   = "img/icon_ournetwork.gif";
//   icon["OurFirm"] = "img/icon_ourfirm.gif";
 ///  icon["PriPol"]  = "img/icon_privacy.gif";
 //  icon["Service"] = "img/icon_ourservices.gif";

   sbar["Careets"]  = "Find out about careers at our firm.";
   sbar["Dates2"]  = "Reminds you of important tax and financial deadlines.";
   sbar["FAQ"]     = "Provides answers to questions most commonly asked by our clients.";
   sbar["FinCal"]  = "Perform important calculations, including mortgage payments and retirement needs.";
   sbar["GetUs"]   = "Lists our contact information.";
   sbar["HomePg"]  = "Visit our home page.";
   sbar["News"]  = "The latest tax, financial, technology and general business news.";
   sbar["Netwk"]   = "Lists recommended organizations and services.";
   sbar["OurFirm"] = "Highlights our people, history, credentials and areas of specialization.";
   sbar["PriPol"]  = "Outlines our promise to keep your information safe and secure.";
   sbar["OurServices"] = "Describes the major types of services we provide.";
   sbar["StateTax"] = "Provides a list of state tax links.";
   sbar["Refund"] = "Provides Links for federal and state income tax refund tracking.";
   sbar["Glossary"] = "Provides a glossary of financial terms.";
   sbar["Cartoon"] = "Shows a business cartoon of the month.";

   sbar["TaxNews"] = "Highlights recent developments in tax and finance.";
   sbar["BusNews"] = "Provides information on a wide variety of business topics.";
   sbar["InvNews"] = "Provides timely information on the stock market.";
   sbar["FinPlan"] = "Highlights important considerations in planning a secure financial future.";
   
   sbar["Nasda"] = "Stocks and Reuters business news and summarys.";
    sbar["Weath"] = "Local and national weather reports.";
   sbar["News"] = "National and International news as it happens.";

  // document.images.icon.src = icon[CurPg];

   temp = navs[page]

   document.images[page].src = temp["act"];
}

function toggle(name,state,altb)
{
var und;

   nObj = parent.frames["nBar"];
   nDoc = parent.frames["nBar"].document;

   temp = nObj.navs[name];
   curP = nObj.page;

  // nDoc.images.icon.src  = (state == 'on') ? nObj.icon[name] : nObj.icon[curP];
   if (curP == name) { state = 'act'; }
   nDoc.images[name].src = temp[state];

   barT = (altb === und) ? nObj.sbar[name] : nObj.sbar[altb];

   window.status = (state != 'off') ? barT : '';
}

function flip(name)
{
//   if (name != "FinCal")
//   {
      nObj = parent.frames["nBar"];
      temp = nObj.page;

      nObj.page = name;

      toggle(temp,"off");

      toggle(nObj.page,"on");
//   }
//   else
//   {  win = open("http://www.dynamicontent.com/calcs.asp","FinCalWin","width=600,height=600,scrollbar2=yes,resizable=yes");
//
//      toggle(name,"off");
//   }
}

function update()
{ 
   nObj = parent.frames["nBar"];

   toggle(nObj.page,"on");
}

function setNav(name)
{
   //window.captureEvents(Event.RESIZE); 
   window.onresize=update; 

   nObj = parent.frames["nBar"];

   temp = nObj.page;
   nObj.page = name;

   toggle(temp,"off");
   toggle(nObj.page,"on");
}

function nop()
{
   // nop - No operation
}
