/* author: Garry Conway */
/* creation date: 4/10/05 */

/***********************************************
* Sliding Menu Bar Script- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
***********************************************/

window.statusbar=('0');

var menimage = new Image();
menimage.src = "menubk.gif"; //preload the image for the background

var slidemenu_width='135px' //specify width of menu (in pixels)
var slidemenu_reveal='40px' //specify amount that menu should protrude initially
var slidemenu_top='120px'   //specify vertical offset of menu on page

var ns4=document.layers?1:0
var ie4=document.all
var ns6=document.getElementById&&!document.all?1:0

if (ie4||ns6)
document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
else if (ns4){
document.write('<style>&n#slidemenubar{&nwidth:'+slidemenu_width+';}&n<&/style>&n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}

var sitems=new Array()

///////////Edit below/////////////////////////////////

//siteitems[x]=["Item Text", "Optional URL associated with text"]

sitems[0]=["&nbsp;", "&nbsp;"]
sitems[1]=["&nbsp;&nbsp;Home", "index-a.html"]
sitems[2]=["&nbsp;&nbsp;Biography", "biog.html"]
sitems[3]=["&nbsp;&nbsp;Purchase", "purchase.html"]
sitems[4]=["&nbsp;&nbsp;Workshops<br>&nbsp;&nbsp;Exhibitions", "exhibitions.html"]
sitems[5]=["&nbsp;&nbsp;Services", "services.html"]
sitems[6]=["<b>Photographs</b>"]
sitems[7]=["&nbsp;&nbsp;Waterfalls", "waterfall.html"]
sitems[8]=["&nbsp;&nbsp;Wetlands", "bog.html"]
sitems[9]=["&nbsp;&nbsp;Wild Life", "animals.html"]
sitems[10]=["&nbsp;&nbsp;Beaver", "beaver.html"]
sitems[11]=["&nbsp;&nbsp;Arctic", "arctic.html"]
sitems[12]=["&nbsp;&nbsp;Plants", "plants.html"]
sitems[13]=["&nbsp;&nbsp;Mushrooms", "mushrooms.html"]
sitems[14]=["&nbsp;&nbsp;Birds", "birds.html"]
sitems[15]=["&nbsp;&nbsp;Pan - 360", "ns360.html"]

//sitems[10]=["&nbsp;&nbsp;Beaver", "beaver.html"]
//sitems[13]=["&nbsp;&nbsp;Panoramic", "pans.html"]
//If you want the links to load in another frame/window, specify name of target (ie: var target="_new")
if (screen.height >700)
var target="_self"
else
var target="photogs"


/////////////////////////////////////////////////////////

if (ie4||ns4||ns6){
for (i=0;i<sitems.length;i++){
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
document.write(sitems[i][0])
if (sitems[i][1])
document.write('</a>')
document.write('<br>')
}
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4){
document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)
document.slidemenubar.visibility="show"
setTimeout("window.onresize=regenerate",400)
}
}
window.onload=regenerate2

rightboundary=0
leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1

if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}

function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+10+"px"
else if(ns4&&themenu.left<rightboundary)
themenu.left+=10
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}

function drawengine(){
if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-10+"px"
else if(ns4&&themenu.left>leftboundary)
themenu.left-=10
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}

// Following is the information on each photograph

