/*+++++++++++++++++++++++++++++++++++++++
SUBNAVSERV ITEMS
+++++++++++++++++++++++++++++++++++++++*/
var order = 		["Gen",					"Ben",					"Pan",					"Pup",					"Sas",					"Bja",								"Ola",					"Man", 					"Dha",					"Izz",					"Ppa",							"Sja",								"Zaz",				"Max",					"SMa",					"SSa",					"SGe"];
var orderFull = 	["General gallery",	"Benji: In Memory",	"Panda's gallery",	"Puppies gallery",	"Sassy's gallery",	"Boerewors Jack's gallery",	"Olaf's gallery",		"Manfred's gallery",	"Dharma's gallery",	"Izzey's gallery",		"Puppy Panda's gallery",	"Safari Jack's gallery",		"Zazu's gallery",	"Maxi's gallery",		"Sassy's show gallery",		"General show gallery"];


/////////////////////////////////
//these totals would include the zero, e.g. Pup0 to Pup25 is a total of 26.
var GenTotal = 41;
var BenTotal = 41;
var PanTotal = 26;
var PupTotal = 39;
var SasTotal = 18;
var BjaTotal = 17;
var OlaTotal = 13;

var ManTotal = 76;
var DhaTotal = 42;
var IzzTotal = 19;
var PpaTotal = 4;
var SjaTotal = 48;
var ZazTotal = 13;
var MaxTotal = 3;

//shows:
var SGeTotal = 17;
var SMaTotal = 11;//manfred
var SSaTotal = 4;//sassy



//NB Add new items to bottom!
var aGenCaptions = [
	"Frank with Jasper, Norway 2003 ",//pic 0
	"Benji keeps a keen eye on proceedings while Panda chills",//1
	"Frank, Benji and Panda cooling off on a hot summer's day",//2
	"Perry and some of Tone's dogs inNorway 2003. From left to right: Mambo, Jasper, Indigo, Nam-nam.",//3
	"June 2003, Bergen, Norway - we had taken this scenic outing with these local Leonberger owners.",//4
	"Skaergaarden breeding kennel's resident Leos",//5
	"Gin, Benji's mom",//6
	"Panda as a puppy, being held by Tone",//7
	"Panda in the flowers, Norway",//8
	"Panda's litter, Skaergaarden Kennel, Norway",//9
	"Benji's litter, Skaergaarden Kennel, Norway",//10
	"One of the puppies",//11
	"More puppies!",//12
	"Swimming with the dogs, June 2003, Kristiansand, Norway",//13
	"Winter-time in Norway - photo compliments of Tone Mosby",//14
	"Walking on water: a lone Leonberger investigates the iced up location of their summer swims - photo compliments of Tone Mosby",//15
	"Benji at a show in Cape Town end 2002 ",//16
	"Frank stands by while Benji dwarves a French Bulldog at a show - Best of Group Division",//17
	"One of Benji's male siblings, shows teen-aged curiosity",//18
	"Tone Mosby (RHS) receiving an accolade for one of her dogs in a show, Norway (photo compliments of Tone)",//19
	"Tone Mosby (centre) with one of her dogs in a show, Norway (photo compliments of Tone)",//20
	"Frank, Benji and Panda at Silvermine",//21
	"Jack and Sassy (Nov 2007). Aren't we beautiful?",//22
	"Our Leo family (Dec 2007)",//23
	"Our Leo family, now Benji is gone. Jack, Panda and Sassy (Jan 2008)",//24
	"Puppy play day. (Feb 2008)",//25
	"Puppy play day. (Feb 2008)",//26
	"The puppies, Sassy and Jack. (April 2008)",//27
	"Happy birthday!(21 July 2008)",//28
	"Panda, Jack and Sassy (September 2008)",//29
	"Perry, Kelly and baby Amy with Jack (Christmas day 2008)",//31
	"Leonberger get together, Stellenbosch dam, Nov 2008 - Panda, Jack, Sassy, Manfred and Issey were there",//32
	"Panda, just after she was diagnosed with chondrosarcoma (June 2009)",//33
	"Panda with Michael",//34
	"Olaf and Sassy",//35
	"The Leo family chilling",//36
	"Olaf (June 2009)",//37
	"June 2009",//38
	"The Leo family at the Constantia greenbelt (July 2009)",//39
	"Olaf with Mike and Kelly at Noordhoek beach (July 2009)",//40
	"Sassy, Panda and Olaf enjoying a pigs ear",//41

	""];
	
