/* Source and licensing information for the line(s) below can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/contrib/entityreference/js/entityreference.js. */ (function(e){'use strict';Drupal.behaviors.ACChangeEnterBehavior={attach:function(t,n){e('input.form-autocomplete',t).once('ac-change-enter-behavior',function(){e(this).keypress(function(t){var n=e('#autocomplete');if(t.keyCode==13&&typeof n[0]!='undefined'){t.preventDefault();n.each(function(){if(this.owner.selected==!1){this.owner.selectDown()};this.owner.hidePopup()});e(this).trigger('change')}})})}}}(jQuery));; /* Source and licensing information for the above line(s) can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/contrib/entityreference/js/entityreference.js. */ ;/*})'"*/ /* Source and licensing information for the line(s) below can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/custom/osu/feature_story/feature_story.js. */ ;jQuery(document).ready(function(e){if(e('#osu-feature-story').length>0){e('#osu-feature-story').swiperight(function(){e('#osu-feature-story').carousel('prev')});e('#osu-feature-story').swipeleft(function(){e('#osu-feature-story').carousel('next')});e('#osu-feature-story').carousel({interval:5000})}});; /* Source and licensing information for the above line(s) can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/custom/osu/feature_story/feature_story.js. */ ;/*})'"*/ /* Source and licensing information for the line(s) below can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/contrib/google_cse/google_cse.js. */ (function(o){Drupal.googleCSE=Drupal.googleCSE||{};Drupal.behaviors.googleCSE={attach:function(o,e){if(Drupal.settings.googleCSE.showWaterMark){Drupal.googleCSE.googleCSEWatermark('#search-block-form.google-cse',o);Drupal.googleCSE.googleCSEWatermark('#search-form.google-cse',o);Drupal.googleCSE.googleCSEWatermark('#google-cse-results-searchbox-form',o)}}};Drupal.googleCSE.googleCSEWatermark=function(a,g){var e=o(a,g)[0];if(e&&(e.query||e['edit-search-block-form--2']||e['edit-keys'])){var r=e.query?e.query:(e['edit-search-block-form--2']?e['edit-search-block-form--2']:e['edit-keys']),t=navigator,s=location;if(t.platform=='Win32'){r.style.cssText='border: 1px solid #7e9db9; padding: 2px;'};var l=function(){if(r.value==''){r.style.background='#FFFFFF url(https://www.google.com/cse/intl/'+Drupal.settings.googleCSE.language+'/images/google_custom_search_watermark.gif) left no-repeat'}},e=function(){r.style.background='#ffffff'};r.onfocus=e;r.onblur=l;l()}}})(jQuery);; /* Source and licensing information for the above line(s) can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/contrib/google_cse/google_cse.js. */ ;/*})'"*/ /* Source and licensing information for the line(s) below can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/custom/osu/live_feeds/live_feeds.js. */ (function(e){Drupal.behaviors.live_feeds={attach:function(a,d){e('#edit-feed-type-und').change(function(){var a=e('#edit-feed-type-und').val();if(a=='select'){e('#edit-feed-title-und-0-value').val('');e('#edit-url-und-0-value').val('')} else{var d=Drupal.settings.live_feeds[a].name,l=Drupal.settings.live_feeds[a].url;e('#edit-feed-title-und-0-value').val(d);e('#edit-url-und-0-value').val(l)}})}}})(jQuery);; /* Source and licensing information for the above line(s) can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/custom/osu/live_feeds/live_feeds.js. */ ;/*})'"*/ /* Source and licensing information for the line(s) below can be found at https://healthprofessions.science.oregonstate.edu/sites/all/modules/contrib/media_mediaspace/js/mediaspace_mobile.js. */ 'video audio source track'.replace(/\w+/g,function(e){document.createElement(e)});window['SCRIPT_LOADER_URL']='http://cdnakmi.kaltura.org/apis/html5versions/1.6.12.21/ResourceLoader.php';window['KALTURA_LOADER_VERSION']='1.6.12.21c';(function(){'use strict';var e={readyWidgets:{},readyCallbacks:[],destroyedWidgets:{},perWidgetCallback:{},setup:function(){var e=this;this.checkEnvironment();this.overrideFlashEmbedMethods();this.proxyJsCallbackready();this.domReady(function(){e.proxyJsCallbackready()});this.domReady(function(){e.rewriteObjectTags()})},checkEnvironment:function(){if(document.URL.indexOf('forceMobileHTML5')!==-1&&!mw.getConfig('disableForceMobileHTML5')){mw.setConfig('forceMobileHTML5',!0)};var t=navigator.userAgent,i=t.match(/MSIE\s([0-9])/);if(i&&parseInt(i[1])<9){mw.setConfig('Kaltura.ForceFlashOnDesktop',!0)};if(t.indexOf('BlackBerry')!=-1){mw.setConfig('EmbedPlayer.DisableVideoTagSupport',!0);mw.setConfig('EmbedPlayer.NotPlayableDownloadLink',!0)};if(window.jQuery&&!mw.versionIsAtLeast('1.3.2',jQuery.fn.jquery)){e.log('Kaltura HTML5 works best with jQuery 1.3.2 or above');mw.setConfig('EmbedPlayer.EnableIframeApi',!1)};if(!mw.getConfig('EmbedPlayer.IsIframeServer')){mw.setConfig('EmbedPlayer.IframeParentUrl',document.URL);mw.setConfig('EmbedPlayer.IframeParentTitle',document.title);mw.setConfig('EmbedPlayer.IframeParentReferrer',document.referrer);if((/iphone|ipod|ipad.*os 5/gi).test(navigator.appVersion)){window.onpageshow=function(e){if(e.persisted){document.body.style.display='none';location.reload()}}}}},proxiedJsCallback:null,waitForLibraryChecks:!0,jsReadyCalledForIds:[],proxyJsCallbackready:function(){var e=this;if(!this.proxiedJsCallback&&(window['jsCallbackReady']||this.readyCallbacks.length)){this.proxiedJsCallback=window['jsCallbackReady']||!0;window['jsCallbackReady']=function(t){if(e.waitForLibraryChecks){e.jsReadyCalledForIds.push(t);return};e.jsCallbackReady(t)}}},jsCallbackReady:function(e){if(this.destroyedWidgets[e]){return};if(typeof this.proxiedJsCallback=='function'){this.proxiedJsCallback(e)};for(var t=0;t';n+='';if(i['params']){for(var a in i['params']){if(o[a]){o[a]=i['params'][a]} else{n+=''}}};for(var a in o){if(o[a]){n+=''}};n+='';var s=function(){r.parentNode.replaceChild(d,r);d.innerHTML=n};if(window.console&&(window.console.firebug||window.console.exception)){console.log('Warning firebug + firefox and dynamic flash kdp embed causes lockups in firefox, ( delaying embed )');this.domReady(function(){setTimeout(function(){s()},2000)})} else{if(navigator.userAgent.indexOf('MSIE')!=-1){setTimeout(function(){s()},0)} else{s()}}},outputHTML5Iframe:function(t,i){var r=document.getElementById(t);if(!mw.getConfig('EmbedPlayer.EnableIframeApi')){this.outputIframeWithoutApi(t,i);return};this.loadHTML5Lib(function(){var a=(i.width)?i.width:jQuery(r).width()?jQuery(r).width():400,n=(i.height)?i.height:jQuery(r).height()?jQuery(r).height():300;if(typeof a=='string'&&a.indexOf('%')===-1){a=parseInt(a)};if(typeof n=='string'&&n.indexOf('%')===-1){n=parseInt(n)};var o={'width':a,'height':n};var s=e.getAdditionalTargetCss();jQuery.extend(o,s);jQuery('#'+t).css(o);jQuery('#'+t).kalturaIframePlayer(i)})},outputIframeWithoutApi:function(e,t){var r=SCRIPT_LOADER_URL.replace('ResourceLoader.php','mwEmbedFrame.php');r+='?'+this.embedSettingsToUrl(t);if(mw.getConfig('Kaltura.AllowIframeRemoteService')&&(mw.getConfig('Kaltura.ServiceUrl').indexOf('kaltura.com')===-1&&mw.getConfig('Kaltura.ServiceUrl').indexOf('kaltura.org')===-1)){r+=this.serviceConfigToUrl()};if(mw.getConfig('forceMobileHTML5')){r+='&forceMobileHTML5=true'};if(mw.getConfig('debug')){r+='&debug=true'};r+='&urid='+KALTURA_LOADER_VERSION;var a=document.getElementById(e),n=a.parentNode,i=document.createElement('iframe');i.src=r;i.id=e;i.width=(t.width)?t.width.replace(/px/,''):'100%';i.height=(t.height)?t.height.replace(/px/,''):'100%';i.style.border='0px';i.style.overflow='hidden';n.replaceChild(i,a)},addReadyCallback:function(e){for(var t in this.readyWidgets){if(document.getElementById(t)){e(t)}};this.readyCallbacks.push(e)},rewriteObjectTags:function(){var e=this.getKalutaObjectList(),i=this;if(this.isMissingUiConfJs(e)){this.loadUiConfJs(e,function(){i.rewriteObjectTags()});return};var t=function(){if(i.depDoneLoading){mw.rewritePagePlayerTags(function(){})} else{i.loadHTML5Lib()}},r=mw.getConfig('Kaltura.ServiceUrl');if(!mw.getConfig('Kaltura.AllowIframeRemoteService')){if(!r||r.indexOf('kaltura.com')===-1){mw.setConfig('Kaltura.IframeRewrite',!1);mw.setConfig('Kaltura.UseManifestUrls',!1)}};if(window.preMwEmbedReady.length){t();return};if(!mw.getConfig('Kaltura.ForceFlashOnDesktop')&&(mw.getConfig('Kaltura.LoadScriptForVideoTags')&&this.pageHasAudioOrVideoTags())){t();return};if(this.isHTML5FallForward()&&e.length){t();return};if(!this.supportsFlash()&&!this.supportsHTML5()&&!mw.getConfig('Kaltura.ForceFlashOnDesktop')){this.embedFromObjects(e);return};this.playerModeChecksDone()},uiConfScriptLoadList:{},isMissingUiConfJs:function(e){if(e.length==0||!mw.getConfig('Kaltura.EnableEmbedUiConfJs')||mw.getConfig('EmbedPlayer.IsIframeServer')){return!1};for(var t=0;t0||t.indexOf('OS 4')>0)){return mw.getConfig('FramesetSupport.PlayerCssProperties')||{}};return{}},overrideFlashEmbedMethods:function(){var t=this,i=function(t,i,r,a){if(r){t.width=r};if(a){t.height=a};e.embed(i,t)};if(window['flashembed']&&!window['originalFlashembed']){window['originalFlashembed']=window['flashembed'];window['flashembed']=function(r,a,n){t.domReady(function(){var t=e.getEmbedSettings(a.src,n);t.width=a.width;t.height=a.height;if(t.uiconf_id&&(e.isHTML5FallForward()||!e.supportsFlash())){document.getElementById(r).innerHTML='
';i(t,a.id,a.width,a.height)} else{originalFlashembed(r,a,n)}})}};if(window['SWFObject']&&!window['SWFObject'].prototype['originalWrite']){window['SWFObject'].prototype['originalWrite']=window['SWFObject'].prototype.write;window['SWFObject'].prototype['write']=function(r){var a=this;t.domReady(function(){var t=e.getEmbedSettings(a.attributes.swf,a.params.flashVars);if(t.uiconf_id&&(e.isHTML5FallForward()||!e.supportsFlash())){i(t,r,a.attributes.width,a.attributes.height)} else{a.originalWrite(r)}})}};if(window['swfobject']&&!window['swfobject']['originalEmbedSWF']){window['swfobject']['originalEmbedSWF']=window['swfobject']['embedSWF'];window['swfobject']['embedSWF']=function(r,a,n,o,l,d,s,f,u,c){t.domReady(function(){var t=e.getEmbedSettings(r,s);if(t.uiconf_id&&(e.isHTML5FallForward()||!e.supportsFlash())){i(t,a,n,o)} else{window['swfobject']['originalEmbedSWF'](r,a,n,o,l,d,s,f,u,c)}})}}}};window.KWidget=e;window.kWidget=e})();(function(e,t){t.deprecatedGlobals=function(){var e={'kIsIOS':'isIOS','kSupportsHTML5':'supportsHTML5','kGetFlashVersion':'getFlashVersion','kSupportsFlash':'supportsFlash','kalturaIframeEmbed':'embed','kOutputFlashObject':'outputFlashObject','kIsHTML5FallForward':'isHTML5FallForward','kIframeWithoutApi':'outputIframeWithoutApi','kDirectDownloadFallback':'outputDirectDownload','kGetKalturaEmbedSettings':'getEmbedSetting','kGetKalturaPlayerList':'getKalutaObjectList','kCheckAddScript':'rewriteObjectTags','kAddScript':'loadHTML5Lib','kPageHasAudioOrVideoTags':'pageHasAudioOrVideoTags','kLoadJsRequestSet':'loadRequestSet','kOverideJsFlashEmbed':'overrideFlashEmbedMethods','kDoIframeRewriteList':'embedFromObjects','kEmbedSettingsToUrl':'embedSettingsToUrl','kGetAdditionalTargetCss':'getAdditionalTargetCss','kAppendCssUrl':'appendCssUrl','kAppendScriptUrl':'appendScriptUrl','kFlashVars2Object':'flashVars2Object','kFlashVarsToUrl':'flashVarsToUrl','kFlashVarsToString':'flashVarsToString','kServiceConfigToUrl':'serviceConfigToUrl','kRunMwDomReady':'rewriteObjectTags','restoreKalturaKDPCallback':!1};for(var i in e){(function(i){window[i]=function(){if(e[i]===!1){t.log(i+' is deprecated. This method no longer serves any purpose.');return};t.log(i+' is deprecated. Please use kWidget.'+e[i]);var r=Array.prototype.slice.call(arguments,0);if(typeof t[e[i]]!='function'){t.log('Error kWidget missing method: '+e[i]);return};return t[e[i]].apply(t,r)}})(i)}};t.deprecatedGlobals()})(window.mw,window.kWidget);(function(e){var s=window.DomReady={};var t=navigator.userAgent.toLowerCase(),n={version:(t.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(t),opera:/opera/.test(t),msie:(/msie/.test(t))&&(!/opera/.test(t)),mozilla:(/mozilla/.test(t))&&(!/(compatible|webkit)/.test(t))};var o=!1,i=!1,r=[];function a(){if(!i){i=!0;if(r){for(var e=0;eparseInt(r[i])){return!0};if(parseInt(a[i])