		var wait=0;
	    var wait2=0;
	    var state="up";
	    var moving="";
		var current=-1;
		
		function clearInt()
		{
		if(current!=-1)
		{
		 clearInterval(wait2); 
		} 
		 //var d = new Date();
		 //document.getElementById('log').innerHTML+='PREKINI TIMER. ms: ' + d.getMilliseconds() + '<br><br>';
		}
		
<!-- -->		

var hidden = false;
function getElementsByClass(searchClass, domNode, tagName) {
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) {
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1)
		el[j++] = tags[i];
	}
	return el;
}
 
function toggle_hideme()
{
	var hellos = getElementsByClass("okv1", null, "div");
	for(var i = 0; i < hellos.length; i++)
	{
		hellos[i].style.backgroundImage = "url(images/okvir.png)";
	}
}

function toggle_hideme1()
{
	var hellos = getElementsByClass("okvnaz", null, "div");
	for(var i = 0; i < hellos.length; i++)
	{
		hellos[i].style.marginTop  = 31+"px";
	}
}

function toggle_hideme2()
{
	var hellos = getElementsByClass("okvlet", null, "div");
	for(var i = 0; i < hellos.length; i++)
	{
		hellos[i].style.marginTop  = 65+"px";
	}
}

function toggle_hideme3()
{
	var hellos = getElementsByClass("okvst", null, "div");
	for(var i = 0; i < hellos.length; i++)
	{
		hellos[i].style.marginTop  = 99+"px";
	}
}

function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
  