var iwater=new Array()
//Watrerfalls
iwater[0]='<br><b>Hilton Falls</b><BR><i>Sixteen Mile Creek</i><br>Campbellville, Ontario<br>Hilton Conservation Area'
iwater[1]='<br><b>Lower Balls Falls</b><br><i>Twenty Mile Creek</i><br>Vineland, Ontario<BR>Balls Falls Conservation Area'
iwater[2]='<br><b>Jones Falls</b><br><i>Pottawatomi River</i><br>Springmount<br>near Owen Sound, Ontario'
iwater[3]='<br><b>Webster\'\s Falls</b><br><i>Spencer Creek</i><br>Greensville, Ontario<br>Spencer Gorge Wilderness Area'
iwater[4]='<br><b>Wilson Falls</b><br><i>Muskoka River, North Branch</i><br>Bracebridge, Ontario'
iwater[5]='<br><b>Indian Falls</b><br><i>Indian Creek</i> <br>Balmy Beach,<br>near Owen Sound, Ontario<br>Indian Falls Conservation Area'
iwater[6]='<br><b>Tews Falls</b><br><i>Logie\'\s Creek</i><br>Greensville, Ontario<br>Spencer Gorge Wilderness Area'
iwater[7]='<br><b>The Devil\'\s Punch Bowl</b><br><i>Stoney Creek</i><br>Stoney Creek, Ontario'
iwater[8]='<br><b>Burnside Falls</b><br><i>Meadow Brook</i><br>Upper Burnside, Nova Scotia'
iwater[9]='<br><b>Indian Falls</b><br><i>LaHave River</i><br>Newburne, Nova Scotia'
iwater[10]='<br><b>Lower Concord Falls</b><br>Grenada'
iwater[11]='<br><b>Upper Concord Falls</b><br>Grenada'
iwater[12]='<br><b>Trinity Falls</b><br>St. Vincent'
iwater[13]='<br><b>Ragged Falls</b><br><i>Oxtongue River</i><br>Oxtongue Lake, Ontario'

//animals
iwater[14]='<br><b>Spring Moose</b><br><i>Spring Moulting</i><br>Algonguin Provincial Park<br>Ontario'
iwater[15]='<br><b>Moose & Calf</b><br><i>Fall</i><br>Entrance to Tom Thomson Lake<br>Algonguin Provincial Park<br>Ontario'
iwater[16]='<br><b>White-Tailed Deer</b><br><i>Early Spring Sunset</i><br>near Bancroft, Ontario'
iwater[17]='<br><b>White-Tailed Deer</b><br><i>Winter Feeding</i><br>near Haliburton, Ontario'
iwater[18]='<br><b>Flying Squirrel</b><br>Molega Lake, Nova Scotia'
iwater[19]='<br><b>Wolf</b><br>near Haliburton, Ontario'
iwater[20]='<br><b>Skunk</b><br><i>3-4 weeks old</i><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[21]='<br><b>Eastern Cotton Tail</b><br><i>1-2 weeks old</i><br>King Township, Ontario'
iwater[22]='<br><b>Raccoon</b><br><i></i><br>Ancaster, Ontario<br>near Mill Falls'
iwater[23]='<br>Porcupine<br>Nova Scotia'

//arctic
iwater[24]='<br><b>Icebergs</b><br><i>Ice berg Alley</i><br>Disco Bay, Illussat, Greenland'
iwater[25]='<br><b>Icebergs</b><br><i>crossing Davis Strait</i><br>between Greenland and Baffin Island'
iwater[26]='<br><b>Icebergs</b><br><i>crossing Davis Strait</i><br>between Greenland and Baffin Island'
iwater[27]='<br><b>Icebergs</b><br><i>Ice berg Alley</i><br>off Disco Bay, Illussat, Greenland'
iwater[28]='<br><b>Icebergs</b><br><i>crossing Davis Strait</i><br>between Greenland and Baffin Island'
iwater[29]='<br><b>Icebergs</b><br><i>crossing Davis Strait</i><br>between Greenland and Baffin Island'
iwater[30]='<br><b>Sunset</b><br><i>Lancaster Sound</i><br>between Devon Island and Baffin Island'
iwater[31]='<br><b>Sunset</b><br><i>Lancaster Sound</i><br>between Devon Island and Baffin Island'
iwater[32]='<br><b></b><br><i></i><br>'

//plants
iwater[33]='<br><b>Cabbage White</b><br>on fern<br>King Township, Ontario'
iwater[34]='<br><b>Jack-in-the-Pulpit</b><br><i>early bloom</i><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[35]='<br><b>Jack-in-the-Pulpit</b><br><i>Fall seeds</i><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[36]='<br><b>Variegated Trillium</b><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[37]='<br><b>Green Petal Trillium</b><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[38]='<br><b>Yellow Violet</b><br>King Township, Ontario<br> Oak Ridges Moraine'
iwater[39]='<br><b>Wild Geranium</b><br>Wallacetown, Ontario<br>John E. Pearce Provincial Park'
iwater[40]='<br><b>Bee Balm</b><br>Native Plant Garden<br>Laskay, Ontario'
iwater[41]='<br><b>Purple Cone Flower</b><br>Native Plant Garden<br>Laskay, Ontario'
iwater[42]='<br><b>Virginia Blue Bells</b><br>Native Plant Garden<br>Laskay, Ontario'
iwater[43]='<br><b>Sundrops</b><br>Native Plant Garden<br>Laskay, Ontario'
iwater[44]='<br><b>Nova Scotia Mushrooms</b><br>from the forest floor<br>'

