
function showItem(showStr) {
  //Näitame content Cellis meid huvitavat infot
  document.getElementById('cont1').innerHTML = showStr;
  alert(showStr);
}

function open_photo_vert(photoName) {
    
  var photoLocation = photoName;  
  openNewWindow(photoLocation,395,650,30,2,'#ffffff');   
 
} //End open_photo_vert

function open_photo_hor(photoName) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,425,30,2,'#ffffff');   
 
} //End open_photo_vert

function open_photo_H(photoName,winHeight) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,winHeight+50,30,2,'#ffffff');   
 
} //End open_photo_horH

function open_photo_WH(photoName,winWidth, winHeight) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,winWidth,winHeight+50,30,2,'#ffffff');   
 
} //End open_photo_horH

function open_photoD_vert(photoName) {
    
  var photoLocation = photoName;  
  openNewWindow(photoLocation,455,650,30,2,'#ffffff');   
 
} //End open_photo_vert

function open_photoD_hor(photoName) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,510,30,2,'#ffffff');   
 
} //End open_photo_vert


  function toggleLayer(eTarget) {
    if (document.getElementById) {
    //browser vähemalt 5.0
      document.getElementById(eTarget.id).style.display = (eTarget.style.display == "none") ? "block" : "none"                        
    } //End document.getElementById Then
    else {
    //browser vanavõitu
      eTarget.style.display = (eTarget.style.display == "none") ? "block" : "none"        
    } //End document.getElementById else
  } //End of toggleLayer()  


function openNewWindow(photoLocation, winWidth, winHeight, topX, topY,win_bgColor) {  
  
  var newWinParameters = 'toolbars=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,titlebar=no,resizable=yes,width=';
  newWinParameters = newWinParameters+winWidth+',height='+winHeight+',left='+topX+',top='+topY;
  
  newWin = window.open('','PILDIAKEN',newWinParameters);
 
  if (!(self.opener)) {newWin.opener = top.self;} 
  
  newWin.resizeTo(winWidth,winHeight);  
  newWin.document.writeln('<HTML><HEAD><TITLE>PILDIAKEN</TITLE></HEAD>');
  newWin.document.writeln('<BODY bgColor='+win_bgColor+' marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">');
  newWin.document.writeln('<img src="'+photoLocation+'">');
  newWin.document.writeln('</BODY></HTML>');
  newWin.document.close();
  //suleme kirjutamiseks!
  if (window.focus)  {newWin.focus();}  

} //End openNewWindow


var scrWidth=800;

  
