var divList = new Array('intro', 'elearning', 'what', 'why', 'start', 'conclusion');

function showFirst()
{
var hashVal = window.location.hash;
var len = hashVal.length;
if (len > 1)
{
var tar = hashVal.substr(1,len);
for (var i=0; i<divList.length; i++)
{
if (tar == divList[i])
{
show(tar);
break;
}
}
} 
else
show(divList[0]);
}
function show(cont)
{

for (var i=0; i<divList.length; i++)
{
if (cont == divList[i])
document.getElementById(cont).style.display = 'block';

else 
document.getElementById(divList[i]).style.display = 'none';
}
}

function showLayer(name)
{
document.getElementById(name).style.display = 'block';
document.getElementById ("D"+name).style.display = 'none';
}

function hideLayer(name)
{
document.getElementById(name).style.display = 'none';
document.getElementById ("D"+name).style.display = 'block';
}
