// Copyright (C) 1999 Dan Steinman Available at http://www.dansteinman.com/dynapi/
function BrowserCheck() {
        var b = navigator.appName
        if (b=="Netscape") this.b = "ns"
        else if (b=="Microsoft Internet Explorer") this.b = "ie"
        else this.b = b
        this.v = parseInt(navigator.appVersion)
        this.ns = (this.b=="ns" && this.v>=4)
        this.ns4 = (this.b=="ns" && this.v==4)
        this.ns5 = (this.b=="ns" && this.v==5)
        this.ie = (this.b=="ie" && this.v>=4)
        this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
        this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
        if (this.ie5) this.v = 5
        this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

//*************
function OpenWindow(theURL,winName,winCenter,x,y,features) {
  var param = "width=" + x + ",height=" + y + ( features=="" ? "" : "," + features );
  var win = window.open(theURL,winName,param);

  if (theURL.indexOf('http://') == -1) {
    if (winCenter) win.moveTo((screen.width-x)/2,(screen.height-y)/2);
    win.focus();
  }
}
var newwin;
function popup(url, name, eigenschaften)
   {
   newwin = window.open(url, name, eigenschaften);

   }
//**************
ln        =         1;
tid        =         null;
ip        =        '../../images/menu/p';
g        =        '.gif'
d        =        'Div'

//******************************************************************
//bild-und layerfunktionen: tauschen, verstecken/zeigen, verschieben
//ly = layername; target=bildname; img = bildpfad; lp = linke position; tp = obere position
//ln = zahle der layers in netscaoe, fuers dokument feststellen, damit keine fehler entstehen
// wenn noch nicht alle layers verfuegbar sind.

function rpi (target,img,ly)        {//alert(target + ','+img+','+ly)
                                if (is.ie)         {document[target].src = img}
                                if (is.ns4)         {if(ly!="null") { document.layers[eval('"'+ly+'"')].document[target].src=img}
                                                else                 { document[target].src = img}}
                                if (is.ns5)         {document[target].src = img}
                        }

function showly(ly)         {
                                if (is.ns4)         {if(document.layers.length>ln)         { document.layers[eval('"'+ly+'"')].visibility="visible"}}
                                if (is.ie)         {document.all[''+ly].style.visibility = "visible"}
                                if (is.ns5)         {var lytg=document.getElementById(ly);lytg.style.visibility='visible'}
                          }

function hidely(ly)         {
                                if(is.ns4)        {if(document.layers.length>ln)  {document.layers[eval('"'+ly+'"')].visibility="hide"}}
                                 if (is.ie)         {document.all[''+ly].style.visibility = "hidden"}
                                if (is.ns5)         {var lytg=document.getElementById(ly); lytg.style.visibility='hidden'}
                        }

function setpos (ly,lp,tp)
                        {ly=eval('"'+ly+'"')
                                if (is.ie)           {document.all[''+ly].style.left=lp;  document.all[''+ly].style.top=tp }
                                if (is.ns4)        {document.layers[ly].top=tp;        document.layers[ly].left=lp}
                                if (is.ns5)         {var lytg=document.getElementById(ly); lytg.style.left=lp; lytg.style.top=tp}
                        }


//*******************
//buttons hi und lo
outs=new Array(8);
tid=new Array(8);
for (n=1; n<8; n++)  { tid[n]=null}


function ov(nr)         {clearalltids();hideall(nr);
                         showly('p'+nr+'hiDiv');showly('p'+nr+'smDiv');showly('p'+nr+'smDivbg');}

function out(nr)         {outs[nr]="hidely(\'p"+nr+"smDiv\');hidely(\'p"+nr+"hiDiv\');hidely(\'p"+nr+"smDivbg\')";
                         tid[nr]=setTimeout(outs[nr],750)}


function hideall(nr)        {for (n=1; n<8; n++)         {
                                                       if (nr!=n)
                                                        {hidely('p'+n+'hiDiv');hidely('p'+n+'smDiv');hidely('p'+n+'smDivbg');}
                                                }
                        }

function clearalltids() {for (n=1; n<8; n++)  {clearTimeout(tid[n]); tid[n]=null}}

function ld() {}
function uld() {clearalltids()}

function shov() {
	hidely(loshop);
	showly(hishop);
				}

function shout() {
	hidely(hishop);
	showly(loshop);
				}




