
//Edit this line to list all of your background images
var backgroundSrcs = new Array("/media/body_bk.jpg","/media/body_bk2.jpg","/media/body_bk3.jpg")

function pickimage()
{
//This line picks an image at random from the list you entered above
var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))]

//This line applies the background image to your masthead
document.getElementById("masthead").style.backgroundImage = "url('" + bgimage + "')";
}




var mmOpenContainer = null;
var mmOpenMenus = null;
var mmHideMenuTimer = null;
var m = null;
function MM_menuStartTimeout(hideTimeout) {
	mmHideMenuTimer = setTimeout("MM_menuHideMenus()", hideTimeout);	
}

function MM_menuHideMenus() {
	MM_menuResetTimeout();
	if(mmOpenContainer) {
		var c = document.getElementById(mmOpenContainer);
		c.style.visibility = "inherit";
		mmOpenContainer = null;
	}
	if( mmOpenMenus ) {
		for(var i in mmOpenMenus) {
			var m = document.getElementById(mmOpenMenus[i]);
			m.style.visibility = "hidden";			
		}
		mmOpenMenus = null;
	}
}

function MM_menuHideSubmenus(menuName) {
	if( mmOpenMenus ) {
		var h = false;
		var c = 0;
		for(var i in mmOpenMenus) {
			if( h ) {
				var m = document.getElementById(mmOpenMenus[i]);
				m.style.visibility = "hidden";
			} else if( mmOpenMenus[i] == menuName ) {
				h = true;
			} else {
				c++;
			}
		}
		mmOpenMenus.length = c+1;
	}
}

function MM_menuOverMenuItem(menuName, subMenuSuffix) {
	MM_menuResetTimeout();
	MM_menuHideSubmenus(menuName);
	if( subMenuSuffix ) {
		var subMenuName = "" + menuName + "_" + subMenuSuffix;
		MM_menuShowSubMenu(subMenuName);
	}
}

function MM_menuShowSubMenu(subMenuName) {
	MM_menuResetTimeout();
	var e = document.getElementById(subMenuName);
	e.style.visibility = "inherit";
	if( !mmOpenMenus ) {
		mmOpenMenus = new Array;
	}
	mmOpenMenus[mmOpenMenus.length] = "" + subMenuName;
}

function MM_menuResetTimeout() {
	if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);
	mmHideMenuTimer = null;
}

function MM_menuShowMenu(containName, menuName, xOffset, yOffset, triggerName) {
	MM_menuHideMenus();
	MM_menuResetTimeout();
	MM_menuShowMenuContainer(containName, xOffset, yOffset, triggerName);
	MM_menuShowSubMenu(menuName);
}

function MM_menuShowMenuContainer(containName, x, y, triggerName) {	
	var c = document.getElementById(containName);
	var s = c.style;
	s.visibility = "inherit";
	
	mmOpenContainer = "" + containName;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 if(img.id == ''){img.id='x90'}//GIVE all PNG images an ID if they don't have one
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 var imgAttribs = img.attributes;
		 for (var j=0; j<imgAttribs.length; j++)
			{
			var imgAttrib = imgAttribs[j];
			if (imgAttrib.nodeName == "align")
			   {		  
			   if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
			   if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
			   break
			   }
            }
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 strNewHTML += "(src='" + img.src + "', sizingMethod='scale'); z-index:30;\""
		 strNewHTML += " onmouseover=\"PNGswap('" + img.id + "');\" onmouseout=\"PNGswap('" + img.id +"');\""
		 strNewHTML += "></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }


function PNGswap(myID)
{
   var strOver  = "_off"
   var strOff = "_on"
   var oSpan = document.getElementById(myID)
   var currentAlphaImg = oSpan.filters(0).src
   if (currentAlphaImg.indexOf(strOver) != -1)
      oSpan.filters(0).src = currentAlphaImg.replace(strOver,strOff)
   else
      oSpan.filters(0).src = currentAlphaImg.replace(strOff,strOver)
}


function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (!(strImg.indexOf(strOver) == -1))
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}




/////////////////////////////////////////BEGIN INDEX RANDOM IMAGE FUNCTION////////////////////////////
function showImage()
{
	var theImages = new Array() 
	theImages[0] = '1'
	theImages[1] = '2'
	theImages[2] = '4'
	
	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++)
	{
	   preBuffer[i] = new Image()
	   preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	document.write('<div id="indexRotate'+theImages[whichImage]+'" ><img src=../media/indexRotate'+theImages[whichImage]+'.png alt=image id=ir1 style=z-index:0; ></div>');
}
/////////////////////////////////////////END INDEX RANDOM IMAGE FUNCTION////////////////////////////



