
	// FACEBOOK APP LOGIN AND RESPONSE
	window.fbAsyncInit = function() {
		FB.init({appId: '103752116385378', status: true, cookie: true, xfbml: true});
		//USER CLICKED LIKE
		FB.Event.subscribe('edge.create', function(response) {
			$('#voucherButton').show();
		});
		FB.Event.subscribe('edge.remove', function(response) {
			$('#voucherButton').hide();
		});
	};
	// FACEBOOK SHARE SCRIPT
	(function() {
		var e = document.createElement('script');
		e.type = 'text/javascript';
		e.src = document.location.protocol +
		  '//connect.facebook.net/en_US/all.js';
		e.async = true;
		document.getElementById('fb-root').appendChild(e);
	}());
	// CENTER POPUP WINDOW
	function popupCenter(pageURL, title, w, h) {
		var left = (screen.width/2)-(w/2);
		var top = (screen.height/2)-(h/2);
		window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
		return false;
	}
