var netscape = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;

// *** Diaz***

function backward(){
	if (which>0){
		window.status='';
		which--;
		document.images.photoslider.src=photos[which];
		document.rotater.dt.value=(which+1)+"/"+photos.length;
	}
}

function forward(){
	if (which<photos.length-1){
		which++;
		document.images.photoslider.src=photos[which];
		//document.rotater.dt.value=diatext[which];
		document.rotater.dt.value=(which+1)+"/"+photos.length;
	}
	else window.status='This is the last picture.';
}

function restart(){
	which=0;
	document.images.photoslider.src=photos[which];
	document.rotater.dt.value=(which+1)+"/"+photos.length;
}


// *** New Window ***

function avaa(theURL){
	window.open(theURL, '', 'scrollbars=yes,resizable=yes,statusbar=no,toolbar=0,width=800,height=800');
}


function entry(theURL){
	window.open(theURL, '', 'scrollbars=yes,resizable=yes,statusbar=yes,toolbar=yes,menubar=yes,location=yes,width=800,height=600');
}



// *** Pien ***

function avaapien(theURL){
	window.open(theURL, '', 'scrollbars=yes,resizable=yes,statusbar=no,toolbar=0,width=600,height=450');
}

// *** Threesome ***

function threesome(ein,zwei) {
		parent.left.location.href=ein;
		parent.text.location.href=zwei;
	}

