// JavaScript Document

function showImagesReal(val, numImages) {
	if(val == "Show Images") {
		for(var i = 1; i < numImages; i++) {
			document.getElementById('image' + i).style.display = '';
		}
	}
	else {
		for(var i=1; i < numImages; i++) {
			document.getElementById('image'+ i).style.display = 'none';
		}
	}
}

function showImages() {
	var val = document.getElementById('show_images').value.toString();
	var numImages =  document.images.length;
	showImagesReal(val, numImages);
	if(document.getElementById('show_images').value == "Show Images")
		document.getElementById('hide_images').value = "Show Images";
	else 
		document.getElementById('show_images').value = "Show Images";
}

/* Ignores the "Previous" or "Continue" button on Financial Aid pages */
function showImagesFA1() {
	var val = document.getElementById('show_imagesFA1').value.toString();
	var numImages = document.images.length - 1;
	showImagesReal(val, numImages);
	if(document.getElementById('show_imagesFA1').value == "Show Images")
		document.getElementById('show_imagesFA1').value = "Hide Images";
	else 
		document.getElementById('show_imagesFA1').value = "Show Images";
}

/* Ignores the "Previous" AND "Continue" buttons on Financial Aid pages */
function showImagesFA2() {
	var val = document.getElementById('show_imagesFA2').value.toString();
	var numImages = document.images.length - 3;
	showImagesReal(val, numImages);
	if(document.getElementById('show_imagesFA2').value == "Show Images")
		document.getElementById('show_imagesFA2').value = "Hide Images";
	else 
		document.getElementById('show_imagesFA2').value = "Show Images";
		
}

function printer() {
	var temp =  parent.frames.length;
	if(temp > 0)
   		javascript:parent.frames[temp-1].focus();
	javascript:window.print();
}


function playMovie(name) {
	window.open(name, 'Trouble', 'toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=no, width=800, height=600');
}



/*function getAnchorName(){
	var loc = location.href;
	var name = new Array();
	name = loc.split('htm#');
	var anchorname = name;
	alert(anchorname[1]);
}*/

/*function display_file_name() {
	var loc = location.href;
	alert(loc);
}*/

