// ===========================================================================
// Name:  show_picture.js
// Autor: Werner A. Wolf
// Datum: 17. Juli 2003
// ===========================================================================

// ---------------------------------------------------------------------------
// --- So wie Benutzer es zuletzt geöffnet hatte.
// ---------------------------------------------------------------------------
function IgalShowPicture(parUrl)
{
   var Pars = 'menubar=no,statusbar=no,toolbar=no,dependent=yes,location=no,resizable=yes';

   window.open("/include/show_picture.html?" + parUrl,'IGALShowPicture', Pars);
}

// ---------------------------------------------------------------------------
// --- Mit fixer Breite öffnen, Höhe wie Benutzer es zuletzt geöffnet hatte.
// ---------------------------------------------------------------------------
function IgalShowPictureW(parUrl, parWidth)
{
   var Left = screen.width/2 - parWidth/2;    
   var Pars = 'width='+parWidth+',menubar=no,statusbar=no,'+
              'toolbar=no,dependent=yes,location=no,resizable=yes,left='+Left;

   window.open("/include/show_picture.html?" + parUrl,'IGALShowPicture', Pars);
}

// ---------------------------------------------------------------------------
// --- Fixe Breite und Höhe
// ---------------------------------------------------------------------------
function IgalShowPictureWH(parUrl, parWidth, parHeight)
{
   var Left = screen.width/2 - parWidth/2;    
   var Top = screen.height/2 - parHeight/2;
   var Pars = 'width='+parWidth+',height='+parHeight+',menubar=no,statusbar=no,'+
              'toolbar=no,dependent=yes,location=no,resizable=yes,left='+Left+
              ',top='+Top;

//   Win = window.open("/include/show_picture.html?http://www.igal.at/" + parUrl,'IGALShowPicture', Pars);
   Win = window.open("/include/show_picture.html?" + parUrl,'IGALShowPicture', Pars);
   Win.focus();
}

// ---------------------------------------------------------------------------
// --- Fixe Breite 425 und Höhe 283
// ---------------------------------------------------------------------------
function IgalShowFotoLiegend(parUrl)
{
   IgalShowPictureWH(parUrl, 425, 283);
}

// ---------------------------------------------------------------------------
// --- Fixe Breite 283 und Höhe 425
// ---------------------------------------------------------------------------
function IgalShowFotoStehend(parUrl)
{
   IgalShowPictureWH(parUrl, 283, 425);
}

// ---------------------------------------------------------------------------
// --- Fixe Breite 425 und Höhe 319
// ---------------------------------------------------------------------------
function IgalShowFotoLiegend2(parUrl)
{
   IgalShowPictureWH(parUrl, 425, 319);
}

// ---------------------------------------------------------------------------
// --- Fixe Breite 319 und Höhe 425
// ---------------------------------------------------------------------------
function IgalShowFotoStehend2(parUrl)
{
   IgalShowPictureWH(parUrl, 319, 425);
}
