function photosNipigonDestinations(rows, cols, numItems, link)
{
	var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/Albums/Barry/Nipigon Destinations/Gravel River Resort/pic2_small.jpg"
	albums[0][1]= "Gravel River Resort"
	albums[0][2]= "18 pictures"
	albums[0][3]= "Pictures taken at the resort"
	albums[0][4]= "Photos_nipdest_gravel.shtml"
	
	/*
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Nipigon Destinations/Ice Fishing/icefishingbrookie2_small.jpg"
	albums[1][1]= "Ice Fishing"
	albums[1][2]= "4 pictures"
	albums[1][3]= "Ice fishing pictures."
	*/
	writeCategorySpace(albums, "Nipigon Destination Albums", rows, cols, numItems, link)

}

function photosIceFishing(rows, cols, numItems, link)
{
	var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/Albums/Barry/Ice Fishing/Camping/wintercamping2_small.jpg"
	albums[0][1]= "Camping"
	albums[0][2]= "3 pictures"
	albums[0][3]= "Camping pictures."
	albums[0][4]= "Photos_icefishing_camping.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Ice Fishing/Ice Fishing/icefishingbrookie2_small.jpg"
	albums[1][1]= "Ice Fishing"
	albums[1][2]= "7 pictures"
	albums[1][3]= "Ice fishing pictures."
	albums[1][4]= "Photos_icefishing_icefishing.shtml"
	
	writeCategorySpace(albums, "Ice Fishing Albums", rows, cols, numItems, link)

}

function photosWildlife(rows, cols, numItems, link)
{
	var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/Albums/Barry/Wildlife/Bear/bear2_small.jpg"
	albums[0][1]= "Bear"
	albums[0][2]= "4 pictures"
	albums[0][3]= "Some bear pictures."
	albums[0][4]= "Photos_wildlife_bear.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Wildlife/Moose/moose1_small.jpg"
	albums[1][1]= "Moose"
	albums[1][2]= "4 pictures"
	albums[1][3]= "Moose along the road."
	albums[1][4]= "Photos_wildlife_moose.shtml"
	
	albums[2] = new Array()
	albums[2][0]= "/Extras/Albums/Barry/Wildlife/Random/fox_small.jpg"
	albums[2][1]= "Random"
	albums[2][2]= "1 picture"
	albums[2][3]= "Random animal pictures."
	albums[2][4]= "Photos_wildlife_random.shtml"
	/*
	albums[3] = new Array()
	albums[3][0]= "/Extras/Albums/Laketrout/img_0177_small.jpg"
	albums[3][1]= "Bear"
	albums[3][2]= "0 pictures"
	albums[3][3]= "Some bear pictures"
	*/
	writeCategorySpace(albums, "Wildlife Albums", rows, cols, numItems, link)

}

function photosFish(rows, cols, numItems, link)
{
	var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/Albums/Barry/Fish/Big Brookies/laukkanen002_small.jpg"
	albums[0][1]= "Big Brookies"
	albums[0][2]= "56 pictures"
	albums[0][3]= "Some speckled trout pictures."
	albums[0][4]= "Photos_fish_bigbrookies.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Fish/Pike/pike1_small.jpg"
	albums[1][1]= "Pike"
	albums[1][2]= "10 pictures"
	albums[1][3]= "Pike pictures."
	albums[1][4]= "Photos_fish_pike.shtml"
	
	albums[2] = new Array()
	albums[2][0]= "/Extras/Albums/Barry/Fish/Laketrout/laketrout1_small.jpg"
	albums[2][1]= "Lake Trout"
	albums[2][2]= "8 pictures"
	albums[2][3]= "Lake Trout pictures."
	albums[2][4]= "Photos_fish_laketrout.shtml"
	
	albums[3] = new Array()
	albums[3][0]= "/Extras/Albums/Barry/Fish/Walleye/walleye1_small.jpg"
	albums[3][1]= "Walleye"
	albums[3][2]= "7 pictures"
	albums[3][3]= "Walleye pictures."
	albums[3][4]= "Photos_fish_walleye.shtml"
	
	
/*
	albums[4] = new Array()
	albums[4][0]= ""
	albums[4][1]= "Salmon"
	albums[4][2]= "0 pictures"
	albums[4][3]= "Salmon caught from the Nipigon River."
	
	albums[5] = new Array()
	albums[5][0]= ""
	albums[5][1]= "Rainbow"
	albums[5][2]= "9 pictures"
	albums[5][3]= "Some gorgeous rainbows."
	
	albums[6] = new Array()
	albums[6][0]= ""
	albums[6][1]= "Brook Trout"
	albums[6][2]= "0 pictures"
	albums[6][3]= "Some nice specs."
	*/
	writeCategorySpace(albums, "Fish Albums", rows, cols, numItems, link)

}

