function jumpTo(optionObj) 
{
	window.location.href = optionObj.options[optionObj.selectedIndex].value;
}
function changeBox(which) {
	document.getElementById("box").innerHTML = document.getElementById("content_" + which).innerHTML;
}

var agt = navigator.userAgent.toLowerCase();
var aol = (agt.indexOf("aol") != -1);
var is_mac = (agt.indexOf("mac") != -1);
if(!is_mac){document.write("<style type=\"text/css\">.playIn {display:block;}</style>")
} else {document.write("<style type=\"text/css\">.playIn {display:none;}</style>")
 } 

function changeAudio(url) {
	DalaiLlama.PlayAudioSmall(url, "grey");
}

function changeBG() {

}


function clearBG() {
    document.getElementById("a").style.background = '#f3f1f1';
	document.getElementById("a").style.borderRight = '8px solid #fff';
	document.getElementById("b").style.background = '#f3f1f1';
	document.getElementById("b").style.borderRight = '8px solid #fff';
	document.getElementById("c").style.background = '#f3f1f1';
	document.getElementById("c").style.borderRight = '8px solid #fff';
	document.getElementById("d").style.background = '#f3f1f1';
	document.getElementById("d").style.borderRight = '8px solid #fff';
	document.getElementById("e").style.background = '#f3f1f1';
	document.getElementById("e").style.borderRight = '8px solid #fff';
}
function changeBG(but) {
	clearBG();
    document.getElementById(but).style.background = '#f1eea9';
	document.getElementById(but).style.borderRight = '8px solid #f1eea9';
}

// BEGIN CODE FOR ASPP LINKS & DALAI LLAMA/9.0 BUG
function asppaol (url) {
      url=this;
      links=document.getElementById? document.getElementById("aspplinks"): document.all.aspplinks;
      links.src="aspplinks.html";
      links.src=url;
      return false;
}
 
var agnt = navigator.appVersion.toLowerCase();
if(agnt.indexOf("aol")){ 
var aolver = agnt.charAt(agnt.indexOf("aol")+4);
}
 
function changeLinks() {
 for (i=0; i<document.links.length; i++) {
 
  url=document.links[i].href;
  if (url.indexOf("aol://")>0) {
   document.links[i].onclick=asppaol;
  } 
 
  tgt=document.links[i].target;
  if ((tgt == "_dl" )&&(aolver >= 9)) {
   document.links[i].target = ""; // changes _dl to "" on 9.0 & up
  } 
 
 } 
}
// END CODE FOR ASPP LINKS & DALAI LLAMA/9.0 BUG