var ChnlChrt_lnks="20120110";/*vk3khb-mnu.css - chnlchrt.html*/
var itemN=27;/*max. link text items*/
var lnk=new Array(itemN); /*lnk adrs*/
var txt=new Array(itemN); /*" txt*/
var lmsg=new Array(itemN);/*" msg*/
var h1msg=new Array(itemN);/*hello*/
var h2msg=new Array(itemN);
var a1msg=new Array(itemN);/*atv*/
var smsg=new Array(itemN);/*sbs*/
var cmsg=new Array(itemN);/*capitalcty*/
var l_cnt="0";

var id_name1="M_msngr1";
var id_name2="M_msngr2";
var id_name3="M_msngr3";
var disp_typ="seq";

var burl="http://vk3khb.gak.net.au/";
var url=burl;/*(C) BASE URL (IP)*/
var text="rotate link";
var Ndate=new Date(); 
var Nyear=(Ndate.getFullYear());

while (l_cnt<itemN+1)
 {lnk[l_cnt]=txt[l_cnt]=cmsg[l_cnt]=smsg[l_cnt]=lmsg[l_cnt]=a1msg[l_cnt]="";
 h1msg[l_cnt]=h2msg[l_cnt]="message repeats";
 l_cnt++;
 }


function chnlchrt_start()
{l_cnt=0;/*Link COUNTERS*/
 c_cnt=0;/*capitalcty*/
 m_cnt=9;/*msg cntr*/
 m_lmt=10;/*limit*/
 r_msg=0;/*random msg*/
 h_cnt=-1;/*hello msgs*/

 pop_lnks_seq();
 lnks_disp();
 cc_msg();
 hmsg_seq();
 scrn_res();
}

cmsg[0]="Captial Cities";
cmsg[1]="Adelaide";
cmsg[2]="Brisbane";
cmsg[3]="Canberra";
cmsg[4]=" Darwin ";
cmsg[5]=" Hobart ";
cmsg[6]="Melbourne";
cmsg[7]=" Perth ";
cmsg[8]=" Sydney ";
cmsg[9]=cmsg[0];

smsg[0]="City<br>Frequency Mhz";
smsg[1]=cmsg[1]+" Ch33<br>564.5";
smsg[2]=cmsg[2]+" Ch36<br>585.5";
smsg[3]=cmsg[3]+" Ch30<br>543.5";
smsg[4]=cmsg[4]+" Ch29<br>536.5";
smsg[5]=cmsg[5]+" Ch9A<br>205.5";
smsg[6]=cmsg[6]+" Ch29<br>536.5";
smsg[7]=cmsg[7]+" Ch29<br>536.5";
smsg[8]=cmsg[8]+" Ch34<br>571.5";
smsg[9]="repeats...";

h1msg[0]="Hello and welcome to VK 3 KHB's <b>' "+Nyear+" Australian TV channel frequency chart '</b>";
h2msg[0]="comments, criticism, corrections are always welcome.";
h1msg[1]="Here you will find the frequency to each TV channel number";
h2msg[1]="(<i>RF means <b>R</b>adio <b>F</b>requency - DTV means <b>D</b>igital <b>TV</b></i>)";
h1msg[2]="Above is the ANALOG TV RF channel numbers and frequencies";
h2msg[2]="ANALOG TV is planned to be switched off by 2014";
h1msg[3]="Below is the DiGiTaL TV RF channel numbers and frequencies";
h2msg[3]="below that in blue are the active digital TV channels";
h1msg[4]="For Regional / Country TV channels visit <a href='../tv_lists/f_tv_lists.html'><b>' TV Ch_Lists '</b></a>, a portal to ACMA's website";
h2msg[4]="and use the <b>' What frequency is TV channel '</b> calculator, see navagation menu (left)";

h1msg[5]="<b>Please Note:</b> many digital Radio and TV channels (0-999) can share one RF channel (0-69)";
h2msg[5]="e.g. RF D Channel 12 contains DTV Channels 02, 21, 22, 23, 24 and Radio Channels 200, 201";
h1msg[6]="The big chart below is a cross reference of channel, band, analog and digital services";
h2msg[6]="it lists all 69 RF TV channel numbers to their respective frequency and function";
h1msg[7]="SBS DiGiTaL, unlike other TV networks is on a different RF channel in most capital cities";
h2msg[7]="SBS DTV channel is the same everywhere, it is only the RF channel number that may vary.";
h1msg[8]="The ABC network has maps and technical data for each area they cover";
h2msg[8]="an excellent website to help you figure out what else could be wrong with your DTV setup...";
h1msg[9]="The aTV network is the experimental amateur radio & television service (ham radio with pictures)";
h2msg[9]="aTV may not be active in your area or receivable on most TV receivers";

