function writeDate() {
  
  // get a date object
  var today = new Date();
  var dayWord;
  var monthWord;

  // ask the object for some information
	
  var month = today.getMonth();
  var date = today.getDate();
  var hour = today.getHours();
  var minutes = today.getMinutes();
  var year = today.getYear();

  // help Netscape print a readable year	

if (year < 2000) {
	year = year + 1900
}

  // change numerical months to words

switch (month)
  	{
		 case 0:
			monthWord = "January";
			break;
		case 1:
			monthWord = "February";
			break;
		case 2:
			monthWord = "March";
			break;
		case 3:
			monthWord = "April";
			break;
		case 4:
			monthWord = "May";
			break;
		case 5:
			monthWord = "June";	
			break;
		case 6:
			monthWord = "July";
			break;
		case 7:
			monthWord = "August";
			break;
		case 8:
			monthWord = "September";
			break;
		case 9:
			monthWord = "October";
			break;
		case 10:
			monthWord = "November";
			break;
		case 11:
			monthWord = "December";	
			break;
	} //end switch -->
						  
  // format the output
  var theDay = date + "th " + monthWord + " " + year + " " + hour + ":" + minutes;
  document.write(theDay);

}

function init() {
	// Initialize the scroller.
	layer = getLayer("placeholder");
	x = getPageLeft(layer);
	y = getPageTop(layer);
	if (document.layers)
		y = y + 2;

	var myScroller = new Scroller(x, y, 350, 15, 0, 0);
	myScroller.setColors("#FF0000", "#CCCCCC", "#CCCCCC");
	myScroller.setFont("Verdana,Arial,Helvetica", 1);
	myScroller.setSpeed(20);
	myScroller.setPause(2500);
	myScroller.setzIndex(100);
	
    myScroller.create();
}

// Netscape 3.0 compatibility (image swapping)
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) {
	compat = true; 
}
        
// cache images
function cacheImages(strLang,strRegLang) {
	if( compat )
	{
		l_home = new Image();
		l_home.src = "/images/caseih/l_home.gif";
		lo_home = new Image();
		lo_home.src = "/lo_home.gif";	
		
		l_about = new Image();
		l_about.src =  "/images/caseih/l_about.gif";
		lo_about = new Image();
		lo_about.src ="/images/caseih/lo_about.gif";	
		
		l_products = new Image();
		l_products.src =  "/images/caseih/l_products.gif";
		lo_products = new Image();
		lo_products.src = "/images/caseih/lo_products.gif";
		
		l_parts = new Image();
		l_parts.src = "/images/caseih/l_parts.gif";
		lo_parts = new Image();
		lo_parts.src =  "/images/caseih/lo_parts.gif";
		
		l_case = new Image();
		l_case.src =  "/images/caseih/l_case.gif";
		lo_case = new Image();
		lo_case.src =  "/images/caseih/lo_case.gif";
		
		l_financing = new Image();
		l_financing.src =  "/images/caseih/l_financing.gif";
		lo_financing = new Image();
		lo_financing.src =  "/images/caseih/lo_financing.gif";
		
		l_publications = new Image();
		l_publications.src =  "/images/caseih/l_publications.gif";
		lo_publications = new Image();
		lo_publications.src =  "/images/caseih/lo_publications.gif";
		
		l_news = new Image();
		l_news.src =  "/images/caseih/l_news.gif";
		lo_news = new Image();
		lo_news.src =  "/images/caseih/lo_news.gif";
		
		l_events = new Image();
		l_events.src =  "/images/caseih/l_events.gif";
		lo_events = new Image();
		lo_events.src =  "/images/caseih/lo_events.gif";
		
		l_equipment = new Image();
		l_equipment.src =  "/images/caseih/l_equipment.gif";
		lo_equipment = new Image();
		lo_equipment.src =  "/images/caseih/lo_equipment.gif";
	
		l2_equipment = new Image();
		l2_equipment.src =  "/images/caseih/equipment.gif";
		lo2_equipment = new Image();
		lo2_equipment.src =  "/images/caseih/equipment.gif";

		A1= new Image();
		A1.src = "/img/rotating/" + strRegLang + "/A1.jpg";
		A2= new Image();
		A2.src = "/img/rotating/" + strRegLang + "/A2.jpg";
		A3= new Image();
		A3.src = "/img/rotating/" + strRegLang + "/A3.jpg";
		A4= new Image();
		A4.src = "/img/rotating/" + strRegLang + "/A4.jpg";
		A5= new Image();
		A5.src = "/img/rotating/" + strRegLang + "/A5.jpg";
		A6= new Image();
		A6.src = "/img/rotating/" + strRegLang + "/A6.jpg";
	
		B1= new Image();
		B1.src = "/img/rotating/" + strRegLang + "/B1.jpg";
		B2= new Image();
		B2.src = "/img/rotating/" + strRegLang + "/B2.jpg";
		B3= new Image();
		B3.src = "/img/rotating/" + strRegLang + "/B3.jpg";
		B4= new Image();
		B4.src = "/img/rotating/" + strRegLang + "/B4.jpg";
		B5= new Image();
		B5.src = "/img/rotating/" + strRegLang + "/B5.jpg";
		B6= new Image();
		B6.src = "/img/rotating/" + strRegLang + "/B6.jpg";
		
		C1= new Image();
		C1.src = "/img/rotating/" + strRegLang + "/C1.jpg";
		C2= new Image();
		C2.src = "/img/rotating/" + strRegLang + "/C2.jpg";
		C3= new Image();
		C3.src = "/img/rotating/" + strRegLang + "/C3.jpg";
		C4= new Image();
		C4.src = "/img/rotating/" + strRegLang + "/C4.jpg";
		C5= new Image();
		C5.src = "/img/rotating/" + strRegLang + "/C5.jpg";
		C6= new Image();
		C6.src = "/img/rotating/" + strRegLang + "/C6.jpg";
		
	}
}

// swap cached images
function swap(x, y) {
	if( compat ) {
		//alert(x)
		document.images[x].src=eval(y+'.src');
	}
}

// this function is for rotating images only
function changeImg(x, y) {
	if (compat) {
		document.images[x].src=eval(y+'.src');
		}
	}
