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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

if (document.images) {
  var home = new Image(); 
  home.src = "img/vankin.gif";
  var home_over = new Image();
  home_over.src = "img/vankin_over.gif";

  var travel = new Image(); 
  travel.src = "img/travel.gif";
  var travel_over = new Image();
  travel_over.src = "img/travel_over.gif";

  var work = new Image(); 
  work.src = "img/work.gif";
  var work_over = new Image();
  work_over.src = "img/work_over.gif";

  var techno = new Image(); 
  techno.src = "img/techno.gif";
  var techno_over = new Image();
  techno_over.src = "img/techno_over.gif";

  var contact = new Image(); 
  contact.src = "img/contact.gif";
  var contact_over = new Image();
  contact_over.src = "img/contact_over.gif";
} 
function v1() {
  if (document.images)
    document.images.vankin.src = home.src;
}  
function v2() {
  if (document.images)
    document.images.vankin.src = home_over.src;
}
function v3() {
  if (document.images)
    document.images.travel.src = travel.src;
}  
function v4() {
  if (document.images)
    document.images.travel.src = travel_over.src;
}
function v5() {
  if (document.images)
    document.images.work.src = work.src;
}  
function v6() {
  if (document.images)
    document.images.work.src = work_over.src;
}
function v7() {
  if (document.images)
    document.images.techno.src = techno.src;
}  
function v8() {
  if (document.images)
    document.images.techno.src = techno_over.src;
}
function v9() {
  if (document.images)
    document.images.contact.src = contact.src;
}  
function v10() {
  if (document.images)
    document.images.contact.src = contact_over.src;
}


var openpict;  
var openpictrelpath;

function OpenNewWindow(Picture,Breit,Hoch)
{ openpict = new Image();
  openpict.onload=OpenNewWindowTeil2;
  openpictrelpath=Picture;
  openpict.src=Picture; 
 }

function  OpenNewWindowTeil2()
 { ysize = openpict.height + 32;
   xsize = openpict.width + 8;
  // xsize = Breit+10;// Zusatz für Rand rechts und links
  // ysize = Hoch+32; //Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);

	NewWindow=window.open("","a","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos);
	NewWindow.document.write ("<html><head><title>Erwin Rausch, Fassgroßhandel");
	NewWindow.document.write ("</title></head>");
 NewWindow.document.write ("<body bgcolor='#ffffff' onload='focus()' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	NewWindow.document.write ("<table border='0' bgcolor='#ffffff' cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center' valign='middle'>");
	NewWindow.document.write ("<a onClick='self.close()'><img src='");
	NewWindow.document.write (openpict.src);
	NewWindow.document.write ("' border='0' alt='' width='" + (xsize-8) + "' height='" + (ysize-32) + "'></a>");
	NewWindow.document.write ("</tr></table>");
	NewWindow.document.write ("</body></html>");
	NewWindow.document.close();
                     NewWindow.resizeTo(xsize,ysize); 
}


//javascript:OpenNewWindow('/images/pu_po_1_gro.jpg',198,119)



  function kontaktanzeigen(filename)
  {
  	pathname = "http://www.spiegel.de";
 	 window.open (pathname, 'newWin', 'scrollbars=no,status=no,menubar=no,directories=no,location=no,toolbar=yes');
  }