a1msg[0]="<i>vk3khb [at] gak [dot] net [dot] au</i>";
a1msg[2]="<i>your area may already be DiGiTaL only</i>";
a1msg[9]="loading 'amateur television (aTV) information' ...";
a1msg[10]="Aug.27.2011 USA West Coast and Australian East Coast aTV groups digital link up on VK3RTV & via SKYPE...";
a1msg[11]="Over 30 Stations online at BATC.TV plus on-air via SKYPE to aTV repeaters in the USA and on VK3RTV.";
a1msg[12]="Coordinated by VK3BFG and KE6BXT to celebrate 100 Years of Amateur Radio in Victoria.";

a1msg[13]="Aug.26.2011 VK7 (Tasmania) and VK3 (Victoria) aTV groups link up on VK3RTV & via SKYPE.";
a1msg[14]="Watched online at BATC.TV, VK3RTV and SKYPE. Coordinated by VK3BFG and VK7TW";
a1msg[15]="To celebrate 100 Years of Amateur Radio in Victoria (1911 - 2011)";

a1msg[16]="Feb.23.2011 5-6PM - VK3RTV Digital 1 and 2 received in Penguin Tasmania ~370Km from Melb. by VK7EM...";
a1msg[17]="On air were VK3BCU, VK3DQ, VK3WWW and VK3BFG all received in picture perfect images.";
a1msg[18]="March 2010 aTV Melbourne, VK3RTV streaming live via UK amateur tv website: <b>www . batc . tv</b>";
a1msg[19]="www.batc.tv - see what you're missing (not much) with other aTV repeater services from around the world";
a1msg[20]="Amateur TV Melbourne went DiGiTaL DVB-T 29/09/2009, first amateur multiplex DVB-T service in the world!";
a1msg[21]="Melbourne viewers can use a normal terrestrial Set Top Box with RF coverage (170 - 870 Mhz) to receive aTV";
a1msg[22]="Most digital receivers jump over aTV, 230 - 470 Mhz, use 'manual' frequency scan, if available to tune aTV";
a1msg[23]="Melbourne aTV is generally active after 8pm most nights but can be at anytime.";
a1msg[24]="December 2010, VK3RTV automatic 20 minute beacon is now active, once no activity has occurred after 1 hour";
a1msg[25]="Melbourne aTV analog service has been switched off, VK3RTV broadcasts in DiGiTaL Only - Standard Definition";
a1msg[26]="Other aTV services in Australia and individual aTV stations will continue to broadcast in Analog or DiGiTaL";

lmsg[0]="television, it is radio with pictures";
lmsg[1]="dtv - quality digital tv signals, pity the content isn't";
lmsg[2]="digital television: its life but not as we know it";
lmsg[3]="television, so many channels, so poor the selection";
lmsg[4]="television, window on the world; colour by media moguls";
lmsg[5]="capitalism, the communists bought it";
lmsg[6]="amateur radio, still works when official systems fail";
lmsg[7]="television, it takes no imagination and gives just as much";
lmsg[8]="save your money and the planet, only buy what you need, not want!";
lmsg[9]="words of wisdom wrapped in wondrous witfull ways, wow!";
lmsg[10]="it is true - you are one way for the universe, to know itself";
lmsg[11]="advertising helps pay for this website, <b>please click items of interest</b>";
lmsg[12]=(Nyear-1910)+" years of amateur radio in Australia: W.I.A. 1910 - "+Nyear;
lmsg[13]="Melbourne aTV repeater VK3RTV in service since 1979 ("+(Nyear-1979)+" years)";
lmsg[14]=(Nyear-1911)+" years of amateur radio in Victoria 1911 - "+Nyear;
lmsg[15]=lmsg[16]=lmsg[17]=lmsg[18]="links loading...";
lmsg[19]="Freeview, more for free, less to see, unless you like ads."
lmsg[20]="NEWS should report the facts, all the facts and nothing but the facts";
lmsg[21]=lmsg[22]=lmsg[23]=lmsg[24]="checking database...";
lmsg[25]="comment, hearsay or guesswork is not NEWS, demand the facts from your media!";
lmsg[26]="Wiki Leaks so you can know what governments have done with your taxes!";
lmsg[27]="Wiki Tales; it appears ' no good deed goes unpunished! ' ";


