// FILE NAME IS   litzan.js 
// Site moved to godaddy.com June 19,2006
// This script changes images in the nav bar when rollover event is executed

//Code for Home Button
  if (document.images) {

  	Home1=new Image();
  	Home1.src="images/home.png";

  	Home2= new Image();
  	Home2.src="images/homebut2.png";
  	}

  else  {
  	Home2=""
  	Home1=""
  	document.home=""
  	}

//Code for T-shirts Button

  if (document.images) {

  	Tshirt1=new Image();
  	Tshirt1.src="images/tshirts.png";

  	Tshirt2= new Image();
  	Tshirt2.src="images/tshirtbut2.png";
  	}

  else  {
  	Tshirt2=""
  	Tshirt1=""
  	document.tshirt=""
  	}

//Code for Promotional Products Button

  if (document.images) {

  	Promo1=new Image();
  	Promo1.src="images/promo.png";

  	Promo2= new Image();
  	Promo2.src="images/promobut2.png";
  	}

  else  {
  	Promo2=""
  	Promo1=""
  	document.promo=""
  	}

//Code for Contact Button

  if (document.images) {

  	Contact1=new Image();
  	Contact1.src="images/contact.png";

  	Contact2=new Image();
  	Contact2.src="images/contactbut2.png";
  	}

  else  {
  	Contact2=""
  	Contact1=""
  	document.contact=""
}

//Code for WriteWords Logo mouseover

  	if (document.images) {

	  	redLogo=new Image();
	  	redLogo.src="images/ww2.gif";

	  	blackLogo=new Image();
	  	blackLogo.src="images/ww.gif";
	  	}

	  else  {
	  	redLogo=""
	  	blackLogo=""
	  	document.logo=""
  	}

//Script for date and time

function clock() {
var title="Mr. T's Screenprinting and Embroidery";
var date=new Date();
var year=date.getYear();
var month=date.getMonth();
var day=date.getDate();
var hour=date.getHours();
var minute=date.getMinutes();
var second=date.getSeconds();
var months=new Array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")

var monthname=months[month];

if (hour > 12) {
hour=hour- 12;
}

if (minute < 10) {
minute="0"+minute;
}

if (second < 10) {
second="0"+second;
}


document.title=title+" - It is "+monthname+" "+day+", "+year+" - "+hour+":"+minute+":"+second;

setTimeout("clock()", 1000)

}
