var Tau={page_videos:{}};function tauPlayVideo(video_id,elem,ratio){if(typeof Tau.page_videos[video_id]=='object'){$(elem).html(Tau.page_videos[video_id].embed);}
$('.rc-embed-player',elem).tauScaleToRatio(ratio);}
jQuery.fn.tauScaleToRatio=function(ratio){this.each(function(){if(typeof ratio=='string'){ratio=ratio.split(':');}
var height=(ratio[1]/ ratio[0])*$(this).innerWidth();$(this).height(height);});}
if(typeof Drupal.behaviors.browserSelectors!='undefined'){Drupal.behaviors.browserSelectors.attach();Drupal.behaviors.browserSelectors.attach=function(){};}
function display_content_expanded(div_name){if(document.all){var ie_style=document.all(div_name).style.display;if((ie_style=='')||(ie_style=="none")){document.all(div_name).style.display='inline';}else{hide_content_expanded(div_name);}}
if(document.getElementById){var ns_style=document.getElementById(div_name).style.display;if((ns_style=='')||(ns_style=="none")){document.getElementById(div_name).style.display='inline';}else{hide_content_expanded(div_name);}}}
function hide_content_expanded(div_name){if(document.all){document.all(div_name).style.display='none';}
if(document.getElementById){document.getElementById(div_name).style.display='none';}}
function handle_academic_units_carousel(){$('ul.au_list li.parent li li').each(function(){var thisElem=this;if($('ul:first',thisElem).length){$('.item-content .bullet:first',thisElem).css({"text-indent":"0"}).on('click',function(){if($('ul:first',thisElem).is(':hidden')){$('ul:first',thisElem).show();$(this).text('-');}else{$('ul:first',thisElem).hide();$(this).text('+');}});}});if(!$('body').hasClass('tau-mobile')){$('ul.au_list div.first-child').each(function(){var parent=$(this).parent();var list=parent.find('.item-list');if(!list.length){$(this).find('input.au_btn_arrow').hide();}
$(this).find('a').limitTextToHeight(33);});var biggest_height=0;$('ul.au_list .item-content.parent').each(function(){if($(this).height()>biggest_height){biggest_height=$(this).height();}});$('ul.au_list .item-content.parent').height(biggest_height);$('ul.au_list div.first-child input').on('click',function(){var parent=$(this).parent().parent();var list=parent.find('.item-list');if(list.length){$(this).toggleClass('opened');if(list.is(':visible')){list.slideUp();$(this).attr('aria-expanded','false');}else{list.slideDown();$(this).attr('aria-expanded','true');}}});var slider_columns=4;$('.au-list-wrapper .au_list > li > div').css({'border-right':'1px #f7f7f7 solid'});var cols_len=$('.au-list-wrapper .au_list > li').length;if(cols_len>slider_columns){if($('body').hasClass('dir_rtl')){var list=$('.au-list-wrapper .au_list');list.children().each(function(i,li){list.prepend(li)})
var start=cols_len-slider_columns;}else{var start=0;}
$('.au-list-wrapper > .item-list').before('<div class="au-c-nav"></div>');$(function(){$(".au-list-wrapper > .item-list > ul").slick({rtl:true,slidesToShow:4,infinite:false,slidesToScroll:1,});});}
$('.au-list-wrapper > .item-list').css({'height':'auto'});$('.au-list-wrapper .au_list > li').css({'height':'auto'});}}
(function($){Drupal.behaviors.lazyframe={attach:function(context){if($('.lazyframe').length){lazyframe('.lazyframe');}}};Drupal.behaviors.placeHolder={attach:function(context){if(typeof Drupal.settings.lau_label_for_free_search==='undefined'){$('.dir_ltr #edit-combine-wrapper input#edit-combine').attr("placeholder","What's your passion?");$('.dir_rtl #edit-combine-wrapper input#edit-combine').attr("placeholder","מה מעניין אותך?");}
if($('.theme-tau-v2 #edit-field-master-unit1-tid option[selected=selected]').length)
if($('.theme-tau-v2 #edit-field-master-unit1-tid option[selected=selected]')[0].innerText.length>20){$('#edit-field-master-unit1-tid').css("width","auto");$('.dir_rtl #edit-field-master-unit1-tid').css("background-position","94%");}
if($('.theme-tau-v2 #edit-name-1 option[selected=selected]').length)
if($('.theme-tau-v2 #edit-name-1 option[selected=selected]')[0].innerText.length>20){$('#edit-name-1').css("width","auto");$('.dir_rtl #edit-name-1').css("background-position","94%");}
if($('.theme-tau-v2 #edit-field-program-type-tid option[selected=selected]').length)
if($('.theme-tau-v2 #edit-field-program-type-tid option[selected=selected]')[0].innerText.length>20){$('#edit-field-program-type-tid').css("width","auto");$('.dir_rtl #edit-field-program-type-tid').css("background-position","94%");}
$('.textunder_box a').removeAttr('title');$('.textunder_box>a').each(function(){$this=$(this);$(this).find('img').each(function(){$this.attr('aria-label',$this.attr('aria-label')+' '+$(this).attr('title'));});});$('.news-explorer-box img:not(".tau-overlay-image-image img")').attr('alt',' ');$('.news-explorer-box').each(function(){$(this).find('.text-title a').each(function(){$this=$(this).attr('title');});$(this).find('.text-content-link a').each(function(){$(this).attr('aria-label',$(this).attr('aria-label')+' '+'קריאה בנושא'+' '+$this);});});}};Drupal.behaviors.searchClick={attach:function(context){const form=$('#search-block-form',context);const icon=form.find('.icon-search');icon.on('click',function(){form.trigger('submit');});}};})(jQuery);function load_more_inputs(){$('[id^="edit-submitted-teaching-expiriens"]').parent().not('.teaching-expiriens-hide').slice(1).hide().addClass('teaching-expiriens-hide');$('[id^="edit-submitted-participation-conferences"]').parent().not('.participation-conferences-hide').slice(1).hide().addClass('participation-conferences-hide');$('[id^="edit-submitted-scientific-publications"]').parent().not('.scientific-publications-hide').slice(1).hide().addClass('scientific-publications-hide');$('.add-teaching-expiriens').on('click',function(){$('.teaching-expiriens-hide').first().removeClass('teaching-expiriens-hide').show();});$('.add-participation-conferences').on('click',function(){$('.participation-conferences-hide').first().removeClass('participation-conferences-hide').show();});$('.add-scientific-publications').on('click',function(){$('.scientific-publications-hide').first().removeClass('scientific-publications-hide').show();});}
(function($,window){$(document).ready(function(){if($('#edit-submitted-teaching-expiriens').length){load_more_inputs();}
if(!($('body').hasClass('theme-tau-v2'))){setBreadcrumbWidth($);}
if($('ul.au_list').length){handle_academic_units_carousel();}
if(($('.node-type-general-content').length||$('.node-type-sp-time').length&&$('.tau-tabs').length)){History.Adapter.bind(window,'statechange',historyStateChanged);var menu_tabs=$(".tau-sidebar-menu a[id^='menu-tab-']");var current_tab=location.search;current_tab=current_tab.substr(5,1);if(current_tab>0){change_active_tab_for_menu(menu_tabs,current_tab);}
$('.tau-tabs > ul > li a').on('click',function(e){e.preventDefault();const tab_element=$(this).parent();if(!$(tab_element).is('.active')){var classes=$(tab_element).attr('class').split(' ')[1].split('-')[1];var newState={tab:classes};History.pushState(newState,window.document.title,"?tab="+newState.tab);if(menu_tabs.length>0){change_active_tab_for_menu(menu_tabs,classes);}}});}
$('.region-content').on('click','div.tau-ckplugin.collapsed .coll-title, div.tau-ckplugin.collapsed h3:first-child, div.tau-ckplugin.collapsed p:first-child',function(){var thisElem=this;$(this).next('.coll-content').slideToggle('fast',function(){$(thisElem).parent('div.collapsed').toggleClass('open');});});if($('body.node-type-general-content').length){var hash=window.location.hash;hash=hash.split("-");hash=hash[1];if(hash){setTimeout(function(){$('.sp_main_menu > ul > li:nth('+hash+')').trigger('click');},500);}}
$("#search-block-form").on('keydown',function(e){if(e.keyCode==13){$(this).trigger('submit');}});$('.search-selector span').on('click',function(){$('.search-selector span').removeClass('active');$('.search-selector span').attr('aria-selected','false');$(this).addClass('active');$(this).attr('aria-selected','true');if($('#search-block-form input[type="text"]:first, #tau-mobile-serach-form .field-mobile-serch').val()){$('#search-block-form, #tau-mobile-serach-form').trigger('submit');}});if(typeof Drupal.settings.arg[0]!='undefined'&&Drupal.settings.arg[0]=='gsearch'){$('.search-selector span').removeClass('active');$('.search-selector span.external').addClass('active');}
$('#event-search-form #edit-search, #news-search-form #edit-search').on('keypress',function(event){if(event.keyCode==13){if($('#edit-search-autocomplete-aria-live a').attr('href')){window.location=$('#edit-search-autocomplete-aria-live a').attr('href');}else{var thisElem=this;var time=setTimeout(function(){$(thisElem).parents('form').trigger('submit');},300);}}});if($('body').is('.node-type-table-person-generator')){var theTable='<table class="inline-preview" style="border-color: #fff;">';theTable+=' <thead>';theTable+='  <tr>';theTable+='   <th>'+Drupal.t('Title')+'</th><th>'+Drupal.t('Title')+'</th><th>'+Drupal.t('Title')+'</th>';theTable+='  </tr>';theTable+=' </thead>';theTable+=' <tbody>';theTable+='  <tr>';theTable+='   <td>'+Drupal.t('Content')+'</td><td>'+Drupal.t('Content')+'</td><td>'+Drupal.t('Content')+'</td>';theTable+='  </tr>';theTable+=' </tbody>';theTable+='</table>';$('#edit-group_tag_table').append(theTable);var changePreviewColors=function(){var txtColor=$('input#edit-field-tag-header-textcolor-und-0-jquery-colorpicker').val();var bgColor=$('input#edit-field-tag-header-background-und-0-jquery-colorpicker').val();$('#edit-group_tag_table .inline-preview th').css({'background':'#'+bgColor,'color':'#'+txtColor,'font-weight':'bold','border-color':'#fff'});$('#edit-group_tag_table .inline-preview td').css({'background':'#F6F6F6','border-color':'#fff'});}
changePreviewColors();$('input#edit-field-tag-header-textcolor-und-0-jquery-colorpicker, input#edit-field-tag-header-background-und-0-jquery-colorpicker').on('change',changePreviewColors);}
if($('body').is('.node-type-webform')){var href=$('a.print-page').attr('href');$('a.print-page').on('click',function(event){var str=[];$('.webform-component *[name]').each(function(i){if(!$(this).is('[type="radio"], [type="checkbox"]')||$(this).is(':checked')){str.push($(this).attr('name')+"="+encodeURIComponent($(this).val()));}});str=str.join("&");$(this).attr('href',href+'?'+str).attr('target','_blank');});}else if($('body').is('.print_page_tpl')){$.each(Tau.get.submitted,function(k,v){if(typeof v=='object'){for(var p in v){var name='submitted'+'['+k+']'+'['+p+']';var val=v[p];printWFsetter(name,val);}}else{var name='submitted'+'['+k+']';var val=v;printWFsetter(name,val);}});}
$('.hp-left-news_events .view--extra-news .views-field-title a').each(function(){$(this).limitTextToHeight(33);});$('.tau-news-related-list .tau-overlay-desc-container a').each(function(){$(this).limitTextToHeight(42);});if(document.cookie.indexOf('istauvisitor=true')>=0){$('body').addClass('is-tau-visitor');}
if(document.cookie.indexOf('istauvisitor=true')>=0){$('body').addClass('is-tau-visitor');}
$('#block-system-main-menu ul.menu').attr('role','menubar');$('#block-system-main-menu ul.menu li').attr('role','menuitem');$('#block-system-main-menu ul.menu li.expanded').attr('aria-expended','false');$('#page').attr('role','main');$('.region.region-bottom').attr('role','footer');$('#header').attr('role','banner');$('.region-hp-left-content').attr('role','complementary');if($('body.page-node-edit.node-type-general-content .form-item-field-news-item-und #edit-field-news-item-und').length){var news_check=$(".form-item-field-news-item-und #edit-field-news-item-und");if(news_check[0].checked){$('#edit-field-belong-domains').show();}
$(news_check).on('change',function(){if(this.checked){$('#edit-field-belong-domains').show();}else{$('#edit-field-belong-domains').hide();}});}});function historyStateChanged(e){var stateObj=History.getState();if($('.node-type-general-content').length){if(!stateObj.data.tab){stateObj.data.tab=0;}
updateGeneralContentTab(stateObj.data.tab);}}
function updateGeneralContentTab(tabId){var $this=$('.tab-term.term-'+tabId);if(!$this.hasClass('active')){$('.sp_main_menu > ul > li.active').attr('aria-selected','false');$('.sp_main_menu > ul > li.active').removeClass('active');$this.addClass('active');$('.sp_main_menu > ul > li.active').attr('aria-selected','true');var nid=$('#sp_nid').attr('value');var url_content='/ajax/general_conent/gc_get_main_content/'+nid+'/'+tabId;$('.sp_main_content_wrapper').html('<div class="ajax-loader"></div>');$.ajax({url:url_content,type:'POST',success:function(msg){$('.sp_main_content_wrapper > div').fadeOut('slow');$('.sp_main_content_wrapper').html(msg);$('.sp_main_content_wrapper > div').fadeIn('slow');if(Drupal.CTools&&Drupal.CTools.Modal){Drupal.behaviors.createModal.attach();}}});}}
function change_active_tab_for_menu(menu_tabs,tab){$.each(menu_tabs,function(){$(this).removeClass('active-trail active').parent().removeClass('active-trail');});$('.tau-sidebar-menu a#menu-tab-'+tab).addClass('active-trail active').parent().addClass('active-trail');}
function printWFsetter(name,val){var elem=$('.webform-component *[name="'+name+'"]');if(elem.is('[type="radio"], [type="checkbox"]')&&!elem.is(':checked')){$('.webform-component *[name="'+name+'"][value="'+val+'"]').trigger('click');}else{elem.val(val);}}
function onTabChange(e){var theTab=(window.location.hash).split('-');theTab=theTab[1]?theTab[1]:'';if($('.tau-tabs ul > li.term-'+theTab).length)
$('.tau-tabs ul > li.term-'+theTab).trigger('click');else if(!($('*[name='+theTab+']').length))
$('.tau-tabs ul > li.tab-term:first').trigger('click');}
function setBreadcrumbWidth($){$('.breadcrumb').wrapInner('<div style="display:inline;" class="breadcrumb-inner"></div>');var maxWidth;if($('body').is('.tau-mobile')){maxWidth=$('.breadcrumb').innerWidth();$('.breadcrumb').width(maxWidth);}else{maxWidth=980-50-$('#block-menu-menu-top-header').outerWidth();}
var brWidth=$('.breadcrumb .breadcrumb-inner').outerWidth(true);if(brWidth>=maxWidth){var firstItem=$('.breadcrumb .breadcrumb-inner > *:first').clone();var lastItem=$('.breadcrumb .breadcrumb-inner > *:last').clone();$('.breadcrumb .breadcrumb-inner').html('<span> &#187; ... &#187; </span>');firstItem.prependTo('.breadcrumb .breadcrumb-inner');lastItem.appendTo('.breadcrumb .breadcrumb-inner');}}
function tauFbShare(url,link_title,link_desc,img){var str=[];var params={'s':'100','p[url]':url,'p[title]':link_title,'p[summary]':link_desc,'p[images][0]':img};for(var p in params){if(typeof params[p]!='undefined'){str.push(p+"="+encodeURIComponent(params[p]));}}
str=str.join("&");window.open('https://www.facebook.com/sharer/sharer.php?'+str,'sharer','toolbar=0,status=0,width=580,height=325');}
function getURLParameter(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,'%20'))||null}
function tauSetCookie(cname,cvalue,hours){if(!hours){hours=24;}
var d=new Date();d.setTime(d.getTime()+(hours*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+"; "+expires;}
function tauGetCookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)!=-1)return c.substring(name.length,c.length);}
return"";}
function tauDeleteCookie(cname){document.cookie=cname+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';}
function tauGenerateUUID(){var d=new Date().getTime();var uuid='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=(d+Math.random()*16)%16|0;d=Math.floor(d / 16);return(c=='x'?r:(r&0x7|0x8)).toString(16);});return uuid;};setTimeout(function(){$("[href$='nomobi=true']").on("click",function(e){document.cookie="nomobi = true"})},1000)
window.tauSetCookie=tauSetCookie;window.tauGetCookie=tauGetCookie;window.tauDeleteCookie=tauDeleteCookie;window.tauGenerateUUID=tauGenerateUUID;})(jQuery,window);(function($,window){Drupal.behaviors.topMainMenu={attach:function(context){const top_menu_selector='#block-menu-menu-top-header';if(!$(top_menu_selector,context).length){return;}
var language_names=['עברית','English','عربي',' العَرَبِية',' 中國','中文网','Русский',];var languages_container=$('<li/>');languages_container.addClass('top-menu-languages-container last not-first');var languages_list=$('<ul/>');languages_list.addClass('top-menu-languages-list');var item_counter=0;function getLanguageItems(item){var language_link=$(top_menu_selector+' a').filter(function(index){return $(this).text()===item;})
if(language_link.length){language_link.parent().remove();if(item_counter===0){languages_container.append(language_link);}
else{languages_list.append(language_link.parent());}
item_counter++;}}
language_names.forEach(getLanguageItems);if(item_counter>1){languages_container.addClass('has-submenu');}
if(item_counter>0){languages_container.append(languages_list);$(top_menu_selector+' ul').append(languages_container);}}};})(jQuery,window);(function($){Drupal.behaviors.addedCustomSearchFromScifree={attach(context,settings){const scifreeWidget=$('#scfwid',context);if(scifreeWidget.length>0){scifreeWidget.once('added-inputs-addedCustomSearchFromScifree',function(){scifreeWidget.css({display:'flex','align-items':'center'});const input=$('<input id="scfsearchparam" type="text" placeholder="Search for Journals..." style="font-size:20px;padding:20px;border-radius:15px;box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.08);border:none;width:412px;&::placeholder{color:#404040;font-weight:400;}" >');const submit=$('<button id="scfsearch" style="margin-left:12px;padding:12px;height:42px;border-radius:5px;background-color:#000000;box-shadow:none;border:0;font-size:14px;font-weight:500;color:#fff;verticle-align:middle;cursor:pointer;" >Search</button>');input.appendTo(scifreeWidget);submit.appendTo(scifreeWidget);submit.on('click',(function(){window.open('https://search.scifree.se/tau?term='+$('#scfsearchparam',context).val(),'_blank');}));});}},};}(jQuery));;;/*})'"*/
(function($){$.fn.limitTextToHeight=function(height,str){str=(typeof str=='undefined')?$(this).text():str;if($(this).innerHeight()<=height||str.length==0){return true;}else{if(!$(this).attr('title')){$(this).attr('title',str);}
str=str.substring(0,str.length-3);$(this).text(str+'...');return $(this).limitTextToHeight(height,str);}}}(jQuery))
function modify_region_content_width(){if(!$('body').is('.node-type-home-page')){var elem=$('.region.region-content-wrap');var pageWidth=$('#main-wrapper').innerWidth();var leftWidth=$('.region.region-left-content, .region.region-hp-left-content').outerWidth(true);var rightWidth=$('.region.region-right-content').outerWidth(true);var margins=parseInt(elem.css('margin-left').replace("px",""))+parseInt(elem.css('margin-right').replace("px",""));elem.width(pageWidth-margins-(leftWidth+rightWidth));}}
function set_ul_depth_class(obj){var found=jQuery(obj).find('li');if(!found)return false;if(jQuery(found).hasClass('depth-1')){jQuery(obj).addClass('depth-1');return true;}
if(jQuery(found).hasClass('depth-2')){jQuery(obj).addClass('depth-2');return true;}
if(jQuery(found).hasClass('depth-3')){jQuery(obj).addClass('depth-3');return true;}
if(jQuery(found).hasClass('depth-4')){jQuery(obj).addClass('depth-4');return true;}
return false;}
function initialize_designed_checkbox(id){if(id==null)return false;if($(id).is(':checked')){jQuery(id).ezMark();}else{jQuery(id).ezMark();}}
function load_image(func){var image=new Image();image.src="/sites/all/themes/tau/images/ajax-loader.gif?";if(func!=undefined){image.onload=function(){setTimeout(func,300)};}}
function start_loading_gif(c,func){load_image(func);var h=$('.'+c).height();var w=$('.'+c).width();h=(h / 2)-48;w=(w / 2)-48;var img="<img src='/sites/all/themes/tau/images/ajax-loader.gif?' style='position:absolute;top:"+h+"px;right:"+w+"px;' class='loading-gif' />";var html="<div class='loading-container' id='loading-container' style='position:relative'>"+img+"</div>";$('.'+c).before(html)
$('.'+c).addClass('loading');return;}
function start_loading_gif_mobile(c,func){load_image(func);var img="<img src='/sites/all/themes/tau/images/ajax-loader.gif?' style='position:fixed;top:50%;right:50%;' class='loading-gif' />";var html="<div class='loading-container' id='loading-container''>"+img+"</div>";$('.'+c).before(html);$('.'+c).addClass('loading');return;}
function end_loading_gif(c){$('.'+c).removeClass('loading').prev('.loading-container').remove();}
function fix_university_entity_sub_link_click_slideup(){$('.ue-quick-navigation ul li[class!=0]').on('click',function(){$('.university-entity-node').css('margin-top','23px');});if(location.href.match(/#/)!=null){$('.university-entity-node').css('margin-top','23px');}}
function set_print_icon(get_parameters){if($('body').has('.node-type-general-content')){get_parameters=true;}
$(".printer-icon img").on('click',function(){var aliasAttr=$(this).parent().attr("data-alias");var alias=aliasAttr!==''&&typeof aliasAttr!='undefined'?aliasAttr:location.pathname;var print_page_url='http://'+location.hostname+'/print'+alias;if(get_parameters){print_page_url=print_page_url+location.search;}
window.open(print_page_url,"mywin");});};;/*})'"*/
(function($){Drupal.behaviors.fixAjax={};Drupal.behaviors.fixAjax.attach=function(context,settings){if(typeof Drupal.ACDB!='undefined'){Drupal.ACDB.prototype.search=function(searchString){var db=this;this.searchString=searchString;searchString=searchString.replace(/^\s+|\s+$/,'');if(searchString.length<=0||searchString.charAt(searchString.length-1)==','){return;}
if(this.cache[searchString]){return this.owner.found(this.cache[searchString]);}
if(this.timer){clearTimeout(this.timer);}
this.timer=setTimeout(function(){db.owner.setStatus('begin');$.ajax({type:'GET',url:db.uri+'/'+Drupal.encodePath(searchString),dataType:'json',success:function(matches){if(typeof matches.status=='undefined'||matches.status!=0){db.cache[searchString]=matches;if(db.searchString==searchString){db.owner.found(matches);}
db.owner.setStatus('found');}},error:function(xmlhttp){}});},this.delay);};}};}(jQuery));;;/*})'"*/
(function(e,t){"use strict";var n=e.History=e.History||{},r=e.jQuery;if(typeof n.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");n.Adapter={bind:function(e,t,n){r(e).bind(t,n)},trigger:function(e,t,n){r(e).trigger(t,n)},extractEventData:function(e,n,r){var i=n&&n.originalEvent&&n.originalEvent[e]||r&&r[e]||t;return i},onDomLoad:function(e){r(e)}},typeof n.init!="undefined"&&n.init()})(window),function(e,t){"use strict";var n=e.console||t,r=e.document,i=e.navigator,s=e.sessionStorage||!1,o=e.setTimeout,u=e.clearTimeout,a=e.setInterval,f=e.clearInterval,l=e.JSON,c=e.alert,h=e.History=e.History||{},p=e.history;try{s.setItem("TEST","1"),s.removeItem("TEST")}catch(d){s=!1}l.stringify=l.stringify||l.encode,l.parse=l.parse||l.decode;if(typeof h.init!="undefined")throw new Error("History.js Core has already been loaded...");h.init=function(e){return typeof h.Adapter=="undefined"?!1:(typeof h.initCore!="undefined"&&h.initCore(),typeof h.initHtml4!="undefined"&&h.initHtml4(),!0)},h.initCore=function(d){if(typeof h.initCore.initialized!="undefined")return!1;h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||r.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.clearAllIntervals=function(){var e,t=h.intervalList;if(typeof t!="undefined"&&t!==null){for(e=0;e<t.length;e++)f(t[e]);h.intervalList=null}},h.debug=function(){(h.options.debug||!1)&&h.log.apply(h,arguments)},h.log=function(){var e=typeof n!="undefined"&&typeof n.log!="undefined"&&typeof n.log.apply!="undefined",t=r.getElementById("log"),i,s,o,u,a;e?(u=Array.prototype.slice.call(arguments),i=u.shift(),typeof n.debug!="undefined"?n.debug.apply(n,[i,u]):n.log.apply(n,[i,u])):i="\n"+arguments[0]+"\n";for(s=1,o=arguments.length;s<o;++s){a=arguments[s];if(typeof a=="object"&&typeof l!="undefined")try{a=l.stringify(a)}catch(f){}i+="\n"+a+"\n"}return t?(t.value+=i+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):e||c(i),!0},h.getInternetExplorerMajorVersion=function(){var e=h.getInternetExplorerMajorVersion.cached=typeof h.getInternetExplorerMajorVersion.cached!="undefined"?h.getInternetExplorerMajorVersion.cached:function(){var e=3,t=r.createElement("div"),n=t.getElementsByTagName("i");while((t.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->")&&n[0]);return e>4?e:!1}();return e},h.isInternetExplorer=function(){var e=h.isInternetExplorer.cached=typeof h.isInternetExplorer.cached!="undefined"?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion());return e},h.options.html4Mode?h.emulated={pushState:!0,hashChange:!0}:h.emulated={pushState:!Boolean(e.history&&e.history.pushState&&e.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(i.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(i.userAgent)),hashChange:Boolean(!("onhashchange"in e||"onhashchange"in r)||h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8)},h.enabled=!h.emulated.pushState,h.bugs={setHash:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<7)},h.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},h.cloneObject=function(e){var t,n;return e?(t=l.stringify(e),n=l.parse(t)):n={},n},h.getRootUrl=function(){var e=r.location.protocol+"//"+(r.location.hostname||r.location.host);if(r.location.port||!1)e+=":"+r.location.port;return e+="/",e},h.getBaseHref=function(){var e=r.getElementsByTagName("base"),t=null,n="";return e.length===1&&(t=e[0],n=t.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},h.getBaseUrl=function(){var e=h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl();return e},h.getPageUrl=function(){var e=h.getState(!1,!1),t=(e||{}).url||h.getLocationHref(),n;return n=t.replace(/\/+$/,"").replace(/[^\/]+$/,function(e,t,n){return/\./.test(e)?e:e+"/"}),n},h.getBasePageUrl=function(){var e=h.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,t,n){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/";return e},h.getFullUrl=function(e,t){var n=e,r=e.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(e)||(r==="/"?n=h.getRootUrl()+e.replace(/^\/+/,""):r==="#"?n=h.getPageUrl().replace(/#.*/,"")+e:r==="?"?n=h.getPageUrl().replace(/[\?#].*/,"")+e:t?n=h.getBaseUrl()+e.replace(/^(\.\/)+/,""):n=h.getBasePageUrl()+e.replace(/^(\.\/)+/,"")),n.replace(/\#$/,"")},h.getShortUrl=function(e){var t=e,n=h.getBaseUrl(),r=h.getRootUrl();return h.emulated.pushState&&(t=t.replace(n,"")),t=t.replace(r,"/"),h.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},h.getLocationHref=function(e){return e=e||r,e.URL===e.location.href?e.location.href:e.location.href===decodeURIComponent(e.URL)?e.URL:e.location.hash&&decodeURIComponent(e.location.href.replace(/^[^#]+/,""))===e.location.hash?e.location.href:e.URL.indexOf("#")==-1&&e.location.href.indexOf("#")!=-1?e.location.href:e.URL||e.location.href},h.store={},h.idToState=h.idToState||{},h.stateToId=h.stateToId||{},h.urlToId=h.urlToId||{},h.storedStates=h.storedStates||[],h.savedStates=h.savedStates||[],h.normalizeStore=function(){h.store.idToState=h.store.idToState||{},h.store.urlToId=h.store.urlToId||{},h.store.stateToId=h.store.stateToId||{}},h.getState=function(e,t){typeof e=="undefined"&&(e=!0),typeof t=="undefined"&&(t=!0);var n=h.getLastSavedState();return!n&&t&&(n=h.createStateObject()),e&&(n=h.cloneObject(n),n.url=n.cleanUrl||n.url),n},h.getIdByState=function(e){var t=h.extractId(e.url),n;if(!t){n=h.getStateString(e);if(typeof h.stateToId[n]!="undefined")t=h.stateToId[n];else if(typeof h.store.stateToId[n]!="undefined")t=h.store.stateToId[n];else{for(;;){t=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof h.idToState[t]=="undefined"&&typeof h.store.idToState[t]=="undefined")break}h.stateToId[n]=t,h.idToState[t]=e}}return t},h.normalizeState=function(e){var t,n;if(!e||typeof e!="object")e={};if(typeof e.normalized!="undefined")return e;if(!e.data||typeof e.data!="object")e.data={};return t={},t.normalized=!0,t.title=e.title||"",t.url=h.getFullUrl(e.url?e.url:h.getLocationHref()),t.hash=h.getShortUrl(t.url),t.data=h.cloneObject(e.data),t.id=h.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,n=!h.isEmptyObject(t.data),(t.title||n)&&h.options.disableSuid!==!0&&(t.hash=h.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=h.getFullUrl(t.hash),(h.emulated.pushState||h.bugs.safariPoll)&&h.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t},h.createStateObject=function(e,t,n){var r={data:e,title:t,url:n};return r=h.normalizeState(r),r},h.getStateById=function(e){e=String(e);var n=h.idToState[e]||h.store.idToState[e]||t;return n},h.getStateString=function(e){var t,n,r;return t=h.normalizeState(e),n={data:t.data,title:e.title,url:e.url},r=l.stringify(n),r},h.getStateId=function(e){var t,n;return t=h.normalizeState(e),n=t.id,n},h.getHashByState=function(e){var t,n;return t=h.normalizeState(e),n=t.hash,n},h.extractId=function(e){var t,n,r,i;return e.indexOf("#")!=-1?i=e.split("#")[0]:i=e,n=/(.*)\&_suid=([0-9]+)$/.exec(i),r=n?n[1]||e:e,t=n?String(n[2]||""):"",t||!1},h.isTraditionalAnchor=function(e){var t=!/[\/\?\.]/.test(e);return t},h.extractState=function(e,t){var n=null,r,i;return t=t||!1,r=h.extractId(e),r&&(n=h.getStateById(r)),n||(i=h.getFullUrl(e),r=h.getIdByUrl(i)||!1,r&&(n=h.getStateById(r)),!n&&t&&!h.isTraditionalAnchor(e)&&(n=h.createStateObject(null,null,i))),n},h.getIdByUrl=function(e){var n=h.urlToId[e]||h.store.urlToId[e]||t;return n},h.getLastSavedState=function(){return h.savedStates[h.savedStates.length-1]||t},h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||t},h.hasUrlDuplicate=function(e){var t=!1,n;return n=h.extractState(e.url),t=n&&n.id!==e.id,t},h.storeState=function(e){return h.urlToId[e.url]=e.id,h.storedStates.push(h.cloneObject(e)),e},h.isLastSavedState=function(e){var t=!1,n,r,i;return h.savedStates.length&&(n=e.id,r=h.getLastSavedState(),i=r.id,t=n===i),t},h.saveState=function(e){return h.isLastSavedState(e)?!1:(h.savedStates.push(h.cloneObject(e)),!0)},h.getStateByIndex=function(e){var t=null;return typeof e=="undefined"?t=h.savedStates[h.savedStates.length-1]:e<0?t=h.savedStates[h.savedStates.length+e]:t=h.savedStates[e],t},h.getCurrentIndex=function(){var e=null;return h.savedStates.length<1?e=0:e=h.savedStates.length-1,e},h.getHash=function(e){var t=h.getLocationHref(e),n;return n=h.getHashByUrl(t),n},h.unescapeHash=function(e){var t=h.normalizeHash(e);return t=decodeURIComponent(t),t},h.normalizeHash=function(e){var t=e.replace(/[^#]*#/,"").replace(/#.*/,"");return t},h.setHash=function(e,t){var n,i;return t!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:t}),!1):(h.busy(!0),n=h.extractState(e,!0),n&&!h.emulated.pushState?h.pushState(n.data,n.title,n.url,!1):h.getHash()!==e&&(h.bugs.setHash?(i=h.getPageUrl(),h.pushState(null,null,i+"#"+e,!1)):r.location.hash=e),h)},h.escapeHash=function(t){var n=h.normalizeHash(t);return n=e.encodeURIComponent(n),h.bugs.hashEscape||(n=n.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),n},h.getHashByUrl=function(e){var t=String(e).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=h.unescapeHash(t),t},h.setTitle=function(e){var t=e.title,n;t||(n=h.getStateByIndex(0),n&&n.url===e.url&&(t=n.title||h.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(i){}return r.title=t,h},h.queues=[],h.busy=function(e){typeof e!="undefined"?h.busy.flag=e:typeof h.busy.flag=="undefined"&&(h.busy.flag=!1);if(!h.busy.flag){u(h.busy.timeout);var t=function(){var e,n,r;if(h.busy.flag)return;for(e=h.queues.length-1;e>=0;--e){n=h.queues[e];if(n.length===0)continue;r=n.shift(),h.fireQueueItem(r),h.busy.timeout=o(t,h.options.busyDelay)}};h.busy.timeout=o(t,h.options.busyDelay)}return h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return typeof e=="function"&&(e={callback:e}),typeof t!="undefined"&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=o(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var t=h.extractState(h.getLocationHref()),n;if(!h.isLastSavedState(t))return n=t,n||(n=h.createStateObject()),h.Adapter.trigger(e,"popstate"),h;return},h.back=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),p.go(-1),!0)},h.forward=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),p.go(1),!0)},h.go=function(e,t){var n;if(e>0)for(n=1;n<=e;++n)h.forward(t);else{if(!(e<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(n=-1;n>=e;--n)h.back(t)}return h};if(h.emulated.pushState){var v=function(){};h.pushState=h.pushState||v,h.replaceState=h.replaceState||v}else h.onPopState=function(t,n){var r=!1,i=!1,s,o;return h.doubleCheckComplete(),s=h.getHash(),s?(o=h.extractState(s||h.getLocationHref(),!0),o?h.replaceState(o.data,o.title,o.url,!1):(h.Adapter.trigger(e,"anchorchange"),h.busy(!1)),h.expectedStateId=!1,!1):(r=h.Adapter.extractEventData("state",t,n)||!1,r?i=h.getStateById(r):h.expectedStateId?i=h.getStateById(h.expectedStateId):i=h.extractState(h.getLocationHref()),i||(i=h.createStateObject(null,null,h.getLocationHref())),h.expectedStateId=!1,h.isLastSavedState(i)?(h.busy(!1),!1):(h.storeState(i),h.saveState(i),h.setTitle(i),h.Adapter.trigger(e,"statechange"),h.busy(!1),!0))},h.Adapter.bind(e,"popstate",h.onPopState),h.pushState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.pushState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0},h.replaceState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.replaceState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0};if(s){try{h.store=l.parse(s.getItem("History.store"))||{}}catch(m){h.store={}}h.normalizeStore()}else h.store={},h.normalizeStore();h.Adapter.bind(e,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),s&&(h.onUnload=function(){var e,t,n;try{e=l.parse(s.getItem("History.store"))||{}}catch(r){e={}}e.idToState=e.idToState||{},e.urlToId=e.urlToId||{},e.stateToId=e.stateToId||{};for(t in h.idToState){if(!h.idToState.hasOwnProperty(t))continue;e.idToState[t]=h.idToState[t]}for(t in h.urlToId){if(!h.urlToId.hasOwnProperty(t))continue;e.urlToId[t]=h.urlToId[t]}for(t in h.stateToId){if(!h.stateToId.hasOwnProperty(t))continue;e.stateToId[t]=h.stateToId[t]}h.store=e,h.normalizeStore(),n=l.stringify(e);try{s.setItem("History.store",n)}catch(i){if(i.code!==DOMException.QUOTA_EXCEEDED_ERR)throw i;s.length&&(s.removeItem("History.store"),s.setItem("History.store",n))}},h.intervalList.push(a(h.onUnload,h.options.storeInterval)),h.Adapter.bind(e,"beforeunload",h.onUnload),h.Adapter.bind(e,"unload",h.onUnload));if(!h.emulated.pushState){h.bugs.safariPoll&&h.intervalList.push(a(h.safariStatePoll,h.options.safariPollInterval));if(i.vendor==="Apple Computer, Inc."||(i.appCodeName||"")==="Mozilla")h.Adapter.bind(e,"hashchange",function(){h.Adapter.trigger(e,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(e,"hashchange")})}},(!h.options||!h.options.delayInit)&&h.init()}(window)
;/*})'"*/;/*})'"*/
(function($){$(document).ready(function(){$('#edit-field-archive-und-0-field-archive-is-archive-und').attr('disabled','disabled');});})(jQuery);;;/*})'"*/
