function show_big(obr,popisek,styl) {
	if (typeof(document.body.onresize)!="undefined") {
		if (popisek) popisek=popisek.replace(/%/g,"%25").replace(/&/g,"%26")
		else popisek=""
		if (!styl) styl=""
		window.open("obrazek.asp?obr="+obr+"&styl="+styl+"&popisek="+popisek+"&from="+self.location,"show_big","toolbar=no,scrollbars=no,location=no,status=no,width=200,height=100,resizable=no,menubar=no,directories=no")
	} else {
		window.open(obr,"show_big")
	}
}

//Otevira nove okno bez navigacnich prvku
function winOpen(url,w,h, winname,scroll) {
	if (scroll!='no')scroll='yes';
	window.open(url, winname, "toolbar=no,location=no,scrollbars="+scroll+",directories=no,status=no,menubar=no,resizable=yes,width="+w+",height="+h+",left=10,top=10");
}

//Nastavuje velikost popUp okna podle načteného obrázku. Volá se v body popUp okna na událost onLoad.
//Obrázek podle kterého so okno nastavuje musí mít attribut id="MyImg"
function setWindowSize(){
	var ImgObj=document.getElementById('MyImg');
	var newWindowWidth = ImgObj.width;
	var newWindowHeight = ImgObj.height;
	if (navigator.appName.indexOf("Microsoft") != -1) {
		newWindowWidth = newWindowWidth+10
		newWindowHeight = newWindowHeight+25;
	}
	self.resizeTo(newWindowWidth,newWindowHeight)
}
// --- Naviagtes back one throught the History list
function GoBack()
 {
  parent.history.back()
 }

