/**
 * For b2evolution.net by evofactory.com
 */

function ConversionCount()
{	// Count conversion when triggered
	// alert('test 3');
	var pageTracker=_gat._getTracker("UA-5407193-3");
	pageTracker._trackPageview("/2993467008/goal");	// budget
	pageTracker._trackPageview("/3620237118/goal");	// quality
	return true;
}

/**
 * Automagically set up conversion onclick event handlers
 *
 * This is executed once after page load
 */
function setupGoptimizerGoals()
{
	if(!document.getElementsByTagName)
	{ // We are NOT in a DOM-supporting browser:
		return;
	}

	// Get ALL the links in the current document:
	var all_links = document.getElementsByTagName('a');

	// Go through all the links:
	for(var i = 0; i < all_links.length; i++)
	{
		var link = all_links[i];
		if( link.href.indexOf('/web-hosting/goto/') != -1 )
		{ // The link is a destination we want:
			// Set up event handlers:
			link.onclick = ConversionCount;
		}
	}
}


/**
 * When the page loads, set up the Google optimizer goals
 */
addEvent( window, 'load', setupGoptimizerGoals, false );