//NB Add new items to bottom!
var aBenCaptions = [
	"Benji and Frank - lawn-dogging under the sprinklers",//pic 0
	"Play time!",//1
	"A young Benji at Silvermine Nature Reserve, Cape Town",//2
	"Benji enjoying Christmas day, 2004",//3
	"The adult Benji, Silvermine Nature Reserve, Cape Town",//4
	"Six month old Benji enjoying the Spring arum lilies, West coast",//5
	"Benji, Silvermine Nature Reserve, Cape Town",//6
	"Benji swimming at Gordon's Bay, trying to breathe around a piece of kelp - January 2003",//7
	"Benji welcoming Panda into the family - June 2003",//8
	"Frank and Benji - spring flowers, West Coast, September 2002",//9
	"Perry and Benji - spring flowers, West Coast, September 2002",//10
	"Frank giving Benji water in the mountains above Muizenberg",//11
	"Give me a kiss! Benje & Frank ",//12
	"Benji - spring flowers, West Coast, September 2002",//13
	"Benji - spring flowers, West Coast, September 2002",//14
	"Benji swimming at Noordhoek. Benji loves the sea!",//15
	"Portrait of Benji at 2 years old",//16
	"Benji, Panda and Frank 2003",//17
	"2002, benji at 1 year old",//18
	"Feb 2003. Ben in one of his only dog shows",//19
	"Ben, Panda and Frank 2003. Cuddle time",//20
	"In silvermine, 2005, with baby Michael",//21
	"Benji and Panda 2003",//22
	"March 2003",//23
	"March 2003",//24
	"Benji 2002. Lying in his favourite position ...",//25
	"Benji 2003",//26
	"Benji - Puppy Play Day, Nov 2008",//27
	"Benji - Puppy Play Day, Nov 2008",//28
	"Jack adored Benji , Jan 2008",//29
	"Ben with Jack and Sassy 2 days before he died, Jan 2008",//30
	"Ben, Panda, Jack and Sassy getting treats at bedtime, Jan 2008",//31
	"Benji and Panda. The best of friends, Jan 21st, 2008, Bishopscourt walk",//32
	"Benji and Panda. The best of friends, Jan 21st, 2008, Bishopscourt walk",//33
	"Benji on his last walk, 21 Jan 2008, just before the huge haemorrage",//34
	"Benji, final days",//35
	"Benji showing his age",//36
	"Benji, RHS, with family",//37
	"Benji contemplates the pups",//38
	"Benji",//39
	"Benji, regal as ever",//40
	
	""];

//NB Add new items to bottom!
var aPanCaptions = [
	"Panda strikes a pose (2007)",//pic 0
	"Panda shows a more pensive side (2007)",//1
	"A young Panda emulates the elder Benji, soon after her arrival (August 2003).",//2
	"Mates already!",//3
	"Perry, Panda and Benji, Silvermine Nature Reserve, end 2004",//4
	"Perry spoiling the dogs, December 2003",//5
	"Tone Mosby (Benji and Panda's breeder) saying goodbye to Panda, Norway, June 2003",//6
	"I love water!",//7
	"Panda contemplates her new world... (September 2003)",//8
	"... and Panda again, later the same day",//9
	"Panda's first spring in South Africa",//10
	"Teen-aged Panda",//11
	"Panda laying claim to the builder's cap",//12
	"Perry and Panda, Silvermine Nature Reserve, end 2004",//13
	"Panda in contemplation",//14
	"Panda smiles for the camera",//15
	"Panda at home, January 2005",//16
	"\"When I'm big, I want to be like you...\"",//17
	"Panda and Kelly. Gidee-up horsey!!!! (Dec 2007)",//18	
	"Panda, Jack and Sassy (2008)",//19
	"Panda and the Pups (2008)",//20
	"Panda (July 2009)",//21
	"Panda and Jack (July 2009)",//22
	"Panda at the Constantia greenbelt(July 2009)",//23
	"Panda and Olaf (July 2009)",//24
	"Panda's last days; she is about to die and is in pain....(Nov 2009)",//25

	""];

