function setTransparency(id,level){
    document.getElementById(id).style.filter = "alpha(opacity="+level+")";
	document.getElementById(id).style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity="+level+")";
	document.getElementById(id).style.MozOpacity = level+"%";
	document.getElementById(id).style.KhtmlOpacity = level/100;
	document.getElementById(id).style.opacity = level/100;
}

function swapImg(id,source){
document.getElementById(id).src = source;
}


function setThumbHighlight(id){
for (i=1; i<6; i++){
  var brdrclr = (i==id) ? 'lightblue' : 'gray';
  var bgndclr = (i==id) ? 'rgb(197,67,15)' : 'transparent';
  document.getElementById("thumb-"+i).style.backgroundColor = bgndclr;
  document.getElementById("thumb-"+i).style.borderColor = brdrclr;
  }
}

function setTrackList(id){
for (i=1; i<6; i++){
  var disp = (i==id) ? 'block' : 'none';
  document.getElementById("title-"+i).style.display = disp;
  document.getElementById("trackList-"+i).style.display = disp;
  }
}

function setAudioPlayer(id){
for (i=1; i<5; i++){
  var disp = (i==id) ? 'block' : 'none';
  document.getElementById("player-"+i).style.display = disp;
  }
}

var ml=-36;
function slideContact(dir){
if(dir=='out'){
if(ml>-195){
	document.getElementById('contactTab').style.marginLeft = ml+"px";
	ml=ml*1.05;
	if(ml<-195){document.getElementById('contactTab').style.marginLeft = "-195px";}
	t=setTimeout("slideContact('out')",10);
	}
}else{
if(ml<-33){
	document.getElementById('contactTab').style.marginLeft = ml+"px";
	ml=ml+5;
	if(ml>-36){document.getElementById('contactTab').style.marginLeft = "-36px";}
	t=setTimeout("slideContact('in')",10);
	}
}
}