/**
 * BEGIN ActivateTable
 */

/*get
 * Globals
 */


/*
 * Function Definitions
 */

function activateTable(){
	//activates table cells inside element with Id="categories"
	var cells = document.getElementById("categories").getElementsByTagName ( 'td' );
	for( var i=0; i < cells.length; i++){

		cells[i].onclick = function(){
								var elementA = this.getElementsByTagName( 'a' );
								//alert( elementA[0].href );
								if (elementA.length > 0){
									navigate( elementA[0].href );
									};
								};
		cells[i].onmouseover = function(){
									this.style.background = '#ddd';
								};
		cells[i].onmouseout = function(){
									this.style.background = '#f4f4f4';
								};
		};
	};


/**
 * Initialize this script
 */

window.onload = function() {
	//	alert( 'executing: activateTable');
	activateTable();
};


