var txt1 = "<table width=\'700\' border=\'0\'><tr valign=\'top\'><td><strong>FREQ<br></strong>Transmit/Output<br>Frequency<br><br><strong>OF<br></strong> Standard Offset (+/-)<br>&nbsp;&nbsp;&nbsp;&nbsp;10 Meters = 100 kHz<br>&nbsp;&nbsp;&nbsp;&nbsp;6 Meters = 1 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;2 Meters = 600 kHz<br>&nbsp;&nbsp;&nbsp;&nbsp;222 MHz = 1.6 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;440 MHz = 5 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;902 MHz = 25 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;1.2 GHz = 12 MHz<br>Simplex/No Offset (S)<br>Non Standard Offset (*)</td><td><strong>ST</strong><br>State of Transmitter<br><br><strong>CITY</strong><br>Town or City<br>of Transmitter <br><br><strong>CALL</strong><br>Transmitter Call Sign<br>&nbsp;&nbsp;&nbsp;&nbsp;Includes Hyperlink<br>&nbsp;&nbsp;&nbsp;&nbsp;to System Sponsor<br>&nbsp;&nbsp;&nbsp;&nbsp;If Website Available<br><br><strong>PL</strong><br>CTCSS (PL)<br>or DCS (DPL)<br>Needed for<br>System Access<br></td><td><strong>TS<br></strong> Tone Squelch (TS)<br>PL is Retransmitted<br>If Frequency Shown,<br>Different PL Transmitted<br>&nbsp;&nbsp;&nbsp;&nbsp;Asterisk (*) Indicates<br>&nbsp;&nbsp;&nbsp;&nbsp;Tone is Encoded Only<br>&nbsp;&nbsp;&nbsp;&nbsp;During User Activity<br>&nbsp;&nbsp;&nbsp;&nbsp;(Gated PL)<BR><BR><strong>STATUS</strong><br>System Status<br>On Air (Blank)<br>Limited Transmit (Limited TX)<br>Limited Receive (Limited RX)<br>Local Coverage (Local)<br>Off Air (OFF) </td><td><strong>COUNTY<br></strong>County of Transmitter<br><br><strong>IRLP<br></strong>IRLP Node Number<br>&nbsp;&nbsp;&nbsp;&nbsp;Includes Hyperlink<br>&nbsp;&nbsp;&nbsp;&nbsp;to IRLP Status Page<br><br><strong>ECHO</strong><br>EchoLink Node Number<br><br><strong>LINKS/COMMENTS<br></strong>Non Standard Offsets,<br>RF Linked Networks<br>and Other Comments<br>&nbsp;&nbsp;&nbsp;&nbsp;Linked Networks Shown<br>&nbsp;&nbsp;&nbsp;&nbsp;in [Brackets] Means the<br>&nbsp;&nbsp;&nbsp;&nbsp;Link is Part Time</td></tr></table>"
var txt2 = "You can sort data in four different ways; FREQUENCY, STATE, CITY or COUNTY.&nbsp; Simply click on the blue arrow next to the column you wish to sort by."

band = '';

// Fetch cookie information...
expireDate = new Date
expireDate.setFullYear(expireDate.getFullYear()+1)

var dtype;

function savecookie(newdtype) {
//	alert(newdtype);
	document.cookie = "dtype="+newdtype+"; expires="+expireDate.toGMTString();
}

function changecss(theClass,element,value) {
//Custom JavaScript Functions by Shawn Olson
//Copyright 2010
//http://www.shawnolson.net
//documentation for this script at http://www.shawnolson.net/a/503/
 var cssRules;
  if (document.all) {
    cssRules = 'rules';
  }
  else if (document.getElementById) {
    cssRules = 'cssRules';
  }
  for (var S = 0; S < document.styleSheets.length; S++){
    for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
      if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
        document.styleSheets[S][cssRules][R].style[element] = value;
      }
    }
  }
}

function makeSimple() {
changecss('.loc','display','none');
changecss('.simplelink','display','none');
changecss('.expandedlink','display','inline');
savecookie('Simple');
}

function makeExpanded() {
changecss('.loc','display','inline');
changecss('.simplelink','display','inline');
changecss('.expandedlink','display','none');
savecookie('Expanded');
}

//init script starts here:

