<!--

/* JavaScript (c) Jakub Mahdal 2002 */

var favoriteAdded = false; // je stranka pridana k oblibenym?


/* ----------------- definice metod --------------------------- */	

//pridat k oblibenym - pod jmenem jako je v titulku stranky
function addFavorites() {
	if(!(favoriteAdded)){
		window.external.addFavorite(pageurl, document.title + pagename);
		favoriteAdded = true;
	}
}


//fce na otevreni obrazku v novem okne bez ovladacich listicek 
function openPictText(new_url, new_title, descp, w, h){
	width = 50 + w;
	height = h + 100;
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow = window.open('','','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height);
	newWindow.moveTo(x,y);
	newDoc = newWindow.document;
	newContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
	newContent += '<title>'+new_title+'</title><link rel="StyleSheet" href="css/styles.css" type="text/css">';
	newContent += '</head><body bgcolor="#000" style="margin: 0px;">';
	newContent += '<table width="100%" border="0" align="center"><tr><td width="20">&nbsp;&nbsp;</td>';
	newContent += '<td valign="top">';
	newContent += '<table width="'+w+'" border="0" cellspacing="0" cellpadding="0" align="left">';
	newContent += '<tr><td align="center"><img src="'+new_url+'" alt="" width="'+w+'" height="'+h+'" hspace="0" border="0" align="middle" class="fotoBig"></td></tr>';
	newContent += '<tr><td align="center"><br><strong style="color:#fff;font-family: Verdana, Tahoma, sans-serif;">'+new_title+'</strong></td></tr>';
	newContent += '<tr><td align="center"><p style="margin:0px 20px 0px 20px;color:#fff;font-family: Verdana, Tahoma, sans-serif;font-size:8pt;text-align:left;">'+descp+'</p></td></tr></table>';
	newContent += '</td><td width="20">&nbsp;</td></tr></table></body></html>';
	newDoc.write(newContent);
	newDoc.close();
}

//fce na otevreni obrazku v novem okne bez ovladacich listicek 
function openPictText2(new_url, new_title, w, h){
	width = 50 + w;
	height = 50 + h;
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow = window.open('','','toolbar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes,copyhistory=no,width='+width+',height='+height);
	newWindow.moveTo(x,y);
	newDoc = newWindow.document;
	newContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">';
	newContent += '<title>'+new_title+'</title>';
	newContent += '</head><body bgcolor="White" style="margin: 0px;">';
	newContent += '<table width="100%" border="0" align="center"><tr><td width="20">&nbsp;&nbsp;</td>';
	newContent += '<td valign="top">';
	newContent += '<table width="'+w+'" border="0" cellspacing="0" cellpadding="0" align="left">';
	newContent += '<td align="center"><br></td></tr>';
	newContent += '<tr><td align="center"><img src="'+new_url+'" alt="" width="'+w+'" height="'+h+'" hspace="0" border="0" align="middle" class="fotoBig"></td></tr>';
	newContent += '<tr><td align="center"><br></td></tr></table>';
	newContent += '</td><td width="20">&nbsp;</td></tr></table></body></html>';
	newDoc.write(newContent);
	newDoc.close();
}

//fce na otevreni obrazku v novem okne bez ovladacich listicek 
function openHTML(new_url, new_title, w, h){
	width = 50 + w;
	height = 100+ h;	
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow = window.open(new_url,'','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height);
	newWindow.moveTo(x,y);
}

//fce na vymenu detailniho obrazku v katalogu 
function changeDetailImg(new_url,id_image,new_link,id_link){
	image = document.getElementById(id_image);
	image.src = new_url;
	link = document.getElementById(id_link);
	link.href = new_link;
}


<!-- konec skriptu -->

