<!-- POSLEDNE_KOLO
function linkDisplay(selection) {
if (selection=="1") {
document.form.info.value="Rzeszoto - Ľ. Hanzel, Pinte, M. Drahno, Medveď (61. Milan Lukáč) - Knapp, Volf, Matej Kováč (39. Hoferica), Füzik (90. Šlahor) - Gaucho, Sľuka";
}
else if(selection=="2") {
document.form.info.value="Hajdúch - Laurinc, J. Novotný, Gallo, Pilár (16. Jurč) - Božok, J. Maslo (56. Lovás), Balaško, M. Bakoš - Kukoľ, Števko (66. Sifčevič)";
}
else if(selection=="3") {
document.form.info2.value="V poslednom zápase sme hrali skoro osemdesiat minút len s desiatimi hráčmi. Napriek tomu musím chlapcom poďakovať za bojovný výkon. I keď hneď v úvode stretnutia sme spravili dve hrubé chyby, dokázali sme zápas zvrátiť na našu stranu. Opäť sa však ukázalo, že súper má svoje kvality a dokázal vyrovnať. Myslím si, že i keď v druhom polčase sa hral medzišestnástkový futbal a nebolo veľa šancí, bol to dobrý duel. Remíza je zaslúžená.";
}
else if(selection=="4") {
document.form.info2.value="Na súpera sme sa celý týždeň pripravovali, lebo sme vedeli, že v domácom prostredí je silný. Pred Sencom sme mali rešpekt. V prvom polčase sme mali naviac, hrali sme o jedného hráča navyše. Bohužiaľ, nedokázali sme to využiť. Za predvedený výkon v druhom polčase si myslím, že remíza bola spravodlivá.";
}
}
//-->



