var names = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"];
gl = null;
for (var ii = 0; ii < names.length; ++ii) {
try {
gl = canvas.getContext(names[ii]);
} catch(e) {}
if (gl) {
break;
}
}
initShaders ();
initBuffers ();