document.observe("dom:loaded", function() {
	
    $$('#top-language').each(function(element){
        Event.observe(element, 'mouseover', function(){
            if (element.down('div#top-languages')) {
                element.down('div#top-languages').addClassName('show')
            }
        });
        Event.observe(element, 'mouseout', function(){
            if (element.down('div#top-languages')) {
                element.down('div#top-languages').removeClassName('show')
            }
        });

    });
    
    $$('#top-currency').each(function(element){
        Event.observe(element, 'mouseover', function(){
            if (element.down('div#top-currencies')) {
                element.down('div#top-currencies').addClassName('show')
            }
        });
        Event.observe(element, 'mouseout', function(){
            if (element.down('div#top-currencies')) {
                element.down('div#top-currencies').removeClassName('show')
            }
        });

    }); 
   
    
});


function decorateAttributeFilterList(elements, decorateParams)
{
    var allSupportedParams = ['odd', 'even', 'first', 'last'];
    var _decorateParams = {};
    var total = elements.length;

    if (total) {
        // determine params called
        if (typeof(decorateParams) == 'undefined') {
            decorateParams = allSupportedParams;
        }
        if (!decorateParams.length) {
            return;
        }
        for (var k in allSupportedParams) {
            _decorateParams[allSupportedParams[k]] = false;
        }
        for (var k in decorateParams) {
            _decorateParams[decorateParams[k]] = true;
        }

        // decorate elements
        // elements[0].addClassName('first'); // will cause bug in IE (#5587)
        if (_decorateParams.first) {
            Element.addClassName(elements[0], 'first');
        }
        if (_decorateParams.last) {
            Element.addClassName(elements[total-1], 'last');
        }
        for (var i = 0; i < total; i++) {
            if ((i + 1) % 3 == 0) {
                if (_decorateParams.even) {
                    Element.addClassName(elements[i], 'last');
                }
            }
        }
    }
}


//diamanten konfi details
function showNavigationNoteDiamondsDetails(id, control){
	
	var arr = $(control).cumulativeOffset();
  $(id).style.left = '370px';
	$(id).style.top = '0px';
	$(id).style.display = 'block';
	$(id).style.float = 'right';				
}

function hideNavigationNoteDiamondsDetails(){
	
	$$('.help_content').each(function(e){e.style.display = 'none';});
	
}



	
	




