



			//** IMAGE ROLLOVER SCRIPTS **//	

			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.01
			  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 && d.getElementById) x=d.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];}
			}
			

			
			//Rollover by Josh
			function changeImage(imgSrc,imgName){
			     document.images[imgName].src = imgSrc;
    			}
    			
    			
    			
    			
    			
    			//FAQ    			
			function toggleView( targetId){
				var target = document.getElementById( targetId );
				if (target.style.display == "block"){
					target.style.display = "none";
				} else {
					target.style.display = "block";
				}
			}
			
			
			
			
			//QUERY STRINGS
			function QueryString(variable) {
			  var query = window.location.search.substring(1);
			  var vars = query.split("&");
			  for (var i=0;i<vars.length;i++) {
			    var pair = vars[i].split("=");
			    if (pair[0] == variable) {
			      return pair[1];
			    }
			  } 
			  return false;
			}
			
			
			
			
			
			
			
			//BASE URL
			/**
			 * Gets a relative path to "career"
			 * 
			 */
			function getRelativeBaseURL(){
				var CURRENTURL = document.location.toString();

				//GO EXACT IF NO "career"
				if(CURRENTURL.indexOf("career") == -1){
					return "http://www.ou.edu/career/";
				}


				//REMOVE QUERYSTRING
				if(CURRENTURL.indexOf("?") != -1){
					CURRENTURL = CURRENTURL.substring(0, CURRENTURL.lastIndexOf("?"));
				}

				CURRENTURL = CURRENTURL.replace("\\", "/");

				//HOW FAR BACK TO HIT "career" FOLDER
				var CU_TEMP = CURRENTURL.substring(0, CURRENTURL.lastIndexOf("/"));	//REMOVE PAGE
				var foldercount = 0;
				while(CU_TEMP.indexOf("/") != -1){
					var FOLDER = CU_TEMP.substring(CU_TEMP.lastIndexOf("/")+1);
					if(FOLDER == "career"){
						break;
					}
					foldercount += 1;
					CU_TEMP = CU_TEMP.substring(0, CU_TEMP.lastIndexOf("/"));
				}

				//MAKE STRING
				var BASEURL  = "";
				for(;foldercount>0; foldercount--){
					BASEURL += "../";	
				}

				//return BASEURL;
				return "http://www.ou.edu/career/";
			}

			
			
			
			//Week Day Names
			var WeekDayNames = new Array(
				"Sunday",
				"Monday",
				"Tuesday",
				"Wednesday",
				"Thursday",
				"Friday",
				"Saturday"
			);
			var MonthNames = new Array(
				"",
				"January",
				"February",
				"March",
				"April",
				"May",
				"June",
				"July",
				"August",
				"September",
				"October",
				"November",
				"December"
			);
			var MonthAbrevNames = new Array(
				"",
				"Jan.",
				"Feb.",
				"Mar.",
				"Apr.",
				"May",
				"June",
				"July",
				"Aug.",
				"Sept.",
				"Oct.",
				"Nov.",
				"Dec."
			);
			function getMonthName(month){
				return MonthNames[month];
			}
			
			
			
			
			
			/**
			 *  Side Menu Override
			 *
			 *   If the side menu should be overridden, the HTML page should include
			 *   variable definitions such as:
			 *    SideMenuOverride[0] = "Students";
			 *    SideMenuOverride[1] = "Career Fairs & Events";
			 *    etc...
			 *
			 *   This array declaration has to be before the override
			 *   so that the variable have been defined.
			 *
			 *   For example.  Say we just through in declarations like
			 *    var FORCEMENU_ZERO = "Students";
			 *   When the SideMenu.js file checked to see if FORCEMENU_ZERO
			 *   had been declared, it would throw an error because there
			 *   is NO WAY TO CHECK if a variable has been defined (before JS 1.3)
			 *   and we want these scripts to work on old school Javascript.
			 *
			 *   Thus...
			 */
			 var SideMenuOverride = new Array();
			 SideMenuOverride[0] = false;
			 SideMenuOverride[1] = false;
			 SideMenuOverride[2] = false;
			 SideMenuOverride[3] = false;
			 SideMenuOverride[4] = false;
			
			
			
			
			
			























	/*******************************************************
	FLASH DETECT 2.5
	All code by Ryan Parman and mjac, unless otherwise noted.
	(c) 1997-2004 Ryan Parman and mjac
	http://www.skyzyx.com
	*******************************************************/

	// This script will test up to the following version.
	flash_versions = 20;

	// Initialize variables and arrays
	var flash = new Object();
	flash.installed=false;
	flash.version='0.0';

	// Dig through Netscape-compatible plug-ins first.
	if (navigator.plugins && navigator.plugins.length) {
		for (x=0; x < navigator.plugins.length; x++) {
			if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
				flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
				flash.installed = true;
				break;
			}
		}
	}

	// Then, dig through ActiveX-style plug-ins afterwords
	else if (window.ActiveXObject) {
		for (x = 2; x <= flash_versions; x++) {
			try {
				oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
				if(oFlash) {
					flash.installed = true;
					flash.version = x + '.0';
				}
			}
			catch(e) {}
		}
	}

	// Create sniffing variables in the following style: flash.ver[x]
	// Modified by mjac
	flash.ver = Array();
	for(i = 4; i <= flash_versions; i++) {
		eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
	}




	/***********************************************************
	 HELP EMBED FLASH
	 Josh Wright
	 (c) 2006
	***********************************************************/
	/**
	 * Helps embed a flash movie
	 * within a web page (based on the clients flash version).
	 * If they don't have the right version, it shows the still
	 * image instead.
	 *
	 *  EXAMPLES:
	 *   width		= 500;			//width of the movie
	 *   height		= 200;			//height of the movie
	 *   versionNumber	= 8;			//the flashSource will only be shown on clients with this version & higher
	 *   flashSource	= "FlashMov_v8.swf";	//the URL for clients with version (versionNumber) & higher
	 *   imageSource	= "StillImage.jpg";	//URL of placeholder image for browsers with less flash than versionNumber
	 */
	function GetFlashHtml(width, height, versionNumber, flashSource, imageSource, imageLink){
		var flashVersion = ""+flash.version;
		var FLASHHTML = "";
		
		
		//IF WE HAVE THE RIGHT VERSION, SHOW FLASH
		//OTHERWISE, JUST SHOW THE STILL IMAGE
		if(flash.ver[versionNumber]){
			FLASHHTML += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+width+"\" height=\""+height+"\" id=\"FlashSponsors\" align=\"middle\">";
			FLASHHTML += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
			FLASHHTML += "<param name=\"movie\" value=\""+flashSource+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\""+flashSource+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+width+"\" height=\""+height+"\" name=\"FlashSponsors\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
			FLASHHTML += "</object>";

			//FLASHHTML += "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
			//FLASHHTML += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"";
			//FLASHHTML += " WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"Flash\" ALIGN=\"\">";
			//FLASHHTML += " <param name=\"allowScriptAccess\" value=\"sameDomain\" />";
			//FLASHHTML += " <PARAM NAME=movie VALUE=\""+FinalSource+"\"> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src=\""+FinalSource+"\" quality=best bgcolor=#000000  WIDTH=\""+width+"\" HEIGHT=\""+height+"\" NAME=\"Flash\" ALIGN=\"\"";
			//FLASHHTML += " TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>";
			//FLASHHTML += "</OBJECT>";
		}else{
			FLASHHTML += "<a href=\""+imageLink+"\"><img src=\""+imageSource+"\" height=\""+height+"\" width=\""+width+"\" border=\"0\" /></a>";
		}
		return FLASHHTML;
	}
	
	
	/**** END FLASH DETECTION/HELPER ****/	
	/************************************/	
	/************************************/
	


































	/**************************************** INCLUDE ********************************/
	/**
	 * 
	 * IncludeHtmlFrumUrl(url)
	 *
	 *
	 * This function is writes the text from the given URL
	 * inline to the current web page.
	 *
	 * Throughout the Career Services website, dynamic data
	 * is written into web pages using this function.  Here's
	 * how it works.
	 *
	 * 1) The URL is passed to [JavascriptInclude.aspx] on the career2 server
	 * 2) [JavascriptInclude.aspx] loads in the text from the given URL
	 * 3) [JavascriptInclude.aspx] returns javascript that writes
	 *    to write each line into the current page.
	 *
	 * NOTE:
	 *    The current query string is also sent to the page
	 *    that will be written inline. The current url is also
	 *    always added because it is sometimes used to post
	 *    back data
	 *
	 */
	 function IncludeHtmlFromUrl(url){
	 	var querystring = "";
	 	
	 	// SEND THE CURRENT URL & QUERY STRING
	 	// TO THE PAGE WE'RE INCLUDING
	 	if(location.href.indexOf("?") == -1){
	 		querystring += "currenturl="+location.href;
	 	}else{
	 		var justurl = location.href.substring(0, location.href.indexOf("?"));
	 		var justquery = location.href.substring(location.href.indexOf("?")+1);
	 		querystring += justquery+"&currenturl="+justurl;
	 	}
		
		//ATTACH IT
		if(url.indexOf("?") == -1){
			url += "\?"+querystring;
		}else{
			url += "\&"+querystring;
		}
		
		//USE JAVASCRIPT WRITE THE HTML
		document.write('<sc'+'ript');
		document.write(' type="text/javascript"');
		document.write(' language="JavaScript"');
		document.write(' src="http://career2.ou.edu/HireSooner/JavascriptInclude.aspx?url='+url+'">');
		document.write('</sc'+'ript>');
	 }