<!--

/* 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 addToFavorite(linkObj,addUrl,addTitle) { 
	if (document.all && !window.opera) { 
		window.external.AddFavorite(addUrl,addTitle); 
		return false; 
	} else if (window.opera && window.print) { 
		linkObj.title = addTitle; 
		return true; 
	} else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) { 
		if (window.confirm('Přidat oblibenou stránku mezi záložky?')) { 
			window.sidebar.addPanel(addTitle,addUrl,''); 
			return false; 
		} 
	}
	return false; 
}

var cartItemWindow = null;
var timer;
var mouseX = 0;
var mouseY = 0;
document.onmousemove = mouseMove;
function mouseMove(e) {
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
	mouseX = posx;
	mouseY = posy;
}
function showCartProductPicture(holder_id,img_id,url)
{
	clearTimeout(timer);
	hideCartProductPicture(cartItemWindow);
	cartItemWindow = document.getElementById(holder_id);
   	cartItemWindow.style.top = (mouseY+10)+'px';
	cartItemWindow.style.left = (mouseX+10)+'px';
	img = document.getElementById(img_id);
	img.src = url;
	cartItemWindow.style.display = 'block';
} 
function hideCartProductPicture()
{
	if( null != cartItemWindow )
	{
		cartItemWindow.style.display = 'none';
	}
} 
function setCartProductPictureHidden(e)
{
	timer = setTimeout("hideCartProductPicture()", 150);
} 


//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 -->

