  
  /* goTo functions */
  
  function goToImgDir( sType, sDir ) {
    document.location='ptOverview.php?type='+sType+'&dir='+sDir;
  }
  
  function goToImg( sType, sDir, sImg ) {
    document.location='ptPhoto.php?type='+sType+'&dir='+sDir+'&img='+sImg;
  }
  
  /* -------------- */
  
  function mOverImg( pRow, pCol ) {
    /* image */
    changeClass('pImg'+pRow+'_'+pCol, 'photoImg_over');
    /* text */
    changeClass('pText'+pRow+'_'+pCol, 'photoText_over');
    /* row below */
    changeClass('pRLine'+pRow+'_'+pCol, 'pRLine_over');
    /* row above */
    ff = pRow-1;
    changeClass('pRLine'+ff+'_'+pCol, 'pRLine_over');
    /* coll left */
    ff = pCol-1;
    changeClass('pCLineO'+pRow+'_'+ff, 'pCLine_over');
    changeClass('pCLineT'+pRow+'_'+ff, 'pCLine_over');
    /* coll right */
    changeClass('pCLineO'+pRow+'_'+pCol, 'pCLine_over');
    changeClass('pCLineT'+pRow+'_'+pCol, 'pCLine_over');
  }
  
  function mOutImg( pRow, pCol ) {
    /* image */
    changeClass('pImg'+pRow+'_'+pCol, 'photoImg');
    /* text */
    changeClass('pText'+pRow+'_'+pCol, 'photoText');
    /* row below */
    changeClass('pRLine'+pRow+'_'+pCol, 'pRLine');
    /* row above */
    ff = pRow-1;
    changeClass('pRLine'+ff+'_'+pCol, 'pRLine');
    /* coll left */
    ff = pCol-1;
    changeClass('pCLineO'+pRow+'_'+ff, 'pCLine');
    changeClass('pCLineT'+pRow+'_'+ff, 'pCLine');
    /* coll right */
    changeClass('pCLineO'+pRow+'_'+pCol, 'pCLine');
    changeClass('pCLineT'+pRow+'_'+pCol, 'pCLine');
  }
  
  function changeClass( pElementId, pClassName ) {
    if( document.getElementById( pElementId ))
      document.getElementById(pElementId).className=pClassName;
  }
