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

function changeImages() {
	if (document.images && (preloadFlag == false)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		about_over = newImage("images/about_over.gif");
		services_over = newImage("images/services_over.gif");
		goods_over = newImage("images/goods_over.gif");
		forclients_over = newImage("images/forclients_over.gif");
		contacts_over = newImage("images/contacts_over.gif");
		preloadFlag = true;
	}
}

function shownewwindow(Nameurl,Namewin,w,h)
{
window.open(""+Nameurl+"",""+Namewin+"","width="+w+",height="+h+",copyhistory=no,directories=no,menubar=yes,location=no,resizable=no,scrollbars=yes,toolbar=no");
}
