$(document).ready(function(){

	// Perform a user agent test on IE and get the version
	if (navigator.appName == 'Microsoft Internet Explorer')
	{
	    var ua = navigator.userAgent;
	    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
	    if (re.exec(ua) != null)
	      var version = parseFloat( RegExp.$1 );
		    
		// Setup IE6 specific functions
		if(version == 6.0){	
			ie6MainNavigation();
			
		}
		
		// IE6 & 7 bFeatures
		ieBfeatures();
	}
});



function ie6MainNavigation(){
	
	// Navigation Drop down hover
	$('.glenmorangie-menu ul li').hover(function(){

		$(this).find('div.shadow').css({'top':'23px', 'z-index':'89000'});

		}, function(){

			$(this).find('div.shadow').css('top','-10000px');
			
	});
	
	// Language Go button hover
	$('.langauge_select .submit').hover(function(){
		
		$(this).css('backgroundPosition', '0 -20px');
		
		}, function(){
			
		$(this).css('backgroundPosition', '0 0');
		
	});
		
}

function ieBfeatures(){
		
	var bFeatureText;
	
	// h2 hover
	$("div.bFeature").find('h2.bFeature-title').hover(function(){
		
		bFeatureText = $(this);
		bFeatureText.css({'color':'#666666'});
		
		}, function(){
			
		bFeatureText.css({'color':'#000'});
		
	});
	
	// Image hover
	$("div.bFeature").find('img').hover(function(){
		
		bFeatureText = $(this).parent().find('h2.bFeature-title');
		bFeatureText.css({'color':'#666666'});
		
		}, function(){
			
		bFeatureText.css({'color':'#000'});
		
	});
	
}
