// begin LEFT COLUMN FEATURES
var feature_array;
feature_array = new Array();
	feature_array[0]="<a href='/help/help_survey.shtml' onFocus='this.blur()'>";
	feature_array[0]+="<img src='/images_site/structure/take_survey.gif' alt='take the survey' width=144 height=103 border=0></a>";

	feature_array[1]="<a href='/about/about_records.shtml' onFocus='this.blur()'>";
	feature_array[1]+="<img src='/images_site/structure/hearthis.gif' alt='H.E.A.R. this' width=144 height=219 border=0></a>";

// INSERT MORE FEATURES HERE
// use the same pattern as above, with two lines for each item. change these parts: 
// 1. the number in [brackets]
// 2. the URL of the webpage to link to (http ...)
// 3. the link to the image file (/images_site/structure/ ...)
// 4. the alt tag description for the link
// 5. the height of the image (width should always be 144)
// INSERT MORE FEATURES HERE

function getfeature()
{	var s;
	var n;
	n=Math.round(Math.random()*(feature_array.length-1));
	s=feature_array[n];
	return s;
}
// end LEFT COLUMN FEATURES


// begin BOTTOM BANNER AD
var banner_array;
banner_array = new Array();
	banner_array[0]="<a href='http://www.shure.com/'>";
	banner_array[0]+="<img src='/images_site/banners/PSM_468x60_2.gif' alt='Shure * www.shure.com' width=468 height=60 border=0></a>";

	banner_array[1]="<a href='http://www.westone.com/'>";
	banner_array[1]+="<img src='/images_site/banners/westone.gif' alt='Westone * www.westone.com' width=468 height=60 border=0></a>";

	banner_array[2]="<a href='http://www.hotlineonline.com/dcos.html'>";
	banner_array[2]+="<img src='/images_site/banners/proplugs.gif' alt='Docs ProPlugs' width=468 height=60 border=0></a>";

	banner_array[3]="<a href='http://www.futuresonics.com/'>";
	banner_array[3]+="<img src='/images_site/banners/fsi_banner.gif' alt='FSI * www.futuresonics.com' width=468 height=60 border=0></a>";

	banner_array[4]="<a href='http://www.aearo.com/'>";
	banner_array[4]+="<img src='/images_site/banners/aearo.gif' alt='A*E*A*R*O * www.aearo.com' width=468 height=60 border=0></a>";

banner_array[5]="<a href='http://www.onlinehearing.org/'>";
banner_array[5]+="<img src='/images_site/banners/adbanner.jpg' alt='Online Hearing * www.onlinehearing.org' width=468 height=60 border=0></a>";

	banner_array[6]="<a href='http://www.etymotic.com/'>";
	banner_array[6]+="<img src='/images_site/banners/etymotic.gif' alt='Etymotic Research * www.etymotic.com' width=468 height=60 border=0></a>";

	banner_array[7]="<a href='http://www.shure.com/'>";
	banner_array[7]+="<img src='/images_site/banners/PSM_468x60_2.gif' alt='SHURE * www.shure.com' width=468 height=60 border=0></a>";

	banner_array[8]="<a href='http://www.westone.com/'>";
	banner_array[8]+="<img src='/images_site/banners/westone.gif' alt='Westone * www.westone.com' width=468 height=60 border=0></a>";

	banner_array[9]="<a href='http://www.femalemusician.com/'>";
	banner_array[9]+="<img src='/images_site/banners/FM_banner.jpg' alt='Female Musician * www.femalemusician.com' width=468 height=60 border=0></a>";
	
	banner_array[10]="<a href='http://www.futuresonics.com/'>";
	banner_array[10]+="<img src='/images_site/banners/fsi_banner.gif' alt='FSI * www.futuresonics.com' width=468 height=60 border=0></a>";

banner_array[11]="<a href='http://www.shure.com/'>";
banner_array[11]+="<img src='/images_site/banners/PSM_468x60_2.gif' alt='Shure * www.shure.com' width=468 height=60 border=0></a>";

banner_array[12]="<a href='http://www.onlinehearing.org/'>";
banner_array[12]+="<img src='/images_site/banners/adbanner.jpg' alt='Online Hearing * www.onlinehearing.org' width=468 height=60 border=0></a>";

banner_array[13]="<a href='http://www.macksearplugs.com/'>";
banner_array[13]+="<img src='/images_site/banners/macks_earplugs_web_banner.gif' alt='Mack's Earplugs * www.macksearplugs.com' width=468 height=60 border=0></a>";

