/*
 * Google Analytics Utilities
 *
 * @Author Thomas März (thomas.maerz@noogen.de)
 *
 * Used at
 *		http://www.citrix.de
 *		http://partnerweb.citrix.de
 *		http://www.citrix.eu/grenzenlos
 *
 *		and many other sites
 */

if(document.location.hostname == "www.citrix.eu") {
	new Rule({
		'regex':/(.*)\/modules\/resource\/download\/.{32}\/(.*)/,
		'replacement':'/download/Resourcen-Tool/$2',
		'requiresOutgoing':false
	});
	new Rule({
		'regex':/^https?:\/\/(.*)/,
		'replacement':'/outgoing/$1',
		'source':'microsite',
		'campaign':'endkunden',
		'requiresOutgoing':true
	});
} else {
	new Rule({
		'regex':/http:\/\/www.citrixxenserver.com\/Pages\/XenExpress.aspx/,
		'replacement':'/outgoing/produkte/testen/xen-server',
		'requiresOutgoing':true
	});
	new Rule({
		'regex':/http:\/\/www.citrix.com\/English\/SS\/downloads\/downloads.asp\?dID=36239/,
		'replacement':'/outgoing/produkte/testen/xen-desktop',
		'requiresOutgoing':true
	});
	
	new Rule({
		'regex':/(.*)\/modules\/resource\/download\/.{32}\/(.*)/,
		'replacement':'/download/Resourcen-Tool/$2',
		'requiresOutgoing':false
	});
	new Rule({
		'regex':/^https?:\/\/(.*)/,
		'replacement':'/outgoing/$1',
		'requiresOutgoing':true
	});
}

