  switch_nav = function(n) {
  
    self.document.location.hash = '#' + n;
  
    if (n != 0) {
    
      new_t = document.getElementById('t' + n);
      new_t.setAttribute('class', 'item selected'); 
      new_t.setAttribute('className', 'item selected'); 
      
    }
    
    if (n != current && current != 0) {
      old_t = document.getElementById('t' + current);
      old_t.setAttribute('class', 'item'); 
      old_t.setAttribute('className', 'item');  
    }
      
    if (n != current) {  
      old_i = document.getElementById('i' + current);
      old_i.setAttribute('class', 'v_content');
      old_i.setAttribute('className', 'v_content');
    }
    
    new_i = document.getElementById('i' + n);
    new_i.setAttribute('class', 'v_content active');
    new_i.setAttribute('className', 'v_content active');
    
    current = n;
    
  }
  
  nav_forward = function() {
  	n = current + 1;
 	if (n > num_items) {
		n = 1;
	}
	switch_nav(n);
  }
  	
  
  toggle_shot_breakdown = function() {
    breakdown = document.getElementById("shot_breakdown");
    reel = document.getElementById("reel");
    toggle_shot = document.getElementById("toggle_shot");
    toggle_reel = document.getElementById("toggle_reel");
    
    if(breakdown.style.display == "block") {
    
      breakdown.style.display = "none";
      toggle_shot.style.display = "block";
      reel.style.display = "block";
      toggle_reel.style.display = "none";
      
    } else {
    
      breakdown.style.display = "block";
      toggle_shot.style.display = "none";
      reel.style.display = "none";
      toggle_reel.style.display = "block";
    }
  }
    
  toggle_form = function() {

  }
    