lnk[0]="url here";
txt[0]="'abbr title text'>displayed link";

lnk[1]="atv/2Ghz_list";
txt[1]="'2.4Ghz Channel list'>2.4Ghz TV channels";
lnk[2]="atv/dtv-chnls";
txt[2]="'Digital TV Channels Explained'>RF/DTV channels, difference?";
lnk[3]="http://www.wia.org.au/";
txt[3]="'Wireless Institute of Australia (opens a new window)'>Amateur Radio in Australia";

lnk[4]="";
txt[4]="'5.8Ghz Channel list'>5.8Ghz TV channels";
lnk[5]="atv/ghosting";
txt[5]="'TV Ghosting, spooky stuff!'>What is TV Ghosting?";
lnk[6]="atv/rxatv";
txt[6]="'What equipment youll need'>How to receive amateur TV";

lnk[7]="tv_lists/f_tv_lists";
txt[7]="'Portal to lists of TV Channel lists'>Official Aust. TV channels";
lnk[8]="";
txt[8]="";
lnk[9]="atv/digitv";
txt[9]="'Technical commentary on Digital amateur TV'>DiGiTaL aTV, what is it?";

lnk[10]="atv/ausvidst";
txt[10]="'Technical data, brief summary'>Aust. TV spec. PAL & DVB-T";
lnk[11]="atv/freq-mult";
txt[11]="'Convert Mhz to Khz to Hz'>Freq.Conversion Mhz Khz hz";
lnk[12]="atv/stb_atv";
txt[12]="'Most Digital TV receivers do NOT cover aTV, these ones do'>aTV capable DTV receivers";

lnk[13]="atv/intvidst";
txt[13]="'1990s snap shot'>Old International TV formats";
lnk[14]="tv_lists/f_abc_txfreq";
txt[14]="'Link to the ABCs Digital TV/Radio, view by postcode or State'>ABC's Signal Data";
lnk[15]="tv_lists/f_portal_dr-aust";
txt[15]="'Aust.Gov Digital Ready website'>Analog / DTV switchover";

/*COUNTER, ROTATE TEXT/LINKS in miliseconds*/
function lmsg_d() {l_cnt=l_cnt-2; lmsg_c();}
function lmsg_u() {l_cnt=l_cnt+0; disp_typ="seq"; lmsg_c();}
function lmsg_c() {window.clearInterval("ld_timer"); disp_lnks();}

function lnks_disp()
{var ld_timer=window.setInterval("disp_lnks()",7000);/*to caption*/
 document.getElementById("lnk_rot").style.font="14px monotype, arial";
 document.getElementById("lnk_rot").style.lineHeight="14px";
 document.getElementById("lnk_rot").style.fontVariant="small-caps";}

function disp_lnks()
{if (l_cnt>itemN) {disp_typ="rnd"; l_cnt=0;}
 if (l_cnt<0) {l_cnt=itemN;}
 if (disp_typ=="rnd") {rot_lnks_rnd(); return;}
 if ((lmsg[l_cnt])==null||(lmsg[l_cnt])=="") {text=" thinking...";} else {text=lmsg[l_cnt];}
 document.getElementById("lnk_rot").innerHTML=text;
 document.getElementById("lnk_no").innerHTML=l_cnt+":"+itemN;
 l_cnt++;}

function rot_lnks_rnd()
{l_cnt=1+(Math.floor(Math.random()*itemN));/*random link to display*/
 r_msg=(Math.floor(Math.random()*itemN));/*random msg*/
 if ((lmsg[r_msg])==null||(lmsg[r_msg])=="") {lmsg[r_msg]=" thinking...";}
 rot_lnks()
  if ((lnk[l_cnt])==null||(lnk[l_cnt])=="") {text=lmsg[r_msg];} else {text="link #"+text;}
  document.getElementById("lnk_rot").innerHTML=text;
  document.getElementById("lnk_no").innerHTML=l_cnt;}

