
for (var n = 1; n < 15; n++) {
	var each = new Image();
	each.src="../../images/pm" + n + ".gif";
}


function peepRollo(name,over)
{
	//alert(name);
	var name = arguments[0];
	var over = arguments[1];
	var img_name;
	

	if (arguments[2]) {
		img_name = arguments[2];
	} else {
		img_name = arguments[0];
	}
	//alert(img_name);
	
		if(over)
			window.document.images[img_name].src = "../../images/pm" + name +
".gif";
		else
			window.document.images[img_name].src =  "../../images/people_montage.gif";

}

function imgSwitch(name,over)
{
	//alert(name);
	var name = arguments[0];
	var over = arguments[1];
	var img_name;
	

	if (arguments[2]) {
		img_name = arguments[2];
	} else {
		img_name = arguments[0];
	}
	//alert(img_name);
	
		if(over)
			window.document.images[img_name].src = "../../images/people" + name +
".jpg";
		else
			window.document.images[img_name].src =  "../../images/people_montage.gif";

}

function secondSwap() {
	pod = document.images['sideImg'].src;
	podCut = pod.charAt(pod.length -7);
	//alert(podCut);
	 if (podCut=="a"){
		temp = document.images['sideImg'].src;
		side = temp.charAt(temp.length -5);
		pic = temp.charAt(temp.length -6);
			
			if (side=="A"){
				window.document.images['sideImg'].src = "../../images/persona"+pic+"B.jpg";
			} else {
				window.document.images['sideImg'].src = "../../images/persona"+pic+"A.jpg";
			}
	
	} else {
		temp = document.images['sideImg'].src;
		side = temp.charAt(temp.length -5);
		pic = temp.charAt(temp.length -6);
		pic1 = temp.charAt(temp.length -7);
			if (side=="A"){
				window.document.images['sideImg'].src = "../../images/persona"+pic1+pic+"B.jpg";
			} else {
				window.document.images['sideImg'].src = "../../images/persona"+pic1+pic+"A.jpg";
			}
		}
	}
	
function rightSwap(picNum){
	window.document.images['sideImg'].src = "../../images/persona"+picNum+"A.jpg";
	window.document.images['tagger'].src = "../../images/tag"+picNum+".gif";
}