function load1() { 
setHheight();
if (document.getElementById) 
{ // DOM3 = IE5, NS6 
	if(document.getElementById('webfantasy')!=null) { document.getElementById('webfantasy').style.visibility = 'visible'; }
	if(document.getElementById('upperpic')!=null) { document.getElementById('upperpic').style.visibility = 'visible'; }
	if(document.getElementById('bottompic')!=null) { document.getElementById('bottompic').style.visibility = 'visible'; } 
	if(document.getElementById('bottompic1')!=null) { document.getElementById('bottompic1').style.visibility = 'visible'; } 	
	if(document.getElementById('leftpic')!=null) { document.getElementById('leftpic').style.visibility = 'visible'; } 
	if(document.getElementById('rightpic')!=null) { document.getElementById('rightpic').style.visibility = 'visible'; } 
	if(document.getElementById('backpic')!=null) { document.getElementById('backpic').style.visibility = 'visible'; } 
	if(document.getElementById('vecjaslika')!=null) { document.getElementById('vecjaslika').style.visibility = 'visible'; } 
	if(document.getElementById('vecjaslika1')!=null) { document.getElementById('vecjaslika1').style.visibility = 'visible'; } 	
	if(document.getElementById('rodovnikmenu')!=null) { document.getElementById('rodovnikmenu').style.visibility = 'visible'; } 		
	if(document.getElementById('bordura')!=null) { document.getElementById('bordura').style.visibility = 'visible'; } 	
	if(document.getElementById('zastavca')!=null) { document.getElementById('zastavca').style.visibility = 'visible'; } 
	if(document.getElementById('container')!=null) { document.getElementById('container').style.visibility = 'visible'; } 		
	if(document.getElementById('dekords')!=null) { document.getElementById('dekords').style.visibility = 'visible'; } 	
	//if(document.getElementById('loader')!=null) { document.getElementById('loader').style.visibility = 'hidden'; } 		
	
	if(document.getElementById('naslov')!=null) { document.getElementById('naslov').style.marginTop = parseFloat(((document.getElementById('naslov').style.marginTop).toString()).substr(0,4))+500+'px'; }
	if(document.getElementById('besedilo_1')!=null) 
	{ 
	  document.getElementById('besedilo_1').style.marginTop = parseFloat(((document.getElementById('besedilo_1').style.marginTop).toString()).substr(0,4))+500+'px'; 
	  document.getElementById('besedilo_1').style.height="268px";
	}
	if(document.getElementById('besedilo_2')!=null) 
	{ 
	  document.getElementById('besedilo_2').style.marginTop = parseFloat(((document.getElementById('besedilo_2').style.marginTop).toString()).substr(0,4))+700+'px'; 
	}	
	if(document.getElementById('besedilo_3')!=null) 
	{ 
	  document.getElementById('besedilo_3').style.marginTop = parseFloat(((document.getElementById('besedilo_3').style.marginTop).toString()).substr(0,4))+700+'px'; 
	}	
	if(document.getElementById('dyear')!=null) 
	{ 
	  document.getElementById('dyear').style.marginTop = parseFloat(((document.getElementById('dyear').style.marginTop).toString()).substr(0,4))+700+'px'; 
	  document.getElementById('dleft').style.marginTop = parseFloat(((document.getElementById('dleft').style.marginTop).toString()).substr(0,4))+700+'px'; 
	  document.getElementById('dright').style.marginTop = parseFloat(((document.getElementById('dright').style.marginTop).toString()).substr(0,4))+700+'px'; 
	}		
	if(document.getElementById('arhiv')!=null) { document.getElementById('arhiv').style.marginTop = parseFloat(((document.getElementById('arhiv').style.marginTop).toString()).substr(0,4))+700+'px'; }	

	if(document.getElementById('dropdownmenu')!=null) { document.getElementById('dropdownmenu').style.marginTop = parseFloat(((document.getElementById('dropdownmenu').style.marginTop).toString()).substr(0,4))+500+'px'; }	
	//document.getElementById('dropdownmenu').style.marginTop=-49+'px';
	if(document.getElementById('besedilo')!=null) { document.getElementById('besedilo').style.visibility = 'visible'; }
	if(document.getElementById('okvirji')!=null) { document.getElementById('okvirji').style.marginTop = parseFloat(((document.getElementById('okvirji').style.marginTop).toString()).substr(0,4))+900+'px'; toggle_hideme(); toggle_hideme1(); toggle_hideme2(); toggle_hideme3(); }	
	
}

    document.getElementById("zastavca").onclick = function () {
        changelang();
    };
	
if(document.getElementById("dogodekprijava_slo")!=null)
{
  document.getElementById("dogodekprijava_slo").onmouseover = function () {
    document.getElementById("dogodekprijava_slo").style.backgroundImage='url(images/prijavadogodek_over.png)';
  };  
  document.getElementById("dogodekprijava_slo").onmouseout = function () {
    document.getElementById("dogodekprijava_slo").style.backgroundImage='url(images/prijavadogodek.png)';
  };
  document.getElementById("dogodekprijava_slo").onclick = function () {
    document.getElementById("fdogodekprijava").submit();
  };  
  document.getElementById('dogodekprijava_slo').style.visibility = 'visible';
}

if(document.getElementById("dogodekprijava_eng")!=null)
{
  document.getElementById("dogodekprijava_eng").onmouseover = function () {
    document.getElementById("dogodekprijava_eng").style.backgroundImage='url(images/prijavadogodek_eng_over.png)';
  };  
  document.getElementById("dogodekprijava_eng").onmouseout = function () {
    document.getElementById("dogodekprijava_eng").style.backgroundImage='url(images/prijavadogodek_eng.png)';
  };
  document.getElementById("dogodekprijava_eng").onclick = function () {
    document.getElementById("fdogodekprijava").submit();
  };  
  document.getElementById('dogodekprijava_eng').style.visibility = 'visible';
}
var zbg=document.getElementById("zastavca").style.backgroundImage;
if(zbg.indexOf("usa")>-1)
{
  document.getElementById("webfantasy").onclick = function () {
    location.href='mailto: spletna.fantazija@gmail.com?subject=Povprasevanje';
  }; 
}
else
{
  document.getElementById("webfantasy").onclick = function () {
    location.href='mailto: spletna.fantazija@gmail.com?subject=Web demands';
  }; 
}
	
  loadMenu();	
  loadFooter();
  loadNews();
  loadEvents();
  loadRegistration();  
  loadLogotip();

}

