var W3CDOM = (document.createElement && document.getElementsByTagName);
window.onload = init;
function init()
{
	if (!W3CDOM) return;
	var nav = document.getElementById('triggers');
	var imgs = nav.getElementsByTagName('img');
	for (var i=0;i<imgs.length;i++)
	{
		imgs[i].onclick = trigger;
	}
}
function trigger() {
	var pathToImages = "images/";
    var theImage = this;
    var theRowName = this.id.replace('_trigger', '_target');
    var theRow = document.getElementById(theRowName);
    var change = this.src.match('pointer_');;
	//alert(change);
	//alert(theRowName);
    if (theRow.style.display=="none") {
        theRow.style.display = "";
        if (change=='pointer_'){
			theImage.src = pathToImages + "pointer_hide_3d.gif";
        }
    } else {
        theRow.style.display = "none";
        if (change=='pointer_'){
			theImage.src = pathToImages + "pointer_show_3d.gif";
        }
    }
}