var str_path = location.pathname.split("/");
var str_datei = str_path[str_path.length - 1].split(".");
var dat_name = str_datei[str_datei.length - 2];
var btn_name = dat_name;
var scr_path = "img/"+btn_name+"_f2.gif";

/********************/

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
/**************************/

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
/*
Random Image Script- By JavaScript Kit (http://www.javascriptkit.com) 
Over 400+ free JavaScripts here!
Keep this notice intact please
*/

function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[0]="pics/05.jpg"
myimages[1]="pics/11.jpg"
myimages[2]="pics/12.jpg"
myimages[3]="pics/13.jpg"
myimages[4]="pics/14.jpg"
myimages[5]="pics/15.jpg"
var ry=Math.floor(Math.random()*myimages.length)
document.write('<img src="'+myimages[ry]+'" border=0>')
}

function random_imglink1(){
var myimages1=new Array()
//specify random images below. You can have as many as you wish
myimages1[0]="pics_small/101.jpg"
myimages1[1]="pics_small/011.jpg"
myimages1[2]="pics_small/022.jpg"
myimages1[3]="pics_small/033.jpg"
myimages1[4]="pics_small/044.jpg"
var ry=Math.floor(Math.random()*myimages1.length)
document.write('<img src="'+myimages1[ry]+'" border=0>')
}

function random_imglink2(){
var myimages2=new Array()
//specify random images below. You can have as many as you wish
myimages2[0]="pics_small/161.jpg"
myimages2[1]="pics_small/30.jpg"
myimages2[2]="pics_small/31.jpg"
myimages2[3]="pics_small/32.jpg"
var ry=Math.floor(Math.random()*myimages2.length)
document.write('<img src="'+myimages2[ry]+'" border=0>')
}

/*
Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
For this script and more, visit http://www.javascriptkit.com

var delay=3333 //set delay in miliseconds
var curindex=0

var randomimages=new Array()

	randomimages[0]="pics/01.jpg"
	randomimages[1]="pics/03.jpg"
	randomimages[2]="pics/12.jpg"
	randomimages[3]="pics/13.jpg"
	randomimages[4]="pics/14.jpg"


function rotateimage()
{

if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length)))){
curindex=curindex==0? 1 : curindex-1
}
else
curindex=tempindex

	document.images.defaultimage.src=randomimages[curindex]
}

setInterval("rotateimage()",delay)

var delay1=4444 //set delay1 in miliseconds
var curindex1=0

var randomimages1=new Array()

	randomimages1[0]="pics_small/40.jpg"
	randomimages1[1]="pics_small/42.jpg"
	randomimages1[2]="pics_small/37.jpg"
	randomimages1[3]="pics_small/38.jpg"
	randomimages1[4]="pics_small/39.jpg"

function rotateimage1()
{

if (curindex1==(tempindex=Math.floor(Math.random()*(randomimages1.length)))){
curindex1=curindex1==0? 1 : curindex1-1
}
else
curindex1=tempindex

	document.images.defaultimage1.src=randomimages1[curindex1]
}

setInterval("rotateimage1()",delay1)

var delay2=5530 //set delay2 in miliseconds
var curindex2=0

var randomimages2=new Array()

	randomimages2[0]="pics_small/30.jpg"
	randomimages2[1]="pics_small/32.jpg"
	randomimages2[2]="pics_small/34.jpg"
	randomimages2[3]="pics_small/35.jpg"
	randomimages2[4]="pics_small/36.jpg"

function rotateimage2()
{

if (curindex2==(tempindex=Math.floor(Math.random()*(randomimages2.length)))){
curindex2=curindex2==0? 1 : curindex2-1
}
else
curindex2=tempindex

	document.images.defaultimage2.src=randomimages2[curindex2]
}

setInterval("rotateimage2()",delay2)
*/

