// JavaScript Document
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menu_ofirmie_over = newImage("images/menu_ofirmie_over.gif");
		menu_sklep_over = newImage("images/menu_sklep_over.gif");
		menu_promocje_over = newImage("images/menu_promocje_over.gif");
		menu_regulamin_over = newImage("images/menu_regulamin_over.gif");
		menu_rejestracja_over = newImage("images/menu_rejestracja_over.gif");
		menu_kontakt_over = newImage("images/menu_kontakt_over.gif");
		menu_koszyk_over = newImage("images/menu_koszyk_over.gif");		
		preloadFlag = true;
	}
}
function openPictureWindow_Fever(imageName,alt) {
        newWindow = window.open("","okno","scrollbars=no,width=20,height=20,left=50,top=50");
        newWindow.document.open();
        newWindow.document.write('<html><title>'+alt+'</title>');
        newWindow.document.write('<script TYPE="text/javascript">');
        newWindow.document.write('function dopasuj() {szer = document.fotografia.width;wys = document.fotografia.height;top.window.resizeTo(szer+10,wys+35);  napis.style.display = "none";}');
        newWindow.document.write('</script>');        
        newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"  onLoad="dopasuj();" onClick="window.close()">'); 
        newWindow.document.write('<center>');        
        newWindow.document.write('<div id="napis"><p style="font-family: Verdana,Tahoma,Arial; font-size: 11px; color: #003262; margin:10;">Otwieram plik...</p></div>');          
        newWindow.document.write('<img src='+imageName+' name="fotografia" alt='+alt+' vspace=0 hspace=0>');    
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}
function kolor(obj,stan) {
     obj.style.background = stan;
}
function przenies(link) {
        document.location=link;
}

// -->// JavaScript Document
