function goToAboutInfo(A){showHomeActivity();section=A.srcElement.object.value;$.getJSON(aboutInfoUrl,{section:section},function(B){$("#aboutInfoTitle").text(B.title);$("#aboutInfoContent").html(B.content);hideHomeActivity();$("#stackLayout")[0].object.setCurrentView("aboutInfo");});}
function goToCampusDirections(){mainStack.setCurrentView("campusDirections",false,false);}function getDirections(A){if(document.getElementById("directionsFrom").value!="default"&&document.getElementById("directionsTo").value!="default"){window.open(directionsMapUrl+"?from="+document.getElementById("directionsFrom").value+"&to="+document.getElementById("directionsTo").value);}}function getBuilding(A){if(document.getElementById("buildingsTo").value!="default"){window.open(buildingsMapUrl+"?="+document.getElementById("buildingsTo").value);}}
function goBackToMoreEvents(){mainStack.setCurrentView("moreEvents",true,false);}var eventDataType=null;function goToEventInfo(G,T){showActivity();if(eventDataType=="chapel"){var A=chapelData[T].event;if(G=="events"){document.getElementById("eventInfoBack").object.setText("Chapel");}else{document.getElementById("eventInfoBack").object.setText("Back");}document.getElementById("eventInfoHeader").innerText="Info";}else{if(eventDataType=="event"){var A=eventData[T].event;if(G=="events"){document.getElementById("eventInfoBack").object.setText("Events");}else{document.getElementById("eventInfoBack").object.setText("Back");}document.getElementById("eventInfoHeader").innerText="Event";}else{alert("Invalid event data type");}}if(G=="events"){var C=document.getElementById("eventInfoBack");C.removeEventListener("click",goBackHome);C.addEventListener("click",goBackToMoreEvents);}else{var C=document.getElementById("eventInfoBack");C.removeEventListener("click",goBackToMoreEvents);C.addEventListener("click",goBackHome);}document.getElementById("eventInfoTitle").innerHTML=A.title;if(A.location!=null&&A.location!=""){var N=document.getElementById("eventInfoLocation");N.style.display="block";N.innerHTML=A.location;}else{document.getElementById("eventInfoLocation").style.display="none";}var B=new Date();B.setTime(A.startTime);var I=new Date();I.setTime(A.endTime);if(A.eventType=="all-day"){var O=B;O.setDate(O.getDate()+1);if(I.toUTCString()==O.toUTCString()){var R=daysLong[B.getDay()]+" "+monthsShort[B.getMonth()]+" "+B.getDate()+", "+B.getFullYear()+"<br/>All day";}else{var R="All day from "+daysShort[B.getDay()]+" "+monthsShort[B.getMonth()]+" "+B.getDate()+", "+B.getFullYear()+"<br/> to "+daysShort[I.getDay()]+" "+monthsShort[I.getMonth()]+" "+I.getDate()+", "+I.getFullYear();}}else{var D=B.getHours();if(D>=12){var S=" PM";if(D!=12){D-=12;}}else{var S=" AM";}var K=B.getMinutes();if(K!=0&&K<10){K=":0"+String(K);}else{if(K==0){K="";}else{K=":"+String(K);}}var E=D+K+S;var J=I.getHours();if(J>=12){var F=" PM";if(J!=12){J-=12;}}else{var F=" AM";}var P=I.getMinutes();if(P!=0&&P<10){P=":0"+String(P);}else{if(P==0){P="";}else{P=":"+String(P);}}var L=J+P+F;var M=String(B.getDate())+String(B.getMonth())+String(B.getFullYear());var Q=String(I.getDate())+String(I.getMonth())+String(I.getFullYear());if(M==Q){var R=daysLong[B.getDay()]+" "+monthsShort[B.getMonth()]+" "+B.getDate()+", "+B.getFullYear()+"<br/>from "+E+" to "+L;}else{var R="from "+E+" "+daysShort[B.getDay()]+" "+monthsShort[B.getMonth()]+" "+B.getDate()+", "+B.getFullYear()+"<br/> to "+L+" "+daysShort[I.getDay()]+" "+monthsShort[I.getMonth()]+" "+I.getDate()+", "+I.getFullYear();}}document.getElementById("eventInfoDateTime").innerHTML=R;if(event.eventDescription!=null&&event.eventDescription!=""){document.getElementById("eventInfoRuler").style.display="block";document.getElementById("eventInfoNotes").style.display="block";var H=document.getElementById("eventInfoDesc");H.style.display="block";H.innerHTML=event.eventDescription;}else{document.getElementById("eventInfoRuler").style.display="none";document.getElementById("eventInfoNotes").style.display="none";document.getElementById("eventInfoDesc").style.display="none";}hideActivity();mainStack.setCurrentView("eventInfo",false,false);}
function showHomeActivity(){var A=document.getElementById("homeStackActivityIndicator");A.object.startAnimation();A.style.display="block";}function hideHomeActivity(){var A=document.getElementById("homeStackActivityIndicator");A.style.display="none";A.object.stopAnimation();}function loadHomeTop(){$.getJSON(homeTopDataUrl,{},function(A){$("#snapshot").css("background","url("+A.photo.imgurl+")");$("#snapshotFirstName").text(A.photo.fname);$("#snapshotLastName").text(A.photo.lname);$("#adHeadline").text(A.loginad.title);$("#adTagline").text(A.loginad.body);$("#ad").click(function(){window.open(A.loginad.url);});});}var currentButton="#eventsButton";var currentText="#eventsText";function switchMenu(A,B){$(currentButton).css("background-color","#582659");$(currentText).css("color","white");$(currentText).css("font-weight","normal");$(A).css("background-color","white");$(B).css("color","black");$(B).css("font-weight","bold");currentButton=A;currentText=B;}var eventData=null;function goToEvents(A){if(eventData==null){showActivity();$.getJSON(eventDataUrl,{queryType:"eventList",calendarGroup:"public",startDate:today.getTime(),days:14,numEvents:5},function(B){eventData=B.calendarFeed.eventList;eventDataType="event";eventsListController.setData(eventData);hideActivity();switchMenu("#eventsButton","#eventsText");$("#homeStack")[0].object.setCurrentView("events");});}else{eventDataType="event";switchMenu("#eventsButton","#eventsText");$("#homeStack")[0].object.setCurrentView("events");}}var homeNewsData=null;function goToNews(A){if(homeNewsData==null){showHomeActivity();var B={urls:acuNewsUrl+"|"+sportsNewsUrl,fields:"title,description,pubdate,link|title,description,pubdate,link",numEntries:"3|2",feedInfo:"|"};$.getJSON(rssDataUrl,B,function(D){var C=[D[0].articles[0],D[0].articles[1],D[0].articles[2],D[1].articles[0],D[1].articles[1]];homeNewsData=C;newsListController.setData(C);switchMenu("#newsButton","#newsText");hideHomeActivity();$("#homeStack")[0].object.setCurrentView("news");});}else{switchMenu("#newsButton","#newsText");$("#homeStack")[0].object.setCurrentView("news");}}var chapelData=null;function goToChapel(){if(chapelData==null){showHomeActivity();$.getJSON(eventDataUrl,{queryType:"eventList",calendarGroup:"chapel",startDate:today.getTime(),days:21,numEvents:5},function(A){chapelData=A.calendarFeed.eventList;eventDataType="chapel";chapelListController.setData(A.calendarFeed.eventList);hideHomeActivity();switchMenu("#chapelButton","#chapelText");$("#homeStack")[0].object.setCurrentView("chapel");});}else{eventDataType="chapel";switchMenu("#chapelButton","#chapelText");$("#homeStack")[0].object.setCurrentView("chapel");}}var mapsList=null;function goToMaps(){switchMenu("#mapsButton","#mapsText");mapsList=[{title:"Campus",indicator:"chevron",click:"goToCampusDirections();"},{title:"Directions to Campus",indicator:"offSite",click:'window.location = "http://maps.google.com/maps?f=q&hl=en&geocode=&q=1600+Campus+Ct.,+Abilene,+TX+79699&sll=37.0625,-95.677068&sspn=86.658027,113.554688&ie=UTF8&z=16&iwloc=addr";'},{title:"From the Airport",indicator:"offSite",click:'window.location = "http://maps.google.com/maps?f=d&saddr=abilene+tx+regional+airport&daddr=1600+Campus+Court,+Abilene,+TX+79699+(Abilene+Christian+University)&hl=en&geocode=16366700657199265011,32.467923,-99.709714&mra=pe&mrcr=0&sll=32.43285,-99.68026&sspn=0.092437,0.11673&ie=UTF8&ll=32.442567,-99.694405&spn=0.092427,0.11673&z=13";'}];mapsListController.setData(mapsList);$("#homeStack")[0].object.setCurrentView("maps");}function goToPeople(){switchMenu("#peopleButton","#peopleText");$("#homeStack")[0].object.setCurrentView("people");}function goToAbout(){switchMenu("#aboutButton","#aboutText");$("#homeStack")[0].object.setCurrentView("about");}var eventsListController={_rowData:[],setData:function(A){this._rowData=A;$("#eventsList")[0].object.reloadData();},numberOfRows:function(){return this._rowData.length;},prepareRow:function(B,C,A){if(A.eventTitle){A.eventTitle.innerHTML=this._rowData[C].event.title;}if(A.eventTitle&&A.eventLocation){if(this._rowData[C].event.location==null||this._rowData[C].event.location==""){A.eventLocation.style.display="none";A.eventTitle.style.top="14px";}else{A.eventLocation.innerHTML=this._rowData[C].event.location;}}B.onclick=function(D){goToEventInfo("home",C);};}};var newsListController={_rowData:[],setData:function(A){this._rowData=A;$("#newsList")[0].object.reloadData();},getData:function(){return this._rowData;},numberOfRows:function(){return this._rowData.length;},prepareRow:function(B,C,A){if(A.newsTitle){A.newsTitle.innerText=this._rowData[C].title;}if(A.newsDesc){A.newsDesc.innerHTML=this._rowData[C].description;}B.onclick=function(D){goToNewsInfo("home",C);};}};var chapelListController={_rowData:[],setData:function(A){this._rowData=A;$("#chapelList")[0].object.reloadData();},numberOfRows:function(){return this._rowData.length;},prepareRow:function(C,D,B){if(B.chapelDay){var A=new Date();A.setTime(this._rowData[D].event.day);B.chapelDay.innerText=daysShort[A.getUTCDay()];}if(B.chapelTitle){if(this._rowData[D].event.title.substring(0,9)=="Chapel - "){B.chapelTitle.innerHTML=this._rowData[D].event.title.substring(9);}else{B.chapelTitle.innerHTML=this._rowData[D].event.title;}}if(B.chapelTitle&&B.chapelLocation){if(this._rowData[D].event.location==null||this._rowData[D].event.location==""){B.chapelLocation.style.display="none";B.chapelTitle.style.top="14px";}else{B.chapelLocation.innerHTML=this._rowData[D].event.location;}}C.onclick=function(E){goToEventInfo("home",D);};}};var mapsListController={_rowData:[],setData:function(A){this._rowData=A;$("#mapsList")[0].object.reloadData();},getData:function(){return this._rowData;},numberOfRows:function(){return this._rowData.length;},prepareRow:function(rowElement,rowIndex,templateElements){if(templateElements.mapLabel){templateElements.mapLabel.innerText=this._rowData[rowIndex].title;}if(this._rowData[rowIndex].indicator=="chevron"){templateElements.mapOffArrow.style.display="none";}else{templateElements.mapArrow.style.display="none";}rowElement.onclick=function(event){eval(mapsList[rowIndex].click);};}};
var homeTopDataUrl=systemHost+"svc-pub/acumobile";var dirSearchUrl=systemHost+"svc-pub/dir-search.php";var rssDataUrl=systemHost+"svc-pub/rss-grabber.php";var eventDataUrl=systemHost+"pjson/CalendarJson/EventServlet";var aboutInfoUrl=systemHost+"svc-pub/about-info.php";var acuNewsUrl="http://www.acu.edu/news/rss.xml";var optimistNewsUrl="http://aps15.acu.edu/optimist.rss";var sportsNewsUrl="http://aps15.acu.edu/sports.rss";var buildingsMapUrl=systemHost+"apps-pub/maps/map.html";var directionsMapUrl=systemHost+"apps-pub/maps/directions/map.php";var footerInfo='View ACU in <b>Mobile</b> | <a href="http://www.acu.edu">Classic</a>';var today=new Date();var mainStack;var searchStack;function load(){dashcode.setupParts();setTimeout(start(),100);}function start(){mainStack=document.getElementById("stackLayout").object;searchStack=document.getElementById("searchStack").object;goToTop();hideActivity();hideHomeActivity();hideSearchActivity();loadHomeTop();goToEvents();setFooterInfo();}function goToTop(){window.scrollTo(0,0);}function showActivity(){var A=document.getElementById("activityIndicator");A.object.startAnimation();A.style.display="block";}function hideActivity(){var A=document.getElementById("activityIndicator");A.style.display="none";A.object.stopAnimation();}function setFooterInfo(){document.getElementById("viewMode").innerHTML=footerInfo;}function goBackHome(A){mainStack.setCurrentView("home",true,false);searchStack.setCurrentView("searchEmpty",true,false);}function goToAcuMobile(A){document.location=acuMobileUrl;}function goToMyMobile(A){document.location=myMobileUrl;}function goToPocketGuide(A){document.location=pocketGuideUrl;}
var moreChapelData=null;function goToMoreChapel(){if(moreChapelData==null){showHomeActivity();$.getJSON(eventDataUrl,{queryType:"eventList",calendarGroup:"chapel",startDate:today.getTime(),days:21,numEvents:40},function(A){moreChapelData=A.calendarFeed.eventList;chapelData=moreChapelData;eventDataType="chapel";$("#moreEventsTitle").text("Chapel");moreEventsListController.setData(chapelData);hideHomeActivity();$("#stackLayout")[0].object.setCurrentView("moreEvents");});}else{eventDataType="chapel";$("#moreEventsTitle").text("Chapel");moreEventsListController.setData(chapelData);$("#stackLayout")[0].object.setCurrentView("moreEvents",false);}}var moreEventData=null;function goToMoreEvents(){if(moreEventData==null){showHomeActivity();$.getJSON(eventDataUrl,{queryType:"eventList",calendarGroup:"public",startDate:today.getTime(),days:21,numEvents:40},function(A){moreEventData=A.calendarFeed.eventList;eventData=moreEventData;eventDataType="event";$("#moreEventsTitle").text("Events");moreEventsListController.setData(eventData);hideHomeActivity();$("#stackLayout")[0].object.setCurrentView("moreEvents",false);});}else{eventDataType="event";$("#moreEventsTitle").text("Events");moreEventsListController.setData(eventData);$("#stackLayout")[0].object.setCurrentView("moreEvents",false);}}var moreEventsListController={_rowData:[],setData:function(A){this._rowData=A;$("#moreEventsList")[0].object.reloadData();},numberOfRows:function(){return this._rowData.length;},groupingDate:null,prepareRow:function(D,H,J){var E=new Date();E.setTime(this._rowData[H].event.day);var B=E.getUTCFullYear();var A=E.getUTCMonth();var G=E.getUTCDate();var K=E.getUTCDay();if(J.moreEventDateBox&&J.moreEventDate&&J.moreEventDay){if(G==this.groupingDate&&H!=0){J.moreEventDateBox.style.display="none";}else{this.groupingDate=G;J.moreEventDate.innerText=monthsShort[A]+" "+G+", "+B;J.moreEventDay.innerText=daysShort[K];}}if(J.moreEventTime&&J.moreEventTimeCode){if(this._rowData[H].event.eventType=="all-day"){J.moreEventTimeCode.style.display="none";J.moreEventTime.style.width="50px";J.moreEventTime.style.left="15px";J.moreEventTime.innerText="all-day";}else{var I=E.getUTCHours();if(I>=12){var C=" PM";if(I!=12){I-=12;}}else{var C=" AM";}var F=E.getUTCMinutes();if(F!=0&&F<10){F=":0"+String(F);}else{if(F==0){F="";}else{F=":"+String(F);}}J.moreEventTime.innerText=I+F;J.moreEventTimeCode.innerText=C;}}if(J.moreEventTitle){J.moreEventTitle.innerHTML=this._rowData[H].event.title;}if(J.moreEventLocation&&J.moreEventTitle){if(this._rowData[H].event.location!=null&&this._rowData[H].event.location!=""){J.moreEventLocation.innerHTML=this._rowData[H].event.location;}else{J.moreEventLocation.style.display="none";J.moreEventTitle.style.top="14px";}}D.onclick=function(L){goToEventInfo("events",H);};}};
function goToNewsSources(){$("#stackLayout")[0].object.setCurrentView("newsSources");}function goBackToNewsSources(){$("#stackLayout")[0].object.setCurrentView("newsSources",true);}var newsSource=null;var acuNewsData=null;var optimistNewsData=null;var sportsNewsData=null;function goToMoreNews(B){newsSource=B.srcElement.object.value;switch(newsSource){case"acu":var A=acuNewsUrl;var E="ACU News";var C=acuNewsData;break;case"optimist":var A=optimistNewsUrl;var E="Optimist News";var C=optimistNewsData;break;case"sports":var A=sportsNewsUrl;var E="Sports News";var C=sportsNewsData;break;default:break;}if(C==null){showActivity();var D={urls:A,fields:"title,description,pubdate,link",numEntries:"",feedInfo:"title"};$.getJSON(rssDataUrl,D,function(F){switch(newsSource){case"acu":acuNewsData=F[0].articles;break;case"optimist":optimistNewsData=F[0].articles;break;case"sports":sportsNewsData=F[0].articles;break;default:break;}moreNewsListController.setData(F[0].articles);$("#moreNewsHeader").text(E);hideActivity();$("#stackLayout")[0].object.setCurrentView("moreNews",false);});}else{moreNewsListController.setData(C);$("#moreNewsHeader").text(E);$("#stackLayout")[0].object.setCurrentView("moreNews",false);}}var moreNewsListController={_rowData:[],setData:function(A){this._rowData=A;$("#moreNewsList")[0].object.reloadData();},getData:function(){return this._rowData;},numberOfRows:function(){return this._rowData.length;},prepareRow:function(B,C,A){if(A.moreNewsTitle){A.moreNewsTitle.innerText=this._rowData[C].title;}if(A.moreNewsDesc){A.moreNewsDesc.innerHTML=this._rowData[C].description;}B.onclick=function(D){goToNewsInfo(newsSource,C);};}};
function goBackToMoreNews(){$("#stackLayout")[0].object.setCurrentView("moreNews",true);}function goToNewsInfo(D,C){switch(D){case"home":var B="Back";var A=homeNewsData;break;case"acu":var B="ACU";var A=acuNewsData;break;case"optimist":var B="Optimist";var A=optimistNewsData;break;case"sports":var B="Sports";var A=sportsNewsData;break;default:break;}$("#newsInfoBack")[0].object.setText(B);if(D=="home"){$("#newsInfoBack").click(function(E){goBackHome();});}else{$("#newsInfoBack").click(function(E){goBackToMoreNews();});}$("#newsInfoTitle").text(A[C].title);if(A[C].pubdate==null){$("#newsInfoDate").hide();}else{$("#newsInfoDate").show();$("#newsInfoDate").text(A[C].pubdate);}$("#newsInfoDesc").html(A[C].description);$("#newsInfoLinkBox")[0].onclick=function(E){window.open(A[C].link);};$("#stackLayout")[0].object.setCurrentView("newsInfo",false);}
function CreateActivityIndicator(A,C){var B=A;if(A.nodeType!=Node.ELEMENT_NODE){B=document.getElementById(A);}if(B&&!B.loaded){B.loaded=true;B.object=new ActivityIndicator(B,C);return B.object;}}function ActivityIndicator(B,A){this.element=B;B.style.webkitAnimationName="dashcode-activity-indicator";B.style.webkitAnimationDuration="1s";B.style.webkitAnimationIterationCount="infinite";B.style.webkitAnimationTimingFunction="linear";B.style.webkitAnimationPlayState="paused";if(!dashcode.inDesign){this.startAnimation();}}ActivityIndicator.prototype.startAnimation=function(){this.element.style.webkitAnimationPlayState="running";};ActivityIndicator.prototype.stopAnimation=function(){this.element.style.webkitAnimationPlayState="paused";};
if(!window.dashcode){dashcode=new Object();}if(window.Touch){window.addEventListener("focus",function(A){if(A.target.id){dashcode.TouchButtonEventHandler.focusedElement=A.target;}},true);}dashcode.CreateTouchButtonEventHandler=function(B,A,C,D){return new dashcode.TouchButtonEventHandler(B,A,C);};dashcode.TouchButtonEventHandler=function(C,A,D,E){if(!C){return false;}this.element=C;this.actionCallback=A;this.highlightCallback=D;this.swipeCallback=E;this.eventsEnabled=true;this.cancelOnDrag=true;var B=this;this._inside=false;this._highlighted=false;this._useTouchEvents=(undefined!=window.Touch);if(!this._useTouchEvents){this._mousedownHandler=function(F){B._mousedown(F);};this._mousemoveHandler=function(F){F.stopPropagation();F.preventDefault();};this._mouseoverHandler=function(F){B._mouseover(F);};this._mouseoutHandler=function(F){B._mouseout(F);};this._mouseupHandler=function(F){B._mouseup(F);};}if(this._useTouchEvents){this.element.addEventListener("touchstart",function(F){B._touchStart(F);},false);this.element.addEventListener("touchend",function(F){B._touchEnd(F);},false);this.element.addEventListener("touchmove",function(F){B._touchMove(F);},false);this.element.addEventListener("touchcancel",function(F){B._touchCancelled(F);},false);C.style.webkitTapHighlightColor="rgba(0,0,0,0)";C.style.webkitTouchCallout="none";}else{this.element.addEventListener("mousedown",B._mousedownHandler,false);}};dashcode.TouchButtonEventHandler.prototype.setActionCallback=function(A){this.actionCallback=A;};dashcode.TouchButtonEventHandler.prototype.setHighlightCallback=function(A){this.highlightCallback=A;};dashcode.TouchButtonEventHandler._eventsDisableCount=0;dashcode.TouchButtonEventHandler.__defineSetter__("disableEvents",function(A){dashcode.TouchButtonEventHandler._eventsDisableCount+=A?1:-1;if(dashcode.TouchButtonEventHandler._eventsDisableCount<0){dashcode.TouchButtonEventHandler._eventsDisableCount=0;console.error("dashcode.TouchButtonEventHandler.disableEvents must have matched true and false values");}});dashcode.TouchButtonEventHandler.__defineGetter__("disableEvents",function(){return(dashcode.TouchButtonEventHandler._eventsDisableCount>0);});dashcode.TouchButtonEventHandler.prototype._touchStart=function(B){var A=this;if(dashcode.TouchButtonEventHandler.disableEvents&&!this._timeoutTimer){return false;}if((B.srcElement.tagName=="INPUT"||B.srcElement.tagName=="TEXTAREA"||B.srcElement.tagName=="SELECT")&&B.srcElement!=this.element){return false;}if(!this.eventsEnabled||!this.actionCallback){return false;}B.stopPropagation();A._inTouchEvent=true;A._startX=B.targetTouches[0].clientX;A._startY=B.targetTouches[0].clientY;if(this._timeoutTimer){clearTimeout(this._timeoutTimer);delete this._timeoutTimer;}else{dashcode.TouchButtonEventHandler.disableEvents=true;this._timeoutTimer=setTimeout(function(){A._touchTimeout(B,false);},100);}};dashcode.TouchButtonEventHandler.prototype._touchTimeout=function(C,B){var A=this;delete this._timeoutTimer;this._highlight(true);this._inside=true;if(B){setTimeout(function(){A._touchComplete(C,true);},150);}};dashcode.TouchButtonEventHandler.prototype._touchMove=function(C){if(C.targetTouches.length!=1||!this._inTouchEvent){if(this._blockTouchEvents){C.preventDefault();}return false;}var A=C.targetTouches[0].clientX;var D=C.targetTouches[0].clientY;var B=dashcode.pointInElement(A,D,this.element);if(this.swipeCallback&&(Math.abs(this._startX-A)>5)){if(this.swipeCallback(C,this.element,this._startX-A)){C.preventDefault();C.stopPropagation();this._touchComplete(C,false);this._blockTouchEvents=true;return true;}}if(this._timeoutTimer&&(Math.abs(this._startY-D)>5)){this._touchComplete(C,false);return false;}if(this.cancelOnDrag&&((Math.abs(this._startX-A)>5)||(Math.abs(this._startY-D)>5))){this._touchComplete(C,false);return false;}C.preventDefault();C.stopPropagation();if(!this.cancelOnDrag){if(B&&this._touchDownOutsideOfElement){this._inside=true;this._highlight(true);C.preventDefault();delete this._touchDownOutsideOfElement;}else{if(!B&&this._inside){this._touchDownOutsideOfElement=true;this._inside=false;this._highlight(false);}}}};dashcode.TouchButtonEventHandler.prototype._touchEnd=function(B){var A=this;if(!this._inTouchEvent){return false;}B.preventDefault();if(!this._timeoutTimer){setTimeout(function(){A._touchComplete(B,true);},0);}else{clearTimeout(this._timeoutTimer);this._timeoutTimer=setTimeout(function(){A._touchTimeout(B,true);},100);}this._inTouchEvent=false;return true;};dashcode.TouchButtonEventHandler.prototype._touchCancelled=function(A){if(!this._inTouchEvent){return false;}if(this._timeoutTimer){clearTimeout(this._timeoutTimer);}this._touchComplete(A,false);return true;};dashcode.TouchButtonEventHandler.prototype._callActionCallback=function(){var B=this;B._savedOnclick=null;if(this.element.onclick){B._savedOnclick=this.element.onclick;}this.element.onclick=function(C){B.actionCallback(C);B.element.onclick=B._savedOnclick;delete B._savedOnclick;};var A=document.createEvent("MouseEvents");A.initMouseEvent("click",false,false,window,1,0,0,0,0,false,false,false,false,0,null);this.element.dispatchEvent(A);};dashcode.TouchButtonEventHandler.prototype._touchComplete=function(C,A){this._highlight(false);this._inTouchEvent=false;if(this._timeoutTimer){clearTimeout(this._timeoutTimer);delete this._timeoutTimer;}try{if(this._inside&&A&&this.actionCallback!=null){if(dashcode.TouchButtonEventHandler.focusedElement){dashcode.TouchButtonEventHandler.focusedElement.blur();}this._callActionCallback();}}catch(B){throw B;}finally{delete this._inside;}dashcode.TouchButtonEventHandler.disableEvents=false;};dashcode.TouchButtonEventHandler.prototype._highlight=function(A){if(this._highlighted==A){return ;}this._highlighted=A;if(this.highlightCallback){this.highlightCallback(A,this.element);}};dashcode.TouchButtonEventHandler.prototype._mousedown=function(A){if((A.srcElement.tagName=="INPUT"||A.srcElement.tagName=="TEXTAREA")&&A.srcElement!=this.element){return false;}if(!this.eventsEnabled||!this.actionCallback){A.stopPropagation();A.preventDefault();return ;}this._highlight(true);document.addEventListener("mousemove",this._mousemoveHandler,true);document.addEventListener("mouseup",this._mouseupHandler,true);this.element.addEventListener("mouseover",this._mouseoverHandler,true);this.element.addEventListener("mouseout",this._mouseoutHandler,true);this._inside=true;A.stopPropagation();};dashcode.TouchButtonEventHandler.prototype._mouseover=function(A){this._highlight(true);this._inside=true;A.stopPropagation();A.preventDefault();};dashcode.TouchButtonEventHandler.prototype._mouseout=function(A){this._highlight(false);this._inside=false;A.stopPropagation();A.preventDefault();};dashcode.TouchButtonEventHandler.prototype._mouseup=function(B){this._highlight(false);document.removeEventListener("mousemove",this._mousemoveHandler,true);document.removeEventListener("mouseup",this._mouseupHandler,true);this.element.removeEventListener("mouseover",this._mouseoverHandler,true);this.element.removeEventListener("mouseout",this._mouseoutHandler,true);try{if(this._inside&&this.actionCallback!=null){this._callActionCallback();}}catch(A){throw A;}finally{B.stopPropagation();B.preventDefault();delete this._inside;}};
function CreateList(A,B){var C=A;if(A.nodeType!=Node.ELEMENT_NODE){C=document.getElementById(A);}if(C&&!C.loaded){C.loaded=true;C.object=new List(C,B);return C.object;}}function List(element,spec){this.element=element;try{this._listStyle=eval(spec.listStyle);}catch(e){this._listStyle=this.EDGE_TO_EDGE;}this._labelElementId=spec.labelElementId||"label";var dataArray=spec.dataArray||null;var dataSourceName=spec.dataSourceName||null;this._useDataSource=spec.useDataSource||false;this._sampleRows=spec.sampleRows||0;spec.preserveChildIdsWhenCloning=true;for(var child=element.firstChild;child!=null;child=child.nextSibling){if(child.nodeType==Node.ELEMENT_NODE){this.templateRowElement=child;break;}}if(!dashcode.inDesign){this._rowHighlight=document.createElement("div");this._rowHighlight.style.position="absolute";this._rowHighlight.style.backgroundColor="rgba(0,0,0,.3)";this._rowHighlight.style.right="0";this._rowHighlight.style.left="0";this._rowHighlight.style.top="0";this._rowHighlight.style.bottom="0";}if(this._useDataSource){var dataSource=window[dataSourceName];if(dataSource){this.dataSource=dataSource;}}else{if(dataArray){this.dataArray=dataArray;}}this.rows=[];}List.EDGE_TO_EDGE=1;List.ROUNDED_RECTANGLE=2;List.prototype.setDataSource=function(A){this._useDataSource=true;this.dataSource=A;this.reloadData();};List.prototype.setDataArray=function(A){this._useDataSource=false;this.dataArray=A;this.reloadData();};List.prototype.finishLoading=function(){this.reloadData();};List.prototype.reloadData=function(){var K=this;var S=this.templateRowElement;if(!S){return ;}var N=dashcode.inDesign;if(!N){S.style.visibility="hidden";S.style.display="";}var O=this.element;var H=O.firstChild;var M=this.dataSource;while(H){var I=H.nextSibling;if(H!=S){O.removeChild(H);}H=I;}this.rows=[];var G=function(W,U,V){var T=dashcode.cloneTemplateElement(S,N&&W==0);if(T.style.visibility=="hidden"){T.style.visibility="visible";}if(V==List.ROUNDED_RECTANGLE){T.style.borderTopWidth=W>0?"1px":"0px";}return T;};var B=function(T,V,U){if(T!=S&&T.object){T.object.index=V;T.object.value=U;}if(!N){O.insertBefore(T,S);}else{O.appendChild(T);}if(T.onclick){T.object.buttonEventHandler=dashcode.CreateTouchButtonEventHandler(T,T.onclick);T.object.buttonEventHandler.highlightCallback=function(W){K._setHighlight(T,W);};T.onclick=null;}if(M&&M.rowSwiped){T.object.buttonEventHandler.swipeCallback=function(W,X){return M.rowSwiped(T,W,X);};}K.rows.push(T);};var R=this.dataArray;if(this._useDataSource){var D=dashcode.inDesign?this._sampleRows:0;if(M&&M.numberOfRows){D=M.numberOfRows();}for(var J=0;J<D;J++){var C=G(J,D,this._listStyle);if(M&&M.prepareRow){M.prepareRow(C,J,C.object.templateElements);}B(C,J);}}else{if(R){var D=this.dataArray.length;for(var J=0;J<D;J++){var C=G(J,D,this._listStyle);var L=C.object.templateElements;var A=null;for(var Q in L){if(this._labelElementId&&this._labelElementId.length>0&&Q.indexOf(this._labelElementId)==0){A=L[Q];break;}}var P="";var E="";if((R[J]) instanceof Array){if(R[J].length>0){P=R[J][0];if(R[J].length>1){E=R[J][1];}}}else{P=R[J];E=P;}if(A){A.innerHTML=P;}B(C,J,E);}}}if(!N){S.style.display="none";}if(dashcode.inDesign){setTimeout(function(){O.style.display="block";},0);}else{O.style.display="block";}if(typeof (AppleScrollArea)!="undefined"){var F=O.parentNode;while(F&&F!=document){if(F.object&&F.object.constructor==AppleScrollArea){F.object.refresh();break;}F=F.parentNode;}}};List.prototype._setDataArray=function(A){this.dataArray=A;this.reloadData();};List.prototype._setSampleRows=function(A){this._sampleRows=A;this.reloadData();};List.prototype._setUseDataSource=function(A){this._useDataSource=A;this.reloadData();};List.prototype._setLabelElementId=function(A){this._labelElementId=A;this.reloadData();};List.prototype._setHighlight=function(B,A){if(A){if(this._rowHighlight){if(this._rowHighlight.parentNode){this._rowHighlight.parentNode.removeChild(this._rowHighlight);}B.appendChild(this._rowHighlight);}}else{if(this._rowHighlight&&this._rowHighlight.parentNode){this._rowHighlight.parentNode.removeChild(this._rowHighlight);}}};
PushButton.DISABLED_OPACITY=0.5;PushButton.IMAGE_POSITION_NONE=0;PushButton.IMAGE_POSITION_LEFT=1;PushButton.IMAGE_POSITION_RIGHT=2;PushButton.IMAGE_POSITION_TOP=3;PushButton.IMAGE_POSITION_BOTTOM=4;PushButton.IMAGE_POSITION_CENTER=5;PushButton.STATE_OFF=0;PushButton.STATE_ON=1;function CreatePushButton(A,B){var C=A;if(A.nodeType!=Node.ELEMENT_NODE){C=document.getElementById(A);}if(!C.loaded){C.loaded=true;C.object=new PushButton(C,B);}return C.object;}function PushButton(buttonElement,spec){var _self=this;if(!buttonElement||!spec){return ;}this.element=buttonElement;var styleElement=buttonElement;if(spec.originalID){styleElement=document.getElementById(spec.originalID);while(buttonElement.firstChild){buttonElement.removeChild(buttonElement.firstChild);}}this._initialWidth=spec.initialWidth||0;this._initialHeight=spec.initialHeight||0;this._leftImageWidth=spec.leftImageWidth||0;this._rightImageWidth=spec.rightImageWidth||0;this._topImageWidth=0;this._bottomImageWidth=0;this._containerLeft=0;this._containerRight=0;this._pressed=false;var imagePrefix="Images/"+styleElement.id;this._bgIimageURL=imagePrefix+".png";this._pressedBgImageURL=imagePrefix+"_clicked.png";var style;this._backgroundElement=document.createElement("div");style=this._backgroundElement.style;style.position="absolute";style.top="0px";style.left="0px";style.right="0px";style.bottom="0px";this.element.appendChild(this._backgroundElement);this._backgroundElementPressed=this._backgroundElement.cloneNode(false);style=this._backgroundElementPressed.style;style.visibility="hidden";this.element.appendChild(this._backgroundElementPressed);this._containerElement=this._backgroundElement.cloneNode(false);style=this._containerElement.style;style.textOverflow="inherit";style.whiteSpace="inherit";this.element.appendChild(this._containerElement);this._textElement=document.createElement("span");style=this._textElement.style;style.display="inline";this._containerElement.appendChild(this._textElement);this._imageElement=document.createElement("img");style=this._imageElement.style;style.display="inline";style.verticalAlign="middle";this._containerElement.appendChild(this._imageElement);this._lineBreakElement=document.createElement("br");this._containerElement.appendChild(this._lineBreakElement);this._eventsElement=this._backgroundElement.cloneNode(false);style=this._eventsElement.style;this.element.appendChild(this._eventsElement);this._updateBackgroundImage();var text=spec.text||"";if(window.dashcode&&dashcode.getLocalizedString){text=dashcode.getLocalizedString(text);}this.setText(text);this.setImageURL(spec.customImage||"");this.setPressedImageURL(spec.customImagePressed||"");var imagePosition=(spec.customImagePosition==undefined)||(spec.customImagePosition.length<1)?PushButton.IMAGE_POSITION_NONE:eval(spec.customImagePosition);this.setImagePosition(imagePosition);this.buttonEventHandler=dashcode.CreateTouchButtonEventHandler(this._eventsElement);this.enabled=!spec.disabled;if(this.enabled){try{this.buttonEventHandler.setActionCallback(eval(spec.onclick));}catch(e){}}else{this.buttonEventHandler.eventsEnabled=false;}this.buttonEventHandler.highlightCallback=function(pressed){_self._setPressed(pressed);};this.__defineSetter__("onclick",function(onclick){this.buttonEventHandler.setActionCallback(onclick);});this.__defineGetter__("onclick",function(){return this.buttonEventHandler.actionCallback;});}PushButton.prototype.setEnabled=function(A){A=!(!A);if(this.enabled==A){return ;}this.enabled=A;var C=1;var B=document.defaultView.getComputedStyle(this.element,null);if(B){C=+B.getPropertyValue("opacity");}if(A){this.element.style.opacity=C*(1/PushButton.DISABLED_OPACITY);this.buttonEventHandler.eventsEnabled=true;this.element.style.appleDashboardRegion="dashboard-region(control rectangle)";}else{this.element.style.opacity=PushButton.DISABLED_OPACITY*C;this.element.style.appleDashboardRegion="none";this.buttonEventHandler.eventsEnabled=false;}};PushButton.prototype.setText=function(A){this._textElement.innerText=A;};PushButton.prototype.getText=function(){return this._textElement.innerText;};PushButton.prototype.sizeToFit=function(A,B){var C=this._widthRequiredToFit();if(B&&(B<C)){C=parseInt(B);}else{if(A&&(A>C)){C=parseInt(A);}}this.element.style.width=C+"px";this._layoutElements();};PushButton.prototype.setImagePosition=function(A){this._imagePosition=A;this._layoutElements();};PushButton.prototype.getImagePosition=function(){return this._imagePosition;};PushButton.prototype.setImageURL=function(B){this._customImageURL=B;this._customImageLoaded=false;if(this._customImageURL){this._customImage=new Image();var A=this;this._customImage.onload=function(){A._customImageLoaded=true;A._setCustomImage();};this._customImage.src=this._customImageURL;}else{this._customImage=null;this._setCustomImage();}};PushButton.prototype.getImageURL=function(){return this._customImageURL;};PushButton.prototype.setPressedImageURL=function(B){this._customImagePressedURL=B;this._customImagePressedLoaded=false;if(this._customImagePressedURL){this._customImagePressed=new Image();var A=this;this._customImagePressed.onload=function(){A._customImagePressedLoaded=true;A._setCustomImage();};this._customImagePressed.src=this._customImagePressedURL;}else{this._customImagePressed=null;this._setCustomImage();}};PushButton.prototype.getPressedImageURL=function(){return this._customImagePressedURL;};PushButton.prototype.setState=function(A){this._pressed=(A==PushButton.STATE_ON);if(this._pressed){this._backgroundElement.style.visibility="hidden";this._backgroundElementPressed.style.visibility="visible";}else{this._backgroundElement.style.visibility="visible";this._backgroundElementPressed.style.visibility="hidden";}this._setCustomImage();this._imageElement.offsetLeft;};PushButton.prototype.getState=function(){return this._pressed?PushButton.STATE_ON:PushButton.STATE_OFF;};PushButton.prototype._setCustomImage=function(){var A=this._imageElement.style;if(this._pressed&&this._customImagePressed&&this._customImagePressedLoaded){this._imageElement.src=this._customImagePressedURL;A.width=this._customImagePressed.width+"px";A.height=this._customImagePressed.height+"px";}else{if(!this._pressed&&this._customImage&&this._customImageLoaded){this._imageElement.src=this._customImageURL;A.width=this._customImage.width+"px";A.height=this._customImage.height+"px";}else{this._imageElement.src=null;}}this._layoutElements();};PushButton.prototype._setPressed=function(B){var A=B?PushButton.STATE_ON:PushButton.STATE_OFF;this.setState(A);};PushButton.prototype._updateBackgroundImage=function(){if(!PushButton._webKitVersion){PushButton._webKitVersion=0;var F=RegExp("( AppleWebKit/)([^ ]+)").exec(navigator.userAgent);if(F&&F.length>=3){var B=F[2];var E=RegExp("[^\\.0-9]").exec(B);if(E){B=B.slice(0,E.index);}PushButton._webKitVersion=+B.split(".")[0];}}var A=PushButton._webKitVersion>=523?"repeat stretch":"stretch stretch";var C=""+this._topImageWidth+"px "+this._rightImageWidth+"px "+this._bottomImageWidth+"px "+this._leftImageWidth+"px";this._backgroundElement.style.borderWidth=C;this._backgroundElementPressed.style.borderWidth=C;if(this._leftImageWidth>0||this._rightImageWidth>0){this._backgroundElement.style.webkitBorderImage="url("+this._bgIimageURL+") "+this._topImageWidth+" "+this._rightImageWidth+" "+this._bottomImageWidth+" "+this._leftImageWidth+" "+A;this._backgroundElement.style.backgroundImage="";this._backgroundElementPressed.style.webkitBorderImage="url("+this._pressedBgImageURL+") "+this._topImageWidth+" "+this._rightImageWidth+" "+this._bottomImageWidth+" "+this._leftImageWidth+" "+A;this._backgroundElementPressed.style.backgroundImage="";}else{this._backgroundElement.style.webkitBorderImage="";this._backgroundElement.style.backgroundImage="url("+this._bgIimageURL+")";this._backgroundElement.style.backgroundRepeat="repeat-x";this._backgroundElementPressed.style.webkitBorderImage="";this._backgroundElementPressed.style.backgroundImage="url("+this._pressedBgImageURL+") ";this._backgroundElementPressed.style.backgroundRepeat="repeat-x";}var D=2;this._containerLeft=+this._leftImageWidth+D;this._containerRight=+this._rightImageWidth+D;if(this._containerLeft>this._containerRight){this._containerLeft=Math.ceil((this._containerRight+this._containerLeft)/2);}else{if(this._containerRight>this._containerLeft){this._containerRight=Math.ceil((this._containerRight+this._containerLeft)/2);}}this._containerElement.style.marginLeft=this._containerLeft+"px";this._containerElement.style.marginRight=this._containerRight+"px";};PushButton.prototype._layoutElements=function(){var R=this._imagePosition;if(!this._customImageLoaded&&!this._customImagePressedLoaded){R=PushButton.IMAGE_POSITION_NONE;}var J=this._imageElement.style;var E=this._textElement.style;var K=this._containerElement.style;var P=this._lineBreakElement.style;var G=this.element.offsetHeight;if(G<1){G=this._initialHeight;}var L=this.element.offsetWidth;if(L<1){L=this._initialWidth;}if(R==PushButton.IMAGE_POSITION_NONE){E.position="static";J.display="none";E.display="inline";K.lineHeight=G+"px";K.overflow="hidden";K.marginTop="";P.display="none";}else{var A=this._textElement.offsetHeight;if(A<1){var O=document.defaultView.getComputedStyle(this._textElement,null);if(O){A=parseFloat(O.getPropertyValue("font-size"));}}var H=this._pressed?this._customImagePressed.width:this._customImage.width;var Q=this._pressed?this._customImagePressed.height:this._customImage.height;var B=5;var N=5;if(R==PushButton.IMAGE_POSITION_LEFT||R==PushButton.IMAGE_POSITION_RIGHT){E.display="inline";J.display="inline";J.marginTop="";J.marginBottom="";K.marginTop="";K.lineHeight=G+"px";K.overflow="hidden";P.display="none";if(R==PushButton.IMAGE_POSITION_LEFT){this._containerElement.insertBefore(this._imageElement,this._textElement);J.marginLeft="";J.marginRight=B+"px";}else{this._containerElement.insertBefore(this._textElement,this._imageElement);J.marginLeft=B+"px";J.marginRight="";}}else{if(R==PushButton.IMAGE_POSITION_TOP||R==PushButton.IMAGE_POSITION_BOTTOM){E.display="inline";J.display="inline";J.marginLeft="";J.marginRight="";K.lineHeight="";K.overflow="hidden";var F=Math.floor((G-(A+Q+N))/2);K.marginTop=Math.max(F,0)+"px";P.display="inline";if(R==PushButton.IMAGE_POSITION_TOP){J.marginTop="";J.marginBottom=N+"px";this._containerElement.insertBefore(this._imageElement,this._textElement);this._containerElement.insertBefore(this._lineBreakElement,this._textElement);}else{J.marginTop=N+"px";J.marginBottom="";this._containerElement.insertBefore(this._textElement,this._imageElement);this._containerElement.insertBefore(this._lineBreakElement,this._imageElement);}}else{E.display="none";J.display="inline";K.lineHeight=G+"px";K.overflow="visible";K.marginTop="";P.display="none";var C=H-(L-this._containerLeft-this._containerRight);var M=(C>0)?-C/2:0;var I=Q-G;var D=(I>0)?-I/2:0;J.marginLeft=M+"px";J.marginTop=D+"px";J.marginRight="";J.marginBottom="";}}}};PushButton.prototype._widthRequiredToFit=function(){var C=this._textElement.offsetWidth;var B=0;if(this._imagePosition!=PushButton.IMAGE_POSITION_NONE&&(this._customImageLoaded||this._customImagePressedLoaded)){var A=this._pressed?this._customImagePressed.width:this._customImage.width;switch(this._imagePosition){case PushButton.IMAGE_POSITION_LEFT:case PushButton.IMAGE_POSITION_RIGHT:if(this._imageElement.style.marginLeft){B+=parseInt(this._imageElement.style.marginLeft);}if(this._imageElement.style.marginRight){B+=parseInt(this._imageElement.style.marginRight);}B+=C+A;break;default:if(C>A){B+=C;}else{B+=A;}break;}}else{B+=C;}B+=this._containerLeft+this._containerRight;return B;};
var dashcodePartSpecs={aboutInfoBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},aboutInfoHeader:{creationFunction:"CreateText",text:"About ACU"},aboutInfoTitle:{creationFunction:"CreateText"},aboutLabel:{creationFunction:"CreateText",text:"Item"},aboutList:{creationFunction:"CreateList",dataArray:[["Who We Are","who"],["Exceptional Academics","academics"],["Student Experience","experience"],["Home of Champions","athletics"],["Distinguished Alumni","alumni"],["Quick Facts","facts"]],labelElementId:"aboutLabel",listStyle:"List.EDGE_TO_EDGE",sampleRows:3},aboutText:{creationFunction:"CreateText",text:"ABOUT"},activityIndicator:{creationFunction:"CreateActivityIndicator"},adHeadline:{creationFunction:"CreateText"},adTagline:{creationFunction:"CreateText"},buildingsLabel:{creationFunction:"CreateText",text:"Buildings"},buildingsToLabel:{creationFunction:"CreateText",text:"to"},campusBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},campusHeader:{creationFunction:"CreateText",text:"Campus"},chapelDay:{creationFunction:"CreateText"},chapelList:{creationFunction:"CreateList",dataArray:["Item 1","Item 2","Item 3"],dataSourceName:"chapelListController",labelElementId:"chapelDay",listStyle:"List.EDGE_TO_EDGE",sampleRows:5,useDataSource:true},chapelLocation:{creationFunction:"CreateText"},chapelText:{creationFunction:"CreateText",text:"CHAPEL"},chapelTitle:{creationFunction:"CreateText"},copyright:{creationFunction:"CreateText",text:"©2008 ACU"},deptAddr:{creationFunction:"CreateText"},deptName:{creationFunction:"CreateText"},deptPhone:{creationFunction:"CreateText"},directionsFromLabel:{creationFunction:"CreateText",text:"from"},directionsLabel:{creationFunction:"CreateText",text:"Directions"},directionsToLabel:{creationFunction:"CreateText",text:"to"},eventInfoBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:64,leftImageWidth:16,rightImageWidth:5,text:"Events"},eventInfoDateTime:{creationFunction:"CreateText"},eventInfoDesc:{creationFunction:"CreateText"},eventInfoHeader:{creationFunction:"CreateText",text:"Event"},eventInfoLocation:{creationFunction:"CreateText"},eventInfoNotes:{creationFunction:"CreateText",text:"Notes"},eventInfoTitle:{creationFunction:"CreateText"},eventLocation:{creationFunction:"CreateText"},eventsList:{creationFunction:"CreateList",dataArray:["Event 1","Event 2","Event 3"],dataSourceName:"eventsListController",labelElementId:"eventTitle",listStyle:"List.EDGE_TO_EDGE",sampleRows:5,useDataSource:true},eventsText:{creationFunction:"CreateText",text:"EVENTS"},eventTitle:{creationFunction:"CreateText"},homeStack:{creationFunction:"CreateStackLayout",subviewsTransitions:[{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"}]},homeStackActivityIndicator:{creationFunction:"CreateActivityIndicator"},mapLabel:{creationFunction:"CreateText"},mapsList:{creationFunction:"CreateList",dataArray:[["Campus","campus"],["Directions to Campus","directions"],["From the Airport","airport"]],dataSourceName:"mapsListController",labelElementId:"mapLabel",listStyle:"List.EDGE_TO_EDGE",sampleRows:3,useDataSource:true},mapsText:{creationFunction:"CreateText",text:"MAPS"},moreChapelButton:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:240,leftImageWidth:5,onclick:"goToMoreChapel",rightImageWidth:16,text:"More Chapel"},moreEventDate:{creationFunction:"CreateText"},moreEventDay:{creationFunction:"CreateText"},moreEventLocation:{creationFunction:"CreateText"},moreEventsBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},moreEventsButton:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:240,leftImageWidth:5,onclick:"goToMoreEvents",rightImageWidth:16,text:"More Events"},moreEventsHeader:{creationFunction:"CreateText",text:"Events"},moreEventsList:{creationFunction:"CreateList",dataArray:["Item 1","Item 2","Item 3"],dataSourceName:"moreEventsListController",labelElementId:"moreEventTitle",listStyle:"List.EDGE_TO_EDGE",sampleRows:3,useDataSource:true},moreEventTime:{creationFunction:"CreateText"},moreEventTimeCode:{creationFunction:"CreateText"},moreEventTitle:{creationFunction:"CreateText"},moreNewsBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackToNewsSources",rightImageWidth:5,text:"News"},moreNewsButton:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:240,leftImageWidth:5,onclick:"goToNewsSources",rightImageWidth:16,text:"More News"},moreNewsDesc:{creationFunction:"CreateText"},moreNewsHeader:{creationFunction:"CreateText",text:"Optimist"},moreNewsList:{creationFunction:"CreateList",dataArray:["Item 1","Item 2","Item 3"],dataSourceName:"moreNewsListController",labelElementId:"moreNewsTitle",listStyle:"List.EDGE_TO_EDGE",sampleRows:3,useDataSource:true},moreNewsTitle:{creationFunction:"CreateText"},nestedSearchName:{creationFunction:"CreateText",text:"Item"},nestedSearchResultsList:{creationFunction:"CreateList",dataArray:["Item 1","Item 2","Item 3"],dataSourceName:"nestedListController",labelElementId:"nestedSearchName",listStyle:"List.EDGE_TO_EDGE",sampleRows:3,useDataSource:true},newsDesc:{creationFunction:"CreateText"},newsInfoBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:70,leftImageWidth:16,rightImageWidth:5,text:"Optimist"},newsInfoDate:{creationFunction:"CreateText"},newsInfoDesc:{creationFunction:"CreateText"},newsInfoHeader:{creationFunction:"CreateText",text:"Info"},newsInfoTitle:{creationFunction:"CreateText"},newsList:{creationFunction:"CreateList",dataArray:["News 1","News 2","News 3"],dataSourceName:"newsListController",labelElementId:"newsTitle",listStyle:"List.EDGE_TO_EDGE",sampleRows:5,useDataSource:true},newsSource:{creationFunction:"CreateText",text:"Item"},newsSourcesBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},newsSourcesHeader:{creationFunction:"CreateText",text:"News"},newsSourcesList:{creationFunction:"CreateList",dataArray:[["ACU","acu"],["Optimist","optimist"],["Sports","sports"]],labelElementId:"newsSource",listStyle:"List.EDGE_TO_EDGE",sampleRows:3},newsText:{creationFunction:"CreateText",text:"NEWS"},newsTitle:{creationFunction:"CreateText"},noneFound:{creationFunction:"CreateText",text:"No Results Found"},peopleLabel:{creationFunction:"CreateText",text:"Item"},peopleList:{creationFunction:"CreateList",dataArray:[["Employees","employees"],["Departments","departments"],["Students","students"]],labelElementId:"peopleLabel",listStyle:"List.EDGE_TO_EDGE",sampleRows:3},peopleText:{creationFunction:"CreateText",text:"PEOPLE"},personAddr1:{creationFunction:"CreateText"},personAddr2:{creationFunction:"CreateText"},personAddr3:{creationFunction:"CreateText"},personAddrLabel:{creationFunction:"CreateText",text:"address"},personEmail:{creationFunction:"CreateText"},personEmailLabel:{creationFunction:"CreateText",text:"email"},personInfoBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:67,leftImageWidth:16,onclick:"goBackToSearchResults",rightImageWidth:5,text:"Results"},personInfoHeader:{creationFunction:"CreateText",text:"Info"},personLabel:{creationFunction:"CreateText"},personList:{creationFunction:"CreateList",dataArray:["Item 1","Item 2","Item 3"],dataSourceName:"personListController",labelElementId:"personLabel",listStyle:"List.EDGE_TO_EDGE",sampleRows:3,useDataSource:true},personName:{creationFunction:"CreateText"},personPhone:{creationFunction:"CreateText"},personPhoneLabel:{creationFunction:"CreateText",text:"phone"},photoBy:{creationFunction:"CreateText",text:"This photo by:"},searchActivityIndicator:{creationFunction:"CreateActivityIndicator"},searchBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},searchHeader:{creationFunction:"CreateText",text:"Search"},searchLabel:{creationFunction:"CreateText",text:"Find ACU Employees"},searchResultsBack:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:63,leftImageWidth:16,onclick:"goBackToSearch",rightImageWidth:5,text:"Search"},searchResultsHeader:{creationFunction:"CreateText",text:"Search Results"},searchStack:{creationFunction:"CreateStackLayout",subviewsTransitions:[{direction:"top-bottom",duration:"",timing:"ease-in-out",type:"slide"},{direction:"top-bottom",duration:"",timing:"ease-in-out",type:"slide"},{direction:"top-bottom",duration:"",timing:"ease-in-out",type:"slide"}]},snapshotFirstName:{creationFunction:"CreateText"},snapshotLabel:{creationFunction:"CreateText",text:"Snapshots from Campus"},snapshotLastName:{creationFunction:"CreateText"},stackLayout:{creationFunction:"CreateStackLayout",subviewsTransitions:[{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"},{direction:"right-left",duration:"",timing:"ease-in-out",type:"push"}]},submit:{creationFunction:"CreateText",text:"submit"},submitButtonNew:{creationFunction:"CreatePushButton",initialHeight:38,initialWidth:81,leftImageWidth:5,onclick:"goToSubmitPhoto",rightImageWidth:18},submitPhotoBackNew:{creationFunction:"CreatePushButton",initialHeight:30,initialWidth:60,leftImageWidth:16,onclick:"goBackHome",rightImageWidth:5,text:"Back"},submitPhotoDesc:{creationFunction:"CreateText",text:"Get your name in lights!"},submitPhotoDir:{creationFunction:"CreateText"},submitPhotoHeader:{creationFunction:"CreateText",text:"Be Famous!"},submitPhotoRule:{creationFunction:"CreateText"},submitPhotoTitle:{creationFunction:"CreateText",text:"Submit Your Photo"},text:{creationFunction:"CreateText",text:"See Original"},viewMode:{creationFunction:"CreateText"},yourPhoto:{creationFunction:"CreateText",text:"your photo"}};
function CreateStackLayout(A,B){var C=A;if(A.nodeType!=Node.ELEMENT_NODE){C=document.getElementById(A);}if(!C.loaded){C.loaded=true;C.object=new StackLayout(C,B);return C.object;}}function StackLayout(I,H){this.element=I;var C=H.subviewsTransitions||[];var D=I;if(H.originalID){D=document.getElementById(H.originalID);this._viewsOldOpacity=D.object._viewsOldOpacity;}else{this._viewsOldOpacity=[];}this._views=[];this._currentView=null;var A=I.childNodes;this._inDesign=window.dashcode&&window.dashcode.inDesign;var G=false;for(var B=0;B<A.length;B++){if(A[B].nodeType==Node.ELEMENT_NODE){var F=A[B];this._views.push(F);if(!this._inDesign){F.style.display=(G)?"none":"block";if(this._viewsOldOpacity.length<=B){this._viewsOldOpacity.push(F.style.opacity);}F.style.opacity=(G)?0:1;G=true;}}}if(this._views.length>0){this._viewsTransition=[];this.setCurrentView(this._views[0]);if(this._views.length==C.length){for(var B=0;B<this._views.length;B++){this._viewsTransition[B]=CreateTransitionWithProperties(C[B]);}}}this._topPosFromBody=0;var E=this.element;do{this._topPosFromBody+=E.offsetTop;}while(E=E.offsetParent);this._maskContainerElement=I;}StackLayout.prototype.getAllViews=function(){return this._views;};StackLayout.prototype.getCurrentView=function(){return this._currentView;};StackLayout.prototype.setCurrentView=function(E,C,B){E=this._getView(E);var A=this.getCurrentView();if(!E||(A==E)){return ;}if(!E.parentNode==this.element){return ;}var D=this._viewsTransition[this._indexOfView(E)];if(!D){D=new Transition(Transition.NONE_TYPE);}if(A){if(C){D=this._viewsTransition[this._indexOfView(A)];}}this._setCurrentViewPrimitive(E,A,D,C,B);};StackLayout.prototype.setCurrentViewWithTransition=function(E,D,C,B){E=this._getView(E);if(!E){return ;}if(!E.parentNode==this.element){return ;}var A=this.getCurrentView();this._setCurrentViewPrimitive(E,A,D,C,B);};StackLayout.prototype.getTransitionForView=function(A){A=this._getView(A);return this._viewsTransition[this._indexOfView(A)];};StackLayout.prototype.addView=function(A,B){this._views.push(A);this._viewsOldOpacity.push(A.style.opacity);A.style.opacity=(this._views.length==1?1:0);A.style.display=(this._views.length==1?"none":"block");A.style.webkitTransform="translate(0px, 0px)";if(!B){B=null;}this._viewsTransition[this._views.length-1]=B;this.element.appendChild(A);if(this._views.length==1){this.setCurrentView(A);}};StackLayout.prototype.removeView=function(B){var A=this._indexOfView(B);if((A<0)||(this._views.length==1)){return ;}if(B==this.getCurrentView()){this.setCurrentView(this._views[(A==0?1:0)]);}this._views.splice(A,1);this._viewsOldOpacity.splice(A,1);this._viewsTransition.splice(A,1);this.element.removeChild(B);};StackLayout.prototype._indexOfView=function(A){var B=-1;if(this._views.indexOf){B=this._views.indexOf(A);}else{for(var C=0;C<this._views.length;C++){if(this._views[C]==A){B=C;break;}}}return B;};StackLayout.prototype._getView=function(A){if(A){if(A.nodeType==Node.ELEMENT_NODE){return A;}if(A.element){return A.element;}return document.getElementById(A);}return null;};StackLayout.prototype._setRestrictToBrowserTransition=function(A){this._restrictedBrowserTransition=A?CreateTransitionWithProperties({type:Transition.PUSH_TYPE,direction:Transition.RIGHT_TO_LEFT_DIRECTION,timing:Transition.EASE_IN_OUT_TIMING}):null;};StackLayout.prototype._getRealTransition=function(B){var A=B;if(this._restrictedBrowserTransition){A=this._restrictedBrowserTransition;A.setDuration(B.getDuration());}return A;};StackLayout.prototype._setCurrentViewPrimitive=function(G,C,F,D,B){if(!this._inDesign){if(B){var E=this._topPosFromBody-window.pageYOffset;if(E<0){window.scrollBy(0,E);}}if(F){this._restoreOldOpacity(C);this._restoreOldOpacity(G);var A=this._getRealTransition(F);A._maskContainerElement=this._maskContainerElement;A.perform(G,C,D);}else{if(C){C.style.display="none";}if(G){G.style.display="block";this._restoreOldOpacity(G);}}}this._currentView=G;};StackLayout.prototype._restoreOldOpacity=function(A){if(A){var B=this._viewsOldOpacity[this._indexOfView(A)];A.style.opacity=(B!==undefined)?B:null;}};
function CreateText(A,B){var D=B.text||"";if(window.dashcode&&dashcode.getLocalizedString){D=dashcode.getLocalizedString(D);}var C=A;if(A.nodeType!=Node.ELEMENT_NODE){C=document.getElementById(A);}C.innerText=D;}
Transition.NONE_TYPE="none";Transition.PUSH_TYPE="push";Transition.DISSOLVE_TYPE="dissolve";Transition.SLIDE_TYPE="slide";Transition.FADE_TYPE="fade";Transition.FLIP_TYPE="flip";Transition.CUBE_TYPE="cube";Transition.SWAP_TYPE="swap";Transition.REVOLVE_TYPE="revolve";Transition.EASE_TIMING="ease";Transition.LINEAR_TIMING="linear";Transition.EASE_IN_TIMING="ease-in";Transition.EASE_OUT_TIMING="ease-out";Transition.EASE_IN_OUT_TIMING="ease-in-out";Transition.RIGHT_TO_LEFT_DIRECTION="right-left";Transition.LEFT_TO_RIGHT_DIRECTION="left-right";Transition.TOP_TO_BOTTOM_DIRECTION="top-bottom";Transition.BOTTOM_TO_TOP_DIRECTION="bottom-top";function Transition(A,C,B){this.type=A;this.setDuration(C);this.timing=B;this._useTransforms=Transition.areTransformsSupported();}function CreateTransitionWithProperties(A){var C=new Transition();for(var B in A){if(B=="duration"){C.setDuration(A[B]);}else{C[B]=A[B];}}return C;}Transition.prototype.perform=function(G,C,E){if(!G||!G.parentNode){return ;}var F=G.parentNode;if(C){if(C.parentNode!=F){return ;}if(C==G){return ;}F=C.parentNode;if(F.getAttribute("apple-transition-flip-push-container")){this._pushContainer=F;F=this._pushContainer.parentNode;}else{this._pushContainer=null;}var A=C.style;A.zIndex=0;this._containerWidth=F.offsetWidth+"px";A.width=this._containerWidth;A.top=C.offsetTop+"px";if(this._useTransforms){A.webkitTransitionProperty="none";A.webkitTransform=this._translateOp(0,0);A.webkitBackfaceVisibility="";}if(!this.type||this.type==Transition.NONE_TYPE||!this._useTransforms){if((this.type!=Transition.FADE_TYPE)&&(this.type!=Transition.SLIDE_TYPE)||E){A.display="none";}}}F.style.overflow="hidden";var B=document.defaultView.getComputedStyle(F,null);if((B.getPropertyValue("position")!="absolute")&&(B.getPropertyValue("position")!="relative")){F.style.position="relative";}var D=G.style;if(this._useTransforms){D.webkitTransitionProperty="none";D.webkitTransform=this._translateOp(0,0);D.webkitBackfaceVisibility="";F.parentNode.style.zIndex=0;}D.width=null;D.position="relative";D.display="block";if(this.type&&this.type!=Transition.NONE_TYPE&&this._useTransforms){this._checkedForEnded=false;this._containerElement=F;this._newView=G;this._oldView=C;this._previousNewStyleOpacity=D.opacity;this._shouldHideOldView=true;if(C){A.position="absolute";this._preventEventsInContainer();this._originalContainerElementHeight=F.style.height;F.style.height=Math.max(C.offsetHeight,G.offsetHeight)+"px";}if(this._pushContainer&&(this.type!=Transition.FLIP_TYPE)){this._clearPushContainer();}if(this.type==Transition.DISSOLVE_TYPE||this.type==Transition.FADE_TYPE){this._performFadeTransition(E);}else{if(this.type==Transition.PUSH_TYPE||this.type==Transition.SLIDE_TYPE){this._performPushOrSlideTransition(E);}else{if(this.type==Transition.FLIP_TYPE){this._performFlipTransition(E);}else{if(this.type==Transition.CUBE_TYPE){this._performCubeTransition(E);}else{if(this.type==Transition.SWAP_TYPE){this._performSwapTransition(E);}else{if(this.type==Transition.REVOLVE_TYPE){this._performRevolveTransition(E);}}}}}}}};Transition.areTransformsSupported=function(){if(!Transition._areTransformsSupported){Transition._areTransformsSupported=(window.WebKitCSSMatrix?true:false);}return Transition._areTransformsSupported;};Transition._DEFAULT_DURATION={none:"0.35",push:"0.35",dissolve:"0.35",slide:"0.35",fade:"0.35",flip:"0.65",cube:"0.55",swap:"0.55",revolve:"0.35"};Transition.prototype.getDuration=function(){var A=this._duration;if(A==""){A=Transition._DEFAULT_DURATION[this.type];if(!A){A="0.3";}}return A;};Transition.prototype.setDuration=function(A){this._duration=A;};Transition.prototype._getDurationString=function(){var A=parseFloat(this.getDuration());if(!isNaN(A)){A+="s";}else{A="0s";}return A;};Transition.prototype._getDurationStringForFadingEffect=function(){var A=parseFloat(this.getDuration());if(!isNaN(A)){A=A*(1+((A<0.25)?0.5:Math.pow(4,-0.25-A)))+"s";}else{A="0s";}return A;};Transition.prototype._translateOp=function(A,B){return"translate("+A+"px, "+B+"px)";};Transition.prototype._rotateOp=function(A,B){return"rotate"+A+"("+B+"deg)";};Transition.prototype._setupTransition=function(C,E,F,D,B,A){C.webkitTransitionProperty=E;C.webkitTransitionDuration=F;C.webkitTransitionTimingFunction=D;C[B]=A;};Transition.prototype.handleEvent=function(A){switch(A.type){case"webkitTransitionEnd":this._transitionEnded(A);break;case"webkitAnimationEnd":this._animationEnded(A);break;}};Transition.prototype._preventEventsInContainer=function(){if(!this._maskContainerElement){return ;}if(this._mask){this._maskContainerElement.removeChild(this._mask);}this._mask=document.createElement("div");this._mask.setAttribute("style","position: absolute; top: 0; left: 0; z-index: 1000;");this._mask.style.width=this._maskContainerElement.offsetWidth+"px";this._mask.style.height=this._maskContainerElement.offsetHeight+"px";this._maskContainerElement.appendChild(this._mask);};Transition.prototype._clearPushContainer=function(){if(this._pushContainer){this._containerElement.removeChild(this._pushContainer);var B=this._pushContainer.childNodes;for(var A=B.length-1;A>=0;A--){if(B[A]!=this._mask){this._containerElement.appendChild(B[A]);}}delete this._pushContainer;}};Transition.prototype._transitionEndedHelper=function(){if(this._shouldHideOldView){this._oldView.style.display="none";}this._newView.style.zIndex=1;this._newView.style.opacity=this._previousNewStyleOpacity;if(this._maskContainerElement&&this._mask){this._maskContainerElement.removeChild(this._mask);this._mask=null;}this._containerElement.style.height=this._originalContainerElementHeight;};Transition.prototype._transitionEnded=function(A){if(!this._checkedForEnded){this._transitionEndedHelper();if(this.type==Transition.CUBE_TYPE){this._containerElement.style.webkitPerspective="";this._oldView.style.webkitTransformOrigin="";this._newView.style.webkitTransformOrigin="";}this._checkedForEnded=true;}};Transition._findAnimationRule=function(E){var A=null;var F=document.styleSheets;var D=/Parts\/Transitions.css$/;for(var C=0;C<F.length;C++){var H=F[C];if(D.test(H.href)){for(var B=0;B<H.cssRules.length;B++){var G=H.cssRules[B];if(G.type==7&&G.name==E){A=G;break;}}}}return A;};Transition.prototype._animationEndedHelper=function(){this._transitionEndedHelper();Transition._removeClassName(this._oldView,this._oldViewAnimationName);Transition._removeClassName(this._newView,this._newViewAnimationName);};Transition.prototype._animationEnded=function(A){if(!this._checkedForEnded){this._animationEndedHelper();if(this.type==Transition.FLIP_TYPE){Transition._removeClassName(this._containerElement,"dashcode-transition-flip-container");Transition._removeClassName(this._flipContainer,"dashcode-transition-flip-container-pushback");}this._checkedForEnded=true;}};Transition.prototype._performFadeTransition=function(E){if(this._oldView){var A=this;var D=this._newView.style;var B=this._oldView.style;var C=this.type==Transition.DISSOLVE_TYPE;var F=this.type==Transition.FADE_TYPE;if(F){if(!E){D.opacity=0;}}else{if(C){D.opacity=0;}}var G=this._getDurationStringForFadingEffect(this.getDuration());Transition._addDelayedTransitionCallback(function(){if(C||(F&&E)){A._setupTransition(B,"opacity",G,A.timing,"opacity",0);}else{A._shouldHideOldView=false;}if(C||(F&&!E)){A._setupTransition(D,"opacity",G,A.timing,"opacity",A._previousNewStyleOpacity);}});this._newView.addEventListener("webkitTransitionEnd",this,false);}};Transition.prototype._performPushOrSlideTransition=function(A){if(this._oldView){var I=this;var E=this._newView.style;var C=this._oldView.style;var B=this.type==Transition.PUSH_TYPE;var F=this.type==Transition.SLIDE_TYPE;var J=true;var H=A?-1:1;var D=parseInt(this._containerWidth);if(this.direction==Transition.BOTTOM_TO_TOP_DIRECTION){J=false;D=A?this._newView.offsetHeight:this._oldView.offsetHeight;}else{if(this.direction==Transition.TOP_TO_BOTTOM_DIRECTION){J=false;D=A?this._oldView.offsetHeight:this._newView.offsetHeight;}}if(this.direction==Transition.LEFT_TO_RIGHT_DIRECTION||this.direction==Transition.TOP_TO_BOTTOM_DIRECTION){H*=-1;}if(B||(F&&!A)){E.webkitTransitionProperty="none";var G;if(J){G=this._translateOp(H*D,0);}else{G=this._translateOp(0,H*D);}E.webkitTransform=G;}Transition._addDelayedTransitionCallback(function(){var L=I._getDurationString();if(B||(F&&A)){var K;if(J){K=I._translateOp(-1*H*D,0);}else{K=I._translateOp(0,-1*H*D);}I._setupTransition(C,"-webkit-transform",L,I.timing,"webkitTransform",K);}else{I._shouldHideOldView=false;}if(B||(F&&!A)){I._setupTransition(E,"-webkit-transform",L,I.timing,"webkitTransform",I._translateOp(0,0));}});this._newView.addEventListener("webkitTransitionEnd",this,false);}};Transition.prototype._performFlipTransition=function(B){if(this._oldView){var H=this._newView.style;var E=this._oldView.style;var G=parseInt(this._containerWidth);if(G!=320){if(Transition._containerFlipTranslateZStyle===undefined){var C=Transition._findAnimationRule("dashcode-transition-flip-container-pushback");try{Transition._containerFlipTranslateZStyle=C.findRule("50%").style;}catch(J){Transition._containerFlipTranslateZStyle=null;}}}if(Transition._containerFlipTranslateZStyle){Transition._containerFlipTranslateZStyle.webkitTransform="translateZ("+-1*G/2+"px)";}if(!this._pushContainer){this._pushContainer=document.createElement("div");this._pushContainer.setAttribute("apple-transition-flip-push-container","true");this._pushContainer.setAttribute("style","position: relative; top: 0; left: 0; overflow: visible; z-index: 0; -webkit-transform-style: preserve-3d;");var D=this._containerElement.childNodes;for(var I=D.length-1;I>=0;I--){if(D[I]!=this._mask){this._pushContainer.appendChild(D[I]);}}this._containerElement.appendChild(this._pushContainer);}else{this._containerElement.removeChild(this._pushContainer);this._containerElement.appendChild(this._pushContainer);}var M=this._getDurationString();var K=this.direction;if(K!=Transition.RIGHT_TO_LEFT_DIRECTION&&K!=Transition.LEFT_TO_RIGHT_DIRECTION){K=Transition.RIGHT_TO_LEFT_DIRECTION;}var A=((K==Transition.RIGHT_TO_LEFT_DIRECTION)&&!B)||((K==Transition.LEFT_TO_RIGHT_DIRECTION)&&B);E.webkitAnimationDuration=M;E.webkitAnimationTimingFunction=this.timing;var L=A?"dashcode-transition-flip-right-old-view":"dashcode-transition-flip-left-old-view";Transition._addClassName(this._oldView,L);H.webkitAnimationDuration=M;H.webkitAnimationTimingFunction=this.timing;var F=A?"dashcode-transition-flip-right-new-view":"dashcode-transition-flip-left-new-view";Transition._addClassName(this._newView,F);this._pushContainer.style.webkitAnimationDuration=M;this._pushContainer.style.webkitAnimationTimingFunction=this.timing;Transition._addClassName(this._pushContainer,"dashcode-transition-flip-container-pushback");this._containerElement.style.webkitAnimationDuration=M;this._containerElement.style.webkitAnimationTimingFunction=this.timing;Transition._addClassName(this._containerElement,"dashcode-transition-flip-container");this._containerElement.addEventListener("webkitAnimationEnd",this,false);this._newViewAnimationName=F;this._oldViewAnimationName=L;}};Transition.prototype._performCubeTransition=function(A){if(this._oldView){var G=this;var E=this._newView.style;var C=this._oldView.style;var I=this._getDurationString();var H=this.direction;if(H!=Transition.RIGHT_TO_LEFT_DIRECTION&&H!=Transition.LEFT_TO_RIGHT_DIRECTION){H=Transition.RIGHT_TO_LEFT_DIRECTION;}var B=((H==Transition.RIGHT_TO_LEFT_DIRECTION)&&!A)||((H==Transition.LEFT_TO_RIGHT_DIRECTION)&&A);this._containerElement.style.webkitPerspective="800";C.webkitBackfaceVisibility="hidden";C.webkitTransformOrigin=B?"100% 50%":"0% 50%";E.webkitBackfaceVisibility="hidden";E.webkitTransformOrigin=B?"0% 50%":"100% 50%";var F=B?1:-1;var D=parseInt(this._containerWidth);E.webkitTransitionProperty="none";E.webkitTransform=G._rotateOp("Y",F*90)+" translateZ("+D+"px)";Transition._addDelayedTransitionCallback(function(){var J=G._getDurationString();G._setupTransition(C,"-webkit-transform",J,G.timing,"webkitTransform",G._rotateOp("Y",F*-90)+" translateZ("+D+"px)");G._setupTransition(E,"-webkit-transform",J,G.timing,"webkitTransform","rotateY(0deg) translateZ(0px)");});this._newView.addEventListener("webkitTransitionEnd",this,false);}};Transition.prototype._performSwapTransition=function(D){if(this._oldView){var C=this._newView.style;var A=this._oldView.style;var H=this._getDurationString();var F=this.direction;if(F!=Transition.RIGHT_TO_LEFT_DIRECTION&&F!=Transition.LEFT_TO_RIGHT_DIRECTION){F=Transition.RIGHT_TO_LEFT_DIRECTION;}var B=((F==Transition.RIGHT_TO_LEFT_DIRECTION)&&!D)||((F==Transition.LEFT_TO_RIGHT_DIRECTION)&&D);A.webkitAnimationDuration=H;A.webkitAnimationTimingFunction=this.timing;var E=B?"dashcode-transition-swap-right-old-view":"dashcode-transition-swap-left-old-view";Transition._addClassName(this._oldView,E);C.webkitAnimationDuration=H;C.webkitAnimationTimingFunction=this.timing;var G=B?"dashcode-transition-swap-right-new-view":"dashcode-transition-swap-left-new-view";Transition._addClassName(this._newView,G);this._newView.addEventListener("webkitAnimationEnd",this,false);this._newViewAnimationName=G;this._oldViewAnimationName=E;}};Transition.prototype._performRevolveTransition=function(C){if(this._oldView){var B=this._newView.style;var A=this._oldView.style;var G=this._getDurationString();A.webkitAnimationDuration=G;A.webkitAnimationTimingFunction=this.timing;var E;var D=this.direction;if(D!=Transition.RIGHT_TO_LEFT_DIRECTION&&D!=Transition.LEFT_TO_RIGHT_DIRECTION){D=Transition.RIGHT_TO_LEFT_DIRECTION;}if(D==Transition.RIGHT_TO_LEFT_DIRECTION){E=C?"dashcode-transition-revolve-right-old-view":"dashcode-transition-revolve-right-reverse-old-view";}else{E=C?"dashcode-transition-revolve-left-old-view":"dashcode-transition-revolve-left-reverse-old-view";}Transition._addClassName(this._oldView,E);B.webkitAnimationDuration=G;B.webkitAnimationTimingFunction=this.timing;var F;if(D==Transition.RIGHT_TO_LEFT_DIRECTION){F=C?"dashcode-transition-revolve-right-new-view":"dashcode-transition-revolve-right-reverse-new-view";}else{F=C?"dashcode-transition-revolve-left-new-view":"dashcode-transition-revolve-left-reverse-new-view";}Transition._addClassName(this._newView,F);this._newView.addEventListener("webkitAnimationEnd",this,false);this._newViewAnimationName=F;this._oldViewAnimationName=E;}};Transition._hasClassName=function(A,B){if(A){var C=A.className;return(C.length>0&&(C==B||new RegExp("(^|\\s)"+B+"(\\s|$)").test(C)));}};Transition._addClassName=function(A,B){if(A){if(!this._hasClassName(A,B)){A.className+=(A.className?" ":"")+B;}return A;}return null;};Transition._removeClassName=function(A,B){if(A){A.className=A.className.replace(new RegExp("(^|\\s+)"+B+"(\\s+|$)")," ");A.className=A.className.replace(/^\s+|\s+$/g,"");return A;}return null;};Transition._addDelayedTransitionCallback=function(B){if(!Transition._delayedCallbacks){Transition._delayedCallbacks=new Array();var A=function(){var C=Transition._delayedCallbacks.length;for(var D=0;D<C;D++){Transition._delayedCallbacks[D]();}delete Transition._delayedCallbacks;};setTimeout(A,0);}Transition._delayedCallbacks.push(B);};
if(!window.dashcode){dashcode=new Object();}dashcode.setupParts=function(){if(dashcode.setupParts.called){return ;}dashcode.setupParts.called=true;var C=[];for(var F in dashcodePartSpecs){var D=dashcodePartSpecs[F];var E=window[D.creationFunction];var A=E(F,D);if(A&&A.finishLoading){C[C.length]=A;}}for(var B=0;B<C.length;B++){C[B].finishLoading();}};window.addEventListener("load",dashcode.setupParts,false);dashcode.getLocalizedString=function(A){try{A=localizedStrings[A]||A;}catch(B){}return A;};dashcode.createInstancePreferenceKey=function(A){return widget.identifier+"-"+A;};dashcode.getElementHeight=function(B){var A=B.offsetHeight;if(!A||A==0){A=dashcode.getElementSize(B).height;}return A;};dashcode.getElementWidth=function(B){var A=B.offsetWidth;if(!A||A==0){A=dashcode.getElementSize(B).width;}return A;};dashcode.getElementSize=function(B){var A=dashcode.getElementSizesWithAncestor([B],B);return A[0];};dashcode.getElementSizesWithAncestor=function(A,G){if(A.length<1){return[];}var B=new Array();var D=A[0].offsetWidth;if(!D||D==0){var H=G;while(H&&(H!=document)){var C=document.defaultView.getComputedStyle(H,null);var I=C?C.getPropertyValue("display"):H.style.display;if((C&&I=="none")||(!C&&I!="block")){B.push({node:H,display:H.style.display});H.style.display="block";}H=H.parentNode;}}var J=new Array();for(var F=0;F<A.length;F++){J.push({width:A[F].offsetWidth,height:A[F].offsetHeight});}for(var F=0;F<B.length;F++){var E=B[F].node;E.style.display=B[F].display;if(E.getAttribute("style")==""){E.removeAttribute("style");}}return J;};dashcode.getElementDocumentOffset=function(B){var C=B.offsetParent;var D={x:B.offsetLeft,y:B.offsetTop};if(C){var A=dashcode.getElementDocumentOffset(C);D.x+=A.x;D.y+=A.y;}return D;};dashcode.pointInElement=function(A,E,D){var C=dashcode.getElementSize(D);var B=dashcode.getElementDocumentOffset(D);if(A>=B.x){if(A>B.x+C.width){return false;}if(E>=B.y){if(E>B.y+C.height){return false;}}else{return false;}}else{return false;}return true;};dashcode.cloneTemplateElement=function(D,B){var E=B?D:D.cloneNode(true);var A=new Object();this.processClonedTemplateElement(E,A,B);if(!E.object){E.object={};}E.object.templateElements=A;for(var C in A){if(A[C].object&&A[C].object.finishLoading){A[C].object.finishLoading();}}return E;};dashcode.processClonedTemplateElement=function(C,H,F,I){var D=C.id;if(!D&&C.getAttribute){if(D=C.getAttribute("tempId")){C.removeAttribute("tempId");}}var G=null;if(D){G=dashcodePartSpecs[D];}var A=I||(G&&G.preserveChildIdsWhenCloning);var B=C.childNodes;for(var E=0;E<B.length;E++){arguments.callee(B[E],H,F,A);}if(D){H[D]=C;if(!F){C.removeAttribute("id");if(I){C.setAttribute("tempId",D);}if(G){G.originalID=D;var J=window[G.creationFunction];if(J&&J instanceof Function){J(C,G);}}}}};var setupParts=dashcode.setupParts;var getLocalizedString=dashcode.getLocalizedString;var createInstancePreferenceKey=dashcode.createInstancePreferenceKey;var getElementHeight=dashcode.getElementHeight;var getElementWidth=dashcode.getElementWidth;var getElementSize=dashcode.getElementSize;
function goBackToSearchResults(){mainStack.setCurrentView("searchResults",true,false);}var people={};var currentPerson;function goToPersonInfo(A){showActivity();if(people[A.email_id]){currentPerson=people[A.email_id];viewPerson();}else{if(searchType=="students"){people[A.id]=A;currentPerson=people[A.id];viewPerson();}else{$.getJSON(dirSearchUrl,{scope:"employee",name:A.email_id},function(B){people[B.id]=B;currentPerson=people[B.id];viewPerson();});}}}function viewPerson(){if(currentPerson.nick==""||currentPerson.nick==null){first=currentPerson.fname;}else{first=currentPerson.nick;}document.getElementById("personName").innerText=first+" "+currentPerson.lname;document.getElementById("personEmail").innerText=currentPerson.email_id+"@acu.edu";if(searchType=="students"){document.getElementById("personPhoneBox").style.display="none";document.getElementById("personAddrBox").style.display="none";}else{document.getElementById("personPhoneBox").style.display="";document.getElementById("personAddrBox").style.display="";document.getElementById("personPhone").innerText=currentPerson.phone;document.getElementById("personAddr1").innerText=currentPerson.addr1;document.getElementById("personAddr2").innerText=currentPerson.addr2;document.getElementById("personAddr3").innerText=currentPerson.city+" "+currentPerson.state+"  "+currentPerson.zip;}hideActivity();mainStack.setCurrentView("personInfo",false,false);}function openMapForCurrentPerson(A){window.open(buildingsMapUrl+"?="+currentPerson.bld);}function emailCurrentPerson(A){window.location="mailto:"+currentPerson.email_id+"@acu.edu";}function callCurrentPerson(A){window.location="tel:"+currentPerson.phone;}
function showSearchActivity(){var A=document.getElementById("searchActivityIndicator");A.object.startAnimation();A.style.visibility="visible";}function hideSearchActivity(){var A=document.getElementById("searchActivityIndicator");A.style.visibility="hidden";A.object.stopAnimation();}var searchType=null;function goToSearch(B){searchType=B.srcElement.object.value;switch(searchType){case"employees":var A="Find ACU Employees";break;case"departments":var A="Find ACU Departments";break;case"students":var A="Find ACU Students";break;}document.getElementById("searchLabel").innerText=A;document.getElementById("searchField").value="";mainStack.setCurrentView("search",false,false);}function goBackToSearch(){mainStack.setCurrentView("search",true,false);}function doSearch(A){showSearchActivity();searchStack.setCurrentView("searchEmpty",true,false);$.getJSON(dirSearchUrl,{scope:searchType,name:document.getElementById("searchField").value},function(B){if(B.length!=0){if(searchType=="departments"){nestedListController.setData(B);searchStack.setCurrentView("searchResultsNested",false,false);}else{document.getElementById("deptBox").style.display="none";personListController.setData(B);mainStack.setCurrentView("searchResults",false,false);}}else{searchStack.setCurrentView("searchNoResults",false,false);}hideSearchActivity();});}var personListController={_rowData:[],setData:function(A){this._rowData=A;document.getElementById("personList").object.reloadData();},numberOfRows:function(){return this._rowData.length;},prepareRow:function(C,E,B){if(B.personLabel){if(this._rowData[E].nick==""||this._rowData[E].nick==null){var D=this._rowData[E].fname;}else{var D=this._rowData[E].nick;}B.personLabel.innerHTML=D+" "+this._rowData[E].lname;}var A=this._rowData[E];C.onclick=function(F){goToPersonInfo(A);};}};var departments={};var currentDepartment;function goToDepartmentInfo(A){showActivity();if(departments[A.id]){currentDepartment=departments[A.id];viewDepartment();}else{$.getJSON(dirSearchUrl,{scope:"department",name:A.id},function(B){departments[B.id]=B;currentDepartment=departments[B.id];viewDepartment();});}}function viewDepartment(){document.getElementById("deptBox").style.display="";document.getElementById("deptName").innerText=currentDepartment.name;document.getElementById("deptAddr").innerText=currentDepartment.box;document.getElementById("deptPhone").innerText=currentDepartment.phone;personListController.setData(currentDepartment.people);hideActivity();mainStack.setCurrentView("searchResults",false,false);}function callDeptPhone(){window.location="tel:"+currentDepartment.phone;}var nestedListController={_rowData:[],setData:function(A){this._rowData=A;document.getElementById("nestedSearchResultsList").object.reloadData();},numberOfRows:function(){return this._rowData.length;},prepareRow:function(C,D,B){if(B.nestedSearchName){B.nestedSearchName.innerText=this._rowData[D].name;}var A=this._rowData[D];C.onclick=function(E){goToDepartmentInfo(A);};}};
var submitDirections='Take pictures of interesting happenings on campus with your iPhone or other camera and email them to <a href="mailto:photos@acu.edu">photos@acu.edu</a>. We\'ll select several each week to show on the ACU Mobile home page.';var submitRule="Only photos sent from <b>acu.edu</b> email addresses will be accepted.";function goToSubmitPhoto(A){$("#submitPhotoDir").html(submitDirections);$("#submitPhotoRule").html(submitRule);$("#stackLayout")[0].object.setCurrentView("submitPhoto");}
