h_firm = new Image();
h_firm.src = "http://www.ahtins.com/images/h_firm_r.gif";

h_practices = new Image();
h_practices.src = "http://www.ahtins.com/images/h_practices_r.gif";

h_programs = new Image();
h_programs.src = "http://www.ahtins.com/images/h_programs_r.gif";

h_news = new Image();
h_news.src = "http://www.ahtins.com/images/h_news_r.gif";

h_glossary = new Image();
h_glossary.src = "http://www.ahtins.com/images/h_glossary_r.gif";

h_contact = new Image();
h_contact.src = "http://www.ahtins.com/images/h_contact_r.gif";

h_resourcectr = new Image();
h_resourcectr.src = "http://www.ahtins.com/images/h_resourcectr_r.gif";

quote1 = new Image();
quote1.src = "http://www.ahtins.com/images/quote1_r.jpg";

quote2 = new Image();
quote2.src = "http://www.ahtins.com/images/quote2_r.jpg";

quote3 = new Image();
quote3.src = "http://www.ahtins.com/images/quote3_r.jpg";

quote4 = new Image();
quote4.src = "http://www.ahtins.com/images/quote4_r.jpg";

quote5 = new Image();
quote5.src = "http://www.ahtins.com/images/quote5_r.jpg";

quote6 = new Image();
quote6.src = "http://www.ahtins.com/images/quote6_r.jpg";

quote7 = new Image();
quote7.src = "http://www.ahtins.com/images/quote7_r.jpg";

quote8 = new Image();
quote8.src = "http://www.ahtins.com/images/quote8_r.jpg";

quote9 = new Image();
quote9.src = "http://www.ahtins.com/images/quote9_r.jpg";

//FUNCTION FOR DHTML ROLLOVERS
function MM_findObj(n, d) { //v3.0

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	
	if(!x && d.getElementById) x=d.getElementById(n); return x;

}

function MM_showHideLayers() { //v3.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }

    obj.visibility=v; }
}

//FUNCTION FOR ROTATING QUOTES
var content = new Array(
'<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="775"><TR><TD><IMG SRC="http://www.ahtins.com/images/h_logo.gif" WIDTH="175" HEIGHT="253" BORDER="0" ALT="AH&T logo"></TD><TD><A onmouseout="quote1.src = \'http://www.ahtins.com/images/quote1.jpg\'" onmouseover="quote1.src = \'http://www.ahtins.com/images/quote1_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote1.jpg" WIDTH="228" HEIGHT="253" BORDER="0" ALT="Creative Problem Solvers" NAME="quote1"></A></TD><TD><A onmouseout="quote2.src = \'http://www.ahtins.com/images/quote2.jpg\'" onmouseover="quote2.src = \'http://www.ahtins.com/images/quote2_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote2.jpg" WIDTH="187" HEIGHT="253" BORDER="0" ALT="Collaborative Partners" NAME="quote2"></A></TD><TD><A onmouseout="quote3.src = \'http://www.ahtins.com/images/quote3.jpg\'" onmouseover="quote3.src = \'http://www.ahtins.com/images/quote3_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote3.jpg" WIDTH="185" HEIGHT="253" BORDER="0" ALT="Reliable Stewards" NAME="quote3"></A></TD></TR></TABLE>',
'<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="775"><TR><TD><IMG SRC="http://www.ahtins.com/images/h_logo.gif" WIDTH="175" HEIGHT="253" BORDER="0" ALT="AH&T logo"></TD><TD><A onmouseout="quote4.src = \'http://www.ahtins.com/images/quote4.jpg\'" onmouseover="quote4.src = \'http://www.ahtins.com/images/quote4_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote4.jpg" WIDTH="228" HEIGHT="253" BORDER="0" ALT="Progressive Solution Providers" NAME="quote4"></A></TD><TD><A onmouseout="quote5.src = \'http://www.ahtins.com/images/quote5.jpg\'" onmouseover="quote5.src = \'http://www.ahtins.com/images/quote5_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote5.jpg" WIDTH="187" HEIGHT="253" BORDER="0" ALT="Specialty Experts" NAME="quote5"></A></TD><TD><A onmouseout="quote6.src = \'http://www.ahtins.com/images/quote6.jpg\'" onmouseover="quote6.src = \'http://www.ahtins.com/images/quote6_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote6.jpg" WIDTH="185" HEIGHT="253" BORDER="0" ALT="Dependable Advisors" NAME="quote6"></A></TD></TR></TABLE>',
'<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="775"><TR><TD><IMG SRC="http://www.ahtins.com/images/h_logo.gif" WIDTH="175" HEIGHT="253" BORDER="0" ALT="AH&T logo"></TD><TD><A onmouseout="quote7.src = \'http://www.ahtins.com/images/quote7.jpg\'" onmouseover="quote7.src = \'http://www.ahtins.com/images/quote7_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote7.jpg" WIDTH="228" HEIGHT="253" BORDER="0" ALT="Service-Oriented Professionals" NAME="quote7"></A></TD><TD><A onmouseout="quote8.src = \'http://www.ahtins.com/images/quote8.jpg\'" onmouseover="quote8.src = \'http://www.ahtins.com/images/quote8_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote8.jpg" WIDTH="187" HEIGHT="253" BORDER="0" ALT="Careful Analysts" NAME="quote8"></A></TD><TD><A onmouseout="quote9.src = \'http://www.ahtins.com/images/quote9.jpg\'" onmouseover="quote9.src = \'http://www.ahtins.com/images/quote9_r.jpg\'"><IMG SRC="http://www.ahtins.com/images/quote9.jpg" WIDTH="185" HEIGHT="253" BORDER="0" ALT="Knowledgeable Consultants" NAME="quote9"></A></TD></TR></TABLE>'
)

/* Specifies the period of time between updates:
    month - once a month
    date - once per every day of the month (repeats the next month)
    weekday - once per every day of the week (repeats the next week)
    hour - once per hour (repeats the next day)
    request - once per browser request (default)
*/

var updatePeriods = new Array("month","date","weekday","hour","request")

// Invoked to display rotated HTML content in a Web page. The period
// argument should be an element of the updatePeriods array.

function displayRotatedContent(period) {
 var updatePeriod = -1
 for(var i=0;i<content.length;++i) {
  if(period.toLowerCase() == updatePeriods[i].toLowerCase()) {
   updatePeriod = i
   break
  }
 }
 var s = selectHTML(updatePeriod)
 document.write(s)
}

function selectHTML(updatePeriod) {
 var n = 0
 var max = content.length
 var d = new Date()
 switch(updatePeriod) {
  case 0: // Month (0 - 11)
   n = d.getMonth()
   break
  case 1: // Date (1 - 31 scaled to 0 - 30)
   n = d.getDate() - 1
   break
  case 2: // Weekday (0 - 6)
   n = d.getDay()
   break
  case 3: // Hour (0 - 23)
   n = d.getHours()
   break
  case 4: // Request (Default)
  default:
   n = selectRandom(max)
 }
 n %= max 
 return content[n]
}

// Select a random integer that is between 0 (inclusive) and max (exclusive)
function selectRandom(max) {
 var r = Math.random()
 r *= max
 r = parseInt(r)
 if(isNaN(r)) r = 0
 else r %= max
 return r
}

//FUNCTION FOR POP-UP WINDOWS
function popglossary(theURL)
{
 window.open(theURL,"","height=475,width=666,scrollbars=yes,resizable=yes,screenX=25,left=25, screenY=25,top=25");
}
