function change(elem) {
cont = document.getElementById(elem).innerHTML;
document.getElementById('txt').innerHTML = cont; 
}

function jobs () {
var canvas = document.getElementById("jobs");
var ctx = canvas.getContext("2d");
var text = ["RCM","TPM","CMRP","Problem Solving","Failure Prevention","Condition Monitoring","Team Building","Root Cause Analysis"];
var x = 0;
var y = 0;
var r = 0;
var j = 100;
ctx.font = "bold 48px sans-serif";
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillStyle = "rgba(0,0,0,1)";
setInterval(draw, j);
function draw() {
if (x <=157) {
ctx.clearRect(0,0,300,50);
L = text[y].length;
Z = 500/L;
W = Math.round(Z);
if (W < 48) {
ctx.font = "bold " + W + "px sans-serif";
}
else {
ctx.font = "bold 48px sans-serif";
}
syn = Math.abs(Math.sin(x/(Math.PI*2)));
ctx.fillStyle = "rgba(0,80,100," + syn + ")";
ctx.fillText(text[y], 150, 25);
x++;
y = Math.floor(x/20);
}
else {
x = 0;
y = 0;
}
}
}



