function openmovwindow(pagetitle, type, thisurl, movwidth, movheight, winwidth, winheight)
{
var xWin = window.open('','','width=' + winwidth + ',height=' + winheight + ',menubar=no,toolbar=auto,personalbar=no,location=no,' + 'directories=no,status=yes,scrollbars=auto,resizable=yes,dependent=yes,left=0,top=0,screenx=0,screeny=0');
	xWin.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");	
	xWin.document.write("<html><head><title>" + pagetitle + "</title><link rel=\"stylesheet\" type=\"text/css\" href=\"zma.css\">");
	xWin.document.write("<script type=\"text/javascript\" src=\"AC_QuickTime.js\"></script>");
	xWin.document.write("</head><body style=\"background-color: black; margin: 0; padding: 0;\">");
    xWin.document.write("<div style=\"width: " + movwidth + "px; position: absolute; top: 10px; margin-left:" + Math.round((parseInt(winwidth) - parseInt(movwidth)) / 2) + "px;\">");
    xWin.document.write("<script language=\"JavaScript\" type=\"text/javascript\">");
 	xWin.document.write("QT_WriteOBJECT('" + thisurl + "', '" + movwidth + "', '" + movheight + "', '',");
 	xWin.document.write("'controller', 'false',");
 	xWin.document.write("'cache', 'true',");
 	xWin.document.write("'bgcolor', 'black',");
 	xWin.document.write("'title', 'Click and hold the mouse button to rotate the bird specimen')");
    xWin.document.write("</script></div>");
    xWin.document.write("<div style=\"position: absolute; top: " + (parseInt(movheight) + 20) + "px; width: " + (parseInt(winwidth) - 50) + "px; text-align: center; margin-left: 25px;\"><p class=\"type\">" + type + "</p><p class=\"smallmov\">Click the image and use your mouse to rotate the specimen. Alternatively you can click the image and use the arrow keys on your keyboard.</p>");
    xWin.document.write("<p class=\"smallmov\">Photography: Huub Veldhuijzen van Zanten, ETI<br>&copy; University of Amsterdam, <b><a class=\"menuselect\" onmouseover=\"style.textDecoration = 'underline'\" onmouseout=\"style.textDecoration = 'none'\" onclick=\"javascript: window.open('legal.html', 'Legal', 'width=500,height=400,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,left=0,top=20,screenX=0,screenY=20');\">legal notice</a></b>.</p>");
    xWin.document.write("</div></body></html>");
}

/*function openmovwindow(pagetitle, type, thisurl, movwidth, movheight, winwidth, winheight)
{
var xWin = window.open('','','width=' + winwidth + ',height=' + winheight + ',menubar=no,toolbar=auto,personalbar=no,location=no,' + 'directories=no,status=yes,scrollbars=auto,resizable=yes,dependent=yes,left=0,top=0,screenx=0,screeny=0');
	xWin.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");	
	xWin.document.write("<html><head><title>" + pagetitle + "</title>");
	xWin.document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"zma.css\">");
	xWin.document.write("<script type=\"text/javascript\" src=\"AC_QuickTime.js\"></script>");
	xWin.document.write("</head><body style=\"background-color: black;\">");
    xWin.document.write("<div style=\"text-align: center; width: " + winwidth + "px; position: absolute;\">");
    xWin.document.write("<div align=\"center\" style=\"top: 10px;\">");
    xWin.document.write("<script language=\"JavaScript\" type=\"text/javascript\">");
 	xWin.document.write("QT_WriteOBJECT('" + thisurl + "', '" + movwidth + "', '" + movheight + "', '',");
 	xWin.document.write("'controller', 'false',");
 	xWin.document.write("'cache', 'true',");
 	xWin.document.write("'bgcolor', 'black',");
 	xWin.document.write("'align', 'middle',");
 	xWin.document.write("'title', 'Click and hold the mouse button to rotate the bird specimen')");
    xWin.document.write("</script></div>");
    xWin.document.write("<div style=\"position: absolute; top: 385px; left: 0; margin: auto;\"><p class=\"type\">" + type + "</p><p class=\"smallmov\">Click the image and use your mouse to rotate the specimen. Alternatively you can click the image and use the arrow keys on your keyboard.</p>");
    xWin.document.write("<p class=\"smallmov\">Photography: Huub Veldhuijzen van Zanten, ETI<br>&copy; University of Amsterdam, <b><a class=\"menuselect\" onmouseover=\"style.textDecoration = 'underline'\" onmouseout=\"style.textDecoration = 'none'\" onclick=\"javascript: window.open('legal.html', 'Legal', 'width=500,height=400,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,left=0,top=20,screenX=0,screenY=20');\">legal notice</a></b>.</p>");
    xWin.document.write("</div></body></html>");
}*/

