
function Filtr(link,width,height,s)
{
	
	win = open (link,'_blank','menubar=0,resizable=0,scrollbars='+s+',toolbar=0,status=0,width='+width+',height='+height+',left=50,top=50');
}

function showBigPic(file,width,height,text){
	window.open('show_big.php?file='+file+'&text='+text,"win","width="+width+",height="+height);
}

function setPointer(theRow, thePointerColor, theNormalBgColor,theDiv,theAct)
{
    var theCells = null;

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    var currentColor = null;
    var newColor     = null;
    // Opera does not return valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].setAttribute('bgcolor', newColor, 0);
        } // end for
    }
    else {
        currentColor = theCells[0].style.backgroundColor;
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].style.backgroundColor = newColor;
        }
    }

    if  (theAct == 'hide'||theAct == 'show') {
	z_showHideLayers(theDiv,theAct);
	}
    return true;
} // end of the 'setPointer()' function

function hiddenShow()
{
var div = document.getElementById('s1');
 div.className='hidden';

}
function hide(evt)
{
   if (evt.target != document.getElementById('but'))
   {
      div.className='hidden';
   }
}


function showme() {
hiddenShow();
}







