/*
the 'links(blink)' function :)
*/

hv=0; currentTag=0;
ua=navigator.userAgent; v=navigator.appVersion.substring(0,1);

if((ua.lastIndexOf("MSIE") != -1) && (v != '1') && (v != '2') && (v != '3')) {
	document.onmouseover=kedipaja;
	document.onmouseout=kedipaja2;
	window.setInterval(kediplagi,200);
}
function kediplagi() {
	if (hv=='underline') {hv='none'} else {hv='underline'}
	if (currentTag) { currentTag.style.textDecoration=hv }
}
function kedipaja() {
	src=event.toElement;
	if (src.tagName=="A") {
		currentTag=src; hv='none'; src.style.textDecoration=hv;
	}
}
function kedipaja2() {
	src=event.fromElement;
	if (src.tagName=="A") {
		currentTag=0; hv='none'; src.style.textDecoration=hv;
	}
}

/*
End of the 'links(blink)' function :)
*/

/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function