function photosScenic(rows, cols, numItems, link)
{
	var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/Albums/Barry/Nipigon River/nipview_small.jpg"
	albums[0][1]= "Nipigon Area"
	albums[0][2]= "24 pictures"
	albums[0][3]= "Scenic pictures of the Nipigon Area"
	albums[0][4]= "Photos_scenic_nipigonriver.shtml"
	
	/*	
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Pike/nathan2_small.jpg"
	albums[1][1]= "Pike"
	albums[1][2]= "10 pictures"
	albums[1][3]= "Various pike pictures."
	albums[1][4]= "Photos_fishing_pike.shtml"
	
	albums[2] = new Array()
	albums[2][0]= ""
	albums[2][1]= "Perch"
	albums[2][2]= "0 pictures"
	albums[2][3]= "Tiny but tasty."
	
	albums[3] = new Array()
	albums[3][0]= ""
	albums[3][1]= "Pickerel"
	albums[3][2]= "0 pictures"
	albums[3][3]= "A few pickerel pictures."

	albums[4] = new Array()
	albums[4][0]= ""
	albums[4][1]= "Salmon"
	albums[4][2]= "0 pictures"
	albums[4][3]= "Salmon caught from the Nipigon River."
	
	albums[5] = new Array()
	albums[5][0]= ""
	albums[5][1]= "Rainbow"
	albums[5][2]= "9 pictures"
	albums[5][3]= "Some gorgeous rainbows."
	
	albums[6] = new Array()
	albums[6][0]= ""
	albums[6][1]= "Brook Trout"
	albums[6][2]= "0 pictures"
	albums[6][3]= "Some nice specs."
	*/
	writeCategorySpace(albums, "Scenic Albums", rows, cols, numItems, link)

}


function videosWildlife(rows, cols, numItems, link)
{
		var albums = new Array()
	albums[0] = new Array()
	albums[0][0]= "/Extras/pictures/moose_cross.jpg"
	albums[0][1]= "Moose crossing"
	albums[0][2]= "00:50"
	albums[0][3]= "Moose crossing the lake with her baby"
	albums[0][4]= "Videos_wildlife_moosecross.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/pictures/porcupinepic.jpg"
	albums[1][1]= "Porcupine"
	albums[1][2]= "00:11"
	albums[1][3]= "Porcupine on the Run"
	albums[1][4]= "Videos_wildlife_porcupine.shtml"
		
	/*
	albums[1] = new Array()
	albums[1][0]= "/Extras/pictures/moose_cross.jpg"
	albums[1][1]= "Moose crossing"
	albums[1][2]= "00:50"
	albums[1][3]= "Moose crossing the lake with her baby"
	albums[1][4]= "Videos_kids.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/pictures/moose_cross.jpg"
	albums[1][1]= "Moose crossing"
	albums[1][2]= "00:50"
	albums[1][3]= "Moose crossing the lake with her baby"
	albums[1][4]= "Videos_wildlife_moosecross2.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/Albums/Barry/Nipigon Destinations/Ice Fishing/icefishingbrookie2_small.jpg"
	albums[1][1]= "Ice Fishing"
	albums[1][2]= "4 pictures"
	albums[1][3]= "Ice fishing pictures."
	*/
	writeCategorySpace(albums, "Wildlife Videos", rows, cols, numItems, link)
}