/////////////////////////////////////////BEGIN INDEX RANDOM CHECK THIS OUT FUNCTION////////////////////////////
function showCheckOut()
{
	var theInc = new Array() 
	theInc[0] = '1'
	theInc[1] = '2'
	theInc[2] = '3'
	theInc[3] = '4'
<!--	theInc[4] = '5' -->
	
	var j = 0
	var myLink = ''
	var myAlt = ''
	var p = theInc.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++)
	{
	   preBuffer[i] = new Image()
	   preBuffer[i].src = theInc[i]
	}
	var whichInc = Math.round(Math.random()*(p-1));
	if(theInc[whichInc]==1){
		myLink = '/ftr/article/building_future.asp';
		myAlt = 'Building the Future';
	}
	if(theInc[whichInc]==2){
		myLink = '/ftr/article/us_news_new.asp';
		myAlt = 'US News';
	}
	if(theInc[whichInc]==3){
		myLink = '/ftr/article/dining_hall.asp';
		myAlt= 'Dining Hall';
	}
	if(theInc[whichInc]==4){
		myLink = '/ftr/article/97.asp';
		myAlt = 'National Survey of Student Engagement';
	}
<!--	if(theInc[whichInc]==5){                               -->
<!--		 myLink = '/ftr/article/university_status.asp';    -->
<!--		 myAlt = 'University Status';                      -->
<!--	}                                                      -->
	
	document.write('<div><a href='+myLink+' ><img src="media/check'+theInc[whichInc]+'_off.jpg" alt="'+myAlt+'" onmouseover="imgSwap(this)" border="0" onmouseout="imgSwap(this)"></a></div>');
	//<p><img src=../media/ftr_bullet.jpg> <a href='+myLink+' >More Info</a></p>
}
/////////////////////////////////////////BEGIN INDEX RANDOM CHECK THS OUT FUNCTION////////////////////////////
var myGlobalHandlers = {
	onCreate: function(){
		Element.show('systemWorking');
	},

	onComplete: function() {
		if(Ajax.activeRequestCount == 0){
			Element.hide('systemWorking');
		}
	}
};



/////////////////////////////////////////BEGIN STUDENT PAGE CONENT USING AJAX/////////////////////////////////////////////////
function vStudents(studentID,browserType) 
{

		
		DispLoader();
		AdjNav(studentID,browserType);
		adjStudImage(studentID);
		var url = 'students_ajax.asp?strAction=viewStudents&StudentID='+studentID+'&rnd='+Math.random()*99999+'&';
		var pars = '&Action=Insert&rnd='
        + Math.random()*99999;
										
		var myAjax = new Ajax.Request(
			url, 
			{ 
				method: 'post',
				postBody: pars,
				onComplete: DispStudent
			});
		
}

