function GlobalUCFHeaderInit(){headerCSS=document.createElement("link");headerCSS.setAttribute("href","http://www.cah.ucf.edu/common/css/bar.css");headerCSS.setAttribute("rel","stylesheet");headerCSS.setAttribute("type","text/css");headEl=document.getElementsByTagName("head")[0];if(headEl.childNodes.length>0){headEl.insertBefore(headerCSS,headEl.firstChild)}else{headEl.appendChild(headerCSS)}headerDiv=document.createElement("div");headerDiv.id="UCFHBHeader";bodyEl=document.getElementsByTagName("body")[0];if(bodyEl.childNodes.length>0){bodyEl.insertBefore(headerDiv,bodyEl.firstChild)}else{bodyEl.appendChild(headerDiv)}var a='    	<div class="UCFHBWrapper">			<div id="UCFtitle">				<a href="http://www.ucf.edu/">				<span class="UCFHBText">University of Central Florida</span>				</a>			</div>			<label for="UCFHeaderLinks">University Links</label>			<label for="q">Search UCF</label>			<div id="UCFHBSearch_and_links">								<form id="UCFHBUni_links" action="" target="_top">					<fieldset>					   <select name="UniversityLinks" id="UCFHBHeaderLinks" onchange="quickLinks.quickLinksChanged()">						<option value="">Quicklinks:</option>							<option value="">- - - - - - - - - -</option>					</select>					</fieldset>				</form>				<div>					<a id="UCFHBMy_ucf" href="https://my.ucf.edu/">						<span class="text">myUCF</span>					</a>				</div>								<form id="UCFHBSearch_ucf" method="get" action="http://google.cc.ucf.edu/search" target="_top">					<fieldset> 						<input type="hidden" name="output" value="xml_no_dtd"/>						<input type="hidden" name="proxystylesheet" value="UCF_Main"/>						<input type="hidden" name="client" value="UCF_Main"/>						<input type="hidden" name="site" value="UCF_Main"/>						<input class="text" type="text" name="q" id="q" value="Search UCF" title="Search UCF" onfocus="clearDefault(this);" onblur="clearDefault(this);" /> 						<input class="submit" type="image" alt="Search button" src="http://www.cah.ucf.edu/common/images/arrow.png" />					</fieldset>				</form>				<div id="UCFHBClearBoth"></div>			</div>		</div>';headerDiv.innerHTML=a;quickLinks=new QuickLinksRenderer();quickLinks.init();quickLinks.populateQuickLinks()}function clearDefault(a){if(a.value==a.title){a.value="";a.style.color="#000";return}if(a.value==""){if(a.title!=""){a.value=a.title;a.style.color="#999"}}}(function(i){var u=navigator.userAgent.toLowerCase();var ie=
/*@cc_on!@*/
false;if(/webkit/.test(u)){timeout=setTimeout(function(){if(document.readyState=="loaded"||document.readyState=="complete"){i()}else{setTimeout(arguments.callee,10)}},10)}else{if((/mozilla/.test(u)&&!/(compatible)/.test(u))||(/opera/.test(u))){document.addEventListener("DOMContentLoaded",i,false)}else{if(ie){(function(){var tempNode=document.createElement("document:ready");try{tempNode.doScroll("left");i();tempNode=null}catch(e){setTimeout(arguments.callee,0)}})()}else{window.onload=i}}}})(GlobalUCFHeaderInit);if((!this.JSON)&&(!Object.toJSON)){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}return{stringify:function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}()}function QuickLinksRenderer(){this.init=function(){this.customizationURL="http://www.ucf.edu/quicklinks/customizer.html";this.selectEl=document.getElementById("UCFHBHeaderLinks");this.options={cookie:{expires:630720,path:"/",domain:".ucf.edu"},cacheCookie:true,cookiePrefix:"jqCookieJar_",debug:false};this.name="quicklinks";this.cookieName=this.options.cookiePrefix+this.name;this.jarRoot={quickLinkData:{links:[]}};this.links=new Array()};this.quickLinksChanged=function(b){var a=this.selectEl.options[this.selectEl.selectedIndex].value;if(a==">"){document.location=this.customizationURL;return}if(a=="+"){this.addCurrentPage();return}if(a!=""){document.location=a}else{b.selectedIndex=0}};this.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+m.path:"";var g=m.domain?"; domain="+m.domain:"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=(k[h]||"").replace(/^\s+|\s+$/g,"");if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};this.sortAlpha=function(a){if(a.sort){return a.sort(function(d,c){return(d.name.toLowerCase()<c.name.toLowerCase())?-1:1})}else{return a}},this.loadQuickLinksData=function(){jsonString=this.cookie(this.cookieName);if(typeof jsonString=="string"){if(Object.toJSON){this.jarRoot=jsonString.evalJSON()}else{this.jarRoot=JSON.parse(jsonString,true)}}if(this.jarRoot.quickLinkData&&this.jarRoot.quickLinkData.links){this.links=this.sortAlpha(this.jarRoot.quickLinkData.links)}else{this.jarRoot={quickLinkData:{links:[]}};this.links=new Array()}};this.addCurrentPage=function(){userTitle=prompt("Save this page as:",document.title);if(userTitle!=null&&userTitle!=""){newTitle=userTitle;oldLinks=this.links.concat();this.links.push({url:document.URL,name:newTitle});this.links=this.sortAlpha(this.links);if(this.saveQuickLinksData()){this.populateQuickLinks()}else{alert("Maximum number of links exceeded.");this.links=oldLinks}}this.selectEl.selectedIndex=0;return false},this.populateQuickLinks=function(){this.loadQuickLinksData();selectEl=this.selectEl;selectEl.options.length=2;selectEl.options.add(new Option("Libraries","http://library.ucf.edu"));selectEl.options.add(new Option("Directories (A-Z Index)","http://www.ucf.edu/directories/"));selectEl.options.add(new Option("Campus Map","http://campusmap.ucf.edu"));selectEl.options.add(new Option("Giving to UCF","http://foundation.ucf.edu/Main/"));selectEl.options.add(new Option("Ask UCF","http://ask.ucf.edu"));selectEl.options.add(new Option("Financial Aid","http://finaid.ucf.edu/"));selectEl.options.add(new Option("- - - - - - - - - -",""));selectEl.options.add(new Option("Academics","http://www.ucf.edu/academics"));selectEl.options.add(new Option("Admissions","http://www.ucf.edu/admissions"));selectEl.options.add(new Option("Research","http://www.ucf.edu/research/"));selectEl.options.add(new Option("Locations","http://www.ucf.edu/locations/"));selectEl.options.add(new Option("Campus Life","http://www.ucf.edu/campus_life/"));selectEl.options.add(new Option("Alumni & Friends","http://www.ucf.edu/alumni_and_friends/"));selectEl.options.add(new Option("Athletics","http://www.ucf.edu/athletics/"));selectEl.options.add(new Option("- - - - - - - - - -",""));if(this.links.length>0){for(var a=0;a<this.links.length;a++){selectEl.options.add(new Option(this.links[a].name,this.links[a].url))}selectEl.options.add(new Option("- - - - - - - - - -",""))}selectEl.options.add(new Option("+ Add This Page","+"));selectEl.options.add(new Option("- - - - - - - - - -",""));selectEl.options.add(new Option("> Customize This List",">"))};this.saveQuickLinksData=function(){this.jarRoot.quickLinkData.links=this.links;newJSONString="";if(Object.toJSON){newJSONString=Object.toJSON(this.jarRoot)}else{newJSONString=JSON.stringify(this.jarRoot)}if(newJSONString.length>4000){return false}this.cookie(this.cookieName,newJSONString,this.options.cookie);return true}}function clearDefault(a){if(a.value==a.title){a.value="";a.style.color="#000";return}if(a.value==""){if(a.title!=""){a.value=a.title;a.style.color="#999"}}};