function videosIcefishing(rows, cols, numItems, link)
{
		var albums = new Array()
			albums[0] = new Array()
	albums[0][0]= "/Extras/pictures/actiononbiglakepic.jpg"
	albums[0][1]= "Action on the Big Lake"
	albums[0][2]= "01:22"
	albums[0][3]= "Ice Fishing on Lake Superior"
	albums[0][4]= "Videos_icefishing_actiononbiglake.shtml"
	
	writeCategorySpace(albums, "Ice Fishing Videos", rows, cols, numItems, link)
}	
function videosFishing(rows, cols, numItems, link)
{
		var albums = new Array()
			albums[0] = new Array()
	albums[0][0]= "/Extras/pictures/catchingbrookies.jpg"
	albums[0][1]= "Catching Brookies"
	albums[0][2]= "00:48"
	albums[0][3]= "Caught 20 nice ones in 2 days."
	albums[0][4]= "Videos_fishing_catchingbrookies.shtml"
	
	albums[1] = new Array()
	albums[1][0]= "/Extras/pictures/brookieaction.jpg"
	albums[1][1]= "Brookie Action"
	albums[1][2]= "01:03"
	albums[1][3]= "Another nice catch."
	albums[1][4]= "Videos_fishing_brookieaction.shtml"
	
	albums[2] = new Array()
	albums[2][0]= "/Extras/pictures/doubleheader_pic.jpg"
	albums[2][1]= "Double Header"
	albums[2][2]= "00:10"
	albums[2][3]= "Two at once!"
	albums[2][4]= "Videos_fishing_doubleheader.shtml"
	
	albums[3] = new Array()
	albums[3][0]= "/Extras/pictures/nipriverpic.jpg"
	albums[3][1]= "Catching Brookies on the Nipigon River"
	albums[3][2]= "02:13"
	albums[3][3]= "Another good day fishing."
	albums[3][4]= "Videos_fishing_catchingnipriver.shtml"
	
	albums[4] = new Array()
	albums[4][0]= "/Extras/pictures/goldenpic.jpg"
	albums[4][1]= "Fishing at Golden Hook Camp"
	albums[4][2]= "06:33"
	albums[4][3]= "Nice place to go for an adventure."
	albums[4][4]= "Videos_fishing_goldenhook.shtml"
	
	albums[5] = new Array()
	albums[5][0]= "/Extras/pictures/kidswalleyes.jpg"
	albums[5][1]= "Kids Hammering Walleyes"
	albums[5][2]= "01:25"
	albums[5][3]= "Excellent memories for children."
	albums[5][4]= "Videos_fishing_kidswalleyes.shtml"
	
	writeCategorySpace(albums, "Fishing Videos", rows, cols, numItems, link)
}	

function over(cell)
{
	var span = cell.getElementsByTagName("span");
	var par = cell.getElementsByTagName("p");
	var img = cell.getElementsByTagName("img");

	//cell.style.borderWidth = "0px 2px 2px 2px" 
	/*
	cell.style.backgroundColor = "#858585"
	span[0].style.color = "white"
	span[1].style.color = "white"
	par[1].style.color = "white"
	*/
	//span[0].style.color = "rgb(51,102,153)"
	span[0].style.textDecoration = "underline"
	/*
	span[1].style.textDecoration = "underline"
	par[1].style.textDecoration = "underline"
	*/
}

function out(cell)
{
	var span = cell.getElementsByTagName("span");
	var par = cell.getElementsByTagName("p");
	var img = cell.getElementsByTagName("img");
	
	//cell.style.borderWidth = "0px 1px 1px 1px" 
	/*
	cell.style.backgroundColor = "white"
	span[0].style.color = "black"
	span[1].style.color = "#858585"
	par[1].style.color = "black"
	*/
	span[0].style.color = text_color_dark
	span[0].style.textDecoration = "none"
	/*
	span[1].style.textDecoration = "none"
	par[1].style.textDecoration = "none"
	*/
}

