
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,455,650,30,2,'#ffffff');

} //End open_photo_vert

function open_photo_hor(photoName) {

  var photoLocation = photoName ;
  openNewWindow(photoLocation,600,500,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 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;

