var _gaq = _gaq || [];

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://www' : 'http://www') + '.504experts.com/gafunctions.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

//	Rules:
//	1. 	An array of objects is passed to roiFunctions.
//	2. 	Each object in the array is independent of the others.
//	3. 	subAccounts is also an array of objects, but they are dependent on the parent object.
//	4.  subAccounts inherit attributes of parent object.
//	5. 	Anything specified in subAccounts overrides the parent account.
//	6. 	If initial is used a second set of cookies using _setNameSpace(initial) is created.

_gaq.push(function () {
    roiFunctions([{
		subDomains: "auto",
		cpc: true,
		leadCapture: [{
			name: "signupform",
			type: "single"
		}],
		subAccounts: [
		{
			account: "UA-231401-1",
			includeOnly: /504experts\.com/,
			conversionTracker: {
				includeOnly: /landing\-thank\-you\/general\.php/,
				Google: [{
					id: 1070250692,
					label: "D34dCM7YnwEQxPWq_gM",
				}],
				Yahoo: [{
					accountid: "127TB6OTNITCLSCJLCOLSP5DG3O",
				}]
			}
		},
		{
    		account: "UA-231401-4",
			includeOnly: /medicalpropertyloans\.com/,
			conversionTracker: {
				includeOnly: /med\-thank\-you\.html/,
				Google: [{
					id: 1070250692,
					label: "ATQlCKbkkQEQxPWq_gM",
				}],
				Yahoo: [{
					accountid: "127TB6OTNITCLSCJLCOLSP5DG3O",
				}]
			}
		}, 
		{
			account: "UA-231401-4",
			includeOnly: /hotel-financing\.com/,
			conversionTracker: {
				includeOnly: /hotel\-thank\-you\.html/,
				Google: [{
					id: 1070250692,
					label: "AYH3CO6BkQEQxPWq_gM",
				}],
				Yahoo: [{
					accountid: "127TB6OTNITCLSCJLCOLSP5DG3O",
				}]
			}
		},
		{
			account: "UA-231401-4",
			includeOnly: /daycare-loans\.com/,
			conversionTracker: {
				includeOnly: /thank\-you\-daycare/,
				Google: [{
					id: 1070250692,
					label: "kmKECIrgkQEQxPWq_gM",
				}],
				Yahoo: [{
					accountid: "127TB6OTNITCLSCJLCOLSP5DG3O",
				}]
			}
		},
		{
			account: "UA-231401-6",
			includeOnly: /thesmartchoiceloan\.com/,
			conversionTracker: {
				includeOnly: /thank\-you\-for\-(signing\-up|requesting\-our\-free\-reports)/,
				Google: [{
					id: 1070250692,
					label: "wgxqCKiNoQEQxPWq_gM",
				}],
				Yahoo: [{
					accountid: "127TB6OTNITCLSCJLCOLSP5DG3O",
				}]
			}
		}]
    }]);
});