<!--
// declare global window flag and function for checking its value--
// this is to ensure that all frames are syncronized if the back button
// is clicked
// boolHome,boolAbout,boolProd,boolHHRS,boolSQL,boolHRMS,boolHESS,boolHMSS,boolImp,boolNews,boolPart,boolCon,boolFeat,boolPrice,page

var NavAndTop = "home";  //initialize to 'home' for site entry

function syncPages(mainPage){
  if(mainPage!=NavAndTop){
    switch(mainPage){
	case "home":
 	  buildNav(true,false,false,false,false,false,false,false,false,false,false,false,false,false,'home');
	break;
	case "about":
	  buildNav(false,true,false,false,false,false,false,false,false,false,false,false,false,false,'about');
	break;
	case "products":
	  buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products');
	break;
	case "hhrs":
	  buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products');
	break;
	case "sqlpoint":
	  buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,false,'sqlpoint');
	break;
	case "sqlfeatures":
	  buildNav(false,false,true,true,true,false,false,false,false,false,false,false,true,false,'sqlfeatures');
	break;
	case "sqlpricing":
	  buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,true,'sqlpricing');
	break;
	case "hrms":
	  buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,false,'hrms');
	break;
	case "hrmsfeatures":
	  buildNav(false,false,true,true,false,true,false,false,false,false,false,false,true,false,'hrmsfeatures');
	break;
	case "hrmspricing":
	  buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,true,'hrmspricing');
	break;
	case "hess":
	  buildNav(false,false,true,true,false,false,true,false,false,false,false,false,false,false,'hess');
	break;
	case "hmss":
	  buildNav(false,false,true,true,false,false,false,true,false,false,false,false,false,false,'hmss');
	break;
	case "implementation":
	  buildNav(false,false,true,false,false,false,false,false,true,false,false,false,false,false,'implementation');
	break;
	case "news":
	  buildNav(false,false,false,false,false,false,false,false,false,true,false,false,false,false,'news');
	break;
	case "partners":
	  buildNav(false,false,false,false,false,false,false,false,false,false,true,false,false,false,'partners');
	break;
	case "contact":
	    buildNav(false,false,false,false,false,false,false,false,false,false,false,true,false,false,'contact');
	break;
    }
  }
}

// define navImage so navigation is redrawn without call to server

function navImage(name, closed, open, altText, wide, high)
{
	this.name = name;
	this.closed = closed;
	this.open = open;
	this.altText = altText;
	this.wide = wide;
	this.high = high;
	this.inputImage = inputImage;  //inputImage function is now a method of navImage

}

// new navImage objects

logo = new navImage("delphic","Graphics/logo.gif","Graphics/logo.gif","Delphic Software",236,82);
topfade = new navImage("topfade","Graphics/topfade.gif","Graphics/topfade.gif","Delphic Software",134,20);
home = new navImage("home","Graphics/nav-home-closed.gif","Graphics/nav-home-open.gif","Home",160,17);
about = new navImage("about","Graphics/nav-about-closed.gif","Graphics/nav-about-open.gif","About Us",160,17);
products = new navImage("products","Graphics/nav-products-closed.gif","Graphics/nav-products-open.gif","Products and Services",160,17);
hhrs = new navImage("hhrs","Graphics/nav-HHRS-closed.gif","Graphics/nav-HHRS-open.gif","Humanic Human Resource Suite",160,17);
sqlpoint = new navImage("sqlpoint","Graphics/nav-SQL-closed.gif","Graphics/nav-SQL-open.gif","SQL*POINT Payroll",160,17);
sqlfeatures = new navImage("sqlfeatures","Graphics/nav-features-closed.gif","Graphics/nav-features-open.gif","Features and Functionality",160,17);
sqlpricing = new navImage("sqlpricing","Graphics/nav-pricing-closed.gif","Graphics/nav-pricing-open.gif","Pricing",160,17);
hrms = new navImage("hrms","Graphics/nav-HumanicHRMS-closed.gif","Graphics/nav-HumanicHRMS-open.gif","Humanic HRMS",160,17);
hrmsfeatures = new navImage("hrmsfeatures","Graphics/nav-features-closed.gif","Graphics/nav-features-open.gif","Features and Functionality",160,17);
hrmspricing = new navImage("hrmspricing","Graphics/nav-pricing-closed.gif","Graphics/nav-pricing-open.gif","Pricing",160,17);
hess = new navImage("hess","Graphics/nav-HumanicEmpSS-closed.gif","Graphics/nav-HumanicEmpSS-open.gif","Humanic Employee Self Service",160,17);
hmss = new navImage("hmss","Graphics/nav-HumanicManSS-closed.gif","Graphics/nav-HumanicManSS-open.gif","Humanic Manager Self Service",160,17);
implementation = new navImage("implementation","Graphics/nav-implementation-closed.gif","Graphics/nav-implementation-open.gif","Implementation and Training",160,17);
news = new navImage("news","Graphics/nav-news-closed.gif","Graphics/nav-news-open.gif","News and Events",160,17);
partners = new navImage("partners","Graphics/nav-partners-closed.gif","Graphics/nav-partners-open.gif","Our Partners",160,17);
contact = new navImage("contact","Graphics/nav-contact-closed.gif","Graphics/nav-contact-open.gif","Contact Us",160,17);

