// This script is to help get Salesforce for Google AdWords working with
// the Gravity Forms Wordpress plugin.

// Gravity Forms do not give you control over the direct HTML output of
// the form itself, but AdWords requires there to be an input with a
// name attribute of "sfga" in order to work. This script copies the
// Gravity Form generated version of this input tag and reconfigures it
// to have the appropriate name attribute, then appends it to the form.

//$(document).ready(function(){
//	var soid = "00DE0000000KQno", output;
//	if(sfga = $('input[value="' + soid + '"]')){
//		output = sfga.first().clone().attr({'name': 'sfga', 'id':'sfga'});
//		$(output).find("input:hidden").val(soid);
//		$('.gform_body').append(output);
//	}
//});
