	var fullmapwindow
 
    function openfullmap(url){
	    closefullmap(); 
	    fullmapwindow = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=950,height=750,left=0,top=0");
	    fullmapwindow.focus(); 
    }

    function closefullmap(){
	    if (fullmapwindow && !fullmapwindow.closed){
		    fullmapwindow.close();
	    }
    }	
    
    
    images = new Array(4);
    images[0] = "<a href = 'careers/' title='Attention: Careers Ahead'><img src='Images/rotate/careers-ahead.jpg' width='723' height='260'  alt='Attention: Careers Ahead'></a>";
    images[1] = "<a href = 'services/swoop.aspx' title='Swoop - Overhauling the way we do business'><img src='Images/rotate/main-swoop.gif' width='723' height='260' alt='Swoop - Overhauling the way we do business'></a>";
    images[2] = "<a href = 'flyer/' title='Flyer Logistics Solutions - Delivering in a Big Way'><img src='Images/rotate/main-flyer.jpg' width='723' height='260' alt='Flyer Logistics Solutions - Delivering in a Big Way'></a>";
    images[3] = "<a href = 'about/' title='A Satisfied Customer is our Final Destination'><img src='Images/rotate/main-taxair.jpg' width='723' height='260' alt='A Satisfied Customer is our Final Destination'></a>";
    
    var intVal = -1;
    
    function setImage()
    {
        var placeHolder = document.getElementById("rotatePH");
           
        if(intVal == -1)
        {   
            index = Math.floor(Math.random() * images.length);
            intVal = index;
        }
        else
        {
            intVal ++;
            if(intVal > 3)
            {
                intVal = 0;
            }
        }
        //placeHolder.innerHTML = "";
        
        placeHolder.innerHTML = images[intVal];
    }
    
    var TimeToFade = 1000.0;

    function fade(eid)
    {
      var element = document.getElementById(eid);
      if(element == null)
        return;
       
      if(element.FadeState == null)
      {
        if(element.style.opacity == null 
            || element.style.opacity == '' 
            || element.style.opacity == '1')
        {
          element.FadeState = 2;
        }
        else
        {
          element.FadeState = -2;
        }
      }
        
      if(element.FadeState == 1 || element.FadeState == -1)
      {
        element.FadeState = element.FadeState == 1 ? -1 : 1;
        element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
        
      }
      else
      {
        element.FadeState = element.FadeState == 2 ? -1 : 1;
        element.FadeTimeLeft = TimeToFade;
        setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
      }  
    }
        function animateFade(lastTick, eid)
        {  
          var curTick = new Date().getTime();
          var elapsedTicks = curTick - lastTick;
          
          var element = document.getElementById(eid);
         
          if(element.FadeTimeLeft <= elapsedTicks)
          {
            element.style.opacity = element.FadeState == 1 ? '1' : '0';
            element.style.filter = 'alpha(opacity = ' 
                + (element.FadeState == 1 ? '100' : '0') + ')';
            element.FadeState = element.FadeState == 1 ? 2 : -2;
            return;
          }
         
          element.FadeTimeLeft -= elapsedTicks;
          var newOpVal = element.FadeTimeLeft/TimeToFade;
          if(element.FadeState == 1)
            newOpVal = 1 - newOpVal;

          element.style.opacity = newOpVal;
          element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
          
          setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
        }
        var secs;
        var timerID = null;
        var timerRunning = false;
        var delay = 1000;
        
        function InitializeTimer()
        {
            // Set the length of the timer,
            // in seconds. Your choise
            secs = 15;

            StopTheClock();
            StartTheTimer();
        }
        function StopTheClock()
        {
            if(timerRunning)
            {
                clearTimeout(timerID);
            }
                
            timerRunning = false;
            
        }
        function StartTheTimer()
        {
            if (secs==0)
            {
                StopTheClock();
                fade('rotatePH');
                setTimeout("setImage()", 1100);
                setTimeout("fade('rotatePH')", 1200);
                InitializeTimer();
            }
            else
            {
                secs = secs - 1;
                timerRunning = true;
                timerID = self.setTimeout("StartTheTimer()", delay);
            }
        }    
        
        function startRotator()
        {
            setImage();
            InitializeTimer();
        }
