/****** Christin's little swapper *******/
/*  
this function requrires prototype, which can be downloaded from http://www.prototypejs.org/assets/2007/1/18/prototype.js
you also need to specify an Array, with all elements you want to hide
*/


var arr=new Array("content1","content2","content3");
function swap(target){
	/*** this it what it does, delete this entire comment, since its not very elegant...
	if(target == 'content1'){
		$('content1').show();
		$('content2').hide();
		$('content3').hide();
	}else if(target == 'content2'){
		$('content1').hide();
		$('content2').show();
		$('content3').hide();
	}else if(target == 'content3'){
		$('content1').hide();
		$('content2').hide();
		$('content3').show();
	}*/
	for(i=0; i<arr.length; i++){
		if(arr[i]==target){
			$(arr[i]).show();
		}else{
			$(arr[i]).hide();
		}
	}
}