//NB Add new items to bottom!
var aPupCaptions = [
	"Panda giving birth, Perry helping (2007) ",//pic 0
	"Day 1, puppies drinking (2007)",//1
	"1 day old (2007)",//2
	"1 week old (2007)",//3
	"1 week old, still just eating and sleeping!! (2007)",//4
	"Sleeping on Perry, 2 weeks old (2007)",//5
	"2 weeks old. Michael desperate to hold the puppies all of the time. He just can't understand \"gently\" (2007) ",//6
	"2 weeks old. Feeding time (2007)",//7
	"2 weeks old. Panda has taken to feeding sitting up as more teats are exposed for her hungry pups (2007)",//8
	"2 weeks old. The eyes have just opened (2007)",//9
	"3 weeks old. The puppies first day outside (2007)",//10
	"3 weeks old (2007)",//11
	"3 weeks old. The puppies first solid food- baby rice cereal. They loved it!! (2007)",//12
	"3 weeks old. Kelly getting to know the pups (2007)",//13
	"3 weeks old. Mike still learning to be gentle (2007)",//14
	"4 weeks old (2007)",//15
	"Looking like Yoda, I am doing (2007)",//16     //!
	"Peter passes the test (2007)",//17
	"Michelle and Michael (2007)",//18
	"Perry's brother, Peter, and Michael with the pups (2007)",//19
	"Lovies for the pups (2007)",//20
	"Grr, we're scary vicious pack animals, grrr! (2007)",//21
	"6 weeks old and pensive (2007)",//22
	"Michelle, Frank and Perry's sister-in-law, comes to grips with parenting (2007)",//23
	"still feeling boxed in (2007)",//24
	"6 weeks old (2007)",//25
	"6 weeks old (2007)",//26
	"6 weeks old (2007)",//27
	"6 weeks old - feeling boxed in (2007)",//28
	"Perry with the pups at 7 weeks",//29
	"Zazu (7 weeks old)",//30
	"Puppies drinking their goats milk at 8 weeks old",//31
	"Manfred 8 weeks old",//32
	"Safari Jack 8 weeks old",//33
	"Sassy 8 weekd old",//34
	"Benji, Panda, puppy Panda, Sassy and Jack going for a walk. I think I need a new bakkie. (10 weeks old)",//35
	"Puppy Panda on the greenbelt in Constantia 10 weeks old",//36
	"Frank with Jack and Sassy 10 weeks old",//37
	"Jack (12 weeks old) and Kelly (9 months old)",//38

	""];

//NB Add new items to bottom!
var aSasCaptions = [
	"Sassy 12 weeks old (2007)",//pic 0
	"Sassy 12 weeks old (2007)",//pic 1
	"Sassy and Jack 12 weeks old (2007)",//pic 2
	"Sassy taking a few liberties ... (Nov 2007)",//pic 3
	"Peter, my brother with Sassy and Panda and Jack lying down, easter 2008.",//pic 4
	"Sassy being verrry cute!",//pic 5
	"Sassy getting a smooch from Perry's sister-in-law",//pic 6
	"Where the pigs ears? (2008)",//pic 7
	"Yummmmyy....pigs ears! ",//pic 8
	"Sassy - September 2008",//pic 9
	"Sassy - September 2008",//pic 10
	"Kelly and Sassy. They love each other to bits (Nov 2008)",//pic 11
	"Sassy (June 2009)",//pic 12
	"Sassy (June 2009)",//pic 13
	"Sassy (June 2009)",//pic 14
	"Sassy at the Constantia greenbelt(July 2009)",//pic 15
	"Sassy at the Constantia greenbelt(July 2009)",//pic 16
	"Sassy ready for a walk (Aug 2009)",//pic 17
	
	""];

//NB Add new items to bottom!
var aBjaCaptions = [
	"Jack 12 weeks old",//0
	"Boerewors Jack 12 weeks old",//1
	"Jack and Perry (13 weeks old)",//2
	"Jack in his favourite spot (Dec 2007)",//3
	"Jack (Dec 2007)",//4
	"Jack, puppy play day (Feb 2008)",//5
	"Uncle Peter and Kelly with Jack, easter 2008",//6
	"Eyes getting heavier... (2008)",//7
	"Fighting the snooze (2008)",//8
	"Hmmm, I like lawn! (2008)",//9
	"Mike and Jack (2008)",//10
	"Where the pigs ears? (2008)",//11
	"Jack - September 2008",//12
	"Jack - September 2008",//13
	"Jack, my brother Pete and his baby Amy - Dec 2008",//14
	"Jack shortly after his knee operation. He had just finished some hydrotherapy with Perry",//15
	"Jack on the underwater treadmill doing rehabiliation after his TPLO knee operation, June 2009",//16
	
	""];

//NB Add new items to bottom!
var aOlaCaptions = [

	"Olaf (June 2009)",//0
	"Olaf (June 2009)",//1
	"Olaf (June 2009)",//2
	"Olaf (June 2009)",//3
	"Olaf (June 2009)",//4
	"Olaf (June 2009)",//5
	"Olaf (June 2009)",//6
	"Olaf (June 2009)",//7
	"Olaf (June 2009)",//8
	"Olaf at Noordhoek beach (July 2009)",//9
	"Olaf 'Laffies' (July 2009)",//10
	"Olaf and Kelly. Olaf is 7 months old and absolutely loves swimming!(october 2009)",//11
	"Olaf and Kelly. Olaf is 7 months old and absolutely loves swimming!(october 2009)",//12

		
	""];



	