function loadLogotip()
{
if(document.getElementById("logo1")!=null)
{
  document.getElementById("logo1").onmouseover = function () {
    document.getElementById("logo1").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo1").onmouseout = function () {
    document.getElementById("logo1").style.backgroundImage='';
  };  
  document.getElementById("logo1").onclick = function () {
    document.location='logo/ranc bloke.rar';
  };  
  
  document.getElementById("logo2").onmouseover = function () {
    document.getElementById("logo2").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo2").onmouseout = function () {
    document.getElementById("logo2").style.backgroundImage='';
  };  
  document.getElementById("logo2").onclick = function () {
    document.location='logo/logo.rar';
  };
  
  document.getElementById("logo3").onmouseover = function () {
    document.getElementById("logo3").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo3").onmouseout = function () {
    document.getElementById("logo3").style.backgroundImage='';
  };  
  document.getElementById("logo3").onclick = function () {
    document.location='logo/rblogo.rar';
  };
  
  document.getElementById("logo4").onmouseover = function () {
    document.getElementById("logo4").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo4").onmouseout = function () {
    document.getElementById("logo4").style.backgroundImage='';
  };  
  document.getElementById("logo4").onclick = function () {
    document.location='logo/ranc bloke2.rar';
  };    
  
  document.getElementById("logo5").onmouseover = function () {
    document.getElementById("logo5").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo5").onmouseout = function () {
    document.getElementById("logo5").style.backgroundImage='';
  };  
  document.getElementById("logo5").onclick = function () {
    document.location='logo/ranch bloke.rar';
  }; 
  
  document.getElementById("logo6").onmouseover = function () {
    document.getElementById("logo6").style.backgroundImage='url(images/download.png)';
  };  
  document.getElementById("logo6").onmouseout = function () {
    document.getElementById("logo6").style.backgroundImage='';
  };  
  document.getElementById("logo6").onclick = function () {
    document.location='logo/ranch bloke2.rar';
  };   
}
}

function loadRegistration()
{
if(document.getElementById("imepriimek")!=null)
{
  document.getElementById("imepriimek").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("starost").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("enaslov").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("kontaktnast").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("imekonja").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("starostkonja").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("pasmakonja").onkeypress = function () {
    return disableEnterKey(event);
  };  
  document.getElementById("prijavabutton").onmouseover = function () {
    document.getElementById("prijavabutton").style.backgroundImage='url(images/okay.png)';
  };  
  document.getElementById("prijavabutton").onmouseout = function () {
    document.getElementById("prijavabutton").style.backgroundImage='';
  }; 
  document.getElementById("kljukca").onclick = function () {
    if(document.getElementById("kljukca").style.backgroundImage=='') { document.getElementById("kljukca").style.backgroundImage='url(images/kljukca.png)'; } else { document.getElementById("kljukca").style.backgroundImage=''; } 
  };   
  document.getElementById("pogoji").onmouseover = function () {
    document.getElementById("pogoji").style.borderBottomStyle='solid';
  }; 
  document.getElementById("pogoji").onmouseout = function () {
    document.getElementById("pogoji").style.borderBottomStyle='none';
  }; 
  document.getElementById("posljiprijatelju").onfocus = function () {
    emptyfield(document.getElementById("posljiprijatelju"));
  };   
  document.getElementById("posljiprijatelju").onkeypress = function () {
    return disableEnterKey(event);
  };   
  document.getElementById("posljiprijatelju").style.visibility="visible";
}
}

