$(document).ready(function(){
	var doton = false;	
	
	$('#nav_block').mouseleave(function(){
		$('#dot').animate({
			height: '0px'
			}, 60, 'linear', function() {
			doton = false;
		});
	});

		
	$('#nav_capabilities').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '124px';
				$('#dot').animate({
					left: '124px',
					height: '6px'			
					}, 60, 'linear', function() {
					doton = true;
				});
			} else if (doton == true) {
				$('#dot').animate({
					left: '124px',
					height: '6px'			
					}, 60, 'linear', function() {
					doton = true;
				});
			  }
		});
		
	$('#nav_clients').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '208px';
			$('#dot').animate({
				left: '208px',
				height: '6px'
				}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '208px',
				height: '6px'
				}, 60, 'linear', function() {
				doton = true;
			});
		}
	});
	
	if (navigator.userAgent.indexOf('MSIE 7') != -1){
	$('#nav_case').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '290px';
			$('#dot').animate({
				left: '290px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '290px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		  }
		});	
	}
	if (navigator.userAgent.indexOf('MSIE 7') == -1){
	$('#nav_case').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '300px';
			$('#dot').animate({
				left: '300px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '300px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		  }
	  });
	}
	
	if (navigator.userAgent.indexOf('MSIE 7') != -1){
		$('#nav_leadership').hover(function(){
			if (doton == false) {
				document.getElementById('dot').style.left = '392px';
				$('#dot').animate({
					left: '392px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			} else if (doton == true) {
				$('#dot').animate({
					left: '392px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			}
		});
	}
	if (navigator.userAgent.indexOf('MSIE 7') == -1){
		$('#nav_leadership').hover(function(){
			if (doton == false) {
				document.getElementById('dot').style.left = '406px';
				$('#dot').animate({
					left: '406px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			} else if (doton == true) {
				$('#dot').animate({
					left: '406px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			}
		});
	}
	
	if (navigator.userAgent.indexOf('MSIE 7') != -1){
		$('#nav_labovthink').hover(function(){
			if (doton == false) {
				document.getElementById('dot').style.left = '485px';
				$('#dot').animate({
					left: '485px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			} else if (doton == true) {
				$('#dot').animate({
					left: '485px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			}
		});
	}
	if (navigator.userAgent.indexOf('MSIE 7') == -1){
		$('#nav_labovthink').hover(function(){
			if (doton == false) {
				document.getElementById('dot').style.left = '506px';
				$('#dot').animate({
					left: '504px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			} else if (doton == true) {
				$('#dot').animate({
					left: '504px',
					height: '6px'}, 60, 'linear', function() {
					doton = true;
				});
			}
		});
	}
	
	if (navigator.userAgent.indexOf('MSIE 7') != -1){
	$('#nav_newsroom').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '586px';
			$('#dot').animate({
				left: '586px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '586px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		}
	});
	}
	if (navigator.userAgent.indexOf('MSIE 7') == -1){
		$('#nav_newsroom').hover(function(){
		if (doton == false) {
			document.getElementById('dot').style.left = '606px';
			$('#dot').animate({
				left: '606px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '606px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		}
	});
	}
	
	if (navigator.userAgent.indexOf('MSIE 7') != -1){
	$('#nav_contact').hover(function(){
		if (doton == false) {
				document.getElementById('dot').style.left = '664px';
				$('#dot').animate({
				left: '664px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '664px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		}
	});
	}
	if (navigator.userAgent.indexOf('MSIE 7') == -1){
		$('#nav_contact').hover(function(){
		if (doton == false) {
				document.getElementById('dot').style.left = '688px';
				$('#dot').animate({
				left: '688px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		} else if (doton == true) {
			$('#dot').animate({
				left: '688px',
				height: '6px'}, 60, 'linear', function() {
				doton = true;
			});
		}
	});
	}
	
});
