/* GAD */ //var object = document.getElementById('mobile-gad-tap') var d_obj = document.getElementById('mobile-gad') //var hiddenOffset = ( d_obj.className == 'mobile-gad' || d_obj.className == 'mobile-gad hidden' ) ? "-50px" : "-200px"; //var gadIsHidden = ( d_obj.className == 'mobile-gad' ) ? false : true //var autoGadIsHiddencookie = getCookie('gadIsHidden') var m_obj = (( document.getElementById('mobile-gad') != null ) && document.getElementById('mobile-gad').className == 'mobile-gad-medium' ) ? true : false; /*function hide( obj ){ if( gadIsHidden ) { obj.style.bottom = '0px' } if( !gadIsHidden ) { obj.style.bottom = hiddenOffset; } gadIsHidden = gadIsHidden ? false : true; setCookie('gadIsHidden', gadIsHidden, { "expires" : 60 * 60 * 5 } ) }*/ function ahm(s){ if( m_obj ) { d_obj.className +=" m"; } } function ahl(s){ if( m_obj ) { d_obj.className +=" l"; } } function aho(s){ if( m_obj ) { d_obj.className +=" o"; } } function ahd(){ if( m_obj ) { d_obj.className +=" d"; } } function ahy(){ } function ahz(){ } function ad_replace( from, to ){ var ad_placed = 0; var anchor = jQuery(to); var anchor_height = anchor.offset().top - 400; jQuery(window).bind('scroll', function() { if( !ad_placed ){ if ( jQuery(window).scrollTop() > anchor_height ) { ad_placed = 1; jQuery(to).replaceWith( jQuery( from ) ); } } }); } //object.onclick = function(){ hide( d_obj ) } jQuery('a[href^=#]').on('click', function(event){ event.preventDefault(); jQuery('html,body').animate( { scrollTop: jQuery( this.hash ).offset().top -50 }, 1500 ); }); if (jQuery(window).width() > 1250) { jQuery(window).bind('scroll', function() { //var navHeight = $( window ).height(); if (jQuery(window).scrollTop() > 50) { jQuery('.page-top-button').removeClass('hidden') } else { jQuery('.page-top-button').addClass('hidden') } }); } function addLink() { return false; } document.addEventListener('copy', addLink);