// overlay
// define function that opens the overlay
function openPartnerOverlay() {
	// get access to the overlay API
	var api = $("#overlayVideo").overlay();
	// call it's open() method
	api.load();
}

$(function() {
	$("#overlayVideo").overlay({
		// some expose tweaks suitable for facebox-looking dialogs
		expose: {
			// you might also consider a "transparent" color for the mask
			color: '#fff',
			// load mask a little faster
			loadSpeed: 200,
			// highly transparent
			opacity: 0.65
		}
	});
	
	$("#overlayShop").overlay({
		// some expose tweaks suitable for facebox-looking dialogs
		expose: {
			// you might also consider a "transparent" color for the mask
			color: '#fff',
			// load mask a little faster
			loadSpeed: 200,
			// highly transparent
			opacity: 0.65
		}
	});

});

// define function that opens the overlay
function openShopOverlay() {
	// get access to the overlay API
	var api = $("#overlayShop").overlay();
	// call it's open() method
	api.load();
}
