var flow_conf = {
	defaults: {
		key: '#@fae15a997f67f7892e5',
		clip: {
			autoPlay: true,
			autoBuffering: true
		}
	}
}

if(window.location.host.split('.')[1] == 'techprogress' ) {
	flow_conf.defaults.key = '#@f27d7aa59947b1b1597';
}

jQuery.fn.embedClicker = function(embed_display_name) {
	
	var showEmbed = false;

	return this.each(function() {
		var target = $(this);
		var name = target.attr('id').split('_')[0];
		var embed_display = $(embed_display_name);
		target.click(function() {
			if (showEmbed) {
				target.text('Show Embed Code');
				showEmbed = false;
				embed_display.hide();
				$f().show();
			} else {
				target.text('Hide Embed Code');
				showEmbed = true;
				embed_display.show();
				$f().hide();
			}
		});
	});
}