<!-- SWITCH_CONTENT
/***********************************************
* Switch Content script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="no" //Collapse previously open content when opening present? (yes/no)

var contractsymbol='-' //HTML for contract symbol. For image, use: <img src="whatever.gif">
var expandsymbol='+' //HTML for expand symbol.


if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}


function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(curobj, cid){
var spantags=curobj.getElementsByTagName("SPAN")
var showstateobj=getElementbyClass(spantags, "showstate")
if (ccollect.length>0){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ //if "showstate" span exists in header
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function revivestatus(){
var inc=0
while (statecollect[inc]){
if (ccollect[inc].style.display=="block")
statecollect[inc].innerHTML=contractsymbol
else
statecollect[inc].innerHTML=expandsymbol
inc++
}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
var alltags=document.all? document.all : document.getElementsByTagName("*")
ccollect=getElementbyClass(alltags, "switchcontent")
statecollect=getElementbyClass(alltags, "showstate")
if (enablepersist=="on" && ccollect.length>0){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
if (ccollect.length>0 && statecollect.length>0)
revivestatus()
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate
//-->



/// --- web page functions --- ////////////////////////////////////////////////////////////////
function setValuesAndSubmit()
{	
	var arg=0;
	formName = setValuesAndSubmit.arguments[arg++]; 
	for(var i=arg; i<setValuesAndSubmit.arguments.length; i+=2) {
//		alert('document.' + formName + '.' + setValuesAndSubmit.arguments[i] + '.value="' + setValuesAndSubmit.arguments[i+1] + '"');
		eval('document.' + formName + '.' + setValuesAndSubmit.arguments[i] + '.value="' + setValuesAndSubmit.arguments[i+1] + '"');
	}
	eval('document.' + formName + '.submit()');
}

function timeTicks() {
	ctime = new Date();
	chour = ctime.getHours();
	cminute = ctime.getMinutes();
	cseconds = ctime.getSeconds();
	ctime = chour + ((cminute < 10) ? ':0' : ':') + cminute + ((cseconds < 10) ? ':0' : ':') + cseconds;
	ie4 = (document.all)? true:false;
	if (ie4) {
		spanclock.innerHTML = ctime;
		window.setTimeout('timeTicks();', 1000);
	};
}

function copyTextTo(objTo, objFrom) {
	objTo.innerHTML = nl2br(objFrom.value, 100);
}

function nl2br(text, x) {
  var i;
  for(i=0; i<x; i++) {
    text = text.replace(/\n/, "<br>");
  }
  return text;
}




<!-- MAPA_SERVERA
	var menuArray = new Array("menu1", "menu2", "menu3", "menu4", "menu5", "menu6", "menu7");
	var submenuArray = new Array("submenu11", "submenu12", "submenu14", "submenu15", "submenu21", "submenu22", "submenu31", "submenu41", "submenu42", "submenu51", "submenu52");
	var activeArray = new Array(new Array(null, null), new Array(null, null));
	
	function showMenu(obj, name, level) {
		hideMenu(level);
		menu = document.getElementById(name);
		menu.style.visibility = "visible";
		activeArray[level][0] = menu;
		cell = obj.parentElement;
		cell.style.backgroundColor = "#A09DB4";
		activeArray[level][1] = cell;
	}
	
	function hideMenu(level) {
		for (i = level; i < activeArray.length; i++) {
			if (activeArray[i][0] != null) {
				activeArray[i][0].style.visibility = "hidden";
				activeArray[i][0] = null;
				activeArray[i][1].style.backgroundColor = "";
				activeArray[i][1] = null;
			}
		}
	}
//-->



<!-- KOLKO_DNI_OSTAVA
function daysTill() {
  //----------  EDIT THE VARIABLES BELOW  ------------------
  // EDIT THE VARIABLES BELOW
  var day=	4 // Day
  var month=	3 // Month
  var year=	2006 //Year
  var event=	" "
  var end = 	" "
  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write('<strong>'+write +'</strong> '+end+' '+event)
}
//-->




<!-- POPUP_POCASIE
function pop_window(url) {
	var popit = window.open(url,'console','scrollbars=1,width=500,height=120');
}
//-->





<!-- CHECK_FORM
function check() {
if (document.formular.name.value=="") {
alert('Vyplnte prosim Vase meno a priezvisko!');
document.formular.name.focus();
return false;
}
if (document.formular.email.value=="") {
alert('Vyplnte prosim vas kontaktny email!');
document.formular.email.focus();
return false;
}
if (document.formular.text.value=="") {
alert('Vyplnte prosim text spravy!');
document.formular.text.focus();
return false;
}
}
//-->






<!-- DOWNLOAD
function downLoad(URL)
{
newWin2 = window.open(URL,'htmlWin2','width=800,height=600,toolbars=no,resizable=yes,menubar=no,scrollbars=yes,left=10,top=10');
}
//-->



<!-- BOOKMARK
function bookmark(url, description)
{
netscape="Najprv kliknite na OK, potom stlacte CTRL+D pre pridanie tejto stranky medzi Vase oblubene."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}
//-->



<!-- CHANGE_IMAGES
function changeImages() {
	if (document.images ) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
//-->




<!-- POPUP
function MM_openBrWindow(theUrl, winName, features) 
{
secondWindow=window.open(theUrl, winName, features);
}
//-->




<!-- DATE
function datum()
{
	var dat = new Date();
	var den = new Array("Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota");
	var mesiac = new Array("jan.", "feb.", "mar.", "apr.", "máj", "jún", "júl", "aug.", "sep.", "okt.", "nov.", "dec.");
	
	var plny = den[dat.getDay()] + ", " + dat.getDate() + ". " + mesiac[dat.getMonth()] + " " + dat.getFullYear();
	return plny;
}
//-->




<!-- CHANGE_IMAGES2
function preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function swapImgRestore() { //v2.0
  if (document.swapImgData != null)
    for (var i=0; i<(document.swapImgData.length-1); i+=2)
      document.swapImgData[i].src = document.swapImgData[i+1];
}

function swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.swapImgData;
  for (i=0; i < (swapImage.arguments.length-2); i+=3) {
    objStr = swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = swapImage.arguments[i+2];
  } }
  document.swapImgData = swapArray; //used for restore
}
//-->




<!-- CHANGE_IMAGES3
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->




<!-- PHOTOGALLERY
var imgCurrent = null;
function loadImage(name, src) {
	if (document.images) {
		if (imgCurrent != null) imgCurrent.style.borderColor = "#CCCCCC";
		document.images[name].style.borderColor = "#FF6600";
		document.images['obrazok'].src = src;
		imgCurrent = document.images[name];
	}
}
//-->



<!-- REG_FORM
function reg_form_check(){
	if((document.forms[0].email.value.indexOf("@")<1)||(document.forms[0].email.value.indexOf(".")<3)||(document.forms[0].email.value.length<5)){
		alert("Prosím, vyplňte Vašu funkčnú e-mailovú adresu!");
	}else{
		if(document.forms[0].login.value==""){
			alert("Prosím, vyplňte Vaše prihlasovacie meno!");
		}else{
			if((document.forms[0].heslo.value=="")||(document.forms[0].heslo.value!=document.forms[0].heslo2.value)){
				alert("Heslá sa nezhodujú!");
			}else{
				document.forms[0].submit();
			}
		}
	}
}
//-->



<!-- ZABUDOL_FORM
function zabudol_form_check(){
	if((document.forms[0].email.value.indexOf("@")<1)||(document.forms[0].email.value.indexOf(".")<3)||(document.forms[0].email.value.length<5)){
		alert("Prosím, vyplňte Vašu funkčnú e-mailovú adresu!");
	}else{
		if(document.forms[0].login.value==""){
			alert("Prosím, vyplňte Vaše prihlasovacie meno!");
		}else{
			document.forms[0].submit();
		}
	}
}
//-->



<!-- PROFIL_FORM
function profil_form_check(){
	if((document.forms[0].email.value.indexOf("@")<1)||(document.forms[0].email.value.indexOf(".")<3)||(document.forms[0].email.value.length<5)){
		alert("Prosím, vyplňte Vašu funkčnú e-mailovú adresu!");
	}else{
		if((document.forms[0].heslo.value!="")&&(document.forms[0].heslo.value!=document.forms[0].heslo2.value)){
			alert("Heslá sa nezhodujú!");
		}else{
			document.forms[0].submit();
		}
	}
}
//-->



<!-- CONFIRM LINK
function confirmLink(theLink, theTitle, theAppendix){
	var is_confirmed = confirm(theTitle);
	if (is_confirmed) {
	theLink.href += theAppendix;
	}
	return is_confirmed;
}
//-->