// Bookmark Bubble
window.addEventListener('load', function() {
  window.setTimeout(function() {
    var bubble = new google.bookmarkbubble.Bubble();

    var parameter = 'bmb=1';

    bubble.hasHashParameter = function() {
      return window.location.hash.indexOf(parameter) != -1;
    };

    bubble.setHashParameter = function() {
      if (!this.hasHashParameter()) {
        window.localStorage += parameter;
      }
    };

    bubble.getViewportHeight = function() {
      return window.innerHeight;
    };

    bubble.getViewportScrollY = function() {
      return window.pageYOffset;
    };

    bubble.registerScrollHandler = function(handler) {
      window.addEventListener('scroll', handler, false);
    };

    bubble.deregisterScrollHandler = function(handler) {
      window.removeEventListener('scroll', handler, false);
    };
    
    bubble.TIME_UNTIL_AUTO_DESTRUCT = 15000;
    bubble.NUMBER_OF_TIMES_TO_DISMISS = 2;

    bubble.showIfAllowed();
  }, 1000);

  // Verander link als in fullscreen
/*
  if (window.navigator.standalone){ 
	//$('.contact-link').attr('href', 'http://altintas.nl).attr('target', '_blank');
  }
*/

}, false);



