var fDesc=new Array();
fDesc[1] = "each of the five prescribed prayers. It can be fully customized to our preferences. It lets us select audio and images, set reminders, select our location from the list provided, see the Quiblah direction, etc.";
fDesc[4] = "calendar to obtain the equivalent date in the other calendar. The Gregorian calendar is based on the birth year of Jesus Christ. It was introduced in A.D. 1582 by Pope Gregory XIII. It recognizes two eras: B.C. (Before Christ) and A.D. (Anno Domini). A year has 12 months with 28-31 days each, totaling 365-366 days. The Islamic or Hijri lunar calendar is based on the Hejira (migration of Muhammad from Mecca in A.D. 622). It recognizes one era: A.H. (Anno Hegirae). A year has 12 months with 29-30 days each, totaling 354-355 days.";
function tCollapseAll(maxID)
{
document.getElementById("alls_action").innerHTML = "Expand descriptions";
var id=1;
for (id=1; id <= maxID; id++)
{
if (document.getElementById("desc_" + id))
tShowHide(id, 2);
}
}
function tExpandAll(maxID)
{
document.getElementById("alls_action").innerHTML = "Collapse descriptions";
var id=1;
for (id=1; id <= maxID; id++)
{
if (document.getElementById("more_" + id))
tShowHide(id, 1);
}
}
function tShowHide(id, show)
{
var s = document.getElementById("more_" + id);
if ((s.innerHTML!=fDesc[id] || show==1) && show!=2)
{
s.innerHTML = fDesc[id];
}
else
{
s.innerHTML = '...';
}
}