   var but1=""
   var but2="" 
window.onerror=null;
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
 ver = "yes";
if (browserVer < 4) ver = "no";
if(ver == "yes") 
{
przycisk1a = new Image (199,15);       
przycisk1a.src = "images/stronaglowna.gif";
przycisk1b = new Image (199,15);
przycisk1b.src = "images/stronaglowna1.gif";

przycisk2a = new Image (199,15);       
przycisk2a.src = "images/lekarze.gif";
przycisk2b = new Image (199,15);
przycisk2b.src = "images/lekarze1.gif";

przycisk3a = new Image (199,15);       
przycisk3a.src = "images/specjalizacja.gif";
przycisk3b = new Image (199,15);
przycisk3b.src = "images/specjalizacja1.gif";

przycisk4a = new Image (199,15);       
przycisk4a.src = "images/godziny.gif";
przycisk4b = new Image (199,15);
przycisk4b.src = "images/godziny1.gif";

przycisk5a = new Image (199,15);       
przycisk5a.src = "images/badania.gif";
przycisk5b = new Image (199,15);
przycisk5b.src = "images/badania1.gif";

przycisk6a = new Image (199,15);       
przycisk6a.src = "images/zdjecia.gif";
przycisk6b = new Image (199,15);
przycisk6b.src = "images/zdjecia1.gif";

przycisk7a = new Image (199,15);       
przycisk7a.src = "images/kontakt.gif";
przycisk7b = new Image (199,15);
przycisk7b.src = "images/kontakt1.gif";



}

function zmien (nrPrzycisku, nazwaObrazka)

{
 if (ver=="yes")
  {
	document.images[nrPrzycisku-1].src = eval (nazwaObrazka + ".src");
  }
}



Nowe=null;
function Otworz(w,s,l,t,src)
{
	if (Nowe!=null)
	{
		Nowe.close();
		Nowe=null;
	}
	Nowe=window.open("", "","toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height="+w+",width="+s+",left="+l+",top="+t);
	Nowe.document.write("<HTML><HEAD><title>DomMED - mapka</title><STYLE>BODY{BACKGROUND-REPEAT:no-repeat}</STYLE></HEAD><BODY BACKGROUND="+src+"></BODY></HTML>");
	Nowe.document.close();
	Nowe.focus();
}


function displayWindow(url, width, height, left, top) 
{
	if (Nowe!=null)
	{
		Nowe.close();
		Nowe=null;
	}
        Nowe = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ', left=' + left +', top=' + top +',resizable=0,scrollbars=yes,menubar=no' );
Nowe.focus();
}
//-->

//skrypt do dopasowania rozmiaru okienka do zdjêcia
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;


// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 100;
defaultHeight = 100;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}

//alert("IE= " + isIE + "   ;" + "NN= " + isNN);
var optNN='toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,scrolling=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
//var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
var optIE='toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,scrolling=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle,idzdjecia_prev,idzdjecia_next){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" /><title>Pobieram...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');

writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('PositionX = (opener.screen.width - document.images[0].width)/2;')
writeln('PositionY = (opener.screen.height - document.images[0].height)/2;');
writeln('moveTo(PositionX,PositionY);');
writeln('window.resizeTo(100,100);');
writeln('width=document.images[0].width;');
writeln('height=document.images[0].height;');//height+30
writeln('window.resizeTo(width,height);}');

writeln('if (isNN){');
writeln('PositionX = (opener.screen.width - document.images["George"].width)/2;')
writeln('PositionY = (opener.screen.height - document.images["George"].height)/2;');
writeln('moveTo(PositionX,PositionY);');
writeln('window.innerWidth=document.images["George"].width;');
writeln('window.innerHeight=document.images["George"].height+20;window.innerHeight=document.images["George"].height;}}');//height+36


writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor="#DFDBD0" scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor="#DFDBD0" scroll="no" onload="reSizeToImage();doTitle();self.focus()"; onclick="self.close();">');
//<!-- onblur="self.close()"-->

if (!AutoClose) writeln('<img name="George" src='+imageURL+' style="display:block">');
else writeln('<img name="George" src='+imageURL+' style="display:block" title="Klikinij aby zamkn±æ.">');


close();		
}}

