
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,405,625,30,2,'#ffffff');   
 
} //End open_photo_vert


function open_photo_vertW(photoName,winWidth) {
    
  var photoLocation = photoName;  
  openNewWindow(photoLocation,winWidth,600,30,2,'#ffffff');   
 
} //End open_photo_vert


function open_photo_vert2(photoName) {
    
  var photoLocation = photoName;  
  openNewWindow(photoLocation,375,600,30,2,'#ffffff');   
 
} //End open_photo_vert

function open_photo_vert3(photoName) {
    
  var photoLocation = photoName;  
  openNewWindow(photoLocation,330,600,30,2,'#ffffff');   
 
} //End open_photo_vert


function open_photo_hor(photoName) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,412,30,2,'#ffffff');   
 
} //End open_photo_vert

function open_photo_horH(photoName,winHeight) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,winHeight,30,2,'#ffffff');   
 
} //End open_photo_horH


function open_photo_hor45(photoName) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,600,472,30,2,'#ffffff');   
 
} //End open_photo_hor45

function open_photo_sq(photoName) {
    
  var photoLocation = photoName ;  
  openNewWindow(photoLocation,575,600,30,2,'#ffffff');   
 
} //End open_photo_sq


function openNewWindow(photoLocation, winWidth, winHeight, topX, topY,win_bgColor) {  
  
  var newWinParameters = 'toolbars=no,location=no,directories=no,status=no,menubar=no,scrollbars=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;
function setTablesWidth() {
  if (document.getElementById) {
  //DHTML võimaldatud
    scrWidth = self.screen.width;
    document.getElementById('menyyTabel').width = 750; 
    document.getElementById('sisuTabel').width  = 750;
    if (scrWidth <= 800) {
    //monitor on 15''      
      document.getElementById('infoCell').background  = "Images/glassBack3.jpg";
    }  //Ennd if 15'' monitor
    else if (scrWidth > 800) {
      
      document.getElementById('infoCell').background  = "Images/glassBack39.jpg";
    }
  } //End if DHTML  

} //End setTablesWidth
