﻿var leadGeneration = function(settings) {
	this.adVideoPlayUrl = settings.adVideoPlayUrl;
}

leadGeneration.prototype = {
	adVideoPlay: function(e) {
		var target = $(".videoAd");
		this.targetId = target.attr("schedulesRef");
		this.hitId = target.attr("hitId");
		
		$.ajax(
		{
			type: "POST",
			url: this.adVideoPlayUrl,
			dataType: "json",
			data: {
				SchedulesRef: this.targetId,
				HitsRef: this.hitId
			},
			context: this,
			cache: false,
			success: function(bool) {
				var test = bool;
			}
		});
	}

};
