function oValidate(sObject) {
	var asObject = sObject.split(".");
	var sTemp = asObject[0];
	for (var i = 1; i < asObject.length; ++i) {
		if (eval(sTemp) == null) {
			return null;
		}
		sTemp += "." + asObject[i];
	}
	return eval(sObject);
}

$(function() {

	// --- IE6 workaround, manual hover state on non-link items 
	
	$('.hoverable').live({ 'mouseover': function() { $(this).addClass('hover') }, 'mouseout': function() { $(this).removeClass('hover') } });

	// --- image hover --------------------
					 
	$('img.flux-hover').each(function() {
			var that = this;
			this.sSrcNormal = this.src;
			this.oHover = new Image;
			this.oHover.onload = function() {
				$(that).hover(function() { this.src = this.oHover.src; }, function() { this.src = this.sSrcNormal; });
			}
			this.oHover.src = this.src.replace(/(\/[^/]*\/)([^/]+)$/, '$1-hover\/$2');
		})
	
	// --- google analytics outbound link tracking --------------------
	$('a').filter(function() { return this.hostname && this.hostname !== location.hostname }).click(function() {
		_gaq && _gaq.push(['_trackEvent', 'Outbound links', this.href])
	});
	
});

