
if(Browser.Engine.version == 4 && Browser.Engine.trident == true) {
	trenavHover = function() {
			if (document.all&&document.getElementById) {
				navRoot = document.getElementById("ternav");
				if(navRoot) {
					for (i=0; i<navRoot.childNodes.length; i++) {
						node = navRoot.childNodes[i];
						if (node.nodeName=="LI") {
							
							node.onmouseover=function() {
								
								this.className+=" over";
							}
							node.onmouseout=function() {
								alert(this.className.indexOf('over'));
								this.className=this.className.replace(" over", "");
							}
						}
					}
				}
 			}
		}
		//window.onload=trenavHover;

	countryHover = function() {
			if (document.all&&document.getElementById) {
				navRoot = document.getElementById("catalogueList");
				if(navRoot) {
					for (i=0; i<navRoot.childNodes.length; i++) {
						node = navRoot.childNodes[i];
						if (node.nodeName=="LI") {
							node.onmouseover=function() {
								this.className+=" over";
							}
							node.onmouseout=function() {
								this.className=this.className.replace(" over", "");
							}
						}
					}
				}
 			}
		}
		//window.onload=countryHover;

	langHover = function() {
			if (document.all&&document.getElementById) {
				navRoot = document.getElementById("languageList");
				if(navRoot) {
					for (i=0; i<navRoot.childNodes.length; i++) {
						node = navRoot.childNodes[i];
						if (node.nodeName=="LI") {
							node.onmouseover=function() {
								this.className+=" over";
							}
							node.onmouseout=function() {
								this.className=this.className.replace(" over", "");
							}
						}
					}
				}
 			}
		}


window.addEvent('domready', function() {
									 
  // trenavHover();
   countryHover();
   langHover();
   
	$('countryLink').addEvents({
		'mouseover': function(){
			$('countrySelect').setStyle('display', 'block');
		},
		'mouseout': function(){
			$('countrySelect').setStyle('display', 'none');
		}
	});
			
	$('languageLink').addEvents({
		'mouseover': function(){
			$('languageSelect').setStyle('display', 'block');
		},
		'mouseout': function(){
			$('languageSelect').setStyle('display', 'none');
		}
	});
	


	$$('.articleBox').each(function(div){
		div.addEvents({
			'mouseover': function(){
				div.addClass('boxHover');
			},
			'mouseout': function(){
				div.removeClass('boxHover');
			}
		});	
	});	
	
	$$('#ternav li').each(function(li){
			
		li.addEvents({
			'mouseover': function(){
				li.addClass('over');
			},
			'mouseleave': function(){
				li.removeClass('over');
			}	
		});	
	});
});

}