function clicked(cell)
{

	location.href = cell.firstChild.href
}
/*
function writeCategory(albums, title, rows, cols, numItems, link)
{
	var itemsSoFar = 0
	var rowsSoFar = 0
	
	if(cols == null)
	{
		if(screen.width < 900)		
			cols = 1
		else if(screen.width > 899 && screen.width < 1100)
			cols = 2
		else 
			cols = 3
		
	}

	var colspan = 1
	
	if(cols == 1)
		colspan = 2
	
	
	var percent = 100 / cols + "%"
	
	if((numItems == null) || (numItems > albums.length))
		numItems = albums.length
	
	
	
	document.write("<table cellspacing='0' cellpadding='0' style='width:100%; border:0px solid " + medium + ";'>")
	document.write("<tr>")
	document.write("<td colspan='" + (cols - 1)  + "'>")
	document.write("<p class='medium_b' style='color:" + text_color_light + "; font-weight:bold; border-style:solid; border-width:1px 0px 1px 1px; border-color:" + dark + " " + medium + " " + medium + " " + medium + "'>")
	document.write("&nbsp&nbsp" + title)
	document.write("</p>")
	document.write("</td>")
	document.write("<td style='text-align:right'>")
	document.write("<p class='medium_b' style='color:" + text_color_light + "; font-weight:bold; border-style:solid; border-width:1px 1px 1px 0px; border-color:" + dark + " " + medium + " " + medium + " " + medium + "'>")
	if(link == null)
		document.write("&nbsp")
	else
		document.write("<a class='white_i' style='margin:0px 10px 0px 0px' href='" + link + "'>Show All</a>")	
	document.write("</p>")
	document.write("</td>")
	document.write("</tr>")
	
	for(a = 0; itemsSoFar < numItems; a++)
	{
		
		if(rows != null)
		{
			if(rowsSoFar >= rows) 
				break
		}
		
		document.write("<tr>")
			 
		for(b = 0; (b < cols) && (itemsSoFar < numItems); b++)
		{
		
	
		
			if(b == 0)
				document.write("<td colspan='" + colspan + "' valign='top' style='width:" + percent + ";border-style: solid; border-color:" + medium + ";  border-width:0px 1px 1px 1px' >")
		    else
				document.write("<td colspan='" + colspan + "' valign='top' style='width:" + percent + ";border-style: solid; border-color:" + medium + "; border-width:0px 1px 1px 0px' >")
		  
			document.write("<div style='margin:10px 10px 10px 10px'>")
			document.write("<a onmouseover=over(this) onmouseout=out(this) style='' href='" + albums[itemsSoFar][4]	+ "'>")
			document.write("<p style='text-decoration:none;'>")
			document.write("<img style='border-width:0px; margin:0px 8px 0px 0px; float:left' src='" + albums[itemsSoFar][0] + "' align='left'></img>")
			document.write("<span style='font-weight:bold;color:" + text_color_dark + ";'> " + albums[itemsSoFar][1] + "</span>")
			document.write("<br/>")
			document.write("<span style='font-weight:bold; color:" + medium + "'>" + albums[itemsSoFar][2] + "</span>")	
			document.write("</p>")
			document.write("</a>")
			document.write("<p style='margin:-13px 0px 0px 0px; clear:left;text-decoration:none; color:" + text_color_dark + "'>")
			document.write(albums[itemsSoFar][3])
			document.write("</p>")
			document.write("</div>")
			
			document.write("</td>")	
			itemsSoFar = itemsSoFar + 1
		}
		document.write("</tr>")
		
		if(rows != null)
			rowsSoFar = rowsSoFar + 1
	
	}
	
	document.write("</table>")
}
*/
function spaceOver(cell)
{
	var span = cell.getElementsByTagName("span");
	span[0].style.textDecoration = "underline"

	/*var div = cell.firstChild
	div.style.borderWidth = "1px"
	div.style.borderColor = medium*/
	
}

function spaceOut(cell)
{	
	var span = cell.getElementsByTagName("span");
	span[0].style.textDecoration = "none"
	
	/*var div = cell.firstChild
	div.style.borderWidth = "1px"
	div.style.borderColor = light
	cell.style.borderColor = medium*/
}

