<!-- Begin
var dykmax
dykmax = 7
var randdyk
randdyk = Math.floor((dykmax + 1) * (Math.random()-.000001))
if (randdyk<0) {randdyk = 0}

var admax 
admax = 20
var rand1;
rand1 = 99

var oldrand;
oldrand = 99

var counter = new Array(0,0,0,0,0,0,0,0,0,0,0);
var adtime;
if (window.location.href.indexOf("fromgloss") > 0) {
	adtime = 1000
}
else {
	adtime = 8000
}   

var dyktime
dyktime = 11000

var pw = 0;
var gw = 0;

var dykstart; 

var dykhtm = new Array 
("dykcapte.htm","dykweath.htm","dykatp.htm","dykmemb.htm","dykrrc.htm","dyknl.htm","dyktedp.htm","dykhearingaid.htm")

var selad = new Array(
	"caryaud300.gif",
	"soundc3.gif",
	"cehcw4had.gif",
	"harris2.jpg", 
	"advancedbionics.gif",
	"captelw4had.gif",
	"captel.gif",
	"stratford.jpg",
	"LeadershipTrust.gif",
	"sosbannerad.gif",
	"medelw4had.gif",
	"puredir3.gif",
	"sprintwebcaptel.jpg",
	"carolinahearinggroup1.gif",
	"soundaid1.gif",
	"tuberider2.gif",
	"cochlear.jpg",
	"ceenta.gif",
	"UNCHCCb.gif",
	"anhinet3.gif"
	)

var seladlink = new Array(
	"http://www.caryaudiology.com",
	"http://www.soundclarity.com",
	"http://www.carolinaear.com",
	"http://harriscomm.com/link/?harriscomm.com?sr=ncshhh",
	"http://www.advancedbionics.com/",
	"http://www.relaync.com/Pages/Services/CapTel.html",
	"http://www.relaync.com/Pages/Services/CapTel.html",
	"http://www.stratfordhearingaid.com",
	"http://www.leadershiptrust.org/",
	"http://www.sightorsound.com",
	"http://www.medel.com/US/",
	"http://www.puredirectsound.com",
	"sprintwebcaptel.pdf",
	"http://www.carolinahearinggroup.com",
	"http://www.soundaid.com",
	"http://www.otocool.com",
	"http://www.cochlearamericas.com",
	"http://www.ceenta.com/",
	"http://www.med.unc.edu/ahs/sphs/clinical-services/hcc/",
	"http://www.hearingimpaired.net"
	)

var seladalt = new Array(
	"Banner ad for Cary Audiology: Click to go to http://www.caryaudiology.com/",
	"Banner ad for Sound Clarity: Click to go to http://www.soundclarity.com/.",
	"Banner ad for Carolina Ear & Hearing Clinic: Click to go to http://www.carolinaear.com/.",
	"Banner ad for Harris Communications:  Click to go to http://harriscomm.com/link/?harriscomm.com?sr=ncshhh.",
	"Banner ad for Advanced Bionics.  Click to go to http://www.advancedbionics.com/",	
	"Banner ad for SprintCaptel Walk4Hearing:  Click to go to http://www.relaync.com/Pages/Services/CapTel.html/.",
	"Banner ad for Sprint/CapTel:  Click to go to http://www.relaync.com/Pages/Services/CapTel.html/.",
	"Banner ad for Stratford Hearing Aid Center:  Click to go to http://www.stratfordhearingaid.com/.",
	"Banner ad for The Leadership Trust:  Click to go to http://www.leadershiptrust.org/.",
	"Banner ad for SightorSound:  Click to go to http://www.sightorsound.com.",
	"Banner ad for MedEl Walk4Hearing:  Click to go to http://www.medel.com/US/.",
	"Banner ad for Pure Direct Sound:  Click to go to www.puredirectsound.com/",
	"Banner ad for Sprint Web CapTel:  Click to see full page flyer in pdf form",
	"Banner ad for Carolina Hearing Group:  Click to see full page flyer in pdf form",
	"Banner ad for SoundAid Hearing Aid Warrantees:  Click to go to www.soundaid.com",
	"Banner ad for Tube Riders:  Click to go to www.otocool.com",
	"Banner ad for Cochlear Americas:  Click to go to www.cochlearamerica.com",
	"Banner ad for Charlotte Eye, Ear, Nose & Throat:  Click to go to www.ceenta.com/",
	"Banner ad for UNC Hearing and Communication Center:  Click to go to www.med.unc.edu/ahs/sphs/clinical-services/hcc/",
	"Banner ad for HearingImpaired.net.  Click to go to http://www.hearingimpaired.net"	
	)


