//<!-- hide script from old browsers
//var vers = navigator.appVersion;
//if (vers.indexOf("3.")!=-1 || vers.indexOf("2.")!=-1)
//{
//    alert("To view this page you need Netscape 4.0+ or Internet Explorer 4.0+");
//
//}
//// -->



var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function instructions ()
{ // Determine OS
msg = ' Cannot determine what browser you are using.  No information available. '
msg1 = ' 1) Put your cursor over the image you want to download.<br> '
msg2 = ' 2) Click the right mouse button.<br> '
msg3 = ' 2) Hold down the mouse button for more than a second.<br> '
msg4 = ' 3) Choose "Save Image As..."<br> '
msg5 = ' 3) Choose "Save this Image as..."<br> '
msg6 = ' 3) Choose "Download Image to Disk"<br> '
msg7 = ' 3) Choose "Save Picture As..."<br> '
msg8 = ' 4) Choose the folder you want to save the image into.<br> '
msg9 = ' 5) Click the SAVE button. '




   if (OS=="Windows")
      {
         // document.write ('<p align="center">You\'re using Windows so right-mouse click</p>');
         msg = msg1 + msg2
      }
   else if (OS=="Mac")
      {
         msg = msg1 + msg3
      }
   else if (OS=="Linux")
      {
         document.write ('<p align="center">No instructions for Linux operating system</p>');
      }
   else if (OS=="Unix")
      {
         document.write ('<p align="center">No instructions for Unux operating system</p>');
      }
   else
      {
         document.write ('<p align="center">No instructions for unknown operating system</p>');
      }

// Determine browser


   if (browser = "Internet Explorer")
      {
         msg = msg + msg7
      }
   else if (browser = "Netscape Navigator")
      {
        if (OS=="Mac")
         {
            msg = msg + msg5
         }
        else
         {
            msg = msg + msg4
         }
      }
   else if (browser = "Opera")
      {
         document.write ('<p align="center">No instructions for Opera web browser</p>');
      }
   else if (browser = "Safari")
      {
         document.write ('<p align="center">No instructions for Safari web browser</p>');
      }
   else if (browser = "OmniWeb")
      {
         document.write ('<p align="center">No instructions for Omniweb browser</p>');
      }
   else if (browser = "WebTV")
      {
         document.write ('<p align="center">No instructions for WebTV browser</p>');
      }
   else if (browser = "iCab")
      {
         document.write ('<p align="center">No instructions for iCab browser</p>');
      }
   else
      {
         document.write ('<p align="center">No instructions for unknown browser</p>');
      }

titlehead = '<p align="center"><font size="5" color="#ff0000"><b>How To Download Images</b></font></p>'
warning = '<p align="left"><font size="4" color="#ff0000"><b>Important:</b></font> Be sure you have clicked on a thumbnail and are now looking at the full sized image.  Otherwise you will only download the thumbnail (a small image).</p>'
inst = '<table align=left  cellpadding=4  border=0 width=98%><td width=100%>' +  msg + msg8 + msg9 +'</td></table>'
document.write(titlehead);
document.write('<p align="center">You are using ' + browser + ' ' + version + ' on ' + OS + '</p>');
document.write(warning);
document.write(inst);
}