function loadEvents()
{
if(document.getElementById("dogodkirss")!=null)
{
  document.getElementById("dogodkirss").onmouseover = function () {
    document.getElementById("dogodkirss").style.backgroundImage='url(images/dogodki_rss.png)';
  };  
  document.getElementById("dogodkirss").onmouseout = function () {
    document.getElementById("dogodkirss").style.backgroundImage='';
  };

if(document.getElementById("besedilo_3")!=null)
{
  document.getElementById("besedilo_3").onmouseover = function () {
    document.getElementById("besedilo_33").style.backgroundImage='url(images/magnification.png)';
  };  
  document.getElementById("besedilo_3").onmouseout = function () {
    document.getElementById("besedilo_33").style.backgroundImage='';
  };
}

if(document.getElementById("besedilo_2")!=null)
{
  document.getElementById("besedilo_2").onmouseover = function () {
    document.getElementById("besedilo_22").style.backgroundImage='url(images/magnification.png)';
  };  
  document.getElementById("besedilo_2").onmouseout = function () {
    document.getElementById("besedilo_22").style.backgroundImage='';
  };  
}

if(document.getElementById("dyear")!=null)
{
  document.getElementById("dyear").onclick = function () {
    gotoYear();
  };    
  document.getElementById("dleft").onclick = function () {
    changeYear(false);
  };    
  document.getElementById("dright").onclick = function () {
    changeYear(true);
  };  
}
}
}

function loadNews()
{
if(document.getElementById("novicerss")!=null)
{
  document.getElementById("novicerss").onmouseover = function () {
    document.getElementById("novicerss").style.backgroundImage='url(images/rss.png)';
  };  
  document.getElementById("novicerss").onmouseout = function () {
    document.getElementById("novicerss").style.backgroundImage='';
  };  
 
  document.getElementById("a1").onclick = function () {
    changeyear(0);
  };   
  document.getElementById("a2").onclick = function () {
    changeyear(1);
  };  
  document.getElementById("a3").onclick = function () {
    changeyear(2);
  };  
  document.getElementById("a4").onclick = function () {
    changeyear(3);
  };  
  document.getElementById("okay").onclick = function () {
    prikazinovice();
  };   
  document.getElementById("okay").onmouseover = function () {
    document.getElementById("okay").src='images/okay_news.png';
  };   
  document.getElementById("okay").onmouseout = function () {
    document.getElementById("okay").src='images/okay1.png';
  };   
 
}
}