function init() {
//alert(window.location.href.indexOf("fromgloss"))
// 	if (window.location.href.indexOf("fromgloss") > 0) {
//		rand1 = 0
//	}
//	else {
//		rand1 = Math.floor(1 * Math.random()) + 5
//	}  
	rand1 = Math.floor(admax * Math.random()) 
	document.adimg.src=selad[rand1]
 	document.adimg.alt=seladalt[rand1]
      oldrand = rand1	
	adtimer()
	adchoose()
      dyktimer()
 	document.form1.sponsor.selectedIndex = admax
	dykstart=dykhtm[randdyk]
      dyk.location = dykstart
}

function menu(){
document.write("<table bgcolor='fae628' width='785' cellpadding='7' cellspacing='0' border=0>")
document.write("<tr>")
document.write("<td> <font face='Verdana' size='1' cellpadding='0'>")
document.write("<center><a href='index.htm'>Home</a> | <a href='about.htm'>About HLAA</a> | <a href='chapters.htm'>Chapters</a> | <a href='people.htm'>People</a> | <a href='projects.htm'>Projects</a> | <a href='support.htm'>Support HLAA</a> | <a href='links.htm'>Links</a> | <a href='javascript:pop(\"gloss.htm?fromncshhh\")'>Glossary</a> | <a href='sharing.htm'>Sharing</a> | <a href='articles.htm'>Articles</a> | <a href='contacts.htm'>Contacts</a></center>")
document.write("</font>")
document.write("</table>")
}

function doIt(){
halt=1;
location.href=seladlink[oldrand];
}

function doIt2(){
halt=1;
adwin=window.open (seladlink[oldrand],"adwin","scrollbars=yes,toolbar=no, directories=yes,menubar=yes,resizable=yes,status=no,width=1000,height=550,top=30,left=30,alwaysRaised=yes");
adwin.focus()
}

function dispIt(){
parent.window.status=seladlink[oldrand];
}
function dispclr(){
parent.window.status=" ";
}

function bldtbl() {
	document.write("<font face='Verdana' size='1' color='gray'>Click on the ad or the icon in the right margin to open the sponsor's web site;  Select Sponsor redisplays an ad.</font>")
	document.write("<table cellpadding=12 border=0><tr><td width=110 valign=top>")
	document.write("<FORM NAME='form1'>")
	document.write("<font size=-1>Select Sponsor:") 
	document.write("<SELECT NAME='sponsor' onchange='sponsorchange()'>")
	document.write("<option>Cary Audiology</option>")
	document.write("<option>Sound Clarity</option>")
	document.write("<option>Carolina Ear & Hearing Clinic</option>")
	document.write("<option>Harris Communications</option>")
	document.write("<option>Advanced Bionics</option>")
	document.write("<option>CapTel North Carolina</option>")
	document.write("<option>Sprint/CapTel</option>")
	document.write("<option>Stratford Hearing Aid Center</option>")
	document.write("<option>The Leadership Trust</option>")
	document.write("<option>SightorSound</option>")
	document.write("<option>MedEl</option>")
	document.write("<option>Pure Direct Sound</option>")
	document.write("<option>Sprint Web CapTel</option>")
	document.write("<option>Carolina Hearing Group</option>")
	document.write("<option>SoundAid</option>")
	document.write("<option>Tube Riders</option>")
	document.write("<option>Cochlear Americas</option>")
	document.write("<option>Charlotte Eye, Ear, Nose & Throat</option>")
	document.write("<option>UNC Hearing and Communication Center</option>")
	document.write("<option>HearingImpaired.net</option>")
	document.write("<option selected>Automatic</option>")
	document.write("</select></font></form>")
	document.write("</td><tr><td><font size=-1>Find out how to place your own ad ... <a href=advert.htm>Learn More</a></font></td>")
	document.write("</table>")
}

