// JavaScript Document

//date

var d=new Date();
var dw = new Array( "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" );
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = dw[d.getDay()] + " - " + monthname[d.getMonth()] + " " + d.getDate() + ", " +d.getFullYear();

//button animation

var yu=yu2=yu3=yu4=yu5=yu6=yd=yd2=yd3=yd4=yd5=yd6=0;
function shiftButtonUp(butId)
{bId=butId;yu=0;
document.getElementById("npic").src="img/link1.jpg";
document.getElementById("n1").src="img/pointer.gif";

sBUp(bId);}
function sBUp(bId)
{yu=yu-5;bid=bId;document.getElementById(bId).style.backgroundPosition="0px "+yu+"px";
if (yu<=-30)  {   clearTimeout(tu);  }
else  {  tu=setTimeout("sBUp(bid)",33);  }
}
function shiftButtonDown(butId)
{bId=butId;yd=-30;document.getElementById("npic").src="img/n1.jpg";
document.getElementById("n1").src="img/nopointer.gif";
sBDo(bId);}
function sBDo(bId)
{yd=yd+5;bid=bId;
document.getElementById(bId).style.backgroundPosition="0px "+yd+"px";
if (yd>=0)  {  clearTimeout(td);  }
else  {  td=setTimeout("sBDo(bid)",44);  }
}

function shiftButtonUp2(butId2)
{bId2=butId2;yu2=0;
document.getElementById("npic").src="img/link2.jpg";document.getElementById("n2").src="img/pointer.gif";

sBUp2(bId2);}
function sBUp2(bId2)
{yu2=yu2-5;bid2=bId2;document.getElementById(bId2).style.backgroundPosition="0px "+yu2+"px";
if (yu2<=-30)  {   clearTimeout(tu2);  }
else  {  tu2=setTimeout("sBUp2(bid2)",33);  }
}
function shiftButtonDown2(butId2)
{bId2=butId2;yd2=-30;document.getElementById("npic").src="img/n1.jpg";document.getElementById("n2").src="img/nopointer.gif";sBDo2(bId2);}
function sBDo2(bId2)
{yd2=yd2+5;bid2=bId2;
document.getElementById(bId2).style.backgroundPosition="0px "+yd2+"px";
if (yd2>=0)  {  clearTimeout(td2);  }
else  {  td2=setTimeout("sBDo2(bid2)",44);  }
}

function shiftButtonUp4(butId4)
{bId4=butId4;yu4=0;document.getElementById("npic").src="img/link4.jpg";
document.getElementById("n4").src="img/pointer.gif";
sBUp4(bId4);}
function sBUp4(bId4)
{yu4=yu4-5;bid4=bId4;document.getElementById(bId4).style.backgroundPosition="0px "+yu4+"px";
if (yu4<=-30)  {   clearTimeout(tu4);  }
else  {  tu4=setTimeout("sBUp4(bid4)",33);  }
}
function shiftButtonDown4(butId4)
{bId4=butId4;yd4=-30;document.getElementById("npic").src="img/n1.jpg";
document.getElementById("n4").src="img/nopointer.gif";sBDo4(bId4);}
function sBDo4(bId4)
{yd4=yd4+5;bid4=bId4;
document.getElementById(bId4).style.backgroundPosition="0px "+yd4+"px";
if (yd4>=0)  {  clearTimeout(td4);  }
else  {  td4=setTimeout("sBDo4(bid4)",44);  }
}

function shiftButtonUp3(butId3)
{bId3=butId3;yu3=0;document.getElementById("npic").src="img/link3.jpg";
document.getElementById("n3").src="img/pointer.gif";
sBUp3(bId3);}
function sBUp3(bId3)
{yu3=yu3-5;bid3=bId3;document.getElementById(bId3).style.backgroundPosition="0px "+yu3+"px";
if (yu3<=-30)  {   clearTimeout(tu3);  }
else  {  tu3=setTimeout("sBUp3(bid3)",33);  }
}
function shiftButtonDown3(butId3)
{bId3=butId3;yd3=-30;document.getElementById("npic").src="img/n1.jpg";
document.getElementById("n3").src="img/nopointer.gif";sBDo3(bId3);}
function sBDo3(bId3)
{yd3=yd3+5;bid3=bId3;
document.getElementById(bId3).style.backgroundPosition="0px "+yd3+"px";
if (yd3>=0)  {  clearTimeout(td3);  }
else  {  td3=setTimeout("sBDo3(bid3)",44);  }
}

function shiftButtonUp5(butId5)
{bId5=butId5;yu5=0;document.getElementById("npic").src="img/link5.jpg";
document.getElementById("n5").src="img/pointer.gif";
sBUp5(bId5);}
function sBUp5(bId5)
{yu5=yu5-5;bid5=bId5;document.getElementById(bId5).style.backgroundPosition="0px "+yu5+"px";
if (yu5<=-30)  {   clearTimeout(tu5);  }
else  {  tu5=setTimeout("sBUp5(bid5)",33);  }
}
function shiftButtonDown5(butId5)
{bId5=butId5;yd5=-30;document.getElementById("npic").src="img/n1.jpg";
document.getElementById("n5").src="img/nopointer.gif";sBDo5(bId5);}
function sBDo5(bId5)
{yd5=yd5+5;bid5=bId5;
document.getElementById(bId5).style.backgroundPosition="0px "+yd5+"px";
if (yd5>=0)  {  clearTimeout(td5);  }
else  {  td5=setTimeout("sBDo5(bid5)",44);  }
}

function shiftButtonUp6(butId6)
{bId6=butId6;yu6=0;document.getElementById("npic").src="img/link6.jpg";
document.getElementById("n6").src="img/pointer.gif";
sBUp6(bId6);}
function sBUp6(bId6)
{yu6=yu6-5;bid6=bId6;document.getElementById(bId6).style.backgroundPosition="0px "+yu6+"px";
if (yu6<=-30)  {   clearTimeout(tu6);  }
else  {  tu6=setTimeout("sBUp6(bid6)",33);  }
}
function shiftButtonDown6(butId6)
{bId6=butId6;yd6=-30;document.getElementById("npic").src="img/n1.jpg";
document.getElementById("n6").src="img/nopointer.gif";sBDo6(bId6);}
function sBDo6(bId6)
{yd6=yd6+5;bid6=bId6;
document.getElementById(bId6).style.backgroundPosition="0px "+yd6+"px";
if (yd6>=0)  {  clearTimeout(td6);  }
else  {  td6=setTimeout("sBDo6(bid6)",44);  }
}