function openpicwindow(pagetitle, type, thisurl, picwidth, picheight, winwidth, winheight, alt)
{
var xWin = window.open('','','width=' + winwidth + ',height=' + winheight + ',menubar=no,toolbar=auto,personalbar=no,location=no,' + 'directories=no,status=yes,scrollbars=auto,resizable=yes,dependent=yes,left=0,top=0,screenx=0,screeny=0');
	xWin.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");	
	xWin.document.write("<html><head><title>" + pagetitle + "</title><link rel=\"stylesheet\" type=\"text/css\" href=\"zma.css\">");
	xWin.document.write("</head><body style=\"background-color: black;\">");
    xWin.document.write("<div align=\"center\" style=\"position: relative; margin: 10px;\">");
    xWin.document.write("<p><img src=\"" + thisurl + "\" width=\"" + picwidth + "\" height=\"" + picheight + "\" alt=\"" + alt + "\"></p>");
    xWin.document.write("<p class=\"type\">" + type + "</p>");
    xWin.document.write("<p class=\"smallmov\">Photography: Huub Veldhuijzen van Zanten, ETI<br>&copy; University of Amsterdam, <b><a class=\"menuselect\" class=\"menuselect\" onmouseover=\"style.textDecoration = 'underline'\" onmouseout=\"style.textDecoration = 'none'\" onclick=\"javascript: window.open('legal.html','Legal', 'width=500,height=400,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,left=0,top=20,screenX=0,screenY=20');\">legal notice</a></b>.</p>");
    xWin.document.write("</div></body></html>");
}


 var pic, alt, alt2, bird_name, url;
 pic = new Array;
 pic[0] = "thumbs/04962.jpg";
 pic[1] = "thumbs/47902.jpg";
 pic[2] = "thumbs/43803.jpg";
 pic[3] = "thumbs/47874.jpg";
 pic[4] = "thumbs/08703.jpg";
 pic[5] = "thumbs/00261.jpg";
 pic[6] = "thumbs/00280.jpg";
 pic[7] = "thumbs/00142.jpg";
 pic[8] = "thumbs/32100.jpg";
 pic[9] = "thumbs/47867.jpg";
 pic[10] = "thumbs/07763.jpg";
 pic[11] = "thumbs/45734.jpg";
 pic[12] = "thumbs/38155.jpg";
 pic[13] = "thumbs/45560.jpg";
 pic[14] = "thumbs/08018.jpg";
 pic[15] = "thumbs/04720.jpg";
 pic[16] = "thumbs/11091.jpg";
 pic[17] = "thumbs/45427.jpg";
 pic[18] = "thumbs/06108.jpg";
 pic[19] = "thumbs/10341.jpg";
 pic[20] = "thumbs/46139.jpg";
 pic[21] = "thumbs/09275.jpg";
 pic[22] = "thumbs/43449.jpg";
 pic[23] = "thumbs/00782.jpg";
 pic[24] = "thumbs/02461.jpg";
 pic[25] = "thumbs/42762.jpg";
 pic[26] = "thumbs/01940.jpg";
 
 alt = new Array;
 alt[0] = "ZMA 4962 (paratype)";
 alt[1] = "ZMA 47902 (paratype)";
 alt[2] = "ZMA 43803 (paratype)";
 alt[3] = "ZMA 47874 (paratype)";
 alt[4] = "ZMA 8703 (holotype)";
 alt[5] = "ZMA 261 (holotype?)";
 alt[6] = "ZMA 280 (syntype?)";
 alt[7] = "ZMA 142 (syntype)";
 alt[8] = "ZMA 32100 (syntype)";
 alt[9] = "ZMA 47867 (paratype)";
 alt[10] = "ZMA 7763 (paratype)";
 alt[11] = "ZMA 45734 (paratype)";
 alt[12] = "ZMA 38155 (holotype)";
 alt[13] = "ZMA 45560 (paratype)";
 alt[14] = "ZMA 8018 (paratype)";
 alt[15] = "ZMA 4720 (paratype)";
 alt[16] = "ZMA 11091 (paratype)";
 alt[17] = "ZMA 45427 (paratype)";
 alt[18] = "ZMA 6108 (paratype)";
 alt[19] = "ZMA 10341 (holotype)";
 alt[20] = "ZMA 46139 (paratype)";
 alt[21] = "ZMA 9275 (paratype)";
 alt[22] = "ZMA 43449 (holotype)";
 alt[23] = "ZMA 782 (holotype)";
 alt[24] = "ZMA 2461 (syntype)";
 alt[25] = "ZMA 42762 (paratype)";
 alt[26] = "ZMA 1940 (holotype)";
 
 alt2 = new Array;
 alt2[0] = "Tataupa Tinamou - ZMA 4962 (Crypturus kerberti paratype)";
 alt2[1] = "Vinous-breasted Sparrowhawk - ZMA 47902 (Accipiter rhodogaster butonensis paratype)";
 alt2[2] = "Peregrine Falcon - ZMA 43803 (Falco peregrinus harterti paratype)";
 alt2[3] = "Barred Buttonquail - ZMA 47874 (Turnix suscitator kuiperi paratype)";
 alt2[4] = "Pompadour Green Pigeon - ZMA 8703 (Treron pompadori dehaani holotype)";
 alt2[5] = "Eclectus Parrot - ZMA 261 (Eclectus cornelia holotype?)";
 alt2[6] = "Eclectus Parrot - ZMA 280 (Psittacodis westermani syntype?)";
 alt2[7] = "Solomon Islands Corella - ZMA 142 (Lophochroa goffini syntype)";
 alt2[8] = "Rainbow Lorikeet - ZMA 32100 (Psitteuteles weberi syntype)";
 alt2[9] = "Oriental Bay Owl - ZMA 47867 (Phodilus badius parvus paratype)";
 alt2[10] = "Large Wren-babbler - ZMA 7763 (Turdinus macrodactylus beauforti paratype)";
 alt2[11] = "Firecrest - ZMA 45734 (Regulus ignicapillus laeneni paratype)";
 alt2[12] = "Orange-spotted Bulbul - ZMA 38155 (Pycnonotus snouckaerti holotype)";
 alt2[13] = "Coal Tit - ZMA 45560 (Parus ater pinicolus paratype)";
 alt2[14] = "Eurasian Nuthatch - ZMA 8018 (Sitta europaea norvegica paratype)";
 alt2[15] = "Grey-hooded White-eye - ZMA 4720 (Oreosterops pinaiae paratype)";
 alt2[16] = "Bananaquit - ZMA 11091 (Coereba flaveola bonairensis paratype)";
 alt2[17] = "Chaffinch - ZMA 45427 (Fringilla coelebs scotica paratype)";
 alt2[18] = "European Greenfinch - ZMA 6108 (Chloris chloris harrisoni paratype)";
 alt2[19] = "Eurasian Bullfinch - ZMA 10341 (Pyrrhula pyrrhula iberiae holotype)";
 alt2[20] = "Eurasian Jay - ZMA 46139 (Garrulus glandarius lusitanicus paratype)";
 alt2[21] = "Knobbed Hornbill - ZMA 9275 (Aceros cassidix brevirostris paratype)";
 alt2[22] = "Sillem's Mountain Finch - ZMA 43449 (Leucosticte sillemi holotype)";
 alt2[23] = "Magnificent x King Bird of Paradise - ZMA 782 (Diphyllodes gulielmi III holotype)";
 alt2[24] = "Japanese Waxwing - ZMA 2461 (Bombycilla japonica syntype)";
 alt2[25] = "Bluethroat - ZMA 42762 (Cyanecula suecica robusta paratype)";
 alt2[26] = "Fulvous-breasted Woodpecker - ZMA 1940 (Picus westermani holotype)";
 
 bird_name = new Array;
 bird_name[0] = "Tataupa Tinamou (<i>Crypturus kerberti</i>)";
 bird_name[1] = "Vinous-breasted Sparrowhawk (<i>Accipter r. butonensis</i>)";
 bird_name[2] = "Peregrine Falcon (<i>Falco peregrinus harterti</i>)";
 bird_name[3] = "Barred Buttonquail (<i>Turnix suscitator kuiperi</i>)";
 bird_name[4] = "Pompadour Green Pigeon (<i>Treron pompadori dehaani</i>)";
 bird_name[5] = "Eclectus Parrot (<i>Eclectus cornelia</i>)";
 bird_name[6] = "Eclectus Parrot (<i>Psittacodis westermani</i>)";
 bird_name[7] = "Solomon Islands Corella (<i>Lophochroa goffini</i>)";
 bird_name[8] = "Rainbow Lorikeet (<i>Psitteuteles weberi</i>)";
 bird_name[9] = "Oriental Bay Owl (<i>Phodilus badius parvus</i>)";
 bird_name[10] = "Large Wren-babbler (<i>Turdinus macrodactylus beauforti</i>)";
 bird_name[11] = "Firecrest (<i>Regulus ignicapillus laeneni</i>)";
 bird_name[12] = "Orange-spotted Bulbul (<i>Pycnonotus snouckaerti</i>)";
 bird_name[13] = "Coal Tit (<i>Parus ater pinicolus</i>)";
 bird_name[14] = "Eurasian Nuthatch (<i>Sitta europaea norvegica</i>)";
 bird_name[15] = "Grey-hooded White-eye (<i>Oreosterops pinaiae</i>)";
 bird_name[16] = "Bananaquit (<i>Coereba flaveola bonairensis</i>)";
 bird_name[17] = "Chaffinch (<i>Fringilla coelebs scotica</i>)";
 bird_name[18] = "European Greenfinch (<i>Chloris chloris harrisoni</i>)";
 bird_name[19] = "Eurasian Bullfinch (<i>Pyrrhula pyrrhula iberiae</i>)";
 bird_name[20] = "Eurasian Jay (<i>Garrulus glandarius lusitanicus</i>)";
 bird_name[21] = "Knobbed Hornbill (<i>Aceros cassidix brevirostris</i>)";
 bird_name[22] = "Sillem's Mountain Finch (<i>Leucosticte sillemi</i>)";
 bird_name[23] = "Magnificent x King Bird of Paradise hybrid";
 bird_name[24] = "Japanese Waxwing (<i>Bombycilla japonica</i>)";
 bird_name[25] = "Bluethroat (<i>Cyanecula suecica robusta</i>)";
 bird_name[26] = "Fulvous-breasted Woodpecker (<i>Picus westermani</i>)";

 url = new Array;
 url[0] = "tinamidae.html";
 url[1] = "accipitridae2.html";
 url[2] = "falconidae.html";
 url[3] = "turnicidae.html";
 url[4] = "columbidae.html";
 url[5] = "psittacidae.html";
 url[6] = "psittacidae2.html";
 url[7] = "psittacidae4.html";
 url[8] = "psittacidae6.html";
 url[9] = "tytonidae.html";
 url[10] = "timaliidae.html";
 url[11] = "sylviidae.html";
 url[12] = "muscicapidae.html";
 url[13] = "paridae.html";
 url[14] = "sittidae.html";
 url[15] = "zosteropidae.html";
 url[16] = "parulidae.html";
 url[17] = "fringillidae.html";
 url[18] = "fringillidae3.html";
 url[19] = "fringillidae7.html";
 url[20] = "corvidae.html";
 url[21] = "bucerotidae.html";
 url[22] = "fringillidae9.html";
 url[23] = "paradisaeidae.html";
 url[24] = "bombycillidae.html";
 url[25] = "turdidae.html";
 url[26] = "picidae.html";

 var now = new Date();
 var seed = now.getTime() % 0xffffffff;

 function rand(n) {
 seed = (0x015a4e35 * seed) % 0x7fffffff;
 return ( seed >> 16 ) % n;
 }

 var num = rand(27);

 function showImage(){
 document.write("<a href=\"types_home.html\"><img title=\"Click the bird image to continue\" alt=\"Zoological Museum Amsterdam - Bird collection\" src=\"" + pic[num] + "\" width=\"192\" height=\"291\" border=\"0\"></a>");
 }
 
 function showImage2(){
 document.write("<img alt=\"" + alt2[num] + "\" title=\"" + alt2[num] + "\" src=\"" + pic[num] + "\" width=\"192\" height=\"291\" border=\"0\">");
 }
 
 function showName(){
  document.write(bird_name[num] + "<br>" + alt[num]);
 }