function sidebar() {

	document.write("<td  width='150' bgcolor='eeeeee' valign='top'><center>")
	document.write("<table bgcolor='darkblue' width='100%' cellpadding=2>")
	document.write("<tr><td>")
	document.write("<font face='Verdana' size='3' color='yellow'><b><i>Web Page<br>Sponsors </i></b> </font>")
	document.write("</table>")
	document.write("<p><a href='http://www.puredirectsound.com/' target='new'><img src='puredirlogo.gif' border='0'></a>")
	document.write("<p><a href='http://www.advancedbionics.com/' target='new'><img src='ab90.gif' border='0'></a>")
	document.write("<p><a href='http://www.soundaid.com' target='new'><img src='soundaidicon.gif' width='90' border='0'></a>")
	document.write("<p><a href='http://www.sightorsound.com' target='new'><img src='sosicon.gif' width='90' border='0'></a>")
	document.write("<p><a href='http://www.carolinahearinggroup.com' target='new'><img src='chgicon.gif' width='90' border='0'></a>")
	document.write("<p><a href='sprintwebcaptel.pdf' target='new'> <img src='sprintwebcaptelicon.gif' width='90' border='0'></a>")
	document.write("<p><a href='http://www.stratfordhearingaid.com' target='new'> <img src='stratfordlogo.gif' width='90' border='0'></a>")
	document.write("<p><a href='http://harriscomm.com/link/?harriscomm.com?sr=ncshhh' target='new'> <img src='harris2.gif' height='90' width='90' border='0'></a>") 
	document.write("<p><a href='http://www.hearingimpaired.net' target='new'><img src='hilogo.gif' height='90' width='90' border='0'></a>")
	document.write("<p><a href='http://www.relaync.com/Pages/Services/CapTel.html' target='new'><img src='captel2.gif' height='100' width='90' border='0'></a>")
	document.write("<p><a href='http://www.sprintrelay.com/' target='new'><img src='sprintnextelsmall.gif' width='90' border='0'></a>")
	document.write("<p><a href='http://www.soundclarity.com' target='new'><img src='sclogo.gif' height='90' width='90' border='0'></a>")
	
	document.write("<table bgcolor='darkblue' width='100%' cellpadding=2>")
	document.write("<tr><td>")

	document.write("<font face='Verdana' size='2' color='yellow'><b><i>Local<br>Walk4Hearing<br>Sponsors </i></b> </font>")
	document.write("</table>")
	document.write("<br> <font face='Verdana' size='3'><b> Silver:</b> </font> <br>")
	document.write("<p> <a href='http://www.relaync.com/Pages/Services/CapTel.html' target='new'> <img src='captelnc90.gif' align='center' border='0'> </a> <br>")
	document.write("<br> <font face='Verdana' size='3'><b> Supporting:</b> </font> <br>")
	document.write("<p> <a href='http://www.caryaudiology.com/' target='new'> <img src='caryaud90.gif' width='90' border='0'></a>")
	document.write("<p> <font face='Verdana' size='3'><b> Friends:</b></font>  <br>")
      document.write("<p><a href='http://www.leadershiptrust.org/' target='new'> <img src='LeadershipTrust90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.medel.com/US/' target='new'> <img src='medeliconsmall.gif' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.carolinaear.com' target='new'> <img src='cehc90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.otocool.com' target='new'> <img src='tuberider90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.cochlearamericas.com' target='new'> <img src='cochlear90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.ceenta.com/' target='new'> <img src='ceenta90.jpg' width='90' border='0'></a>")
	document.write("<p> <a href='http://www.med.unc.edu/ahs/sphs/clinical-services/hcc/' target='new'> <img src='UNCHCC90b.gif' width='90' border='0'></a>")
document.write("<p>")
	document.write("<br> <font face='Verdana' size='3'><b> In-Kind:</b> </font> <br>")
	document.write("<p> <a href='http://www.triprop.com/' target='new'> <img src='triprop90.gif' align='center' border='0'> </a>")
	document.write("<p> <a href='http://www.sheratonrtp.com/' target='new'> <img src='sheraton90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='mailto:lrgibson@gmail.com'> <img src='linden90.gif' width='90' border='0'></a>")
	document.write("<p> <a href='mailto:joanblack@mebtel.net'> <img src='tacsi90.gif' width='90' border='0'></a>")
	document.write("<table bgcolor='darkblue' width='100%' cellpadding=2>")
	document.write("<br><br><tr><td>")
	document.write("<font face='Verdana' size='3' color='yellow'><b><i>Other <br> Features</i></b> </font>")
	document.write("</table>")


	document.write("<p><a href='http://www.nchearingloss.org/earframe.htm' target='new'>3D Model of the Inner Ear</a> <a href='http://www.nchearingloss.org/earframe.htm' target='new'><img src='innerear.gif' height='60' width='90' border='0'></a>")
	document.write("<p><a href='http://www.ncatp.org' target='new'><img src='atp.gif' height='70' width='70' border='0'></a>")
	document.write("<p><a href='http://dsdhh.dhhs.state.nc.us/' target='new'><img src='dsdhhimagetranst.gif' height='50' width='90' border='0'></a>")
	document.write("<p> <a href='mailto:dsdhh.information@ncmail.net?subject=Question About Weather Alert Radio for Hard of Hearing People?&body=Please reply to this email address with information about how to apply for a free Weather Alert Radio for someone in North Carolina who is Hard of Hearing.  I learned about this program at the HLA-NC.'><img src='nwr.gif' height='90' width='90' border='0'></a></center>")

        
	document.write("<p><table bgcolor='darkblue' width='100%' cellpadding=2>")
	document.write("<tr><td>")
	document.write("<font face='Verdana' size='3' color='yellow'><b><i>Conference <br>Sponsors </i></b> </font>")
	document.write("</table>")

	document.write("<p><a href='sponsorbecome.htm'> <img src='dsdhhimagetranst.gif' width='90' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='relaynciconsmall.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='vrlogoicon.gif' width='90' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='rogbateslogo90.gif' width='90' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='medeliconsmall.gif' width='90' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='dsblogo90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='siemens90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='starkeyicon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='dpilogoicon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='hladurhamlogoicon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='pepneticon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='journeytowellness90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='anonicon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='hlawakelogo90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='unchcc90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='advbiosmall.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='cochlearamericas.gif' height='85' width='90' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='flaglericon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='nceyeearicon.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='sprintthumb.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='oticon90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='phonak90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='ncmhddsas90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='hlaashevillelogo90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='hlagreensborologo90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='chglogo90.jpg' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='embarq90.gif' border='0'></a>")
	document.write("<p><a href='sponsorbecome.htm'> <img src='fridaycenterlogo90.jpg' border='0'></a>")
	document.write("<p>")
	document.write("</center></table>")

}