// inputImage function for navImage method- returns the correct image corresponding to
// the page showing in mainFrame
 
function inputImage(boolVal)
{
  if(boolVal){
    source = this.open;
  }else{
    source = this.closed;
  }
  if(this.name != "topfade"){
  imgSrc = "<img src='" + source + "' width='" + this.wide + "' height='" + this.high + "' name='" + this.name + "' border='0' alt='" + this.altText + "'>";
  }else{
  imgSrc = "<img src='" + source + "' width='" + this.wide + "' name='" + this.name + "' border='0' alt='" + this.altText + "'>";
  }
  return imgSrc;
}

//function changeTop updates the page indexing for clearer navigation

function changeTop(whichPages)
{
   topNav = "<html>\n";
   topNav += "<head>\n";
   topNav += "<style type='text/css'>\n";
   topNav += "<!--\n";
   topNav += ".WhiteLinks {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; font-weight: bold; color: #FFFFFF; text-decoration: none}\n";
   topNav += "-->\n";
   topNav += "</style>\n";
   topNav += "</head>\n";
   topNav += "<body bgcolor='#FFFFFF' link='#FFFFFF' vlink='#FFFFFF' alink='#FF0000' leftmargin=0 topmargin=0 marginwidth='0' marginheight='0'>\n";
   topNav += "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='left'>\n";
   topNav += "  <tr>\n"; 
   topNav += "	   <td width='100%'>" + logo.inputImage(true) + "</td>\n";
   topNav += "  </tr>\n";
   topNav += "  <tr bgcolor='#661b2d' valign='top' align='left'>\n";
   topNav += "	   <td width='100%' height='30' class='WhiteLinks'>\n"; 
   topNav += "	     <table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
   topNav += "		   <tr>\n";
   topNav += "		     <td>" + topfade.inputImage(true) + "</td>\n";
   topNav += "		     <td class='WhiteLinks' width='100%' align='left' valign='middle'>\n"; 
   topNav += "			   <div align='left'>" + whichPages + "</div>\n";
   topNav += "		     </td>\n";
   topNav += "		   </tr>\n";
   topNav += "	     </table>\n";
   topNav += "	   </td>\n";
   topNav += "  </tr>\n";
   topNav += "</table>\n";
   topNav += "</body>\n";
   topNav += "</html>\n";
   return topNav;

}

// return html for leftFrame

function buildNav(boolHome,boolAbout,boolProd,boolHHRS,boolSQL,boolHRMS,boolHESS,boolHMSS,boolImp,boolNews,boolPart,boolCon,boolFeat,boolPrice,page)
{
	NavAndTop = page;
 if(page == "home"){

    parent.topFrame.location = "initTop.htm";
    parent.leftFrame.location = "initLeft.htm";
    parent.mainFrame.location = "home.htm";

 }else{
 NavAndTop = page;
 pageOG = page;
   if(page == "sqlpricing"||page == "hrmspricing"){
	parent.mainFrame.location = "contact.htm";
   }else if(page){
	parent.mainFrame.location = page + ".htm";
   }
   navigation = "<html><head><title>Delphic Software</title>\n";
   navigation += "<meta http-equiv='content-type' content='text/html; charset=iso-8859-1'></head>\n";
   navigation += "<body MARGINWIDTH='0' MARGINHEIGHT='0' LEFTMARGIN='0' RIGHTMARGIN='0' TOPMARGIN='0' BOTTOMMARGIN='0' bgcolor='#FFFFFF'>\n";
   navigation += "<table width='160' border='0' cellspacing='0' cellpadding='0'>\n";

// home

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(true,false,false,false,false,false,false,false,false,false,false,false,false,false,'home')\" onMouseOver=\"window.status = 'Home';return true\">" + home.inputImage(boolHome) + "</a></td></tr>\n";
   if(boolHome){
	page = "Home";
   }

// about

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,true,false,false,false,false,false,false,false,false,false,false,false,false,'about')\" onMouseOver=\"window.status = 'About Delphic';return true\">" + about.inputImage(boolAbout) + "</a></td></tr>\n";
   if(boolAbout){
	page = "About Delphic";
   }

// products and services

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Products and Services';return true\">" + products.inputImage(boolProd) + "</a></td></tr>\n";
   if(boolProd){
	page = "Products and Services";

// hhrs

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">" + hhrs.inputImage(boolHHRS) + "</a></td></tr>\n";
   if(boolHHRS){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | Humanic Human Resources Suite";

// sql point

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,false,'sqlpoint')\" onMouseOver=\"window.status = 'SQL*POINT Payroll';return true\">" + sqlpoint.inputImage(boolSQL) + "</a></td></tr>\n";
   if(boolSQL){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
  	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | SQL*POINT Payroll";

// sql features

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,true,false,false,false,false,false,false,false,true,false,'sqlfeatures')\" onMouseOver=\"window.status = 'SQL Features';return true\">" + sqlfeatures.inputImage(boolFeat) + "</a></td></tr>\n";
   if(pageOG=="sqlfeatures"){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
  	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,false,'sqlpoint')\" onMouseOver=\"window.status = 'SQL*POINT Payroll';return true\">SQL*POINT</a>"
	page += " | Features";

   }// end sqlfeature if statement 

// sql pricing

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,true,'sqlpricing')\" onMouseOver=\"window.status = 'SQL Pricing';return true\">" + sqlpricing.inputImage(boolPrice) + "</a></td></tr>\n";
   if(pageOG=="sqlpricing"){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
  	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,true,false,false,false,false,false,false,false,false,false,'sqlpoint')\" onMouseOver=\"window.status = 'SQL*POINT Payroll';return true\">SQL*POINT</a>"
	page += " | Pricing";

   }// end sqlpricing if statement
 
   }//end boolSQL

