<!--
//   wii navigation script.
// c.w. - cwcomics.comicgenesis.com
//      c.w.comics@gmail.com

//requires special hooks in HTML
//READ README.TXT FOR INFO.

function wiikeynav(key)
{
if (key == 178)
{goback()}
if (key == 177)
{gonext()}
}

function goback()
{
previous = document.getElementById('wiiprev').firstChild.href
window.location.replace(previous + '#uanotice')
}

function gonext()
{
next = document.getElementById('wiinext').firstChild.href
window.location.replace(next + '#uanotice')
}

function iswii()
{
if (navigator.userAgent.toLowerCase().indexOf("nintendo wii") >= 0)
{
document.getElementById('uanotice').innerHTML = 'This site supports Wiimote Functions.  Push <img src="/images/wiileft.png" align="middle" alt="Left"> to go to the previous comic, push <img src="/images/wiiright.png" align="middle" alt="Right"> to go to the next.'
document.getElementById('uanotice').style.display = 'block'
}
}
//-->