if (document.cookie != "") {
   CookieArray = document.cookie.split(";");
   for (i=0; i<CookieArray.length; i++) {
       data = CookieArray[i];
       object= data.split("=")[0];
       if (object.search(/dtype/)>=0) dtype = data.split("=")[1];
   }
}
if (dtype=='Simple') makeSimple(); 


root = '';

function goto(band,key) {
	if (key!="") v= root+band+"_"+key+".htm";
	else v = root+band+".htm";
	location.href = v;
}

function OpenWindow(url) {
//	alert(url);
	myWindow = window.open(url,'mywin','left=20,top=20,width=955,height=600,scrollbars=1,toolbar=0,resizable=0');
	myWindow.focus();
}

function NyrepHeader() {
document.write('<table width="955" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('  <tr>');
document.write('    <td height="15" bgcolor="#DDDDDD"><span style="font-size: 8pt">&nbsp;&gt;&gt; Visit our ');
document.write('      sister site:&nbsp; <a href="http://www.nerepeaters.com">NEW ENGLAND REPEATER ');
document.write('      DIRECTORY</a></span></td>');
document.write('  </tr>');
document.write('  <tr> ');
document.write('    <td height="150" align="center"><a href="http://www.nyrepeaters.com"><img src="../images/nyheader.gif" width="955" height="150" border="0" alt="New York Repeater Directory"></a></td>');
document.write('  </tr>');
document.write('  <tr> ');
document.write('    <td bgcolor="#006699" height="40"> ');
document.write('      <table width="955" border="0" align="center" cellpadding="0" cellspacing="0">');
document.write('        <tr align="center">');
document.write('	  <td width="9%"><strong><font color="#FFFFFF">NYC:</font></strong></td>');
document.write('          <td width="10%"><a href="nyc10m.htm"><font color="#C0FFC0">10 Meters </font></a></td>');
document.write('          <td width="9%"><a href="nyc6m.htm"><font color="#C0FFC0">6 Meters </font></a></td>');
document.write('          <td width="9%"><a href="nyc2m.htm"><font color="#C0FFC0">2 Meters</font></a></td>');
document.write('          <td width="9%"><a href="nyc222.htm"><font color="#C0FFC0">222 MHz</font></a></td>');
document.write('          <td width="9%"><a href="nyc440.htm"><font color="#C0FFC0">440 MHz</font></a></td>');
document.write('          <td width="10%"><a href="nyc902.htm"><font color="#C0FFC0">902 MHz</font></a></td>');
document.write('          <td width="10%"><a href="nyc1240.htm"><font color="#C0FFC0">1.2 GHz</font></a></td>');
document.write('          <td width="14%"><a href="nycnets.htm"><font color="#C0FFC0">Linked Nets</font></a></td>');
document.write('          <td width="11%"><a href="searchNY.htm"><font color="#C0FFC0">Search</font></a></td>');
document.write('        </tr>');
document.write('        <tr align="center">');
document.write('	  <td width="9%"><strong><font color="#FFFFFF">ENY:</font></strong></td>');
document.write('          <td width="10%"><a href="eny10m.htm"><font color="#C0FFC0">10 Meters </font></a></td>');
document.write('          <td width="9%"><a href="eny6m.htm"><font color="#C0FFC0">6 Meters </font></a></td>');
document.write('          <td width="9%"><a href="eny2m.htm"><font color="#C0FFC0">2 Meters</font></a></td>');
document.write('          <td width="9%"><a href="eny222.htm"><font color="#C0FFC0">222 MHz</font></a></td>');
document.write('          <td width="9%"><a href="eny440.htm"><font color="#C0FFC0">440 MHz</font></a></td>');
document.write('          <td width="10%"><a href="eny902.htm"><font color="#C0FFC0">902 MHz</font></a></td>');
document.write('          <td width="10%"><a href="eny1240.htm"><font color="#C0FFC0">1.2 GHz</font></a></td>');
document.write('          <td width="14%"><a href="enynets.htm"><font color="#C0FFC0">Linked Nets</font></a></td>');
document.write('          <td width="11%">&nbsp;</td>');
document.write('        </tr>');
document.write('      </table></td>');
document.write('  </tr>');
document.write('</table>');
document.write('<br>');
}

function NyrepTrailer() {
document.write('<br>');
document.write('      <center>');
document.write('      <b>&copy; 1999-2010 New York Repeater Directory</b>');
document.write('</center>');
}