//NB Add new items to bottom!
var aManCaptions = [
	"Manfred with his new owners Willie and Cheryl at 9 weeks old (2007)",//pic 0
	"10 Weeks (2007)",//1
	"12 Weeks (2007)",//2
	"Cruising home (2007)",//3
	"Gotcha (2007)",//4
	"Lunch is when (2007)",//5
	"MY shower (2007)",//6
	"Puppy school day 1 (2007)",//7
	"Splash (2007)",//8
	"Weekend one (2007)",//9
	"Weekend one (2007)",//10
	"Weekend one (2007)",//11
	"Weekend one (2007)",//12
	"Weekend one (2007)",//13
	"Weekend one (2007)",//14
	"Weekend one (2007)",//15
	"Weekend one (2007)",//16
	"Weekend one (2007)",//17
	"14 Weeks old (2007)",//18
	"14 Weeks old (2007)",//19
	"Oh yes I'm good-looking I am that (2007/8)",//20
	"Bomb hatches open! (2007/8)",//21
	"Mood shot (2007/8)",//22
	"Hangin' on the farm - we're all working dogs here! (2008)",//23
	"Never too cool for a swim (2008)",//24
	"Manfred (2008)",//25
	"Playing (2008)",//26
	"Gnawing... (2008)",//27
	"The bed is cool (2008)",//28
	"The show was rough (2008)",//29
	"C'mon, let's go! (2008)",//30
	"Our other dog Zoe (2008)",//31
	"I will make sure I fit (2008)",//32
	"Trying to look cute and succeeding (2008)",//33
	"I look so regal (2008)",//34
	"Look I can touch the bottom in the shallow end (2008)",//35
	"Landscape with Leo (2008)",//36
	"Friends forever... (2008)",//37
	"Galloping for the fun of it (2008)",//38
	"Joy to be young and fit (2008)",//39
	"Playing in the spray (2008)",//40
	"Attentive. Very attentive. (2008)",//41
	"Looking good... (2009)",//42
	"Manfred, about an hour after he'd taken a bath! (2009)",//43
	"Manfred (July 2009)",//44
	"Manfred (July 2009)",//45	
	"Swimming in Potchefstroom",//46
	"Manfred and Chery - Golden Gate",//47
	"Manfred and the girls - Bethlehem",//48
	"Manfred and Mandy",//49
	"Manfred, Willie and Mandy",//50
	"Manfred and Zoe(2010)",//51
	"",//52
	"",//53
	"",//54
	"",//55
	"",//56
	"",//57
	"",//58
	"",//59
	"",//60
	"",//61
	"",//62
	"",//63
	"",//64
	"",//65
	"",//66
	"",//67
	"",//68
	"",//69
	"",//70
	"",//71
	"",//72
	"",//73
	"",//74
	"",//75
	

	""];

//NB Add new items to bottom!
var aDhaCaptions = [
	"Dharma with her new owner Michelle at 9 weeks old (2007)",//pic 0
	"Dharma and blankie (2007)",//pic 1
	"Venus steps from her shell (2007)",//pic 2
	"A cuddle and a snooze (2007)",//pic 3
	"Out on the lawn with the family (2007)",//pic 4
	"Visiting the seaside (2007)",//pic 5
	"Rinsing off beach sand.  Langebaan October 2007",//pic 6
	"First visit to our Langebaan home, hanging out with family friends (2007)",//pic 7
	"Just Dharma (2007)",//pic 8
	"Taking pleasure in companionable abandon (2007)",//pic 9
	"Dharma giving the camera some soul (2007)",//pic 10
	"A little lovin' (2008)",//pic 11
	"\"Drat! I need to roll over ...\" (2008)",//pic 12
	"Pink patterns on my wallpaper (2008)",//pic 13
	"\"Hmm ... need a bigger bed ...\" (2008)",//pic 14
	"Hanging around ... (2008)",//pic 15
	"Gimme five! (2008)",//pic 16
	"Big guys (2008)",//pic 17
	"Dharma and family at Langebaan (2008)",//pic 18
	"Dharma and the girls (2008)",//pic 19
	"Dharma 1st Birthday (2008)",//pic 20
	"Dharma 1st Birthday (2008)",//pic 21
	"Dharma HOGGING our maltese's basket (2008)",//pic 22
	"Pretty in pink (2008)",//pic 23
	"Me and my girl (2008)",//pic 24
	"Master of cool (2008)",//pic 25
	"\"I dont know what it was, but just look cool... look coool!\" (2008)",//pic 26
	"\"AAAAArrrgghh did you see that!!!! What was that?!!\" (2008)",//pic 27
	"\"Well experience tells me don't go looking, if you dont know what you gonna find...\" (2008)",//pic 28
	"\"I'm telling you I saw something strange, right here, a second ago!\" (Dharma and Douglas, 2008)",//pic 29
	"Dharma, 2009",//pic 30
	"The furry kids and their pack leader, Nov 2009",//pic 31
	"Dharma, 15 Nov 2009",//pic 32
	"Sheer Happiness!!! (2010)",//pic 33
	"Sheer Happiness!!! (2010)",//pic 34
	"Sheer Happiness!!! (2010)",//pic 35
	"Dharma and Douglas, (2010)",//pic 36
	"Dharma and Douglas, (2010)",//pic 37
	"Sheer Happiness!!! (2010)",//pic 38
	"The kids are growing up (2010)",//pic 39
	"Dharma the photo-dog: side view (2010)",//pic 40
	"Dharma the photo-dog: front view (2010)",//pic 41
	
	""];
	
	
