function swappano(cosa)
{
 document.ptviewer.newPanoFromList(cosa);
 document.ptviewer.PlaySound(0);
 soundpick(cosa)
 credits(cosa)
}

function credits(quali)
  {
styl = "<h2>";
stylnd = "</h2>";
 switch (quali)
  {
    case "0": { document.getElementById("panocredits").innerHTML=styl+"Highbury City of Portsmouth Centre reception area"+stylnd ; break }
    case "1": { document.getElementById("panocredits").innerHTML=styl+"Training kitchen "+stylnd; break }
    case "2": { document.getElementById("panocredits").innerHTML=styl+"Building workshop"+stylnd; break }
    case "3": { document.getElementById("panocredits").innerHTML=styl+"Simulated air cabin"+stylnd; break }
    case "4": { document.getElementById("panocredits").innerHTML=styl+"Gas workshop "+stylnd; break }
    case "5": { document.getElementById("panocredits").innerHTML=styl+"Library "+stylnd; break }
    case "6": { document.getElementById("panocredits").innerHTML=styl+"<i>Chimes</i> fine dining restaurant "+stylnd; break }
    case "7": { document.getElementById("panocredits").innerHTML=styl+"Student Accomodation at Highbury Campus "+stylnd; break }
    case "8": { document.getElementById("panocredits").innerHTML=styl+"Highbury Campus new development "+stylnd; break }
    case "9": { document.getElementById("panocredits").innerHTML=styl+"Highbury Hair & Beauty Salons "+stylnd; break }   
    // whatever is passed to switch that is not caught
    // by the above fall under this category.
    default: { document.getElementById("panocredits").innerHTML=styl+"Text description to be defined"+stylnd ; break }
  }
  }
  
  function thumbclear(thumb)
  {
  	//document.getElementById(thumb).style.opacity=0.6;
  	//thumbout.filter.alpha.opacity=60;
  document.getElementById("panothumbtext").innerHTML="<p class='panocaption'>Select a thumbnail to view the panorama</p>";
    } 
  
  
    function thumboff(numer,nm,fl)
    
  {
document.getElementById(nm).src="360/" + fl; 
  	
  document.getElementById("panothumbtext").innerHTML="<p class='panocaption'>Select a thumbnail to view the panorama</p>";
    } 
    
    
    
    function thumbon(numero,nme,fle)
  {
    	
  	document.getElementById(nme).src="360/" + fle;
styl = "<p class='panocaption'>";
stylnd = "</p>";
//alert("panocaptionpanocaption");
 switch (numero)
  {
    case "0": { document.getElementById("panothumbtext").innerHTML=styl+"Highbury City of Portsmouth Centre reception area"+stylnd ; break }
    case "1": { document.getElementById("panothumbtext").innerHTML=styl+"Highbury City of Portsmouth Centre training kitchen"+stylnd; break }
    case "2": { document.getElementById("panothumbtext").innerHTML=styl+"Practical building workshop at Highbury Northarbour Centre"+stylnd; break }
    case "3": { document.getElementById("panothumbtext").innerHTML=styl+"A simulated air cabin for training in Travel and Tourism "+stylnd; break }
    case "4": { document.getElementById("panothumbtext").innerHTML=styl+"A gas workshop for hands-on training in gas fitting "+stylnd; break }
    case "5": { document.getElementById("panothumbtext").innerHTML=styl+"The large library at Highbury Campus"+stylnd; break }
    case "6": { document.getElementById("panothumbtext").innerHTML=styl+"Student training restaurant at Highbury City of Portsmouth Centre"+stylnd; break }
    case "7": { document.getElementById("panothumbtext").innerHTML=styl+"Student Accomodation at Highbury Campus"+stylnd; break }
    case "8": { document.getElementById("panothumbtext").innerHTML=styl+"Highbury Campus new development "+stylnd; break }
    case "9": { document.getElementById("panothumbtext").innerHTML=styl+"Highbury Hair & Beauty Salons "+stylnd; break }

    // whatever is passed to switch that is not caught
    // by the above fall under this category.
    default: { document.getElementById("panothumbtext").innerHTML=styl+"__"+stylnd ; break }
  }

  }  
  
