//// JAVASCRIPT FILE ////

function movepic(img_name,img_src) {
	document[img_name].src=img_src;
}

//AC_FL_RunContent = 0;
//DetectFlashVer = 0; 


// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 115;
// -----------------------------------------------------------------------------



function insertStudentprofile() {
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert('!!This page requires AC_RunActiveContent.js.');
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
			'width', '153',
			'height', '300',
			'src', 'student_profile_xml',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'student_profile_xml',
			'bgcolor', '#ffffff',
			'name', 'student_profile_xml',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', '/student_profile_xml',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/images/student_profile_default.jpg">'	
		document.write(alternateContent);  // insert non-flash content
	}
}
}

function movepic(img_name,img_src) {
	document[img_name].src=img_src;
}

function showHide(shID) {
	if (document.getElementById(shID)) {
		if (document.getElementById(shID+'-show').style.display != 'none') {
			document.getElementById(shID+'-show').style.display = 'none';
			document.getElementById(shID+'-hide').style.display = 'inline';
			document.getElementById(shID).style.display = 'block';	
		}
		else {
			document.getElementById(shID+'-show').style.display = 'inline';
			document.getElementById(shID).style.display = 'none';
			document.getElementById(shID+'-hide').style.display = 'none';
		}
	}
}

function showElement(shID) {
	if (document.getElementById(shID)) {
		document.getElementById(shID).style.display = 'inline';	
	}
}

function hideElement(shID) {
	if (document.getElementById(shID)) {
		document.getElementById(shID).style.display = 'none';	
	}
}

function getMonthName(monthNumber) {
	var month=new Array(12);
	month[0]="January";
	month[1]="February";
	month[2]="March";
	month[3]="April";
	month[4]="May";
	month[5]="June";
	month[6]="July";
	month[7]="August";
	month[8]="September";
	month[9]="October";
	month[10]="November";
	month[11]="December";
	return (month[monthNumber]);
}

