<!--
function show() {
	var vybrane=document.forms.fZajem.zajem.value;
	var pocet=document.forms.fZajem.zajem.options.length;
	for(i=1;i<pocet-1;i++) { //vse skryt
		eval("document.forms.fKalk"+i+".style.display='none'");
	}
	if(vybrane!='0') {//prvni polozka v seznamu je jen popisek
		eval("document.forms.fKalk"+vybrane+".style.display='inline'"); //zobrazit vybrane
		eval("document.forms.fKalk"+vybrane+".Kontaktni_osoba.focus()");
	}
	if(vybrane!='6') {
		document.forms.fKalk6.style.display='none';
	}
	if(vybrane=='0') {
		document.forms.fKalk6.style.display='inline';
	}
}
//-->

function preload()
{
	if (document.images)
	{	
		document.pole=new Array();
		for (i=0; i<preload.arguments.length; i++)
		{ document.pole[i]=new Image();
		  document.pole[i].src=preload.arguments[i];
		}	
	}
}

function getObj(objID) {
	if (document.getElementById){
		return document.getElementById(objID);
	} else if(document.all){
		return document.all[objID]
	} else if(document.layers){
		return document.layers[objID]
	}
}

function winopen(url){
		win = window.open(url);
		return (typeof(win)=='object') ? false : true;
}

function showDetails(loc) {
  detailWin = window.open(loc,"_detailWin", "width=600, height=270, menubar=no, scrollbars=no, resizable=no, left=0, top=0");
	if (detailWin) {
	  detailWin.focus();
		return false;
	} else {
		return true;
	} 
}

function showFullRef(id,type,w,h,url) { 
	window.location = url;
	return showRef(id,type,w,h);
}

function showRef(id,type,w,h) { 
  winReference = window.open("references_win.php?id="+id+"&type="+type,"_winRef", "width="+w+", height="+h+", menubar=no, scrollbars=no, resizable=no, left=0, top=0");
	if (winReference) {
	  winReference.focus();
		return false;
	} else {
		return true;
	} 
}

var highlighting;

function high(obj) {
	theobject=obj; 
	if (obj.style) { 
		if (obj.style.MozOpacity<1) { 
			obj.style.MozOpacity=parseFloat(obj.style.MozOpacity)+0.05; 
			if (obj.filters) obj.filters.alpha.opacity+=5;
			highlighting=setTimeout("high(theobject)",50); 
		}
	}
}

function low(obj) { 
	if(highlighting) clearTimeout(highlighting);
	if (obj.style) { 
		obj.style.MozOpacity=0.8;
		if (obj.filters) { 
			if (obj.filters) obj.filters.alpha.opacity =80;
		}
	}
}

function initLow(objs) { 
	for (var i in objs) {
			obj = getObj(objs[i]);
		if (obj.style) { 
			obj.style.MozOpacity=0.7;
			obj.style.filter = "alpha(opacity=80)";
		}
	}
}

function flashTheMotiv(flash) {
	if (flashCanPlay) {
		document.writeln('<style>#motiv { background-image:none; }</style>');
		document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="736" height="162">');
		document.writeln('	<param name=movie value="'+flash+'">');
		document.writeln('	<param name=quality value=high>'); 
		document.writeln('	<embed src="'+flash+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="736" height="162"></embed>');
		document.writeln('</object>');
	}
}

function flashTheNews(id, flash) {
	if (flashCanPlay) {
		getObj(id).style.display = "none";
		document.writeln('<object class="newsflash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="176" height="169">');
		document.writeln('	<param name=movie value="'+flash+'">');
		document.writeln('	<param name=quality value=high>'); 
		document.writeln('	<embed class="newsflash" src="'+flash+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="176" height="169"></embed>');
		document.writeln('</object>');
	}
}


var contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i]))) continue;
		var pluginVersion = words[i]; 
	}
	var flashCanPlay = pluginVersion >= contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0  && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

document.writeln('<style>body {scrollbar-face-color : #ffffff; scrollbar-track-color : #ffffff; scrollbar-arrow-color : #9eaec0; scrollbar-highlight-color : #9eaec0;}</style>');


