var ChnlChrt_lnks="20100711";/* works with vk3khb-mnu.css - chnlchrt.html */
var itemN = 33; /* max. number of link and text items */
var links = new Array(itemN);
var texts = new Array(itemN); 
var mesag = new Array(itemN);
var cnt = 0; /* THE COUNTERS */
var msg = 0;
var burl = "http://vk3khb.gak.net.au/"; /* (C) BASE URL (IP) */
var url = burl;		  /* INITIAL URL */
var text = "rotate link"; /* INITIAL TEXT */
mesag[0] = " television, it is radio with pictures";
mesag[1] = " quality digital tv signals, pity the content isn't";
mesag[2] = " digital television: its life but not as we know it";
mesag[3] = " television, so many channels, so poor the selection";
mesag[4] = " television, window on the world; colour by media moguls";
mesag[5] = " capitalism, the communists bought it";
mesag[6] = " amateur radio, still works when official systems fail";
mesag[7] = " television, it takes no imagination and gives just as much";
mesag[8] = " save your money and the planet, only buy what you need";
mesag[9] = " words of wisdom wrapped in wondrous wit full ways";
mesag[10] = " you are one way for the universe to know itself";
mesag[11] = " advertising helps pay for this site, <b>please click items of interest</b>";
mesag[12] = " 100 years of amateur radio in australia: w.i.a. 1910 - 2010 ";

links[0] = "url goes here";
texts[0] = "'abbr title text'>displayed link";

links[1] = "atv/2Ghz_list";
texts[1] = "'2.4Ghz Channel list'>2.4Ghz TV channels";
links[2] = "atv/dtv-chnls";
texts[2] = "'Digital TV Channels Explained'>RF/DTV channels, difference?";
links[3] = "";
texts[3] = "''>";
links[4] = "";
texts[4] = "'5.8Ghz Channel list'>5.8Ghz TV channels";
links[5] = "atv/ghosting";
texts[5] = "'TV Ghosting, spooky stuff!'>What is TV Ghosting?";
links[6] = "atv/rxatv";
texts[6] = "'What equipment youll need'>How to receive amateur TV";
links[7] = "tv_lists/f_tv_lists";
texts[7] = "'Portal to lists of TV Channel lists'>Official Aust. TV channels";

links[9] = "atv/digitv";
texts[9] = "'Technical commentary on Digital amateur TV'>DiGiTaL aTV, what is it?";
links[10] = "atv/ausvidst";
texts[10] = "'Technical data, brief summary'>Aust. TV spec. PAL & DVB-T";
links[11] = "atv/freq-mult";
texts[11] = "'Convert Mhz to Khz to Hz'>Frequency Multiplier M / K / hz";
links[12] = "atv/stb_atv";
texts[12] = "'Most Digital TV recivers do NOT cover aTV'>aTV capable digital receivers";

links[16] = "tv_lists/f_abc_txfreq";
texts[16] = "'Link to the ABCs Digital TV/Radio, view by postcode or State'>ABC's Signal Data";
links[17] = "tv_lists/f_portal_imparja";
texts[17] = "'Link to IMPARJA TV website'>Portal to IMPARJA's Website";
links[18] = "tv_lists/f_portal_dr-aust";
texts[18] = "'Link to Aust.Gov website'>Portal to DiGiTaL Ready Website";
links[19] = "tv_lists/f_portal_abc";
texts[19] = "'Link to the ABCs Website'>Portal to ABC's Website";
links[20] = "tv_lists/f_portal_seven";
texts[20] = "'Link to the SEVENs Website'>Portal to SEVEN's Website";
links[21] = "tv_lists/f_portal_nine";
texts[21] = "'Link to the NINEs Website'>Portal to NINE's Website";
links[22] = "tv_lists/f_portal_ten";
texts[22] = "'Link to the TENs Website'>Portal to TEN's Website";
links[23] = "tv_lists/f_portal_sbs";
texts[23] = "'Link to the SBSs Website'>Portal to SBS's Website";
links[24] = "tv_lists/f_portal_ctv";
texts[24] = "'Link to the CTVs Website'>Portal to CTV's Website";
links[25] = "tv_lists/f_portal_wintv";
texts[25] = "'Link to the Win TVs Website'>Portal to Win TV's Website";
links[26] = "tv_lists/f_portal_scmtv";
texts[26] = "'Link to the Southern Cross Media Website'>Portal to S.Cross TV's Website";
links[27] = "tv_lists/f_portal_gwntv";
texts[27] = "'Link to the GWN/PRIME Website'>Portal to GWN/PRIME's Website";

links[31] = "http://www.wia.org.au/";
texts[31] = "'Wireless Institute of Australia (opens a new window)'>Amateur Radio in Australia";
links[33] = "atv/intvidst";
texts[33] = "'1990s snap shot'>Old International TV formats";

/* INCREASE COUNTER, ROTATE TEXT/LINKS random and sequenial */
/* (minutes * 60000) OR (seconds * 1000) miliseconds */

function chkT2d(i) { if (i<10) { i="0" + i; } return i; }
function lnks_rnd() { var timer = window.setInterval("rotate_lnks_rnd()", 5000); }
function rotate_lnks_rnd() 
{ cnt=1+(Math.floor(Math.random()*itemN)); /* random link to display */
   msg=(Math.floor(Math.random()*itemN));
   if ((mesag[msg])==null||(mesag[msg])=="") { mesag[msg]=" thinking..."; }
  rotate_lnks()
   if ((links[cnt])==null||(links[cnt])=="") { text = text + mesag[msg]; }
   document.getElementById("lnk_rot").innerHTML = text; /* to caption */
   document.getElementById("lnk_rot").style.fontVariant="small-caps";
}
function pop_lnks_seq() 
{ cnt=1; while (cnt<itemN+1) 
 {
  rotate_lnks()
  document.getElementById("links"+cnt).innerHTML = text; /* to table */
  cnt++;
 }
}
function rotate_lnks()
{ text="";
 cnt2d=chkT2d(cnt); /* add leading zero */
 if ((links[cnt])==null||(links[cnt])=="") { text= cnt2d + " -"; return; }
 if (links[cnt].match("http")) { url = links[cnt] +'" target="_blank'; } else { url = burl+links[cnt]+".html"; }

/* SETS A NEW URL and TEXT ready for display */
urll = '<a target="_blank" href="' + url + '"> <abbr title=' + texts[cnt] + '</abbr></a>';
text = cnt2d + " - " + urll;
}
// end chnlchrt lnk/mess routines - start Ch. data

// js code from vk3khb.gak.net.au March2010 (C) (IP) all rights reserved
