// Display photos and QT movie in small window // (c) D.J. Gains, 2006 var myWin = null; var qtWin = null; // Window - needs url, title, note & sizes function show (Url, Title, Note, Width, Height) { if (is_opera5up) return; if (Url!=null) { /* Use URL if no title */ if (Title==null) Title=Url; /* Size window, allow for margins */ if (Width<100) Width=100; MyWidth = Width+40; if (Height<100) Height=100; MyHeight = Height+120; /* Close window if already open */ if (myWin) { if (!myWin.closed) myWin.close(); } myWin=window.open(Url, 'myWin', 'width='+MyWidth+',height='+MyHeight+',menubar=0,toolbar=0,status=0,scrollbars=0,resizable=0'); /* HTML */ myWin.document.open(); with (myWin.document) { write(""); write("\n"); write("\n"); write(""+Title+"\n"); write("\n"); write("\n"); write("\n"); write("

"+Title+"

\n"); write("
\n"); write(""+Title+"\n"); if (Note!=null) { if (Note == "Birdguides") { write("
This image used courtesy of BirdGuides Ltd, www.birdguides.com\n"); } else { if (Note == "Geoghegan") { write("
This image used courtesy of Gerald Geoghegan, gerald@kingfishers.fsworld.co.uk\n"); } else { if (Note == "Round") { write("
This image used courtesy of Steven Round
stevenround-birdphotography.com
\n"); } else{ if (Note == "Tranter") { write("
This image used courtesy of Sue Tranter
www.suesbirdphotos.co.uk
\n"); } else { if (Note == "Chaplin") { write("
This image used courtesy of Darren Chaplin
www.nature-image.co.uk
\n"); } else { write("
Number of birds visiting an urban garden in Sheffield, England.\n"); write("
Q1 = Winter   Q2 = Spring   Q3 = Summer   Q4 = Autumn\n"); write("
The data are available as a text file.
\n"); } } } } } } write("

\n"); write("Close window\n"); write("
\n"); write("\n"); } myWin.document.close(); } } // Picture window - needs url, title & sizes function showPic (Url, Title, Width, Height, Owner) { show (Url, Title, Owner, Width, Height) } // DJG: 14-May-2006 // Run Quicktime PHP script in pop-up window function playSound (Url, Title) { Url="http://www.garden-birds.co.uk/birds/" + Url; window.open('http://www.garden-birds.co.uk/shared/scripts/quicktime.php?url='+Url+"&title="+Title, qtWin, 'width=220,height=200,menubar=0,toolbar=0,status=0,scrollbars=0,resizable=1'); } // Tidy up function closeWindows() { if (myWin) { if (!myWin.closed) myWin.close(); } if (qtWin) { if (!qtWin.closed) qtWin.close(); } }