function loadFooter()
{
if(document.getElementById("f1")!=null)
{
  document.getElementById("f1").onclick = function () {
    history.back();
  };  
  document.getElementById("f1").onmouseover = function () {
    document.getElementById("f1").style.backgroundImage='url(images/footer0_slo.png)';
  };  
  document.getElementById("f1").onmouseout = function () {
    document.getElementById("f1").style.backgroundImage='';
  };  
  
  document.getElementById("f2").onclick = function () {
    window.location = 'kontakt-zemljevid.html'; 
	return false;
  };  
  document.getElementById("f2").onmouseover = function () {
    document.getElementById("f2").style.backgroundImage='url(images/footer2_slo.png)';
  };  
  document.getElementById("f2").onmouseout = function () {
    document.getElementById("f2").style.backgroundImage='';
  };    
/*  
  document.getElementById("f12").onclick = function () {
    window.location = 'prodani-konji.html'; 
	return false;
  };  
  document.getElementById("f12").onmouseover = function () {
    document.getElementById("f12").style.backgroundImage='url(images/footer3_slo.png)';
  };  
  document.getElementById("f12").onmouseout = function () {
    document.getElementById("f12").style.backgroundImage='';
  };     
  */
  document.getElementById("f3").onclick = function () {
    window.location = 'oskrba.html'; 
	return false;
  };  
  document.getElementById("f3").onmouseover = function () {
    document.getElementById("f3").style.backgroundImage='url(images/footer4_slo.png)';
  };  
  document.getElementById("f3").onmouseout = function () {
    document.getElementById("f3").style.backgroundImage='';
  };   
  
  document.getElementById("f4").onclick = function () {
    window.location = 'treningi.html'; 
	return false;
  };  
  document.getElementById("f4").onmouseover = function () {
    document.getElementById("f4").style.backgroundImage='url(images/footer5_slo.png)';
  };  
  document.getElementById("f4").onmouseout = function () {
    document.getElementById("f4").style.backgroundImage='';
  };   
  
  document.getElementById("f5").onclick = function () {
    window.location = 'dogodki.html'; 
	return false;
  };  
  document.getElementById("f5").onmouseover = function () {
    document.getElementById("f5").style.backgroundImage='url(images/footer6_slo.png)';
  };  
  document.getElementById("f5").onmouseout = function () {
    document.getElementById("f5").style.backgroundImage='';
  };   
  
  document.getElementById("f6").onclick = function () {
    window.location = 'zrebeta.html'; 
	return false;
  };  
  document.getElementById("f6").onmouseover = function () {
    document.getElementById("f6").style.backgroundImage='url(images/footer7_slo.png)';
  };  
  document.getElementById("f6").onmouseout = function () {
    document.getElementById("f6").style.backgroundImage='';
  };   
  
  document.getElementById("f7").onclick = function () {
    window.location = 'logotip.html'; 
	return false;
  };  
  document.getElementById("f7").onmouseover = function () {
    document.getElementById("f7").style.backgroundImage='url(images/footer8_slo.png)';
  };  
  document.getElementById("f7").onmouseout = function () {
    document.getElementById("f7").style.backgroundImage='';
  };   
  
  document.getElementById("f8").onclick = function () {
    window.location = 'novice.html'; 
	return false;
  };  
  document.getElementById("f8").onmouseover = function () {
    document.getElementById("f8").style.backgroundImage='url(images/footer9_slo.png)';
  };  
  document.getElementById("f8").onmouseout = function () {
    document.getElementById("f8").style.backgroundImage='';
  };   
  
  document.getElementById("f9").onclick = function () {
	window.open('pdf/rancbloke-katalog.pdf', '_blank'); return false;
	return false;	
  };  
  document.getElementById("f9").onmouseover = function () {
    document.getElementById("f9").style.backgroundImage='url(images/footer10_slo.png)';
  };  
  document.getElementById("f9").onmouseout = function () {
    document.getElementById("f9").style.backgroundImage='';
  };   
  
  document.getElementById("f10").onclick = function () {
	window.open('http://ranchbloke.wordpress.com/', '_blank'); return false;
	return false;
  };  
  document.getElementById("f10").onmouseover = function () {
    document.getElementById("f10").style.backgroundImage='url(images/footer11_slo.png)';
  };  
  document.getElementById("f10").onmouseout = function () {
    document.getElementById("f10").style.backgroundImage='';
  };   
  
  document.getElementById("f11").onclick = function () {
	window.open('rss/rss_dogodki_novice_slo.xml', '_blank'); return false;
	return false;
  };  
  document.getElementById("f11").onmouseover = function () {
    document.getElementById("f11").style.backgroundImage='url(images/footer12_slo.png)';
  };  
  document.getElementById("f11").onmouseout = function () {
    document.getElementById("f11").style.backgroundImage='';
  };   
}
else
{
  document.getElementById("f1_eng").onclick = function () {
    history.back();
  };  
  document.getElementById("f1_eng").onmouseover = function () {
    document.getElementById("f1_eng").style.backgroundImage='url(images/footer0_eng.png)';
  };  
  document.getElementById("f1_eng").onmouseout = function () {
    document.getElementById("f1_eng").style.backgroundImage='';
  };  
  
  document.getElementById("f2_eng").onclick = function () {
    window.location = 'contacts-map.html'; 
	return false;
  };  
  document.getElementById("f2_eng").onmouseover = function () {
    document.getElementById("f2_eng").style.backgroundImage='url(images/footer1_eng.png)';
  };  
  document.getElementById("f2_eng").onmouseout = function () {
    document.getElementById("f2_eng").style.backgroundImage='';
  };    
  
  document.getElementById("f3_eng").onclick = function () {
    window.location = 'foals.html'; 
	return false;
  };  
  document.getElementById("f3_eng").onmouseover = function () {
    document.getElementById("f3_eng").style.backgroundImage='url(images/footer2_eng.png)';
  };  
  document.getElementById("f3_eng").onmouseout = function () {
    document.getElementById("f3_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f4_eng").onclick = function () {
    window.location = 'boarding.html'; 
	return false;
  };  
  document.getElementById("f4_eng").onmouseover = function () {
    document.getElementById("f4_eng").style.backgroundImage='url(images/footer3_eng.png)';
  };  
  document.getElementById("f4_eng").onmouseout = function () {
    document.getElementById("f4_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f5_eng").onclick = function () {
    window.location = 'training.html'; 
	return false;
  };  
  document.getElementById("f5_eng").onmouseover = function () {
    document.getElementById("f5_eng").style.backgroundImage='url(images/footer4_eng.png)';
  };  
  document.getElementById("f5_eng").onmouseout = function () {
    document.getElementById("f5_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f6_eng").onclick = function () {
    window.location = 'events.html'; 
	return false;
  };  
  document.getElementById("f6_eng").onmouseover = function () {
    document.getElementById("f6_eng").style.backgroundImage='url(images/footer5_eng.png)';
  };  
  document.getElementById("f6_eng").onmouseout = function () {
    document.getElementById("f6_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f7_eng").onclick = function () {
    window.location = 'logotype.html'; 
	return false;
  };  
  document.getElementById("f7_eng").onmouseover = function () {
    document.getElementById("f7_eng").style.backgroundImage='url(images/footer7_eng.png)';
  };  
  document.getElementById("f7_eng").onmouseout = function () {
    document.getElementById("f7_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f8_eng").onclick = function () {
    window.location = 'news.html'; 
	return false;
  };  
  document.getElementById("f8_eng").onmouseover = function () {
    document.getElementById("f8_eng").style.backgroundImage='url(images/footer8_eng.png)';
  };  
  document.getElementById("f8_eng").onmouseout = function () {
    document.getElementById("f8_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f9_eng").onclick = function () {
	window.open('pdf/ranchbloke-catalog.pdf', '_blank'); return false;
	return false;
  };  
  document.getElementById("f9_eng").onmouseover = function () {
    document.getElementById("f9_eng").style.backgroundImage='url(images/footer9_eng.png)';
  };  
  document.getElementById("f9_eng").onmouseout = function () {
    document.getElementById("f9_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f10_eng").onclick = function () {
	window.open('http://ranchbloke.wordpress.com/', '_blank'); return false;
	return false;
  };  
  document.getElementById("f10_eng").onmouseover = function () {
    document.getElementById("f10_eng").style.backgroundImage='url(images/footer10_eng.png)';
  };  
  document.getElementById("f10_eng").onmouseout = function () {
    document.getElementById("f10_eng").style.backgroundImage='';
  };   
  
  document.getElementById("f11_eng").onclick = function () {
	window.open('rss/rss_dogodki_novice_eng.xml', '_blank'); return false;
	return false;
  };  
  document.getElementById("f11_eng").onmouseover = function () {
    document.getElementById("f11_eng").style.backgroundImage='url(images/footer11_eng.png)';
  };  
  document.getElementById("f11_eng").onmouseout = function () {
    document.getElementById("f11_eng").style.backgroundImage='';
  }; 
}
}

function loadMenu()
{
if(document.getElementById("li1_slo")!=null)
{
  document.getElementById("li1_slo").onmouseover = function () {
    document.getElementById("li1_slo").style.backgroundImage='url(images/ranc.png)';
  };
  document.getElementById("li2_slo").onmouseover = function () {
    document.getElementById("li2_slo").style.backgroundImage='url(images/qh.png)';
  };
  document.getElementById("li3_slo").onmouseover = function () {
    document.getElementById("li3_slo").style.backgroundImage='url(images/konji_naprodaj.png)';
  };
  document.getElementById("li4_slo").onmouseover = function () {
    document.getElementById("li4_slo").style.backgroundImage='url(images/ponudba.png)';
  };
  document.getElementById("li5_slo").onmouseover = function () {
    document.getElementById("li5_slo").style.backgroundImage='url(images/dogodki.png)';
  };
  document.getElementById("li6_slo").onmouseover = function () {
    document.getElementById("li6_slo").style.backgroundImage='url(images/bloke_express.png)';
  };
  document.getElementById("li7_slo").onmouseover = function () {
    document.getElementById("li7_slo").style.backgroundImage='url(images/za_medije.png)';
  };
  
  document.getElementById("li1_slo").onmouseout = function () {
    document.getElementById("li1_slo").style.backgroundImage='';
  };  
  document.getElementById("li2_slo").onmouseout = function () {
    document.getElementById("li2_slo").style.backgroundImage='';
  };  
  document.getElementById("li3_slo").onmouseout = function () {
    document.getElementById("li3_slo").style.backgroundImage='';
  };  
  document.getElementById("li4_slo").onmouseout = function () {
    document.getElementById("li4_slo").style.backgroundImage='';
  };  
  document.getElementById("li5_slo").onmouseout = function () {
    document.getElementById("li5_slo").style.backgroundImage='';
  };  
  document.getElementById("li6_slo").onmouseout = function () {
    document.getElementById("li6_slo").style.backgroundImage='';
  };  
  document.getElementById("li7_slo").onmouseout = function () {
    document.getElementById("li7_slo").style.backgroundImage='';
  };  
}
else
{
  document.getElementById("li1_eng").onmouseover = function () {
    document.getElementById("li1_eng").style.backgroundImage='url(images/ranch_eng.png)';
  };
  document.getElementById("li2_eng").onmouseover = function () {
    document.getElementById("li2_eng").style.backgroundImage='url(images/qh.png)';
  };
  document.getElementById("li3_eng").onmouseover = function () {
    document.getElementById("li3_eng").style.backgroundImage='url(images/konji_naprodaj_eng.png)';
  };
  document.getElementById("li4_eng").onmouseover = function () {
    document.getElementById("li4_eng").style.backgroundImage='url(images/ponudba_eng.png)';
  };
  document.getElementById("li5_eng").onmouseover = function () {
    document.getElementById("li5_eng").style.backgroundImage='url(images/dogodki_eng.png)';
  };
  document.getElementById("li6_eng").onmouseover = function () {
    document.getElementById("li6_eng").style.backgroundImage='url(images/bloke_express.png)';
  };
  document.getElementById("li7_eng").onmouseover = function () {
    document.getElementById("li7_eng").style.backgroundImage='url(images/za_medije_eng.png)';
  };
  
  
  document.getElementById("li1_eng").onmouseout = function () {
    document.getElementById("li1_eng").style.backgroundImage='';
  };  
  document.getElementById("li2_eng").onmouseout = function () {
    document.getElementById("li2_eng").style.backgroundImage='';
  };  
  document.getElementById("li3_eng").onmouseout = function () {
    document.getElementById("li3_eng").style.backgroundImage='';
  };  
  document.getElementById("li4_eng").onmouseout = function () {
    document.getElementById("li4_eng").style.backgroundImage='';
  };  
  document.getElementById("li5_eng").onmouseout = function () {
    document.getElementById("li5_eng").style.backgroundImage='';
  };  
  document.getElementById("li6_eng").onmouseout = function () {
    document.getElementById("li6_eng").style.backgroundImage='';
  };  
  document.getElementById("li7_eng").onmouseout = function () {
    document.getElementById("li7_eng").style.backgroundImage='';
  };    
}

var ce = getElementsByClass('ahref');
for(i=0; i<ce.length; i++)
{
  ce[i].onmouseover = function () {
    ce[i].style.color='#663300';
  };     
  ce[i].onmouseout = function () {
    ce[i].style.color='#000000';
  };     
}
	
}

$.getDocHeight = function(){
     var D = document;
     return Math.max(Math.max(D.body.scrollHeight,    D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
};

function setHheight() {
var a=$.getDocHeight();
if(document.body.clientHeight>670) { a=document.body.clientHeight; }
if(document.getElementById("bottompic")!=null)
  {
    document.getElementById("bottompic").style.height=(a-612)+"px";
    document.getElementById("backgg").style.height=(a)+"px";	
  }	
if(document.getElementById("bottompic1")!=null)
  {
    document.getElementById("bottompic1").style.height=(a-634)+"px";
    document.getElementById("backgg").style.height=(a)+"px";	
  }	  
}

<!-- -->
