 var movDist = 3;//pixels per loop navigation arrow moves
 var move;
 var moveHome;
 var dir;//direction nav arrow is currently moving; 0 = left ; 1 = right;

	function backMake(){
	 if (navigator.appName.indexOf("Microsoft") != -1){
	  if (document.title=="Land Title Services"){
	   bodback.src="/media/bkg_services.jpg";
	   body.style.backgroundColor = "black";
	  } 
	 }
	 
	 pointNav.style.posLeft = navPos;
	}
	
   function moveArrow(stop,dir){
   if (dir==0){
     if (pointNav.style.posLeft > stop){
      pointNav.style.posLeft -= movDist;
	 }

    }
	if (dir==1){
     if (pointNav.style.posLeft < stop ){
      pointNav.style.posLeft += movDist;
	 }
	}
	if (pointNav.style.posLeft == stop){
      clearInterval(move);
	}	
	if (pointNav.style.posLeft == navPos){
	  clearInterval(moveHome);
	}	
   }

    function moveNav(newLink){
  	var stop;
	clearInterval(moveHome);
	if(newLink == "Home") { stop= 0; }
	if(newLink == "Services") { stop = 50}
	if(newLink == "Title Request") { stop = 110; }
	if(newLink == "Location") { stop = 173; }
	if(newLink == "Contact") { stop = 220; }
	if(newLink == "Staff") { stop = 255; } 
	return stop;
	}

	function goNav(stop){
	clearInterval(moveHome);
	if (stop == pointNav.style.posLeft){clearInterval(move);}
  	if (stop < pointNav.style.posLeft){move=setInterval("moveArrow("+stop+",0)", 10);}
  	if (stop > pointNav.style.posLeft){move=setInterval("moveArrow("+stop+",1)", 10);}
	return move;
	}
	
	
	function navReturn(navPos){
	clearInterval(move);
	if (navPos == pointNav.style.posLeft){clearInterval(moveHome);}
	if (navPos < pointNav.style.posLeft){moveHome=setInterval("moveArrow("+navPos+",0)", 10);}
	if (navPos > pointNav.style.posLeft){moveHome=setInterval("moveArrow("+navPos+",1)", 10);}
	return moveHome;
	}