﻿/*--------------------------------------------------------------------------
Version             2.1
Generierungsdatum: 01.03.2011 15:51:21
-----------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------
@method {
@description    hack IE
@modification{
    @date       16.03.2007
    @author     AR
    @Version    2.0
    @description
    @comment
 }
}
/*--------------------------------------------------------------------------
@method {
@name        openPopup(N, Mode)
@description    open new Popup-window
@comment
@input        N : url  ; Mode :mode
@modification{
    @date        10.04.2007
    @author    AR
    @Version    1.0
 }
}
-----------------------------------------------------------------------------*/
function openPopup(Url, Mode)
{
  if (Mode == 'print') window.open(Url, 'Print', 'width=582, height=630, scrollbars=yes, resizable=yes');
  if (Mode == 'image') window.open(Url, 'Image', 'width=582, height=630, scrollbars=yes, resizable=yes');
  if (Mode == 'gallery') window.open(Url, 'Gallery', 'width=582, height=630, resizable=yes, scrollbars=yes');
}
/*--------------------------------------------------------------------------
@method {
@name        popupbild(N)
@description    open new window
@comment
@input        N : url
@output
@bug
@dependency
@modification{
    @date        08.10.2004
    @author    kaeller; mediaman GmbH
    @Version    1.0
    @description
    @comment
 }
}
-----------------------------------------------------------------------------*/

function popupbild(N)
{
    w =eval('open("'+N+'","Popup1","height=600,width=410,menubar=no,location=no,resizable=no,status=no,toolbar=no,scrollbars=yes")');
    w.focus();
}
/*--------------------------------------------------------------------------
@method {
@name        contentpopup_01(N)
@description    open new window
@comment    width=800,height=600; different window naming
@input        N : url
@output
@bug
@dependency
@modification{
    @date        08.10.2004
    @author    kaeller; mediaman GmbH
    @Version    1.0
    @description
    @comment
 }
}
-----------------------------------------------------------------------------*/
function contentpopup_01(N)
{
    intZufall = Math.ceil(Math.random() * 1000) % 10000 + 1;
    strPopname = "Popup"+intZufall;
    w =eval('open("'+N+'","'+strPopname+'","height=400,width=582,menubar=no,location=no,resizable=yes,status=no,toolbar=no,scrollbars=yes")');
    w.focus();
}
/*--------------------------------------------------------------------------
@method {
@name        contentpopup_02(N,breite,hoehe)
@description    open new window
@comment
@input        N : url; breite: width; hoehe: height
@output
@bug
@dependency
@modification{
    @date        23.03.2005
    @author    kaeller; mediaman GmbH
    @Version    1.0
    @description
    @comment
 }
}
-----------------------------------------------------------------------------*/
function contentpopup_02(N,breite,hoehe)
{
    intZufall = Math.ceil(Math.random() * 1000) % 10000 + 1;
    strPopname = "Popup"+intZufall;
    w =eval('open("'+N+'","'+strPopname+'","height='+hoehe+',width='+breite+',menubar=no,location=no,resizable=yes,status=no,toolbar=no,scrollbars=yes")');
    w.focus();
}
/*--------------------------------------------------------------------------
@method {
@name        bildergallerie(N)
@description    open new window
@comment
@input        N : url
@output
@bug
@dependency
@modification{
    @date        08.10.2004
    @author    kaeller; mediaman GmbH
    @Version    1.0
    @description
    @comment
 }
}
-----------------------------------------------------------------------------*/
function bildergallerie(N)
{
    w =eval('open("'+N+'","Gallerie","height=600,width=600,menubar=no,location=no,resizable=no,status=no,toolbar=no,scrollbars=yes")');
    w.focus();
}
/*--------------------------------------------------------------------------
@method {
@name   schalter_k(id,id2)
@description  klaptt aus bzw. ein
@comment
@input    id, id2 : id's
@output
@bug
@dependency
@modification{
  @date   08.10.2004
  @author A. Reinhardt; cirquent GmbH
  @Version  1.0
  @description
  @comment
 }
}
-----------------------------------------------------------------------------*/
function schalter_k(id,id2){
 if(document.getElementById(id).style.display == 'block') {
  document.getElementById(id).style.display = 'none';
  document.getElementById(id2).title='aufklappen';
  document.getElementById(id2).className = 'karusell u g';
 } else {
  document.getElementById(id).style.display = 'block';
  document.getElementById(id2).title='zuklappen';
  document.getElementById(id2).className = 'karusell u o';
 }
}
