//clock
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
m=checkTime(m)
s=checkTime(s)
if(h>=13 && h<=23)
{h=h-12;q=' p.m.'}
else if(h==12)
{q=' p.m.'}
else
{q=' a.m.'}
document.getElementById('txt').innerHTML=h+":"+m+":"+s+q
t=setTimeout('startTime()',500)
}

function checkTime(i)
{if (i<10) 
  {i="0" + i}
  return i
}

//ticker
// Set the initDelay and initDIrection to be the same as the values defined in the params
var initDelay = 0;
var initDirection = -1;

var curDelay = initDelay;
var curDirection = initDirection;

function changeScroll(dir) {
// Calling changeScroll with the same dir makes the ticker go faster
if (dir == 0) {
curDelay = 0;
curDirection = 0;
}
else if (dir == curDirection)
curDelay -= 10;
else {
curDirection = dir;
curDelay = initDelay;
}

// You can't have a negative delay. And some rational limit must be set
if (curDelay < 5)
curDelay = 5;

var a = document.getElementById('TickerX');
if (a) {
a.setScroll(1, curDirection, curDelay);
}
}
//redirector
function delayer(){
    window.location = "http://voldrixia.com"
}
