var KHB_Indx_lnks="20100601";/* works with vk3khb-mnu.css - index.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/"; /* BASE URL */
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] = "";

links[0] = "url goes here";
texts[0] = "a rotating list of links";

links[1] = "atv/chnlchrt";
texts[1] = "'tv channel <> frequency'>australian tv frequency chart";
links[2] = "atv/ausvidst";
texts[2] = "'pal(b) / dvb-t1'>australian tv standards";
links[3] = "atv/intvidst";
texts[3] = "'historical data'>old international tv formats";
links[4] = "atv/matvg";
texts[4] = "'who are they?'>melbourne amateur tv group";
links[5] = "atv/whatsatv";
texts[5] = "'amateur television'>what is atv?";
links[6] = "atv/rxatv";
texts[6] = "'what you need to receive'>how to receive atv";
links[7] = "atv/atvhist";
texts[7] = "'a brief history since 1979...'>30+ years of atv in melbourne";
links[8] = "atv/digitv";
texts[8] = "'technical commentary'>what is digital atv?";
links[9] = "atv/txatv";
texts[9] = "'technical commentary'>how to transmit atv";

links[11] = "atv/ghosting";
texts[11] = "'simple explaination'>what is tv ghosting?";
links[12] = "atv/ATVprogrm";
texts[12] = "'what is on?'>programmes on atv";
links[13] = "atv/coaxchrt";
texts[13] = "'dated but still ok info'>coax cable specs rg types";
links[14] = "atv/stb_atv";
texts[14] = "'2010 List'>atv capable digital receivers";
links[15] = "atv/testscrn";
texts[15] = "'test cards with music?'>tv test patterns";
links[16] = "atv/vdbmcalc";
texts[16] = "'dbmv levels, volts, load...'>rf power calculator";
links[17] = "atv/swrloss";
texts[17] = "'standing wave ratio'>calculate vswr losses";
links[18] = "atv/antdesign";
texts[18] = "'tried and tested'>70cm & 23cm atv antennas";

links[22] = "khb-equ";
texts[22] = "'In use and in storage'>vk3khb equipment & manuals";
links[23] = "radio-valve";
texts[23] = "'In storage'>vk3khb old radio valves";
links[24] = "res_ccode";
texts[24] = "'graphical display'>resistor code calculator";

links[28] = "mus-freq";
texts[28] = "'table of #abcdefg in 8 octaves'>musical notes to frequency";

var blurb = "<p> <b>Amateur radio:</b> <br> For some it is making contact with as many people locally and from around the world as possible (QSL you are 5/9). For others it tinkering with gadgets or gizmos, understanding how they work and how to improve or adapt for other uses. For others it is just a hobby to experiment with basic principles of physics, the laws of quantum mechanics or simply merging crazy ideas together to see what happens... <br> <br> Amateur radio can expose you to many things, from working with wood, metal, plastics, hand and power tools to exploring aspects in the fields of chemistry, geology, physics, astronomy, optics, electronics, computing, data networking, audio phonics, video processing, communications, media presentation, logistics, people management and the legal issues that tend to pervade everything you want to do nowadays. </p><p> Life in general does teach you a lot, as long as you can listen, learn and not get hung up on the bad experiences you can get a lot done, understand much about the universe and know first hand how parts of it work. Amateur radio allows the experimenter (good/evil genius) to try new things or repeat known techniques with guidance from elders or knowledgeable people, in person, online or in print, be they alive today or many epochs past. <br> <br> This knowledge combined with a scientific way of thinking (cause and effect) can assist you to overcome almost any obstacles by simply asking questions, thinking through a problem, learning from mistakes and where needed to circumvent human follies, ritual or dogma. Over millennia the human race has misused much of its resources, lost valuable time and missed many opportunities to advance; all because of greed, power and ignorance. We are so smart yet so dumb, but I digress...<br> <br> Amateur radio can be a simple tool to communicate with others or a vehicle to understand how things in the real world work. You could ask; what will 'amateur radio' do for you, or should that be, what can you do for amateur radio? <br> </p><p> <b>About me:</b><br> I've worked in the education, computer and networking industries for over a decade and also in the manufacture and packaging industry of chemical & lubrication products for just as long. I dabble in astronomy and electronic surveillance and I’m currently working in the aero-space industry. I hold no official qualifications apart from my amateur radio license but do have a wide range of experience and know how with a zest to apply and try almost anything... <br> </p> Thanks for visiting my website, everything here I've written from the back-end to the page on display. I promise there is no intentional surreptitous code or activity in use. IP's may be recorded for stats and google ads do their own things. Feedback is always welcome...<br>I hope you find something of interest here...";


/* INCREASE COUNTER AND ROTATES TEXTS/LINKS */
/* FUNCTIONS are 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 pop_blurb()
 { 
   document.getElementById("khb_blurb").innerHTML = blurb; /* to khb_blurb */
 }


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;
}
//  js code from vk3khb.gak.net.au March2010 (C) (IP) all rights reserved