var width = '250px';
		var height = '100';
		
		
		var round = 0;
		
		
		var first = true;
		var now;
		
		function roundMe(o)
		{
			if(round == 0){
				Rico.Corner.round(o,{corners:"top"});
			//		Rico.Corner.round(o,{corners:"bottom"});
			}
			round = 1;
		}
		
		
		function menu1ChangeOnMouseOver(o,menu)
		{						
			var temp = o.src;
			o.src = temp.substr(0,(temp.length - 4) ) + '-over.gif';
			if(menu == 1){
				var q = document.getElementById('quickMenu');
			
				q.style.display = 'block';
			//	q.style.height = '0px';
			//	q.style.width = width;
			//	q.style.height = height+'px';
			//new Rico.Effect.Size(q,null,height,500,10,'');
			//	roundMe(q);		
			}
		}
		
		function menu1ChangeOnMouseOut(o, menu) {
			var temp = o.src;
			o.src = temp.substr(0,(temp.length - 9) ) + '.gif';
			if(menu == 1){
			var q = document.getElementById('quickMenu');
			q.style.display = 'none';
			//	q.style.height = '0px';
			//	q.style.width = width;
			}
		}
		
		function showMe(o) {
			var link = document.getElementById('quickLink');
			var temp = link.src;
			link.src = temp.substr(0,(temp.length - 4) ) + '-over.gif';
			
			o.style.display = 'block';
		//	o.style.height = height+'px';
		//	o.style.width = width;
		}
		
		function hideMe(o) {
			var link = document.getElementById('quickLink');
			var temp = link.src;
			link.src = temp.substr(0,(temp.length - 9) ) + '.gif';
		
			o.style.display = 'none';
		//	o.style.width = width;
		}
		
		function showSubKategoria(id, position)
		{
			var lista = document.getElementById('listaKategori');
			var div = document.getElementById('kategorie');
			var div2 = document.getElementById('podKategorie');
			
			div.style.top = position + 'px';
					
			lista.innerHTML = lista.innerHTML + div.innerHTML;
			lista.innerHTML = lista.innerHTML + div2.innerHTML;
			
			div.innerHTML = '';
			div2.innerHTML = '';
			
			var kategorie = getElementByClass(lista,'div','kategoria_'+id);
			
			for( n = 0; n < kategorie.length ; n++) 
			{				
				div.appendChild( kategorie[n] );	
			}			
		}
		
	
		
		
		function getIdd(name){
			
			var temp = name.substr(4,name.length);
			
			return temp;
		}

		
		function changeColorOut(o)
		{
			o.style.backgroundColor='#E7E3E7';
			o.style.color='#000';			
		}

		function changeColorOn(o)
		{			
			if(first)
			{
				now = o;
				first = false;
			}
			changeColorOut(now);
			o.style.backgroundColor='#b2b7c7';
			o.style.color='#FFF';
			now = o;								
		}
		
		function changeColorOnSub(o)
		{
			o.style.backgroundColor='#b2b7c7';
			o.style.color='#FFF';			
		}
		
		function showClubs()
		{
			var clubs = document.getElementById('kluby');
			clubs.style.display="block";				
			
			var link = document.getElementById('clubLink');			
			link.src = 'wwwsystem/pic/om_me/kluby-over.gif';
		}
		
		function hideClubs()
		{
			var clubs = document.getElementById('kluby');
			clubs.style.display="none";			
			var link = document.getElementById('clubLink');			
			link.src = 'wwwsystem/pic/om_me/kluby.gif';
		}

		
		function getElementByClass(objContElm, strTag, strClass)
		{
		  strTag = strTag || "*";
		  objContElm = objContElm || document;
		  var objColl = (strTag == '*' && document.all && !window.opera) ? document.all : objContElm.getElementsByTagName(strTag);
		  var arr = new Array();
		  var delim = strClass.indexOf('|') != -1  ? '|' : ' ';
		  var arrClass = strClass.split(delim);
		  for (var i = 0, j = objColl.length; i < j; i++)
		  {
		    var arrObjClass = objColl[i].className.split(' ');
		    if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
		    var c = 0;
		    comparisonLoop:
		    for (var k = 0, l = arrObjClass.length; k < l; k++)
		    {
		      for (var m = 0, n = arrClass.length; m < n; m++)
		      {
		        if (arrClass[m] == arrObjClass[k]) c++;
		        if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length))
			{
		          arr.push(objColl[i]);
		          break comparisonLoop;
		        }
		      }
		    }
		  }
		 return arr;
		}
		
		function goTo(link)
		{
			window.location = link;
		}
		