// $(document).ready(function(){
$(function() { 
	$('.choose .option').hover(
		function() {
			$(this).children('.hoverImage').fadeIn();
		},
		function() {
			$(this).children('.hoverImage').fadeOut();
		}
	)
	$('#europeRegion').click(function() {
		$('#srWrap').fadeOut('', function() {
			$('#ssWrap').fadeIn();
		});
		return false;
	});
	$('#americasRegion').click(function() {
		window.location = 'http://ndi-rs.com/us';
	});
	$('#nditechSite').click(function() {
		window.location = 'http://www.nditech.com/uk';
	});
	$('#ndirsSite').click(function() {
		window.location = 'http://ndi-rs.com/ukrs';
	});
	
	/* GOOGLE ANALYTICS ASYNCHRONOUS SNIPPET
	*************************************/
	/* http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html */
	
	var _gaq = _gaq || [];
	the_host = $.url.attr('host');
	reg_ex = /nditech.net$/;
	check = the_host.search(reg_ex);
	if(check != -1) {
		// it's nditech.net - use the primary google tracking code
		_gaq.push(['_setAccount', 'UA-4500327-1']);
		// console.log('nditech.net');
	} else {
		// it's probably ndi-rs.com so use the secondary
		_gaq.push(['_setAccount', 'UA-4500327-2']);
		// console.log('ndi-rs.com');
	}
	_gaq.push(['_trackPageview']);
	
	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
	})();
	
	
}); // document ready}); // document ready