// JavaScript Document

function Hover(co){
		delka = (co.src.length - 6);
		retezec = co.src.substring(0, delka) + '.jpg';
		co.src =  retezec;
}

function Normal(co){
		delka = (co.src.length - 4);
		retezec = co.src.substring(0, delka) + '_h.jpg';
		co.src =  retezec;
}

function LoadImage(url,width,height) {
	okno=window.open(url,'detail','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,resize=yes,status=yes,width='+width+',height='+height+',screenX='+getCenterW(width)+',screenY='+getCenterH(height)+',top='+getCenterH(height)+',left='+getCenterW(width));
	okno.focus();
}
function getCenterW(width) {
	return parseInt( eval( (screen.width-parseInt(width))/2 ) );
}
function getCenterH(height) {
	return parseInt( eval( (screen.height-parseInt(height))/2 ) );
}
function checksize() {
	w=document.getElementById("obr").width;
	h=document.getElementById("obr").height;
	if (w>800) {ww=800;} else {ww=w;}
	if (h>600) {hw=600;} else {hw=h;}
	window.resizeTo(ww+31,hw+70);
	window.moveTo(getCenterW(ww+31),getCenterH(hw+70));
}