var timer; var which; function do_top_nav (which) { // "where are we" sniffer l = document.location.pathname; a1 = ''); for (i = 0; i < topth.length; i++) { if (l.indexOf(topuh[i]) != -1) towrite += (s); towrite += (a1 + topuh[i] + a2); if (l.indexOf(topuh[i]) != -1) towrite += (a3o); else if (which == 'adv') towrite += (a3w); towrite += (a4 + topth[i] + ac); if (l.indexOf(topuh[i]) != -1) towrite += (sc); if (i < (topth.length - 1)) towrite += (' | '); } towrite += ('\n\n'); towrite += ('
'); for (i = 0; i < topta.length; i++) { if (l.indexOf(topua[i]) != -1) towrite += (s); towrite += (a1 + topua[i] + a2); if (l.indexOf(topua[i]) != -1) towrite += (a3o); else if (which == 'home') towrite += (a3w); towrite += (a4 + topta[i] + ac); if (l.indexOf(topua[i]) != -1) towrite += (sc); if (i < (topta.length - 1)) towrite += (' | '); } towrite += ('
\n'); // to debug, uncomment the following line //alert(towrite); document.write(towrite); } function do_over (which) { if (timer) { clearTimeout(timer); really_do_out(); } if (which == 'athome') { document.getElementById('advimg').src='/i/shared/dbwu_over.gif'; //document.getElementById('homenav').style.display = 'none'; //document.getElementById('advnav').style.display = 'block'; } else { document.getElementById('homeimg').src='/i/shared/about_us_over.gif'; //document.getElementById('homenav').style.display = 'block'; //document.getElementById('advnav').style.display = 'none'; } } function do_out (where) { which = where; timer = setTimeout('really_do_out()', 2); } function really_do_out () { if (which) { if (which == 'athome') { document.getElementById('advimg').src='/i/shared/dbwu_off.gif'; //document.getElementById('advnav').style.display = 'none'; //document.getElementById('homenav').style.display = 'block'; } else { document.getElementById('homeimg').src='/i/shared/about_us_off.gif'; //document.getElementById('homenav').style.display = 'none'; //document.getElementById('advnav').style.display = 'block'; } } }