//NB Add new items to bottom!
var aIzzCaptions = [
	"Izzey with her new owners Hanri and Anton Gerischer at 10 weeks old  (2007)",//pic 0
	"Weekend one (2007)",//1
	"Weekend one (2007)",//2
	"Weekend one (2007)",//3
	"Photogenic Izzey",//4
	"Photogenic Izzey 2",//5
	"Photogenic Izzey 3",//6
	"Photogenic Izzey 4",//7
	"Photogenic Izzey 5",//8
	"Photogenic Izzey 6",//9
	"Photogenic Izzey 7",//10
	"Izzey doing the postcard doggie thing (2009)",//11
	"\"C'mon Izzey - smile for the camera...!\"(2009)",//12
	"Chillin' (2009)",//13
	"Love and a warm dog (2009)",//14
	"Anton and Izzey (2009)",//15
	"Warm sand  (2009)",//16
	"Anton and Izzey (2009)",//17
	"Anton and Izzey (2009)",//18
	
	""];


//NB Add new items to bottom!
var aPpaCaptions = [
	"Panda 10 weeks old (2007)",//pic 0
	"Panda's coat glowing for the camera flash",//pic 1
	"\"What do you mean, smile?\"",//pic 2
	"Panda sits for the photos",//pic 3
	
	""];
	

//NB Add new items to bottom!
var aSjaCaptions = [
	"Safari Jack with his new owner Lenadri Kruger at 9 weeks old (2007)",//pic 0
	"Safari Jack with his new owner Elbi Kruger at 7 weeks old (2007)",//pic 1
	"7 weeks old (2007)",//pic 2
	"7 weeks old (2007)",//pic 3
	"7 weeks old (2007)",//pic 4
	"Safari Jack at his new house 9 weeks old (2007)",//pic 5
	"First time visiting the beach, blaauwberg 9 weeks old (2007)",//pic 6
	"First time visiting the beach, blaauwberg9 weeks old (2007)",//pic 7
	"Safari Jack at his new house 9 weeks old (2007)",//pic 8
	"Jack taking over our bed! King of the house already! 10 weeks old (2007)",//pic 9
	"Jack playing model-model, Loves being photographed,  11 weeks old (2007)",//pic 10
	"He is a natural! 11 weeks old (2007)",//pic 11
	"A real Casanova. 11 weeks old (2007)",//pic 12
	"Jack playing model-model 11 weeks old (2007)",//pic 13
	"Jack playing model-model 11 weeks old (2007)",//pic 14
	"Jack playing model-model 11 weeks old (2007)",//pic 15
	"Jack playing model-model 11 weeks old (2007)",//pic 16
	"Jack at the beach at Ysterfontein 12 weeks old (2007)",//pic 17
	"Jack and Iago.... note the paws! jack's paws at 12 weeks - already larger than Iagos at 5 years!12 weeks old (2007)",//pic 18
	"Jack at the beach at Ysterfontein 12 weeks old (2007)",//pic 19
	"Happy Halloween from Jack - 14 weeks old (2007)",//pic 20
	"Happy Halloween from Jack - 14 weeks old (2007)",//pic 21
	"14 week old Safari Jack (2007) showing SIZE",//pic 22
	"Study in browns. (Christmas hols, 2007)",//pic 23
	"The gang: cruising with my homies ... (Christmas hols, 2007)",//pic 24
	"First swim at 6h30, and just keep swimming all day ... (Christmas hols, 2007)",//pic 25
	"Beacon Isle backdrop (Christmas hols, 2007)",//pic 26
	"Mrs Claws and Junior Santa Claws. (Christmas hols, 2007)",//pic 27
	"Bushed. (Christmas hols, 2007)",//pic 28
	"Watching from the safe zone ... (Christmas hols, 2007)",//pic 29
	"Loving that sea! (Christmas hols, 2007)",//pic 30
	"Hiking (Christmas hols, 2007)",//pic 31
	"Calendar shot! (Christmas hols, 2007)",//pic 32
	"At the polo: 'If mom and dad are relaxed about these big beasts, then they're okay ... I guess!' (Christmas hols, 2007)",//pic 33
	"Dog heaven, Plett (Christmas hols, 2007)",//pic 34
	"Spoilt, moi? (Christmas hols, 2007)",//pic 36
	"Jack and Isabella (June, 2008)",//pic 36
	"Jack and Isabella (June, 2008)",//pic 37
	"Jack and Isabella (June, 2008)",//pic 38
	"Jack and Isabella (June, 2008)",//pic 39
	"Jack and Isabella (June, 2008)",//pic 40
	"Jack and Isabella (June, 2008)",//pic 41
	"\"But lady, you were speeding...\" (September, 2008)",//pic 42
	"Big boy (September, 2008)",//pic 43
	"Rainy day blues - no walkies... (September, 2008)",//pic 44
	"\"Princes Bella and her body guard\" (September, 2008)",//pic 45
	"\"I am not sure who is the biggest poser?\" (September, 2008)",//pic 46
	"Looking handsome (April, 2010)",//pic 47
	""];

