//image preloader
if (document.images) {
    img0 = new Image();
    img0.src = "images/photoExhibitions_Mary_Donlan.jpg";
    imga = new Image();
    imga.src = "images/photoExhibitions_Karen_Sampson.jpg";
    img1 = new Image();
    img1.src = "images/photoExhibitions_Michael_Neufeld.jpg";
    img2 = new Image();
    img2.src = "images/photoExhibitions_Joeld.jpg.jpg";
    img3 = new Image();    
    img3.src = "images/photoExhibitions_Vivienne_Pearson.jpg";
    img4 = new Image();
    img4.src = "images/photoExhibitions_Siobhan_Doherty.jpg";
    img5 = new Image();    
    img5.src = "images/photoExhibitions_Johann-Weighardt.jpg";
    img6 = new Image();    
    img6.src = "images/photoExhibitions_Gretchen_Markle.jpg";
    img7 = new Image();    
    img7.src = "images/photoExhibitions_Rick_Cepella.jpg";
    img8 = new Image();
    img8.src = "images/photoExhibitions_Mary_Donlan2.jpg";
    img9 = new Image();
    img9.src = "images/photoExhibitions_daniel_deRegt.jpg";
}


function SymError()
{
  return true;
}
window.onerror = SymError;

function swapImage(whichpic,thistitle,thissite){
if (document.getElementById) {
document.getElementById('largeImg').src = whichpic.name;
document.getElementById('largeImg').title = thistitle;
document.getElementById('largeAnchor').href = thissite;
return false;
} else {
return true;
}
}


var ids=new Array('text1','text2','text3','text4','text5','text6','text7','text8','text9','texta');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

//-->