function adtimer(){
   adtime1 = setInterval("adchange()",adtime)
}

function dykchange() {
	clearTimeout(dyktime1)
      dyktime1 = setInterval("dykchange()",dyktime)
      randdyk = randdyk + 1
      if (randdyk > dykmax) {
		randdyk = 0
	}
	dyk.location = dykhtm[randdyk]
}

function adchange() {
	if (adtime == 1000) {
		glossopen()
		adtime = 9000
    clearTimeout(adtime1)
    adtime1 = setInterval("adchange()",adtime)
	}
 	selad[0] = "caryaud300.gif"
//   	adlink.href=seladlink[rand1]
	document.adimg.src=selad[rand1]
 	document.adimg.alt=seladalt[rand1]
      oldrand = rand1
//	  alert("change image = " + selad[rand1])
	  adchoose()
}

function dyktimer(){
   dyktime1 = setInterval("dykchange()",dyktime)
}

function adchoose() {
	while (rand1 == oldrand) {
//		rand1 = Math.floor(admax * Math.random()) +0}
//        if (rand1 < 1) {
//             if (Math.random() < .4) {
//	         rand1 = Math.floor(1 * Math.random()) + 5
//	       }
//        }

	  	rand1 = rand1 + 1
	  	if (rand1 > admax -1){
		rand1 = 0 
     }
}

// preload chosen image
	Image1 = new Image(200, 200)
	Image1.src = selad[rand1]
}


function sponsorchange() {
clearInterval(adtime1)
i = document.form1.sponsor.selectedIndex
if (i == admax) {
	adchoose()
	adchange()
	adtimer()
}
else {
//   	adlink.href=seladlink[i]
	oldrand=i
	dispIt()
    	document.adimg.src=selad[i]
	document.adimg.alt=seladalt[i]
	}
}

function pic(sURL,parms) {
if (gw == 1) {
	closeglo()
}
if (pw == 1) {
	closepop()
}
popwin=window.open (sURL,"poppers",parms)
popwin.focus()
pw = 1
}

function closewin() {

  if (gw == 1) {
    closeglo()
  }
  else {
    if (pw == 1) {
      closepop()
    }
  }
}

function closead() {
  if (!adwin.closed) {
    adwin.close()
    aw = 0
  }
}


function closepop() {
  if (!popwin.closed) {
    popwin.close()
    pw = 0
  }
}

function closeglo() {
  if (!glowin.closed) {
    glowin.close()
    gw = 0
  }
}

function pop(sURL) {
if (gw == 1) {
	closeglo()
}
if (pw == 1) {
	closepop()
}
gw = 1
w = screen.width 
h = screen.height
if (h > 1199) {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=1140,top=0,left=0,alwaysRaised=yes");
}
else if (h > 1023) {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=960,top=0,left=0,alwaysRaised=yes");
}
else if (h > 959) {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=910,top=0,left=0,alwaysRaised=yes");
}
else if (h > 767) {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=720,top=0,left=0,alwaysRaised=yes");
}
else if (h > 599) {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=550,top=0,left=0,alwaysRaised=yes");
}
else {
glowin=window.open (sURL,"glo","scrollbars=yes,toolbar=no, directories=no,menubar=no,resizable=no,status=no,width=630,height=430,top=0,left=0,alwaysRaised=yes");
}
glowin.focus()
}

function glossopen() {
	pop('gloss.htm?fromncshhh')
}



// End -->