function AdjNav(myID, browser)
{

	if(myID == 0 && browser == 'ff')
	{
		document.title = "Misericordia University:Kristina Bach";
		$('studentNav').innerHTML = '<p class="studentSelected">Kristina Bach</p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ff&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ff&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ff&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ff&#39;);">Cheyne Wago</a></p>';
	}

	if(myID == 1 && browser == 'ff')
	{
		document.title = "Misericordia University:Tom Nocera";
		$('studentNav').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ff&#39;);">Kristina Bach</a></p><p class="studentSelected">Tom Nocera</p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ff&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ff&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ff&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 2 && browser == 'ff')
	{
		document.title = "Misericordia University:Marybeth Betts";
		$('studentNav').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ff&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ff&#39;);">Tom Nocera</a></p><p class="studentSelected">Marybeth Betts</p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ff&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ff&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 3 && browser == 'ff')
	{
		document.title = "Misericordia University:Kaylee Hassick";
		$('studentNav').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ff&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ff&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ff&#39;);">Marybeth Betts</a></p><p class="studentSelected">Kaylee Hassick</p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ff&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 4 && browser == 'ff')
	{
		document.title = "Misericordia University:Cheyne Wago";
		$('studentNav').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ff&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ff&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ff&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ff&#39;);">Kaylee Hassick</a></p><p class="studentSelected">Cheyne Wago</p>';
	}
	
	if(myID == 0 && browser == 'ie') 
	{
		document.title = "Misericordia University:Kristina Bach";
		$('studentNav2').innerHTML = '<p class="studentSelected">Kristina Bach</p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ie&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ie&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ie&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ie&#39;);">Cheyne Wago</a></p>';
	}

	if(myID == 1 && browser == 'ie')
	{
		document.title = "Misericordia University:Tom Nocera";
		$('studentNav2').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ie&#39;);">Kristina Bach</a></p><p class="studentSelected">Tom Nocera</p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ie&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ie&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ie&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 2 && browser == 'ie')
	{
		document.title = "Misericordia University:Marybeth Betts";
		$('studentNav2').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ie&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ie&#39;);">Tom Nocera</a></p><p class="studentSelected">Marybeth Betts</p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ie&#39;);">Kaylee Hassick</a></p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ie&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 3 && browser == 'ie')
	{
		document.title = "Misericordia University:Kaylee Hassick";
		$('studentNav2').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ie&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ie&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ie&#39;);">Marybeth Betts</a></p><p class="studentSelected">Kaylee Hassick</p><p><a href="javascript:vStudents(&#39;4&#39;,&#39;ie&#39;);">Cheyne Wago</a></p>';
	}
	if(myID == 4 && browser == 'ie')
	{
		document.title = "Misericordia University:Cheyne Wago";
		$('studentNav2').innerHTML = '<p><a href="javascript:vStudents(&#39;0&#39;,&#39;ie&#39;);">Kristina Bach</a></p><p><a href="javascript:vStudents(&#39;1&#39;,&#39;ie&#39;);">Tom Nocera</a></p><p><a href="javascript:vStudents(&#39;2&#39;,&#39;ie&#39;);">Marybeth Betts</a></p><p><a href="javascript:vStudents(&#39;3&#39;,&#39;ie&#39;);">Kaylee Hassick</a></p><p class="studentSelected">Cheyne Wago</p>';
	}


}

function adjStudImage(myID)
{
//studentImage	
	if(myID == 0)
	{
		$('studentImage').innerHTML = '<img src="../jump/media/student_1.jpg" id="x1" width="176" height="176" alt="Kristina Bach ">';
	}
	
	if(myID == 1)
	{
		$('studentImage').innerHTML = '<img src="../jump/media/student_3.jpg" id="x3" width="176" height="176" alt="Tom Nocera">';
	}
	if(myID == 2)
	{
		$('studentImage').innerHTML = '<img src="../jump/media/student_4.jpg" id="x4" width="176" height="176" alt="Marybeth Betts">';
	}
	if(myID == 3)
	{
		$('studentImage').innerHTML = '<img src="../jump/media/student_5.jpg" id="x5" width="176" height="176" alt="Kaylee Hassick">';
	}
	if(myID == 4)
	{
		$('studentImage').innerHTML = '<img src="../jump/media/student_6.jpg" id="x5" width="176" height="176" alt="Cheyne Wago">';
	}
}

function DispStudent(originalRequest)
{
		$('studentsJax').innerHTML = originalRequest.responseText;
}

function DispLoader(myID)
{
		$('studentsJax').innerHTML = '<img src=../../media/busy.gif style="margin-left:-50px; margin-top:20px;">';
}
/////////////////////////////////////////END STUDENT PAGE CONENT USING AJAX/////////////////////////////////////////////////



/////////////////////////////////////////BEGIN FACULTY PAGE CONENT USING AJAX/////////////////////////////////////////////////
function vFaculty(facultyID,browserType) 
{

		
		DispLoaderFac();
		AdjNavFaculty(facultyID,browserType);
		adjFacImage(facultyID);
		var url = 'faculty_ajax.asp?strAction=viewFaculty&facultyID='+facultyID+'&rnd='+Math.random()*99999+'&';
		var pars = '&Action=Insert&rnd='
        + Math.random()*99999;
										
		var myAjax = new Ajax.Request(
			url, 
			{ 
				method: 'post',
				postBody: pars,
				onComplete: DispFaculty
			});
		
}

function AdjNavFaculty(myID, browser)
{

	if(myID == 0 && browser == 'ff')
	{
		document.title = "Misericordia University:Richard Crew";
		$('facultyNav').innerHTML = '<p class="facultySelected">Richard Crew</p><p><a href="javascript:vFaculty(&#39;1&#39;,&#39;ff&#39;);">Glen Tellis</a></p><p><a href="javascript:vFaculty(&#39;2&#39;,&#39;ff&#39;);">Rebecca Steinberger</a></p>';
	}
	if(myID == 1 && browser == 'ff')
	{
		document.title = "Misericordia University:Glen Tellis";
		$('facultyNav').innerHTML = '<p><a href="javascript:vFaculty(&#39;0&#39;,&#39;ff&#39;);">Richard Crew</a></p><p class="facultySelected">Glen Tellis</p><p><a href="javascript:vFaculty(&#39;2&#39;,&#39;ff&#39;);">Rebecca Steinberger</a></p>';
	}
	if(myID == 2 && browser == 'ff')
	{
		document.title = "Misericordia University:Rebecca Steinberger";
		$('facultyNav').innerHTML = '<p><a href="javascript:vFaculty(&#39;0&#39;,&#39;ff&#39;);">Richard Crew</a></p><p><a href="javascript:vFaculty(&#39;1&#39;,&#39;ff&#39;);">Glen Tellis</a></p><p class="facultySelected">Rebecca Steinberger</p>';
	}

	
	if(myID == 0 && browser == 'ie') 
	{
		document.title = "Misericordia University:Richard Crew";
		$('facultyNav2').innerHTML = '<p class="facultySelected">Richard Crew</p><p><a href="javascript:vFaculty(&#39;1&#39;,&#39;ie&#39;);">Glen Tellis</a></p><p><a href="javascript:vFaculty(&#39;2&#39;,&#39;ie&#39;);">Rebecca Steinberger</a></p>';
	}
	if(myID == 1 && browser == 'ie')
	{
		document.title = "Misericordia University:Glen Tellis";
		$('facultyNav2').innerHTML = '<p><a href="javascript:vFaculty(&#39;0&#39;,&#39;ie&#39;);">Richard Crew</a></p><p class="facultySelected">Glen Tellis</p><p><a href="javascript:vFaculty(&#39;2&#39;,&#39;ie&#39;);">Rebecca Steinberger</a></p>';
	}
	if(myID == 2 && browser == 'ie')
	{
		document.title = "Misericordia University:Rebecca Steinberger";
		$('facultyNav2').innerHTML = '<p><a href="javascript:vFaculty(&#39;0&#39;,&#39;ie&#39;);">Richard Crew</a></p><p><a href="javascript:vFaculty(&#39;1&#39;,&#39;ie&#39;);">Glen Tellis</a></p><p class="facultySelected">Rebecca Steinberger</p>';
	}


}

function adjFacImage(myID)
{
//facultyImage	
	if(myID == 0)
	{
		$('facultyImage').innerHTML = '<img src="../jump/media/faculty_2.jpg" id="x1" width="176" height="176" alt="Richard Crew">';
	}
	if(myID == 1)
	{
		$('facultyImage').innerHTML = '<img src="../jump/media/faculty_1.jpg" id="x2" width="176" height="176" alt="Glen Tellis">';
	}
	if(myID == 2)
	{
		$('facultyImage').innerHTML = '<img src="../jump/media/faculty_3.jpg" id="x3" width="176" height="176" alt="Rebecca Steinberger">';
	}
}

function DispFaculty(originalRequest)
{
		$('facultyJax').innerHTML = originalRequest.responseText;
}

function DispLoaderFac(myID)
{
		$('facultyJax').innerHTML = '<img src=../../media/busy.gif style="margin-left:-50px; margin-top:20px;">';
}
/////////////////////////////////////////END FACULTY PAGE CONENT USING AJAX/////////////////////////////////////////////////




/////////////////////////////////////////BEGIN alumni PAGE CONENT USING AJAX/////////////////////////////////////////////////
function vAlumni(alumniID,browserType) 
{

		
		DispLoaderAlum();
		AdjNavAlumni(alumniID,browserType);
		adjAlumImage(alumniID);
		var url = 'alumni_ajax.asp?strAction=viewalumni&AlumniID='+alumniID+'&rnd='+Math.random()*99999+'&';
		var pars = '&Action=Insert&rnd='
        + Math.random()*99999;
										
		var myAjax = new Ajax.Request(
			url, 
			{ 
				method: 'post',
				postBody: pars,
				onComplete: DispAlumni
			});
		
}

function AdjNavAlumni(myID, browser)
{

	if(myID == 0 && browser == 'ff')
	{
		document.title = "Misericordia University:Jonathan Brassington";
		$('alumniNav').innerHTML = '<p>Jonathan Brassington</p>';
	}


	
	if(myID == 0 && browser == 'ie') 
	{
		document.title = "Misericordia University:Jonathan Brassington";
		$('alumniNav2').innerHTML = '<p>Jonathan Brassington</p>';
	}


}

function adjAlumImage(myID)
{
//alumniImage	
	if(myID == 0)
	{
		$('alumniImage').innerHTML = '<img src="../jump/media/alumni_1.jpg" id="x1" width="176" height="176" alt="Jonathan Brassington">';
	}
}

function DispAlumni(originalRequest)
{
		$('alumniJax').innerHTML = originalRequest.responseText;
}

function DispLoaderAlum(myID)
{
		$('alumniJax').innerHTML = '<img src=../../media/busy.gif style="margin-left:-50px; margin-top:20px;">';
}
/////////////////////////////////////////END alumni PAGE CONENT USING AJAX/////////////////////////////////////////////////


///////////////////////////////////////BEGIN HOMEPAGE TELL-A-FRIEND FUNCTION/////////////////////////////////////////////
function tafSwitch1()
{
$('tafRolArea').innerHTML = '<a href="/utils/registration.asp?version=TAF"><img src="../media/tafRol_on.gif" id="tafRol2" alt="Tell A Friend/Win A Prize!" onMouseOver="this.style.cursor=&#39;hand&#39;" onClick="window.location=&#39;/utils/registration.asp?version=TAF&#39;"  border="0"  width="94" height="122" /></a>';
}

function tafSwitch2()
{
$('tafRolArea').innerHTML = '<a href="/utils/registration.asp?version=TAF"><img src="../media/tafRol_off.gif" id="tafRol" alt="Tell A Friend/Win A Prize!" onMouseOver="imgSwap(this); this.style.cursor=&#39;hand&#39;" onClick="window.location=&#39;/utils/registration.asp?version=TAF&#39;" onMouseOut="imgSwap(this)" border="0" width="94" height="122" /></a>';
}
///////////////////////////////////////END HOMEPAGE TELL-A-FRIEND FUNCTION/////////////////////////////////////////////


///////////////////////////////////////BEGIN TOP SEARC AREA/////////////////////////////////////////////
function searchAdj(browser)
{
	document.title = "Misericordia University:Search";
	//$('tsRightX').innerHTML = '<a href="javascript: void();" onclick="clearSearch(&quot;'+browser+'&quot;)"><img src="/media/topSearchRightX.gif" id="topSearchRight"  border="0" style="height:19px; overflow:hidden;" /></a>';
	//document.login.username.focus();
	//$('tsMiddle').focus();
	//$('tsMiddle').innerHTML = '<input name="q" type="text" id="topSearchInputIE" name="topSearchInput" value=" Search Site" height="19" onMouseDown="searchAdj(&quot;ie&quot;);"  onFocus="if(this.value==&quot; Search Site&quot;) this.value=&quot;&quot;" onBlur="if(this.value==&quot;&quot;) this.value=&quot; Search Site&quot;" >';
}

function clearSearch(browser)
{
	document.title = "Misericordia University";
	if(browser == "ff")
	{
	$('tsMiddle').innerHTML = '<input name="q" type="text" id="topSearchInput" name="topSearchInput" value=" Search Site" height="19" onMouseDown="searchAdj(&quot;ff&quot;);"  onFocus="if(this.value==&quot; Search Site&quot;) this.value=&quot;&quot;" onBlur="if(this.value==&quot;&quot;) this.value=&quot; Search Site&quot;" > ';
	}
	if(browser == "ie")
	{
	$('tsMiddle').innerHTML = '<input name="q" type="text" id="topSearchInputIE" name="topSearchInput" value=" Search Site" height="19" onMouseDown="searchAdj(&quot;ie&quot;);"  onFocus="if(this.value==&quot; Search Site&quot;) this.value=&quot;&quot;" onBlur="if(this.value==&quot;&quot;) this.value=&quot; Search Site&quot;" > ';
	}
	$('tsRight').innerHTML = '<img src="/media/topSearchRight.gif" id="topSearchRight"  style="height:19px; overflow:hidden;" />';
}
///////////////////////////////////////END TOP SEARC AREA/////////////////////////////////////////////

