
var statMsg = new Array()
statMsg[0] = "http://theorniphile.info/grus_americana.html in a pop-up window";
statMsg[1] = "http://theorniphile.info/larus_crassirostris.html in a pop-up window";

var msg = new Array()
msg[0] = "- A selection of my bird and insect photographs -";
msg[1] = "- Account of Illinois' first Whooping Crane since 1958 -";
msg[2] = "- Using a digital camera with a Questar telescope for photography -";
msg[3] = "- The photo quiz I wrote for the January/February 2006 issue of Birding magazine - ";
msg[4] = "- A guide to birding the Montrose Point Area in Chicago -";
msg[5] = "- A selection of interesting and informative birding Web sites -";
msg[6] = "- Photos of Thayer's and Iceland Gulls -";
msg[7] = "- Account of the second inland North American record of this species -";
msg[8] = "- The nightjar identification article I wrote for Meadowlark magazine -";

var valid = new Array()
valid[0] = "This graphic indicates that the HTML used for this Web site has been validated and is free of syntax errors.";
valid[1] = "This graphic indicates that the CSS used for this Web site has been validated and is free of syntax errors.";

var image0=new Image(11,8);
var image1=new Image(11,8);
var image2=new Image(60,28);
var image3=new Image(60,28);
var image4=new Image(88,31);
var image5=new Image(88,31);
var image6=new Image(88,31);
var image7=new Image(88,31);
var image8=new Image(8,8);

image0.src="images/pointer2.gif";
image1.src="images/pointer3.gif";
image2.src="images/home2.gif";
image3.src="images/home3.gif";
image4.src="images/html_gold.png";
image5.src="images/html_blue.png";
image6.src="images/css_gold.png";
image7.src="images/css_blue.png";
image8.src="images/pointer_left.gif";

function menuInfo(blurb)
{
document.getElementById("menu_display_area").childNodes[0].nodeValue=blurb;
}

function colophonInfo(blurb)
{
document.getElementById("display_area").innerHTML=blurb;
}

function protect()
{
alert('These photographs are copyrighted!' + '\n\n' + '- Robert Hughes');
return false;
}

function openWin(page, name, attributes)
{
var newWin;
newWin = window.open(page, name, attributes);
newWin.focus();
}

function closeWin(win)
{
window.close(win);
}

function imgSwap(elem, num)
{
document.getElementById(elem).src=eval("image" + num + ".src");
}

function showPic(pic, txt , descrip)
{
var m_img = "montrose_image";
var d = document.getElementById(m_img);
d.src=pic;
d.alt=txt;
d.title=txt;
document.getElementById("description").innerHTML=descrip;
}

function pic_border(item, specs)
{
document.getElementById(item).style.border=specs;
}

function backToTop()
{
window.scrollTo(0,0);
}

function highlight(item, col)
{
document.getElementById(item).style.background=col;
}

function reveal(quiz, pic, name)
{
var d = document.getElementById(pic);
document.getElementById(quiz).innerHTML="Answer: " + name;
d.title=name;
d.alt=name;
}

function noFrames()
{
if(top.location != location)
{
top.location.href = document.location.href; 
}
}

function addBookmark()
{
var bookmark_url="http://theorniphile.info/";
var text_description="The Orniphile";
if (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion) >=4 && navigator.platform.indexOf("Win") > -1)
{
window.external.AddFavorite(bookmark_url,text_description);
}

else
{
alert("For PC users, press the Control (Ctrl) and \"D\" keys on your keyboard to bookmark this site. For Mac users, press the Command (Apple) and \"D\" keys on your keyboard.");
}
}

function goTo()
{ 
var first_part = "http://www.google.com/search?btnG=Google+Search&q="
var second_part = "digiscoping";
window.location.href= first_part + second_part;
}


function changeMessage()
{
if(navigator.platform.indexOf("Win") > -1 && navigator.appName == "Microsoft Internet Explorer")
{
document.getElementById("targ").innerHTML = "Save Target As";
}

if(navigator.platform.indexOf("Win") > -1 && navigator.appName == "Netscape")
{
document.getElementById("targ").innerHTML = "Save Link As";
}

if(navigator.platform.indexOf("Win") > -1 && navigator.appName == "Opera")
{
document.getElementById("targ").innerHTML = "Save Linked Content As";
}

if(navigator.appVersion.indexOf("Mac") > -1 && navigator.appName == "Netscape")
{
document.getElementById("targ").innerHTML = "Download Linked File";
document.getElementById("where").style.display = "none";
}

}

function makeBold(elem, which)
{
document.getElementById(elem).className=which;
}

function showYr()
{
var d = new Date()
var y = d.getFullYear();
document.getElementById("copyright").innerHTML= "&#169; " +  y + " The Orniphile";
}