function spaceClick(cell)
{
	location.href = cell.firstChild.firstChild.href
}

function writeCategorySpace(albums, title, rows, cols, numItems, link)
{
	var itemsSoFar = 0
	var rowsSoFar = 0
	
	if(cols == null)
	{

		if(screen.width > 1100)
			cols = 3
		else if(screen.width < 900)		
			cols = 1
		else 
			cols = 2
		
	}

	var colspan = 1
	
	if(cols == 1)
		colspan = 2
	
	
	var percent = 100 / cols + "%"
	
	if((numItems == null) || (numItems > albums.length))
		numItems = albums.length
	
	
	var width = ""
	
	if(screen.width > 1100)
		width = "85%"
	else if(screen.width < 900)
		width = "100%"
	else 
		width = "90%"	
	
	document.write("<table cellspacing='0px' cellpadding='0px' style='margin-left:auto; margin-right:auto; width:" + width + "; border:0px solid " + medium + ";'>")
	document.write("<tr>")
	document.write("<td colspan='" + (cols - 1)  + "'>")
	document.write("<p class='medium_b' style='margin:0px 0px 0px 5px; color:" + text_color_light + "; font-weight:bold; border-style:solid; border-width:1px 0px 1px 0px;  border-color:" + dark + " " + medium + " " + medium + " " + medium + "'>")
	document.write("<span style='margin-left:10px'>")
	document.write(title)
	document.write("</span>")
	document.write("</p>")
	document.write("</td>")
	document.write("<td style='text-align:right'>")
	document.write("<p class='medium_b' style='margin:0px 5px 0px 0px; color:" + text_color_light + "; font-weight:bold; border-style:solid; border-width:1px 0px 0px 0px; border-color:" + dark + " " + medium + " " + medium + " " + medium + "'>")
	if(link == null)
		document.write("&nbsp")
	else
		document.write("<a class='white_i' style='margin:0px 10px 0px 0px;' href='" + link + "'>SHOW ALL</a>")	
	document.write("</p>")
	document.write("</td>")
	document.write("</tr>")
	document.write("</table>")
	
	document.write("<table cellspacing='5px' cellpadding='0px' style='margin-left:auto; margin-right:auto; margin-top:-6px; width:" + width + "; border:0px solid " + medium + ";'>")
	
	
	for(a = 0; itemsSoFar < numItems; a++)
	{
		
		if(rows != null)
		{
			if(rowsSoFar >= rows) 
				break
		}
		
		document.write("<tr>")
			 
		for(b = 0; (b < cols) && (itemsSoFar < numItems); b++)
		{	
			document.write("<td class='hand' onmouseover=spaceOver(this) onmouseout=spaceOut(this) onclick='spaceClick(this)' colspan='" + colspan + "' valign='top' style='width:" + percent + "; border-style: solid; border-color:" + medium + "; border-width:1px' >")
			document.write("<div style='margin:9px 9px 9px 9px;'>")
			document.write("<a  style='' href='" + albums[itemsSoFar][4]	+ "'>")
			document.write("</a>")
			document.write("<p style='text-decoration:none;'>")
			document.write("<img style='border-width:1px; border-color:#c7c7c7; margin:0px 8px 0px 0px; float:left' src='" + albums[itemsSoFar][0] + "' align='left'></img>")
			document.write("<span style='font-weight:bold;color:" + text_color_dark + ";'> " + albums[itemsSoFar][1] + "</span>")
			document.write("<br/>")
			document.write("<span style='font-weight:bold; color:" + medium + "'>" + albums[itemsSoFar][2] + "</span>")	
			document.write("</p>")
			document.write("<p style='margin:-13px 0px 0px 0px; clear:left;text-decoration:none; color:" + text_color_dark + "'>")
			document.write(albums[itemsSoFar][3])
			document.write("</p>")
			document.write("</div>")
			document.write("</td>")	
			itemsSoFar = itemsSoFar + 1
		}
		document.write("</tr>")
		
		if(rows != null)
			rowsSoFar = rowsSoFar + 1
	
	}
	
	document.write("</table>")

}



