﻿<!--
var namesVec = new Array("arrowdcrimsonright.gif", "arrowdcrimsondown.gif");
var root='theme_images/';


function togglepics2(im0,showorhide,notused2){
	var ima,nr;
ima=findimg(im0)
nr = ima.getAttribute('src').split('/');
nr = nr[nr.length-1]

if((nr==namesVec[0])){ima.setAttribute('src',root+namesVec[1]);}
else{ima.setAttribute('src',root+namesVec[0]);}

}

 function togglepicsall(showorhide) {
var pics = getElementsByClass("arrow",document,'*');
for ( var i=0; i <pics.length; i++ )  {

ima=pics[i]
if((showorhide=="hide")){ima.setAttribute('src',root+namesVec[0]);}
if((showorhide=="show")){ima.setAttribute('src',root+namesVec[1]);}

   }
  };
  
  // find the first image child node (in the button, eg.)
function findimg(mnode){
 var i,j,child,children;
 child=mnode.firstChild;
 children=mnode.childNodes;
 //
jmax=children.length -1;//alert(jmax);
			 for (j = 0;j < jmax;j++){
				 if (child.nodeName!="IMG"){
					 child=child.nextSibling;continue;
				 }	 
			 }
			//alert("j"+j+"elementid"+mnode.id+"this"+child.nodeName);
			 return child;
}

//why is this here???
var imgvec = new Array("http://contrakyoto.bravehost.com/theme_images/arrowdcrimsonright.gif", "http://contrakyoto.bravehost.com/theme_images/arrowdcrimsondown.gif");

-->