// Subscribe Form Simple Modal


jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();
	
	
	// Load dialog on click
	$('#basic-modal .basic').click(function (e) {
		
	
		//$('#basic-modal-content').modal();
		var src = "http://www.backscatter.com/email/templates/subscribe.html";
		$.modal('<iframe src="' + src + '" height="540" width="690" style="border:0">', {
			//closeHTML:"",
			containerCss:{
				backgroundColor:"#fff",
				borderColor:"#fff",
				height:540,
				padding:0,
				width:690
			},
			onOpen: function (dialog) {
				dialog.overlay.fadeIn('fast', function () {
					dialog.container.slideDown('slow', function () {
						dialog.data.fadeIn('fast');
					});
				});
			},
			onClose: function (dialog) {
				dialog.data.fadeOut('fast', function () {
					dialog.container.slideUp('slow', function () {
						dialog.overlay.fadeOut('fast', function () {
							$.modal.close(); // must call this!
						});
					});
				});
			},


			overlayClose:true
		});
		return false;
	});
});


	