// hrms

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,false,'hrms')\" onMouseOver=\"window.status = 'Humanic HRMS';return true\">" + hrms.inputImage(boolHRMS) + "</a></td></tr>\n";
   if(boolHRMS){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | Humanic HRMS";

// hrms features

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,true,false,false,false,false,false,false,true,false,'hrmsfeatures')\" onMouseOver=\"window.status = 'HRMS Features';return true\">" + hrmsfeatures.inputImage(boolFeat) + "</a></td></tr>\n";
   if(pageOG=="hrmsfeatures"){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,false,'hrms')\" onMouseOver=\"window.status = 'Humanic HRMS';return true\">Humanic HRMS</a>";
	page += " | Features";

   }// end hrmsfeatures if statement

// hrms pricing

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,true,'hrmspricing')\" onMouseOver=\"window.status = 'HRMS Pricing';return true\">" + hrmspricing.inputImage(boolPrice) + "</a></td></tr>\n";
   if(pageOG=="hrmspricing"){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,true,false,false,false,false,false,false,false,false,'hrms')\" onMouseOver=\"window.status = 'Humanic HRMS';return true\">Humanic HRMS</a>";
	page += " | Pricing";

   }// end hrmspricing if statement

   }//end boolHRMS

// hess

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,false,true,false,false,false,false,false,false,false,'hess')\" onMouseOver=\"window.status = 'Humanic Employee Self Service';return true\">" + hess.inputImage(boolHESS) + "</a></td></tr>\n";
   if(boolHESS){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
  	page += " | Humanic Employee Self Service";

   }// end boolHESS if statement

// hmss

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,true,false,false,false,false,false,false,'hmss')\" onMouseOver=\"window.status = 'Humanic Manager Self Service';return true\">" + hmss.inputImage(boolHMSS) + "</a></td></tr>\n";
   if(boolHMSS){
	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
 	page += " | <a href=\"javascript:parent.buildNav(false,false,true,true,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status = 'Humanic Human Resources Suite';return true\">Humanic Human Resources Suite</a>";
  	page += " | Humanic Manager Self Service";

   }// end boolHESS if statement

   }//end boolHHRS
  
// implementation

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,true,false,false,false,false,false,'implementation')\" onMouseOver=\"window.status = 'Implementation and Training';return true\">" + implementation.inputImage(boolImp) + "</a></td></tr>\n";
   if(boolImp){
	page = 	page = "<a href=\"javascript:parent.buildNav(false,false,true,false,false,false,false,false,false,false,false,false,false,false,'products')\" onMouseOver=\"window.status='Products and Services';return true\">Products and Services</a>";
	page += " | Implementation and Training";
   
   }// end boolImp if statement

}//end boolProd

// news

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,false,false,false,false,false,false,false,true,false,false,false,false,'news')\" onMouseOver=\"window.status = 'News and Events';return true\">" + news.inputImage(boolNews) + "</a></td></tr>\n";
   if(boolNews){
	page = "News and Events";

   }// end boolNews if statement

// partners

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,false,false,false,false,false,false,false,false,true,false,false,false,'partners')\" onMouseOver=\"window.status = 'Partners';return true\">" + partners.inputImage(boolPart) + "</a></td></tr>\n";
   if(boolPart){
	page = "Partners";

   }// end boolPart if statement  

// contact

   navigation += "<tr><td><a href=\"javascript:parent.buildNav(false,false,false,false,false,false,false,false,false,false,false,true,false,false,'contact')\" onMouseOver=\"window.status = 'Contact Us';return true\">" + contact.inputImage(boolCon) + "</a></td></tr>\n";
   if(boolCon){
	page = "Contact Us";

   }// end boolCon if statement

   navigation += "</table></body></html>";

  page = changeTop(page);
  parent.topFrame.document.write(page);
  parent.leftFrame.document.write(navigation);
  parent.topFrame.document.close();
  parent.leftFrame.document.close();
 }
}
//-->