/* Größe eines neuen Fensters an Bild anpassen, mit Klickschließ */
var imagewindow;

function sizewindow()
  {
  if(window.resizeTo)
    {
    imagewindow.resizeTo(imagewindow.document.images[0].width+40,imagewindow.document.images[0].height+40);
    imagewindow.focus;
    }
  }


function bild(pic)
  {
  src ="<html><body onLoad='opener.sizewindow()' style='margin:0px; padding:0px;'>";
  src+="<div align='center'><a href='javascript:window.close()'><img src='"+pic+"' border='0' alt='klicken um das Fenster zu schließen'></a>";
  src+="</div></body></html>";

  imagewindow=window.open("","","width=100,height=100,screenX=0,screenY=0,resizable=yes");
  imagewindow.document.open();
  imagewindow.document.write(src);
  imagewindow.document.close();
  }


/* Browserabhängige CSS-Einbindung */

function browsercheckcss()
{
	if(document.layers)		//ns
	{ 
		style = 'ns.css';
	}
	else
	{
		style = 'ie.css';
	}
}