//NB Add new items to bottom!
var aZazCaptions = [
	"Zazu takes a break",//0
	"Playing with Helga and the family",//1
	"The world is full of interesting smells!",//2
	"Zazu contemplates the sea, in awe",//3
	"Garden dog (2008)",//4
	"Getting Zenned out in the garden... (2008)",//5
	"Waitaminute - this looks kinda high! (2008)",//6
	"Oof! Almost over... (2008)",//7
	"Okay, which jump next (2008)",//8
	"Winston, Zazu and Annette (2008)",//9
	"Merry Christmas from Zazu and Annette (Xmas 2008)",//10
	"Merry Christmas from Zazu and Annette (Xmas 2008)",//11
	"We visited Zazu in Swakopmund a few weeks ago. She was a delight and plays just like Benji used too...she has so much energy",//12
	""];

//NB Add new items to bottom!
var aMaxCaptions = [
	"\"We have found a great new advertisement for “Aquanet Pool Covers\"! Maxi Dozing, early Dec 2007.",//pic 0
	"Maxi cooling off in an innovative new way, early Dec 2007.",//pic 1
	"With the kids (late 2007)",//pic 2
	
	""];


///////////////////////////////////////////////////////////////////////////
//SHOWS
///////////////////////////////////////////////////////////////////////////
//NB Add new items to bottom!
var aSGeCaptions = [
	"Manfred, Jack, Sassy, Olaf, Izzie and Dharma all took part in a show for fun (Dec 2009)",//pic 0
	"Waiting for our turn in the tent (Dec 2009 show)",//pic 1
	"Olaf (Dec 2009 show)",//pic 2
	"Hilo (Dec 2009 show)",//pic 3
	"Hilo, another import(2009) and not part of Afrileos’ bloodline (Dec 2009 show)",//pic 4
	"Jack (Dec 2009 show)",//pic 5
	"Dharma (Dec 2009 show)",//pic 6
	"Dharma- Phew it's hot! (Dec 2009 show)",//pic 7
	"Izzey (Dec 2009 show)",//pic 8
	"Izzey (Dec 2009 show)",//pic 9
	"Jack (Dec 2009 show)",//pic 10
	"Cheryl giving Sassy some love while Manfred looks on (Dec 2009 show)",//pic 11
	"Olaf (Dec 2009 show)",//pic 12
	"Jack (Dec 2009 show)",//pic 13
	"Dharma, Izzey and Sassy being judged for best female Leonberger (Dec 2009 show)",//pic 14
	"Olaf as the best puppy (Dec 2009 show)",//pic 15
	"Manfred, Izzey and Olaf being judged for best of breed (Dec 2009 show)",//pic 16
	
	""];
		
//NB Add new items to bottom!	
var aSMaCaptions = [
	"Manfred showing his gongs (Mar 2008)",//pic 0
	"Show-dog extra-ordinnaire (Mar 2008)",//pic 1
	"Manfred being put through his paces (Mar 2008)",//pic 2
	"Talking Norwegian with Manfred (Mar 2008)",//pic 3
	"October 2009",//pic 4
	"October 2009",//pic 5
	"October 2009",//pic 6
	"October 2009",//pic 7
	"October 2009",//pic 8
	"October 2009",//pic 9
	"October 2009",//pic 10
	
	""];





//###################################################
//DON'T CHANGE ANYTHING IN THIS SECTION!!!!!!!!!

function fnCreateGallery(myGall){
	qty = eval(myGall + "Total");
	for(i=qty; i>0; i--){

		j = (i-1) + "";
		while(j.length<3){
			j = "0" + j;
		}
		//alert(j);

		document.write("<a href=\"javascript:MM_openBrWindow('gallery/popUp.html?ID=" + myGall + j + "','galleryPop','width=475,height=430')\"><img src='../images/gallery/thumb" + myGall + j + ".jpg' border='0' width='84' height='96' alt='Photo'></a>");
	}
	document.write("<br>");
}	
	
//////////////////////////////////////////////
order.reverse();
orderFull.reverse();

