//tout hover animations
// FOR UNIQUE ICONS USE DIFFERENT CSS CLASSES FOR OVERLAY ITEM, THEN ADD NEW CONDITION

JQ(document).ready(function() 
{
	if (JQ.browser.msie) 
	{
		JQ('.tout').hover(
			
				function() {
					if (JQ(this).parent().attr('id') != "off"){
						JQ(this).addClass('hover').find('.tout-overlay').hide(); 
						// ADDITIONAL OVERLAY IF PRESENT (EX. 'PLAY' ARROW FOR VID TOUT)
						JQ(this).addClass('hover').find('.tout-overlay-play').show();
					}
				},
				function() {
					if (JQ(this).parent().attr('id') != "off"){
						JQ(this).removeClass('hover').find('.tout-overlay').show();
						// ADDITIONAL OVERLAY IF PRESENT (EX. 'PLAY' ARROW FOR VID TOUT)
						JQ(this).removeClass('hover').find('.tout-overlay-play').hide();
					}
				}
			
		);	
	} 
	else 
	{
		JQ('.tout').hover(
			
				function() 
				{
					if (JQ(this).parent().attr('id') != "off"){
			
						JQ(this).addClass('hover').find('.tout-overlay').stop().animate({ opacity: 0 }, 'slow');
						// ADDITIONAL OVERLAY IF PRESENT (EX. 'PLAY' ARROW FOR VID TOUT)
						JQ(this).addClass('hover').find('.tout-overlay-play').stop().animate({ opacity: 0.9999 }, 'slow');
					
					}
				},
				function() 
				{
					if (JQ(this).parent().attr('id') != "off"){
						JQ(this).removeClass('hover').find('.tout-overlay').stop().animate({ opacity: 0.9999 }, 'slow');
						// ADDITIONAL OVERLAY IF PRESENT (EX. 'PLAY' ARROW FOR VID TOUT)
						JQ(this).removeClass('hover').find('.tout-overlay-play').stop().animate({ opacity: 0 }, 'slow');
					}
				}			
			
		);	
	}
	
	
	/* duplicated for 2ndary nav */
	JQ('.btn').hover(
		function(){
			if (JQ(this).parent().attr('id') != "off"){
				JQ(this).addClass('highlight');
			}
		},
		function(){
			if (JQ(this).parent().attr('id') != "off"){
				JQ(this).removeClass('highlight');
			}
		}
	);
	
		
	
});