// clock function
function show2(){
	if (!document.all && !document.getElementById)
		return;
		thelement = document.getElementById?document.getElementById("clock"):document.all.clock;
		var now = new Date();
		var hours = now.getHours();
		var minutes = now.getMinutes();
		var seconds = now.getSeconds();
		var date = now.getDate();
		var month = "";
		var year = now.getFullYear();
		var dn = "pm";
		if (hours<12)
		dn = "am";
		if (hours>12)
		hours = hours-12;
		if (hours == 0)
		hours = 12;
		if (minutes <= 9)
		minutes = "0"+minutes;
		if (seconds <= 9)
		seconds = "0"+seconds;
		var ctime = hours + ":" + minutes + ":" + seconds + dn;
		if (now.getMonth() == 0) month = "Jan";
		if (now.getMonth() == 1) month = "Feb";
		if (now.getMonth() == 2) month = "March";
		if (now.getMonth() == 3) month = "April";
		if (now.getMonth() == 4) month = "May";
		if (now.getMonth() == 5) month = "June";
		if (now.getMonth() == 6) month = "July";
		if (now.getMonth() == 7) month = "August";
		if (now.getMonth() == 8) month = "Sept";
		if (now.getMonth() == 9) month = "October";
		if (now.getMonth() == 10) month = "Nov";
		if (now.getMonth() == 11) month = "Dec";
		thelement.innerHTML = "<p>" + month + " " + date + ", " + year + " " + ctime + "</p>";
		setTimeout("show2()",200);
}


// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/photo1_small.gif'
Pic[1] = 'images/photo2_small.gif'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// create popup window for images on the fly
var imgWindow = new Object;
var imgWindow = null;

function popImg(thepic,w,h) {
	if (!imgWindow || imgWindow.closed) {
   		imgWindow = window.open('','','width=' + w + ', height=' + h + ', location=0, toolbar=0, menubar=0, directories=0, scrollbars=0, status=0, resizable=0'); 
		doc = imgWindow.document;
		doc.open('text/html');
		doc.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \n\t"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">\n'); 
		doc.write('<html>\n'); 
		doc.write('<head>\n<title>Vogelbilt Corporation - images</title>\n'); 
		doc.write('<style type="text/css">\n<!--\n'); 
		doc.write('body {\n\tmargin:-10px 0 0 -10px;\n\tpadding: 0;\n\tbackground-color :#000;\n\tcolor: #fff;\n\t}\n'); 
		doc.write('html body {\n\tmargin: 0;\n\t}\n'); 
		doc.write('img {\n\tdisplay: block;\n\tborder: 0;\n\t}\n'); 
		doc.write('-->\n</style>\n</head>\n'); 
		doc.write('<body onblur="self.close();">\n'); 
		doc.write('<div><img src="' + thepic + '" width="' + w + '" height="' + h + '" alt="" /></div>\n'); 
		doc.write('</body>\n</html>'); 
		doc.close(); 
	}
	else {
		imgWindow.focus();
	}
}