
function showimg (url, width, height)
{
	width += 30;
	height += 20;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	if (width  > aw-20) width = aw-20;
	if (height > ah-20) height = ah-20;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2;
	
	window.open("ImageShow.aspx?name=" + url, "pic", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=0,status=1,toolbar=0,resizable=1").focus();
}



function showimgNabidka (idnabidka, idobrazek, lang, width, height)
{
	width = 900;
	height = 700;
	
	aw = screen.availWidth;
	ah = screen.availHeight;
	
	if (width  > aw-40) width = aw-40;
	if (height > ah-80) height = ah-80;
	
	xpos = (aw - width)/2;
	ypos = (ah - height)/2 - 30;
	
	window.open("NabidkaImageShow.aspx?idnabidka=" + idnabidka + "&idobrazek=" + idobrazek + "&lang=" + lang, "pic", "width=" + width + ",height=" + height + ",left=" + xpos + ",top=" + ypos + ",scrollbars=1,menubar=0,status=1,toolbar=0,resizable=1").focus();
}

//vykresli flash
function WriteTFlash(src,width,height){
	html = "<object type=\"application/x-shockwave-flash\" data=\""+src+"\" width=\""+width+"\" height=\""+height+"\" id=\"topicflash\" name=\"topicflash\">   <param name=\"movie\" value=\""+src+"\" /> <PARAM NAME=\"quality\" VALUE=\"high\">  <PARAM NAME=\"bgcolor\" VALUE=\"white\"><EMBED src=\""+src+"\" quality=high bgcolor=#FFFFFF  WIDTH=\""+width+"\" HEIGHT=\""+height+"\" NAME=\"topicflash\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" swLiveconnect=true> </EMBED></object>";
	document.write(html);
}