function fnCreateItem(myGall,myNo){
	
	var myCaptionArray = eval("a" + myGall + "Captions");
	//alert(myCaptionArray);
	
	//////////////////////////////////////////////
	//NEXT AND PREV GALLERIES
	//////////////////////////////////////////////
	//WHICH GALLERY TO GO TO (PREVIOUS):
	//if my number has reached the total for the current gallery....
	if(Number(myNo) == eval(myGall + "Total")-1){
		//work out what is the next gallery in order?
		for(i=0;i<order.length; i++){
			if(myGall == order[i]){// <-- then this is the current gallery...

				//...and so we can work out the previous gallery:					
				if(i < order.length-1){
					myPrevGall = order[i+1];
					myPrevCaption = orderFull[i+1];
				}else{
					myPrevGall = order[0];
					myPrevCaption = orderFull[0];
				}
					
				break;
			}
		}
	//but if my number has NOT reached the total for the current gallery, the gallery stays the same!
	}else{
		myPrevGall = myGall;
		myPrevCaption = "See previous photo";
	}

	//WHICH GALLERY TO GO TO (NEXT):
	//if my number has reached zero, i.e. the first item in the current gallery....
	if(Number(myNo) == 0){
		//work out what is the previous gallery in order?
		for(i=0;i<order.length; i++){
			if(myGall == order[i]){// <-- then this is the current gallery...
					
				//...and so we can work out the next gallery:					
				if(i > 0){
					myNextGall = order[i-1];
					myNextCaption = orderFull[i-1];
				}else{
					myNextGall = order[order.length-1];
					myNextCaption = orderFull[order.length-1];
				}
					
				break;
			}
		}
	//but if my number has NOT reached zero, the gallery stays the same!
	}else{
		myNextGall = myGall;
		myNextCaption = "See next photo";
	}


	//////////////////////////////////////////////
	//WHICH NUMBER ITEM TO GO TO:
	//////////////////////////////////////////////
	//PREV (high to low): if my number is still below the total for this gallery...
	if(Number(myNo) < eval(myGall + "Total")-1){
		//increase the number by 1
		var myPrevNo = Number(myNo)+1;
	}else{
		//else loop it to 0
		var myPrevNo = 0;
	}
	//NEXT (low to high): if my number is still above 0...
	if(Number(myNo) > 0){
		//subtract 1 from it
		var myNextNo = Number(myNo)-1;
	}else{
		//else go to highest number for previous gallery in loop
		var myNextNo = eval(myNextGall + "Total")-1;
	}


	//////////////////////////////////////////////
	//WORKING OUT LINK TEXT AND HREFS, based on sequence as established above
	//////////////////////////////////////////////
	myNextNo += "";//convert to text
	while(myNextNo.length<3){
		myNextNo = "0" + myNextNo;
	}
	var myNextLink = myNextGall + myNextNo;//alert(myNextLink);
	myPrevNo += "";//convert to text
	while(myPrevNo.length<3){
		myPrevNo = "0" + myPrevNo;
	}
	var myPrevLink = myPrevGall + myPrevNo;
	
	
	document.write("<img src='../../images/clear.gif' border='0' width='2' height='9'><br><img src='../../images/gallery/" + myGall + myNo + ".jpg' border='0' alt='Photo' style='border:solid 1px black;'><br>");
	document.write("<span style='width: 408px; text-align:left; position:relative; top:4;'><i>Photo</i> " + (eval(myGall + "Total") - (Number(myNo))) + " <i>of</i> " + eval(myGall + "Total") + ": " + myCaptionArray[Number(myNo)] + "</span></td></tr>");
	document.write("<tr bgcolor='5F5F2F'><td align='left' valign='top' height='17'><img src='../../images/clear.gif' border='0' width='32' height='17'><a href='popUp.html?ID=" + myPrevLink + "' class='gall'><< " + myPrevCaption + "</a></td><td align='right' valign='top' height='17'><a href='popUp.html?ID=" + myNextLink + "' class='gall'>" + myNextCaption + " >></a><img src='../../images/clear.gif' border='0' width='32' height='17'>");
}

//###################################################ENDS











