var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; jQuery(window).load(function() { if (!cycle_speed) { cycle_speed = 6; } if (auto_cycle == 'yes') { auto_cycle = cycle_speed; } else { auto_cycle = 0; } jQuery('#slider').jcarousel({ visible: 1, auto: auto_cycle, scroll: 1, wrap: "both", animation: animation_speed, easing: 'easeInOutExpo', initCallback: slider_initCallback, itemFirstInCallback: slider_itemFirstInCallback }); if(jQuery('.player').length) { setTimeout(function() { jQuery('.player').hide(); }, 1000); } jQuery('.field, textarea').focus(function() { if(this.title==this.value) { this.value = ''; } }).blur(function(){ if(this.value=='') { this.value = this.title; } }); jQuery('.fancybox').fancybox(); jQuery('.iframe-fancybox').fancybox({type:'iframe'}); var austDay = new Date(); var date_str = jQuery('header .next h4').text().replace(',', '').split(' '); //var date_str = date_str.replace(':',' '); var month_str = date_str[0]; for(i=0;i'+in_lang+' ').find('.container').countdown({until: austDay, timezone: austTimeZone}); jQuery('header .next h4').fadeIn('slow'); AudioPlayer.setup(born + "/media/player.swf", { leftbg: 'ffffff', bg: 'ffffff', voltrack: 'ffffff', rightbghover: 'ffffff', righticon: 'ffffff', border: 'ffffff', volslider: audioPlayerColor, lefticon: audioPlayerColor, rightbg: audioPlayerColor, loader: audioPlayerColor, righticonhover: audioPlayerColor }); if($('.player-container').length) { $('.player-container').each(function() { var sound_path = $(this).find('.notext').html(); var sound_id = $(this).attr('id'); var sound_width = $(this).parents('div:eq(0)').width(); $(this).html(''); AudioPlayer.embed(sound_id, { soundFile: sound_path, width: sound_width, transparentpagebg: 'yes' }); }); } $('.slide.audio .button').on('click', function() { var n = navigator.userAgent; if(n.match(/iPhone/i) || n.match(/iPad/i) || n.match(/Android/i) || n.match(/android/i)) { var p = $(this).parent().find('.player'); p.html(p.html()).slideDown(); $(this).fadeOut(); return false; } else { var p = $(this).parent().find('.player'); var audio_string = $(this).parent().find('.flash-player').attr('rel'); var audio_bot = $(this).parent().find('.caption').outerHeight(); var player_html = '
'; p.find('.flash-player').html(player_html).siblings('audio').hide(); $(this).fadeOut(300); p.slideDown(400, function() { AudioPlayer.embed('slider-audio', { soundFile: audio_string, width: 924, transparentpagebg: 'yes', autostart: 'yes' }); }); slider.stopAuto(); } return false; }); $('.slide.video .button').on('click', function() { var vid_string = $(this).attr('href'); if(vid_string.indexOf('youtube') != -1) { vid_string = vid_string.replace('www.', '').replace('https://web.archive.org/web/20171020162344/http://youtube.com/watch?v=', ''); var vid_html = ''; } else if(vid_string.indexOf('youtu.be') != -1) { vid_string = vid_string.replace('www.', '').replace('https://web.archive.org/web/20171020162344/http://youtu.be/', ''); var vid_html = ''; } else if(vid_string.indexOf('vimeo') != -1) { vid_string = vid_string.replace('www.', '').replace('https://web.archive.org/web/20171020162344/http://vimeo.com/', '').replace('https://web.archive.org/web/20171020162344/https://vimeo.com/', ''); var vid_html = ''; } $(this).fadeOut(300); $(this).parent().css('background', 'black').find('img').fadeOut(300); $(this).parent().append(vid_html); return false; }); if(jQuery('.gallery .image').length) { jQuery('.gallery .image').each(function() { var randomNumber = Math.floor(Math.random()*3); var subRandomNumber = Math.floor(Math.random()*3); randomNumber = randomNumber - subRandomNumber; jQuery(this).css('-webkit-transform','rotate('+randomNumber+'deg)'); jQuery(this).css('-moz-transform','rotate('+randomNumber+'deg)'); jQuery(this).append(''); }); } if(jQuery.browser.msie && jQuery.browser.version < 8) { jQuery('html').css('overflow-x', 'hidden'); } jQuery('.jcarousel-next, .jcarousel-prev').click(function(){ // Get the current slide's position var currentSlidePosition = jQuery('#slider').find('ul').position(); currentSlidePosition = ((currentSlidePosition.left * -1) / 940); // Get the current slide var currentSlide = jQuery('.jcarousel-item').eq(currentSlidePosition); // Hide the audio player currentSlide.find('.player').hide(); currentSlide.find('.APV1_playing').find('.APV1_play_button').trigger('click'); // Hide the video player currentSlide.find('iframe').not('[src*=maps]').remove(); currentSlide.find('img').fadeIn(); // Show the button currentSlide.find('.button').show(); }); if(jQuery('article .image').length && jQuery.browser.msie) { jQuery('article .image').each(function() { jQuery(this).css('width', jQuery(this).find('img').width()); }); } jQuery('nav li:last-child').addClass('last'); jQuery('nav ul li').has('ul').addClass('hasSub'); jQuery('nav ul li').hover(function(){ jQuery(this).find('ul:first.sub-menu').fadeIn('fast'); },function(){ jQuery(this).find('ul:first.sub-menu').hide(); }); /* Ajax Contact form validation and submit */ jQuery('form#contactForm').submit(function() { jQuery(this).find('.error').remove(); var hasError = false; jQuery(this).find('.requiredField').each(function() { if(jQuery.trim(jQuery(this).val()) == '') { if (jQuery(this).is('textarea')){ jQuery(this).parent().addClass('input-error'); } else { jQuery(this).addClass('input-error'); } hasError = true; } else if(jQuery(this).hasClass('email')) { var emailReg = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; if(!emailReg.test(jQuery.trim(jQuery(this).val()))) { jQuery(this).addClass('input-error'); hasError = true; } } }); if(!hasError) { jQuery(this).find('#born-submit').fadeOut('normal', function() { jQuery(this).parent().parent().find('.sending-message').show('normal'); }); var formInput = jQuery(this).serialize(); var contactForm = jQuery(this); jQuery.ajax({ type: "POST", url: jQuery(this).attr('action'), data: formInput, success: function(data){ contactForm.parent().fadeOut("normal", function() { jQuery(this).prev().prev().show('normal'); // Show success message }); }, error: function(data){ contactForm.parent().fadeOut("normal", function() { jQuery(this).prev().show('normal'); // Show error message }); } }); } return false; }); jQuery('.requiredField').blur(function() { if(jQuery.trim(jQuery(this).val()) != '' && !jQuery(this).hasClass('email')) { if (jQuery(this).is('textarea')){ jQuery(this).parent().removeClass('input-error'); } else { jQuery(this).removeClass('input-error'); } } else { if (jQuery(this).is('textarea')){ jQuery(this).parent().addClass('input-error'); } else { jQuery(this).addClass('input-error'); } } }); jQuery('.email').blur(function() { var emailReg = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; if(emailReg.test(jQuery.trim(jQuery(this).val())) && jQuery(this).val() != '') { jQuery(this).removeClass('input-error'); } else { jQuery(this).addClass('input-error'); } }); var sliderButton = jQuery('#slider .button'); var sliderArrows = jQuery('#slider .jcarousel-prev, #slider .jcarousel-next'); sliderArrows.animate({'opacity':0},0).show(); sliderButton.animate({'opacity':0},0).show(); jQuery('#slider').hover(function(){ sliderArrows.stop().animate({'opacity':1},100); sliderButton.stop().animate({'opacity':1},300); },function(){ sliderArrows.stop().animate({'opacity':0},300); sliderButton.stop().animate({'opacity':0},300); }); }) window.autoScrollPermOff = false; var slider; function slider_initCallback(carousel) { slider = carousel; if(jQuery('#slider span.url').length) { jQuery('#slider span.url').each(function() { if(jQuery(this).text().indexOf('www.') != -1) { var remove_www = jQuery(this).text().toString().replace('www.', ''); jQuery(this).text(remove_www); } if(jQuery(this).text().indexOf('youtube') != -1) { jQuery(this).attr('rel', 'youtube'); var replaced_string = jQuery(this).text().toString().replace('https://web.archive.org/web/20171020162344/http://youtube.com/watch?v=', ''); jQuery(this).text(replaced_string); } else if(jQuery(this).text().indexOf('youtu.be') != -1) { jQuery(this).attr('rel', 'youtube'); var replaced_string = jQuery(this).text().toString().replace('https://web.archive.org/web/20171020162344/http://youtu.be/', ''); jQuery(this).text(replaced_string); } else if(jQuery(this).text().indexOf('vimeo') != -1) { jQuery(this).attr('rel', 'vimeo'); var replaced_string = jQuery(this).text().toString().replace('https://web.archive.org/web/20171020162344/http://vimeo.com/', ''); jQuery(this).text(replaced_string); } }); } var autoPermOff = false; // Stop autoscrolling when a button is clicked carousel.clip.find('.button').click(function(){ carousel.stopAuto(); autoPermOff = true; }); // Pause autoscrolling if the user moves with the cursor over the clip. carousel.clip.hover(function() { carousel.stopAuto(); }, function() { if (!autoPermOff) { if (auto_cycle) { carousel.startAuto(); } } }); jQuery('.jcarousel-prev, .jcarousel-next').append(''); } function slider_itemFirstInCallback(carousel, item, idx, state) { jQuery('.player').hide(); jQuery('#slider img').fadeIn('slow'); jQuery('#slider .jcarousel-list > li .caption').css('bottom', '-100px'); jQuery('#slider .jcarousel-list > li').eq(idx-1).find('.caption').animate({ bottom: '0px' }, 500, 'easeOutQuint'); } function loadFlashPlayer(container, playerWidth, playerId) { var song = container.attr('rel'); if (container.find('div').length == 0) { container.append('
'); }; var flashvars = {}; var params = {}; var attributes = {}; flashvars.autoLoad = "true"; flashvars.autoPlay = "true"; flashvars.repeat = "true"; flashvars.volume = "1"; flashvars.width = playerWidth; flashvars.song1url = song; // END SETUP params.play = "true"; params.scale = "noscale"; params.salign = "tl"; params.wmode = "transparent"; params.swliveconnect = "true"; params.allowscriptaccess = "always"; attributes.id = "mp3player"; embedCode(playerId, playerWidth, flashvars, params, attributes); } } /* FILE ARCHIVED ON 16:23:44 Oct 20, 2017 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:39:49 Apr 16, 2022. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 256.041 exclusion.robots: 0.248 exclusion.robots.policy: 0.241 cdx.remote: 0.057 esindex: 0.009 LoadShardBlock: 227.531 (3) PetaboxLoader3.datanode: 710.453 (4) CDXLines.iter: 19.843 (3) load_resource: 669.489 PetaboxLoader3.resolve: 140.951 */