<!--

//if (self != parent) { 
	//document.write('<DIV ALIGN="center"><B>UWAGA!</B> ramka - wróæ do <A HREF="index.php"><B>STRONY&nbsp;GŁÓWNEJ</B></A></DIV><HR><BR><BR>');
//	parent.location.href = 'index.php';
	
//	}



		function ShowImage(url,width,height) {
			width = parseInt(width)+20;
			height = parseInt(height)+27;
			SmallPhotoWindow = window.open(url,'SmallPhotoWindow','width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=no');
			SmallPhotoWindow.moveTo((screen.width - width)/2,(screen.height - height)/2);
			SmallPhotoWindow.focus();
		}



function UsersShowPhoto(uid, k, w, h) {
	url = "/users/foto.php?uid=" + uid + "&k=" + k;
	h = parseInt(h) + 200;
	w = parseInt(w) + 50;
	okno = window.open(url, "podglad_fotografii", "width=" + w + ", height=" + h + ", location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0");
}		
		
		function SetStatus(status_text) {   
			window.defaultStatus = status_text;
			window.status = status_text;
		}


		function op(url) {
			var Win = window.open(url,"displayWindow",'width=360,height=390,resizable=no,scrollbars=no,menubar=no' );
			//Win.moveTo((screen.width - width)/2,(screen.height - height)/2);
			//Win.focus();
		}

		function UstawWartosc(formularz,id_tow) {
			formularz.elements[1].value = id_tow+','+formularz.ilosc.value;
		}

		var isNav4, isIE4
		if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
			isNav4 = (navigator.appName == "Netscape") ? true : false
			isIE4 = (navigator.appName.indexOf("Microsoft" != -1)) ? true : false
		}


		if (isNav4) {
			document.captureEvents(Event.MOUSEDOWN);
		}


		function click(e) {
			if (isNav4 && e.which != 1) {
				alert ("Prawa autorskie zastrzeżone!");
				return false;
			}
			if (isNav4 && e.which == 1) {
				return true;
			}
			if (isIE4 && event.button==2) {
				alert("Prawa autorskie zastrzeżone!")
				return false;
			}
			return true;
		}

		
//	document.onmousedown=click



		function op_news(url, width, height) {
			 var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no' );
		}
		
		function okno(url,width,height) {
			width = parseInt(width);
			height = parseInt(height);
			okienko = window.open(url,'okienko','width=' + width + ',height=' + height + ',scrollbars=yes,toolbar=no,menubar=no,status=no,location=no,personalbar=no,directories=no,dependent=yes,resizable=yes');
			okienko.moveTo((screen.width - width)/2,(screen.height - height)/2);
			okienko.focus();
		}
		
		function foto(nid, w, h, r) {
			width = parseInt(w);
			height = parseInt(h);	
			if (r=="d") {
				url = "/gielda/foto.php?nid=" + nid + "&r=" + r;
				okno = window.open(url, "podglad_fotografii", "width=" + w + ", height=" + h + ", location=0, menubar=0, resizable=1, scrollbars=0, status=0, toolbar=0");
				okno.moveTo((screen.width - width)/2,(screen.height - height)/2);
				okno.focus();
			} else {
				url = "/gielda/foto.php?nid=" + nid + "&r=" + r;
				okno = window.open(url, "podglad_fotografii", "width=" + w + ", height=" + h + ", location=0, menubar=0, resizable=1, scrollbars=0, status=0, toolbar=0");
				okno.moveTo((screen.width - width)/2,(screen.height - height)/2);
				okno.focus();
			}
		}

function effectAppearFade(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}

//-->
