
var preload_list = new Array("coffeeicon.gif");
var path_to_images = "../images/";
var msg2="<img src=../images/coffeeicon.gif>"
var origMsg = '<div class="hot"></div>';

// preload (change path to images if necessary)
if (document.images) {
	var image_list = new Array();
	for (var preload_counter=0; preload_counter<preload_list.length; preload_counter++) {
  	image_list[preload_counter] = new Image(); 
		image_list[preload_counter].src = path_to_images + preload_list[preload_counter];	
  }
}
var num = 1;

function showInfo(txt) {
	// call constructor to create write layer
	// arguments: id, width, height
	// be sure to set height large enough or ns4 will clip it off
	infoLyr = new writeObj('infoDiv',280,120);
	//showInfo(origMsg);	
	var num = document.formx.totImages.value;
	if (num > 100) 
	{
		num = 100;
		document.formx.totImages.value = num;
	}

	if (!infoLyr) return;
	var cntnt = '<div class="info">';
	for (var i=0;i<=num-1;i++)
	{
		cntnt = cntnt + txt;
	}
		cntnt = cntnt +'</div>';
		infoLyr.writeLyr(cntnt);
}
function swapImage(num) {
	if (document.images) {
		document.swap.src = image_list[num].src;
	}
}
var infoLyr;
function initInfoLyr() {
	// call constructor to create write layer
	// arguments: id, width, height
	// be sure to set height large enough or ns4 will clip it off
	infoLyr = new writeObj('infoDiv',280,120);
	showInfo(origMsg);	
}
window.onload=initInfoLyr;
