
var bro=navigator.appName;
var ver=parseInt(navigator.appVersion);
var bro_ok=0;
if((bro=="Netscape" && ver>=3) || (bro=="Microsoft Internet Explorer" && ver>=4))
	bro_ok=1;

var sel_id=0;
//------------------------------------------------------------------
if(bro_ok)
{	
   
	m1on=new Image;
	m1on.src="img/menuarr.gif";
	m1off=new Image;
	m1off.src="img/0.gif";


}
//------------------------------------------------------------------
function img_on(img_name)
{
	if(bro_ok)
	{
		document [img_name].src=eval("m1on.src");
	}
}
//------------------------------------------------------------------
function img_off(img_name)
{
	if(bro_ok)
	{
			document [img_name].src=eval("m1off.src");
	}
	//window.status="sel_id:"+sel_id;
}

//------------------------------------------------------------------
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 picopen(id,x,y)
{
	//x+=12;
	//y+=77;
	window.open("imgs.php?img_id="+id+'"',"image","menubar=yes,status=yes,resizable=yes,width="+x+",height="+y+'"');
}

