// JavaScript Document

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
	
//Album navigation

// set ALBUM No and Total number of pics:
/*function setNo(AlbumNo,Xtot) {
	X=1;
	ANo=AlbumNo;
	Xtotal=Xtot;
	if (document.all)
			document.all('egepic').style.backgroundImage="url(/albumphotos/album" + (ANo) +"/pic" + (X) +".jpg)";
			else if (document.getElementById)
			document.getElementById('egepic').style.backgroundImage="url(/albumphotos/album" + (ANo) +"/pic" + (X) +".jpg)";
			document.prevBtn.src=("/images/btn_prevphoto_f2.gif");
	
}*/

// navigate
function choosePic(SelectX){
	X=SelectX;
	
	if (document.all){
	document.all('mypic').style.backgroundImage="url(images/photos/pic" + (X) +".jpg)";
	
	}
	else if (document.getElementById){
	document.getElementById('mypic').style.backgroundImage="url(images/photos/pic" + (X) +".jpg)";
		}
	X=SelectX;
	}
	
		