//////////////////////////////////////////////
//GALLERY INDEXES AS THEY APPEAR ON THE PAGES: this works as an include
		//general:
		var qtyA = 1;
			var indexA1 = ["history","Personal History"];
		
		//general galleries:
		var qtyB = 3;
			var indexB1 = ["galleries","General"];
			var indexB2 = ["galleryB","Benji"];
			var indexB3 = ["galleryP","Panda"];

		//our puppies galleries:
		var qtyC = 3;
			var indexC1 = ["gallerySas","Sassy"];
			var indexC2 = ["galleryBja","Boerewors Jack"];
			var indexC3 = ["galleryOla","Olaf"];

		//rest of the puppies galleries:
		var qtyD = 8;
			var indexD1 = ["galleryPup","General"];
			var indexD2 = ["galleryMan","Manfred"];
			var indexD3 = ["galleryDha","Dharma"];
			var indexD4 = ["galleryIzz","Izzey"];
			var indexD5 = ["galleryPpa","Puppy Panda"];
			var indexD6 = ["gallerySja","Safari Jack"];
			var indexD7 = ["galleryZaz","Zazu"];
			var indexD8 = ["galleryMax","Maxi"];

		//external galleries:
		var qtyE = 3;
			var indexE1 = ["gallerySge","General","Dec 2009"];
			var indexE2 = ["gallerySma","Manfred","Feb 2010"];
			var indexE3 = ["gallerySsa","Sassy","Oct 2009"];
		 
		//external galleries:
		var qtyF = 3;
			var indexF1 = ["http://www.absolutephotography.co.za/pup_pics/puppies.htm","Lenadri's gallery from Puppy play day, 18 Nov 07"];
			var indexF2 = ["http://photosbywillie.fotopic.net","Cheryl and Willem Vermeulen's gallery"];
			var indexF3 = ["http://www.absolutephotography.co.za/pup_pics_2/puppies_2.htm","Lenadri's gallery: Puppy play day, the Beach Feb 08"];












		//DON'T CHANGE ANYTHING BELOW THIS!!!!!!!!!
		//////////////////

		//THE SIDE ////////////////////////
		//this is called fom the side (all):
		function fnSideNav(){

			document.write("<ul class='inline'>");

			//Other, non-gallery, items in this section
			document.write("<li>In this section:<br>");
			for(i=1; i<=qtyA; i++){
				//i == 1 ? document.write("<li>"): document.write("");
				document.write("<a href='" + eval("indexA"+i)[0] + ".html' class='sub'>" + eval("indexA"+i)[1] + "</a><br>");
			}

			//////////////////////////////////////////////////

			document.write("&nbsp;<br><img src='../images/iconCamera.gif' border='0' width='39' height='40' alt='Galleries' hspace='10'><br>");
			document.write("<li>GALLERIES:<br>");

			//////////////////////////////////////////////////

			//General, Benji and Panda
			document.write("<br>Benji and Panda:<br>");
			for(i=1; i<=qtyB; i++){
				document.write("<a href='" + eval("indexB"+i)[0] + ".html' class='sub'>" + eval("indexB"+i)[1] + "</a><br>");
			}
			
			//Our puppies
			document.write("<br>Our Puppies:<br>");
			for(i=1; i<=qtyC; i++){
				document.write("<a href='" + eval("indexC"+i)[0] + ".html' class='sub'>" + eval("indexC"+i)[1] + "</a><br>");
			}

			//Rest of the puppies
			document.write("<br>The Other Puppies:<br>");
			for(i=1; i<=qtyD; i++){
				document.write("<a href='" + eval("indexD"+i)[0] + ".html' class='sub'>" + eval("indexD"+i)[1] + "</a><br>");
			}

			//Shows
			document.write("<br>Shows:<br>");
			for(i=1; i<=qtyE; i++){
				document.write("<a href='" + eval("indexE"+i)[0] + ".html' class='sub'>" + eval("indexE"+i)[1] + "</a><br>");
			}

			//////////////////////////////////////////////////
			document.write("</ul>");
		}


		//THE BODY, GENERAL ////////////////////////
		//////////////////
		//this is called from the body area (general, panda and benji):
		function fnCallGeneralNav(){

			document.write("<b>General Galleries</b><br>");
			document.write("<a href='galleries.html'>View General Gallery</a><br>");
			for(i=2; i<=qtyB; i++){
				document.write("<a href='" + eval("indexB"+i)[0] + ".html'>View " + eval("indexB"+i)[1] + "'s Gallery</a><br>");
			}

			document.write("<br><b>Shows:</b><br>");
			for(i=1; i<=qtyE; i++){
				document.write("<a href='" + eval("indexE"+i)[0] + ".html'>" + eval("indexE"+i)[1] + " - " + eval("indexE"+i)[2] + "</a><br>");
			}
		}


		//THE BODY, PUPPIES ////////////////////////
		//////////////////
		//this is called from the body area (puppies):
		function fnCallPuppiesNav(){

			document.write("<b>Our puppies:</b><br>");
			for(i=1; i<=qtyC; i++){
				document.write("<a href='" + eval("indexC"+i)[0] + ".html'>View " + eval("indexC"+i)[1] + "\'s Gallery</a><br>");
			}

			document.write("<br><b>The other puppies:</b><br>");
			document.write("<a href='galleryPup.html'>View General Puppies Gallery<br>");
			for(i=2; i<=qtyD; i++){
				document.write("<a href='" + eval("indexD"+i)[0] + ".html'>View " + eval("indexD"+i)[1] + "\'s Gallery</a><br>");
			}

			document.write("<br><b>The puppies in galleries on other Web sites:</b><br>");
			for(i=1; i<=qtyF; i++){
				document.write("<a href='" + eval("indexF"+i)[0] + "' target='_new'>" + eval("indexF"+i)[1] + "</a><br>");
			}

			document.write("<br><b>Shows:</b><br>");
			for(i=1; i<=qtyE; i++){
				document.write("<a href='" + eval("indexE"+i)[0] + ".html'>" + eval("indexE"+i)[1] + " - " + eval("indexE"+i)[2] + "</a><br>");
			}

		}


