// The IT Company - Main Site Legal Footer External JavaScript File by The IT Company @ www.theitcompany.ie

// Generate Current Date
    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var timeValue = "" + ((hours >12) ? hours -12 :hours)
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue += (hours >= 12) ? "pm" : " am"
    timerRunning = true;

    mydate = new Date();
    myday = mydate.getDay();
    mymonth = mydate.getMonth();
    myweekday= mydate.getDate();
    weekday= myweekday;
    myyear= mydate.getFullYear();
    year = myyear

    if(myday == 0)
             day = " Sun "      
    else if(myday == 1)
           day = " Mon "
    else if(myday == 2)
             day = " Tue "   
    else if(myday == 3)
             day = " Wed "   
    else if(myday == 4)
             day = " Thur "
    else if(myday == 5)
             day = " Fri "
    else if(myday == 6)
             day = " Sat "
    if(mymonth == 0)
              month = " January "
    else if(mymonth ==1)
              month = " February "
    else if(mymonth ==2)
             month = " March "
    else if(mymonth ==3)
            month = " April "
    else if(mymonth ==4)
              month = " May "
    else if(mymonth ==5)
              month = " June "
    else if(mymonth ==6)
              month = " July "
    else if(mymonth ==7)
            month = " August "
    else if(mymonth ==8)
           month = " September "
    else if(mymonth ==9)
          month = " October "
    else if(mymonth ==10)
          month = " November "
    else if(mymonth ==11)
          month = " December "

function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = hours + ":" + minutes + ":" + seconds + " " + dn;
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;

document.write('<div align="right">');
document.write('<table border="0" cellpadding="2" cellspacing="0"><tr>');
document.write('<td align="right" style="font-family: Trebuchet MS; font-size: x-small;">');
document.write("<b>" + day + myweekday + month +" "+ myyear + " @ " + "<span id=\"clock\" style=\"position:relative;\"></span>. </b>");
document.write('All content is copyright of The IT Company &copy; 2007 - ' + myyear + '.<br>');
document.write('Gemstorm Computers Ltd. (290708) trading as The IT Company (344923). Registered in Ireland.<br>');
document.write('Registered Address: 16 Kennington Crescent, Templeogue, Dublin 6W. T/F: +353 1 4421014.');
document.write('</td>');
document.write('<td align="right">');
document.write('<a href="http://www.theitcompany.ie"><img src="images/Logo_White_Small.jpg" alt="The IT Company" align="absmiddle" border="0" align="middle"></a>');
document.write('</td>');
document.write('</tr></table>');
document.write('</div>');














