  var h=0;
  var polozky = new Array(5);
  var min=false;
  
  function selectMenu(idx) {
  alert;
  	parent.text.document.location= polozky[idx].link;
  }
  
  function newPol(text, link) {
	    polozky[index] = new polozka(text, link);	
		document.write('<div style=\"cursor: pointer; color: #1215A0; font-family: \'arial\'; width: 160; font-size: 20; text-align: center; \" onMouseOver=\'zap(this,'+index+')\' onMouseOut=\'vyp(this,'+index+')\' onMouseDown=\'selectMenu('+index+')\'>'+text+'</div>');
		index++;
  
  }
  
  function polozka(text, link) {
    this.text=text;
	this.selected = false;
	this.ref = null;
	this.min = false;
	this.spacing = 0;
	this.link = link;
  }
    var index=0;
   
  function vyp(co, idx) {
		 polozky[idx].min = true;
         co.style.color='#1215A0';
  }
  
  function zap(co, idx) {
		 polozky[idx].min = false;  
  		  polozky[idx].ref = co;
          co.style.color='#6F86F7';
 

  }
  
  function pos() {
    for ( i=0; i < polozky.length; i++) {
	   if (polozky[i]!=null) 
  		if ( !(polozky[i].min)) {
	    	if (polozky[i].spacing<=15 && (polozky[i].text.length<5 || polozky[i].spacing<=8)
				&& (polozky[i].text.length<7 || polozky[i].spacing<=5)) {
			 if  (polozky[i].ref!=null) {
			  polozky[i].ref.style.letterSpacing= "0"+ unescape(polozky[i].spacing++);
			 }			  
			 }
		}
		else {
		   if (polozky[i].spacing==0) {
		     		  polozky[i].ref = null;
		   }
			 if  (polozky[i].ref!=null)		
		  polozky[i].ref.style.letterSpacing= "0"+ unescape(polozky[i].spacing--);		
		}
	}
	  setTimeout( "pos()", 14 );
  }