function pop_lnks_seq()/*1st*/
{
try {
{l_cnt=1; while (l_cnt<itemN)
 {rot_lnks()
  document.getElementById("link"+l_cnt).innerHTML=text;/*to table*/
  l_cnt++;}
 l_cnt=0;}
 }
 catch(err) {}
 }

function rot_lnks()
{text="";
 if (l_cnt<10) {l_cnt2d="0"+l_cnt;} else {l_cnt2d=l_cnt;}/*add leading zero*/
 if ((lnk[l_cnt])==null||(lnk[l_cnt])=="") {text= l_cnt2d + " - "; return;}
 if  (lnk[l_cnt].match("http")) {url=lnk[l_cnt] +'" target="_blank';} else {url=burl+lnk[l_cnt]+".html";}
/*SETS A NEW URL and TEXT ready for display*/
 urll='<a target="_blank" href="' + url + '" title=' + txt[l_cnt] + '</a>';
 text=l_cnt2d + " - " + urll;}

/*hello msgs*/
function hmsg_d() {h_cnt=h_cnt-1; hmsg_c()}
function hmsg_u() {h_cnt=h_cnt+1; hmsg_c()}
function hmsg_c() {window.clearInterval("m_m_seq()");  m_cnt=m_lmt;  m_seq();}

function hmsg_seq() {var msg_timer=window.setInterval("m_m_seq()", 1000);
 document.getElementById(id_name1).style.font="12px monotype, arial";
 document.getElementById(id_name1).style.lineHeight="14px";
 document.getElementById(id_name1).style.fontVariant="small-caps";
 document.getElementById(id_name2).style.font="12px monotype, arial";
 document.getElementById(id_name2).style.lineHeight="14px";
 document.getElementById(id_name2).style.fontVariant="small-caps";
 document.getElementById(id_name3).style.color="blue";
 document.getElementById(id_name3).style.font="12px monotype, arial";
 document.getElementById(id_name3).style.lineHeight="14px";
 document.getElementById(id_name3).style.fontVariant="small-caps";
 document.getElementById("hmsgbtn").style.font="8px monotype, arial";
 document.getElementById("hmsgbtn").style.lineHeight="10px";}

function m_m_seq()
{if (m_cnt>-1) {document.getElementById("hmsgbtn").innerHTML=m_cnt+".MSG<br>"+(h_cnt)+":"+itemN; m_cnt=m_cnt-1;} else {m_cnt=m_lmt; h_cnt++; m_seq();}}

function m_seq()
{if (h_cnt>itemN) {h_cnt=0;}
 if (h_cnt<0) {h_cnt=itemN;}
 if ((h1msg[h_cnt])==null||(h1msg[h_cnt])=="") {h1msg_text= h1msg[itemN];} else {h1msg_text=h1msg[h_cnt];}
 if ((h2msg[h_cnt])==null||(h2msg[h_cnt])=="") {h2msg_text= ".";} else {h2msg_text=h2msg[h_cnt];}
 if ((a1msg[h_cnt])==null||(a1msg[h_cnt])=="") {a1msg_text= "...";} else {a1msg_text=a1msg[h_cnt];}
 document.getElementById(id_name1).innerHTML=h1msg_text;
 document.getElementById(id_name2).innerHTML=h2msg_text;
 document.getElementById(id_name3).innerHTML=a1msg_text;
 document.getElementById("hmsgbtn").innerHTML=m_cnt+" MSG<br>"+h_cnt+":"+itemN;}
// end chnlchrt lnk/mess - start city/sbs. messages

function cc_msg() {var cc_timer=window.setInterval("cc_msg_seq()", 3000);}
function cc_msg_seq()
{document.getElementById("M_CC").innerHTML=cmsg[c_cnt];
 document.getElementById("M_sbs_chnls").innerHTML=smsg[c_cnt];
 if (c_cnt<9) {c_cnt++} else {c_cnt=0;}}

// detect screen resolution //
function scrn_res() 
{height=screen.height;
 width=screen.width;
 awidth=screen.availWidth;
 aheight=screen.availHeight;
 scrndpth=screen.colorDepth;
 pxldpth=screen.pixelDepth;

 res=document.getElementById ('resolutionNumber');
 res.innerHTML=width + "("+awidth+") X " + height + "("+aheight+") @ scrn: "+scrndpth+" pxl: "+pxldpth;}
/* js code vk3khb.gak.net.au Jan.2011(C)(IP)all rights reserved*/
