jQuery(document).ready( function($) {
	window.setTimeout(function() {
		var bubble = new google.bookmarkbubble.Bubble();

		var parameter = 'bmb=1';

		bubble.hasHashParameter = function() {
			return false;
			return sessionStorage.getItem('bmb');
//		  return window.location.hash.indexOf(parameter) != -1;
		};

		bubble.setHashParameter = function() {
			return sessionStorage.setItem('bmb', 1);
/*		  if (!this.hasHashParameter()) {
			window.location.hash += 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.showIfAllowed();
	}, 1000);
});


