var isIE = /*@cc_on!@*/false;
if(isIE) { 
	document.getElementsByName = function(name, tagName) {
		var elems  = document.getElementsByTagName(tagName);
		var result = [];
		for(var i = 0; i < elems.length; i++)
			if(elems[i].name == name) result.push(elems[i]);
		return result;
	};
}
var blocksCache = null;
var blockButtonsCache = null;
function switchDiv(id){
		if(!blocksCache) {
			blocksCache = document.getElementsByName('sublinks-block', 'div');
			blockButtonsCache = document.getElementsByName('sublinks-block-button', 'img');
		}		
		for(var i=0; i<blocksCache.length; i++) {
if(!blocksCache[i].childNodes.length || 
      (blocksCache[i].childNodes.length == 1 && blocksCache[i].firstChild.nodeType != 1)) continue;

			if (blocksCache[i].id == id && blocksCache[i].style.display == 'none') {	            
				blocksCache[i].style.display = 'block';
				blockButtonsCache[i].src = '/images/minus.jpg';
				blockButtonsCache[i].alt = '-';
			} else {
				blocksCache[i].style.display = 'none';				
				blockButtonsCache[i].src = '/images/plus.jpg';
				blockButtonsCache[i].alt = '+';
			}
		}		
		return false;
}
function switchSlovar(obj, link){
		var el = document.getElementById(obj);
        if ( el.style.display != 'none' ) {
                el.style.display = 'none';

        }
        else {
                el.style.display = 'block';

        }
		return false;
}
