//  This file should not be modified 
            
            var NS4 = (document.layers) ? 1 : 0;
            var IE = (document.all) ? 1 : 0;
            var DOM = 0; 
            if (parseInt(navigator.appVersion) >=5) {DOM=1};
            
            var lastHeader;
            var currShow;

            function changeCont(tgt,header) {

            target=('T' +tgt);
                
                if (DOM) {

                    // Hide the last one, and flip the tab color back.
                    currShow.style.visibility="hidden";
                    if ( lastHeader ) { 
                       lastHeader.style.background = tab_off; 
                       lastHeader.style.fontWeight="normal"; 
                    }
                
                    // Show this one, and make the tab silver
                    var flipOn = document.getElementById(target);			
                    flipOn.style.visibility="visible";

                    var thisTab = document.getElementById(header);			
                    thisTab.style.background = tab_on;
                    thisTab.style.fontWeight = "bold";

                    // Save for next go'round
                    currShow=document.getElementById(target);
                    lastHeader = document.getElementById(header);

                    return false;
                }

                else if (IE) {

                    // Hide the last one, and flip the tab color back.
                    currShow.style.visibility = 'hidden';
                    if (lastHeader) { 
                    lastHeader.style.background = tab_off; 
                    lastHeader.style.fontWeight="normal";
                    }

                    // Show this one, and make the tab silver
                    document.all[target].style.visibility = 'visible';
                    document.all[header].style.background = tab_on;
                    document.all[header].style.fontWeight = 'bold';

                    // Save for next go'round
                    currShow=document.all[target];
                    lastHeader=document.all[header];

                    return false;
                }
                    
	      else if (NS4) {

                    // Hide the last one, and flip the tab color back.
                    currShow.visibility = 'hide';
                    // if (lastHeader) { lastHeader.bgColor = tab_off; }

                    // Show this one, and make the tab silver
                    document.layers[target].visibility = 'show';
                    document.layers[header].bgColor  = tab_on;

                    // Save for next go'round
                    currShow=document.layers[target];
                    lastHeader=document.layers[header];

                    return false;
                }
                    
                // && (version >=4)
                else {
                    window.location=('#A' +target);
                    return true;
	}

	}

	function DrawTabs() {

	var output = '';

	for ( var x = 1; x <= num_rows; x++ ) { 

// Ïàðàìåòðû àáñîëþòíîé ïîçèöèè ÿ÷åéêè


	      if(x > 1 ) { 
	      top = top + 25;
	      left = left - 0;
        }

//add func
 	      if( x > 15 ) { 
	      top = 166;
	      left = 320;
              width=1;
	}
 	      if( x > 16 ) { 
	      top = 166;
	      left = 500;
              width=1;
	}

//end add

                    output += '<div id="tabstop" style="position:absolute; ';
                    output += 'left:' + left + 'px;';
                    output += 'top:' + top + 'px; ';
                    output += 'width:' + width + 'px; z-index:1;">\n';
                    output += '<table border="0" cellpadding="0" cellspacing="1">\n';
                    output += '<tr valign="middle">\n';

                       for ( var z = 1; z < rows[x].length; z++ ) {

// Ïàðàìåòðû òàáëèöû: ïîëîæåíèå, ññûëêà íà ñòèëü; îáðàáîò÷èê ñîáûòèé

                          var tid = "tab" + x + z;
                          var did = x + z;

                          output += '<td id="' + tid +'" class="menu"><a class="small" href="#" onMouseOver="changeCont(\'' + x + z + '\', \'' + tid + '\'); return false;" onFocus="if(this.blur)this.blur()">' + rows[x][z] + '</a></div></td>\n';
	}

                    output += '</tr>\n';
                    output += '</table>\n';
                    output += '</div>\n\n';

	}

                self.document.write(output);

	}
//
function notcopy() { window.event.returnValue=false; }