 startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("categories_menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {

this.className+=" over";

  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
  

   }
   }
  }
 }
}

c = "photonum/"

mycounter=new Array()

mycounter[0]=c+"1.gif"

mycounter[1]=c+"2.gif"

mycounter[2]=c+"3.gif"

mycounter[3]=c+"4.gif"

mycounter[4]=c+"5.gif"

mycounter[5]=c+"6.gif"

mycounter[6]=c+"7.gif"

mycounter[7]=c+"8.gif"

mycounter[8]=c+"9.gif"

mycounter[9]=c+"10.gif"

mycounter[10]=c+"11.gif"

mycounter[11]=c+"12.gif"

mycounter[12]=c+"13.gif"

mycounter[13]=c+"14.gif"

mycounter[14]=c+"15.gif"

mycounter[15]=c+"16.gif"

mycounter[16]=c+"17.gif"

mycounter[17]=c+"18.gif"

mycounter[18]=c+"19.gif"

mycounter[19]=c+"20.gif"

mycounter[20]=c+"21.gif"

mycounter[21]=c+"22.gif"

mycounter[22]=c+"23.gif"





b = "../assets/images/gallery/soapbox/"

myImages=new Array()

myImages[0]=b+"1.jpg"

myImages[1]=b+"2.jpg"

myImages[2]=b+"3.jpg"

myImages[3]=b+"4.jpg"

myImages[4]=b+"5.jpg"

myImages[5]=b+"6.jpg"

myImages[6]=b+"7.jpg"

myImages[7]=b+"8.jpg"

myImages[8]=b+"9.jpg"

myImages[9]=b+"10.jpg"

myImages[10]=b+"11.jpg"

myImages[11]=b+"12.jpg"

myImages[12]=b+"13.jpg"

/*myImages[13]=b+"14.jpg"

myImages[14]=b+"15.jpg"

myImages[15]=b+"16.jpg"

myImages[16]=b+"17.jpg"

myImages[17]=b+"18.jpg"

myImages[18]=b+"19.jpg"

myImages[19]=b+"20.jpg"

myImages[20]=b+"21.jpg"

myImages[21]=b+"22.jpg"

myImages[22]=b+"23.jpg"*/









imagecounter=myImages.length-1

i=0



function counter()

{  

document.write("Pic: ")  

document.write(i+1)

document.write(" / ") 

document.write(imagecounter+1)

}

             



function first()

{

document.getElementById('imageviewer').src=myImages[0]

document.getElementById('number').childNodes[0].nodeValue = [1] +" of "+ [imagecounter + 1] 

i=0

}



function previous()

{

if (i>0)

	{

	i--

	document.getElementById('imageviewer').src=myImages[i]

	document.getElementById('number').childNodes[0].nodeValue = [i+1] +" of "+ [imagecounter + 1] 

	}

}



function next()

{ 



if (i<imagecounter)

	{

	i++

	

	document.getElementById('imageviewer').src=myImages[i]

	document.getElementById('number').childNodes[0].nodeValue = [i+1] +" of "+ [imagecounter + 1] 

	}

}



function last()

{

document.getElementById('imageviewer').src=myImages[imagecounter]

document.getElementById('number').childNodes[0].nodeValue = [imagecounter+1] +" of "+ [imagecounter + 1] 

i=imagecounter

}





function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('Product_Image_Large').src = whichpic.alt; 
		return false; 
	} else { 
		return true; 
	} 
}




window.onload=startList;
