<!--
var current;
current = 0;

function totalimg(){
	totals = tour.length;
	document.write ("Total number of images: " + totals);
}

function createnav(){
	navtot = tour.length;
	for (j=0; j<navtot; j++){
		linknum = j + 1;
		if (j != navtot - 1){
			document.write ("<a href='javascript:movetour(" + j + ")'>" + linknum + "</a> &#149; ");
		} else {
			document.write ("<a href='javascript:movetour(" + j + ")'>" + linknum + "</a>");
		}
	}
}

function viewimg(direction) {
    var max = tour.length - 1;
    var nxtimg = current + direction;
    if (direction == 1) {
        current++;
	}
	if (current > max) {
	    current = 0;
	    nxtimg = 0;
	 } else if (direction == -1) {
		current--;
		if (current < 0) {
	    	current = max;
	    	nxtimg = max;
		}
	}
    document.images["murimg"].src = tour[nxtimg];
    //alert (nxtimg);
    
}

function movetour(position) {
if(position>-1){
	document.images["murimg"].src = tour[position];
	current = position;
    } else {
	document.images["murimg"].src = tour[0];
	current = 0;
	}
}
//-->