banner_array[14]="<a href='http://www.futuresonics.com/'>";
banner_array[14]+="<img src='/images_site/banners/fsi_banner.gif' alt='FSI * www.futuresonics.com' width=468 height=60 border=0></a>";
	
banner_array[15]="<a href='http://www.futuresonics.com/'>";
banner_array[15]+="<img src='/images_site/banners/fsi_banner.gif' alt='FSI * www.futuresonics.com' width=468 height=60 border=0></a>";
	


// INSERT MORE BANNERS HERE
// use the same pattern as above, with two lines for each item. change these parts: 
// 1. the number in [brackets]
// 2. the URL of the site to link to (http ...)
// 3. the link to the image file (/images_site/banners/ ...)
// 4. the alt tag description for the link
// INSERT MORE BANNERS HERE

function getbanner()
{	var x;
	var y;
	y=Math.round(Math.random()*(banner_array.length-1));
	x=banner_array[y];
	return x;
}
// end BOTTOM BANNER AD


// begin cache images for main nav
if (document.images) { 
  riskoff            = new Image();
  riskoff.src        = '/images_site/structure/riskoff.gif';
   riskon          = new Image();
   riskon.src      = '/images_site/structure/riskon.gif';
  featoff            = new Image();
  featoff.src        = '/images_site/structure/featoff.gif';
   featon          = new Image();
   featon.src      = '/images_site/structure/featon.gif';
  shopoff            = new Image();
  shopoff.src        = '/images_site/structure/shopoff.gif';
   shopon          = new Image();
   shopon.src      = '/images_site/structure/shopon.gif';
  eventsoff            = new Image();
  eventsoff.src        = '/images_site/structure/eventsoff.gif';
   eventson          = new Image();
   eventson.src      = '/images_site/structure/eventson.gif';
  affiloff            = new Image();
  affiloff.src        = '/images_site/structure/affiloff.gif';
   affilon          = new Image();
   affilon.src      = '/images_site/structure/affilon.gif';
  aboutoff            = new Image();
  aboutoff.src        = '/images_site/structure/aboutoff.gif';
   abouton          = new Image();
   abouton.src      = '/images_site/structure/abouton.gif';
  linksoff            = new Image();
  linksoff.src        = '/images_site/structure/linksoff.gif';
   linkson          = new Image();
   linkson.src      = '/images_site/structure/linkson.gif';
  llinksoff            = new Image();
  llinksoff.src        = '/images_site/structure/linksoff.gif';
   llinkson          = new Image();
   llinkson.src      = '/images_site/structure/linkson.gif';
  helpoff            = new Image();
  helpoff.src        = '/images_site/structure/helpoff.gif';
   helpon          = new Image();
   helpon.src      = '/images_site/structure/helpon.gif';
}
// end cache images for main nav


// begin swap in "off" image
function imgOff(imgName) {
   if(document.images){
      imgSrc = eval(imgName + "off.src");
      if (typeof(imgName) == 'string') {
         objString = 'document.' + imgName;
         obj = eval(objString);
         obj.src = imgSrc;
      } else
        if ((typeof(imgName) == 'object') && imgName && imgName.src) {
      imgName = imgSrc;
      }
   }
}
// end swap in "off" image


// begin swap in "on" image
function imgOn(imgName) {
   if(document.images){
      imgSrc = eval(imgName + "on.src");
      if (typeof(imgName) == 'string') {
         objString = 'document.' + imgName;
         obj = eval(objString);
         obj.src = imgSrc;
      } else
        if ((typeof(imgName) == 'object') && imgName && imgName.src) {
      imgName = imgSrc;
      }
   }
}
// end swap in "on" image


// begin browser test
var js = "no"
if ( (navigator.userAgent.indexOf("a/3") == 6) ||
(navigator.userAgent.indexOf("a/4") == 6) ) {
	js = "yes"
}
var n3mac = "no";
if ( (navigator.userAgent.indexOf("MSIE") == -1) &&
(navigator.userAgent.indexOf("a/3") == 6) &&
(navigator.appVersion.indexOf("Mac") != -1) ) {
	n3mac = "yes";
}
// end browser test


// begin popup window definitions
function HEARpartner(url)
	{
newWindow=window.open(url,"HEARpartners",'width=727,height=550,top=33,left=22,toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=yes,resizable=yes');
newWindow.focus();
	}

function chat(url)
	{
newWindow=window.open(url,"chat",'width=640,height=550,top=55,left=222,toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=no,resizable=yes');
newWindow.focus();
	}

function pop(url)
	{
newWindow=window.open(url,"newwindow",'width=480,height=380,top=111,left=333,toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=no,resizable=yes');
newWindow.focus();
	}
// end popup window definitions
