<!-- Hide the JavaScript from non-JavaScript capable Browsers
browserName = navigator.appName;
browserVer  = parseInt(navigator.appVersion);

var rotate_delay = 6000; // delay in milliseconds (5000 = 5 secs)
current = 0;

PicTable = new Array();
PicCnt = 0;

var ZoomWin = '';
var ZoomTitle = '';
var ZoomPic = '';

PicHolder = new Image();

PicTable[PicCnt++] = new Array ("martinka/img/museum/ms126.jpg", "French Set from 1900", "Combines anodized brass pieces  with turned boxwood pieces.  The brass pieces include a brass card tripod; changing canisters; and a multiplying money tray.  There is also a black painted tin bottle for making a flower appear; a boxwood kugel hammer; a set of tin cups and balls, a bonus genus doll; brass rattle box; and the usual assortment of boxwood pieces. From the collection of Joel B. Miller.");
PicTable[PicCnt++] = new Array ("martinka/img/museum/ms83.jpg", "French Set - 1850's", "This set consists mostly of large Boxwood pieces.  The piece in the upper right hand corner will load a chosen card into a real egg!  Other than the tin cups and balls, the bonus genus doll (unfortunately lost and missing from the box) and the Scotch Purse, the remaining pieces are an assortment of large and wonderful boxwood items from the period.  These pieces could, most likely be found depicted in a Martinka catalog from the late 1800's. From the collection of Joel B. Miller.");
PicTable[PicCnt++] = new Array ("martinka/img/museum/ms1t.jpg", "German Set from 1860's - Top", "Manufactured by Bohm-lander. Click '>' to see the contents and description");
PicTable[PicCnt++] = new Array ("martinka/img/museum/ms1c.jpg", "German Set from 1860's - Contents", "Contains a beautiful boxwood  Millet Barrel and Bell set used for an exchange where Millet seed disappears from the Barrel (top left corner) and which will then appear under the bell (bottom left corner).  The boxwood egg-shaped box on the bottom right is for the appearance of a live bird; the remaining tricks consist of the usual coin box; grandma's necklace; the pillars of Solomon; dagger in arm; card box and 'Ballanchini's Block' where a flower appears mysteriously on the top of a pillar. From the collection of Joel B. Miller.");

function next() {
	if (document.slideform.slide[current+1]) {
		document.slideform.slide.selectedIndex = ++current; 
		change();

	} else first();
}

function previous() {
	if (current-1 >= 0) {
		document.slideform.slide.selectedIndex = --current;
		change();
	}
	else last();
}

function first() {
	current = 0;
	document.slideform.slide.selectedIndex = current;
	change();
}

function last() {
	current = document.slideform.slide.length-1;
	document.slideform.slide.selectedIndex = current;
	change();
}

function rotate() {
	if (document.slideform.slidebutton.value == "Stop") {
		current = (current == document.slideform.slide.length-1) ? 0 : current+1;
		document.slideform.slide.selectedIndex = current;
		change();		
		window.setTimeout("rotate()", rotate_delay);
   }
}


function ap(text) {
	document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
	rotate();
}

function change() {
	current = document.slideform.slide.selectedIndex;
	document.images.show.src = document.slideform.slide[current].value;
	
	document.descform.descbox.value = PicTable[current][2];
	document.all.PicName.innerHTML = PicTable[current][1];
	if (document.slideform.slide[current+1]) {
		PicHolder.src = document.slideform.slide[current+1].value;
	}


}

function ZoomView() {
	var high = '';
	var side = '';
	var ZoomFeatures = "status";
	
	PicHolder.src = document.slideform.slide[current].value;
		
	high = PicHolder.height + 140;
	side = PicHolder.width + 50;
 	
	if (ZoomWin && !ZoomWin.closed) {
  		ZoomWin.close();
 	}
	ZoomWin = eval("window.open('/martinka/webcode/zoom.html','ZoomWin','"+ZoomFeatures+",height="+high+",width="+side+"')");
   	if (!ZoomWin.opener) ZoomWin.opener = self;
}

function ZoomCreate() {

   ZoomWin.document.open();
   ZoomWin.document.write("<html><head><title>zoom</title></head><body>");
 
 ZoomWin.document.write("<SCRIPT language=JavaScript>var message='martinka.com - all contents copyright 2004';");
 ZoomWin.document.write("function click(e) {	if (document.all) { if (event.button==2||event.button==3) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } }");
 ZoomWin.document.write("if (document.layers) {document.captureEvents(Event.MOUSEDOWN)};");
 ZoomWin.document.write("document.onmousedown=click;</SCRIPT>");

   ZoomWin.document.write("<center><strong>"+PicTable[current][1]+"</strong><p>");
   ZoomWin.document.write("<img src=" + document.images.show.src + "><br>");
   ZoomWin.document.write("<a href='#' onClick='self.close()'>");
   ZoomWin.document.write('<BR><IMG src="martinka/img/interface/but-close.gif" height=33 width=110></a></center></body></html>');
   ZoomWin.document.close();

}
 
//-->