//bog
iwater[50]='<br><b>Fall Bog</b><br>King Township, Ontario<br>Oak Ridges Moraine'
iwater[51]='<br><b>Spencer Creek</b><br><i></i><br>Greensborough, Ontario'
iwater[52]='<br><b>Sunset Bog</b><br><i></i><br>Point Pelee, Ontario'
iwater[53]='<br><b>American Toad</b><br>Eagle, Ontario<br>E.M. Warick Conservation Area'
iwater[54]='<br><b>Luther Marsh</b><br>near Grand Valley,<br> Dufferin / Wellington, Ontario<br>Grand River Conservation Authority'
iwater[55]='<br><b>Jefferson Salamander</b><br>King, Ontario'
iwater[56]='<br><b>Spotted Salamander</b><br>King, Ontario'
iwater[57]='<br><b>Spotted Salamander</b><br>King, Ontario'
iwater[58]='<br><b>Muskrat</b><br>East Humber River<br>King, Ontario'


//birds
iwater[60]='<br><b>Great Blue Heron</b><br><i>Speed River</i><br>Guelph, Ontario'
iwater[61]='<br><b>Northern Cardinal</b><br><i>female</i><br>King Township, Ontario'
iwater[62]='<br><b>Blue Jay</b><br><i></i><br>King Township, Ontario'
iwater[63]='<br><b>Rose-breasted Grosbeak</b><br><br>King Township, Ontario'
iwater[64]='<br><b>American Robin</b><br><i>Three days after leaving nest</i><br>King Township, Ontario'
iwater[65]='<br><b>Barred Owl</b><br><br>Whiteby, Ontario<br>Lynde Shores Conservation Area'
iwater[66]='<br><b>American Tree Sparrow</b><br>King Township, Ontario'
iwater[67]='<br>'

//news
iwater[100]='<br><b>Exhibition</b><br><br>Exhibition February through April<br>Daniels of Nobleton<a href="exhibitions.html"> more...</a><br><br><a href="#"onclick="reset()" class="bd12cnt"><b>- close -</b></a>'
iwater[101]='<br><b>2007 Photography Workshops</b><br><br>Get creative with your camera<br><br>last update Dec 20th.<br><br>see Menu: <br>[Exhibitions & Workshops] '
iwater[102]='<br><b>Photography<br>Workshops - Exhibitions - Events</b><br><br>Hike and Click - Happy Valley Forest</b><br>Saturday, July 3,<br><br><b>Photo Restoration</b><br>King Township Library - July 7,<br><br><br><a href="exhibitions.html"> for more on the above...</a><br><br>Last update May 26, 2010<br><br><a href="#"onclick="reset()" class="bd12cnt"><b>- close -</a><br><br>'

//cards
iwater[110]='Wildlife Collection<br><img src="cards/wildlife.jpg">'
iwater[111]='Bird Collection<br><img src="cards/birds.jpg">'
iwater[112]='Waterfall Collection<br><img src="cards/waterfalls.jpg">'
iwater[113]='Iceberg Collection<br><img src="cards/icebergs.jpg">'
iwater[114]='Snow Collection<br><img src="cards/snow.jpg">'
iwater[115]='Sample Cards<br><img src="cards/card.jpg">'

function regenerate3(){
window.location.reload()
}
function regenerate4(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changeinfo(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
cross_el.style.visibility ="visible"
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}
}

function appear(){
document.d1.visibility='show'
}

function reset(){
if (document.all||document.getElementById){
cross_el2=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el2.style.visibility ="hidden"
}
else{
descriptions.style.visibility ="hidden"
}
}

function resettext(){
if (document.all||document.getElementById){
cross_el3=document.getElementById? document.getElementById("text"):document.all.text
cross_el3.style.visibility ="hidden"

}
else{
text.style.visibility ="hidden"
}
}

window.onload=regenerate4


//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

// End - information on each photograph