function fishLinks()
{
	
		var links = new Array()
	var categoryLink = "Photos_fish.shtml"
	var categoryName = "Fish"
	
	links[0] = new Array() 
	links[0][0] = "Big Brookies"
	links[0][1] = "Photos_fish_bigbrookies.shtml"
	
	links[1] = new Array() 
	links[1][0] = "Lake Trout"
	links[1][1] = "Photos_fish_laketrout.shtml"
	
	links[2] = new Array()
	links[2][0] = "Walleye"
	links[2][1] = "Photos_fish_walleye.shtml"

	links[3] = new Array()
	links[3][0] = "Pike"
	links[3][1] = "Photos_fish_pike.shtml"
/*	
	links[4] = new Array()
	links[4][0] = "Salmon"
	links[4][1] = ""
	
	links[5] = new Array()
	links[5][0] = "Rainbow"
	links[5][1] = ""
	
	
	links[6] = new Array()
	links[6][0] = "Pickerel"
	links[6][1] = ""
	
	*/
	WriteLinks(categoryName, categoryLink, links)
	
}

function wildlifeLinks()
{
	
	var links = new Array()
	var categoryLink = "Photos_wildlife.shtml"
	var categoryName = "Wildlife"
	
	links[0] = new Array() 
	links[0][0] = "Bear"
	links[0][1] = "Photos_wildlife_bear.shtml"
	
	links[1] = new Array() 
	links[1][0] = "Moose"
	links[1][1] = "Photos_wildlife_moose.shtml"
	
	links[2] = new Array()
	links[2][0] = "Random"
	links[2][1] = "Photos_wildlife_random.shtml"
	
	WriteLinks(categoryName, categoryLink, links)
	
}

function iceFishingLinks()
{
	
	var links = new Array()
	var categoryLink = "Photos_ice_fishing.shtml"
	var categoryName = "Ice Fishing"
	
	links[0] = new Array() 
	links[0][0] = "Camping"
	links[0][1] = "Photos_icefishing_camping.shtml"
	
	links[1] = new Array() 
	links[1][0] = "Ice Fishing"
	links[1][1] = "Photos_icefishing_icefishing.shtml"
		
	WriteLinks(categoryName, categoryLink, links)
	
}

function WriteLinks(categoryName, categoryLink, links)
{
	var items_so_far = 0;	
	var num_items = links.length
	var items_left = num_items
	var cols = 3
	var percent = 100 / cols + "%"
	var items_per_col = Math.ceil(num_items/cols)

	document.write("<hr style='width:80%; color:" + medium + "; height:1' />")
	document.write("<br/>")
	document.write("<div style='text-align:center'>")
	document.write("<h2 style='color:" + text_color_dark + "; border-style:solid; border-width:0px 0px 0px 0px; border-color:" + text_color_dark + "'>")
	document.write("All albums from <a class='black' style='text-decoration:underline; font-weight: bold' href='" + categoryLink + "'>" + categoryName + "</a>:" )
	document.write("</h2>")
	document.write("<table cellspacing='0px' cellpadding='5px' style='margin-left:auto; margin-right:auto; width:80%; border:0px solid " + medium + ";'>")
	document.write("<tr>")
	
	for(a = 0; a < cols; a++)
	{
		document.write("<td valign='top'>")
		document.write("<ul>")
		
		
		for(b = 0; (b < items_per_col) && (b < items_left); b++) 
		{
			document.write("<li>")
			document.write("<a class='blue' href='" + links[items_so_far][1] + "'>" + links[items_so_far][0] + "</a>" )
			document.write("</li>")
			items_so_far = items_so_far + 1	
			
		}
		
		items_left = items_left - items_per_col
		
		document.write("</ul>")
		document.write("</td>")	
		
		if(items_left == 0)
			break	
	}
	document.write("</tr>")
	document.write("</table>")
	document.write("</div>")
	
	document.write("<br/>")
	document.write("<br/>")
}