
var activeImg;
var ext;
var newext;
var i;

// _o.ext = over
// _d.ext = down

function mouseGoesOver()
{
 if(this.id == 'active_menu') 
 { 
  return; 
 }
 
 i = this.src.lastIndexOf('.');
 ext = this.src.substr(i);
 this.src = this.src.replace(ext, '_d' + ext);
}

function mouseGoesOut()
{
 if(this.id == 'active_menu') 
 {
   return; 
 }
 
 i = this.src.lastIndexOf('_');
 ext = this.src.substr(i);
 newext = ext.replace('_d','');
 this.src = this.src.replace(ext, newext);

}



function initMouseovers()
{
	var imgs = document.getElementsByTagName('img');
	for (var i=0;i<imgs.length;i++)
	{
		if(imgs[i].getAttribute('class') == "pointer" || imgs[i].getAttribute('classname') == "pointer")
		{
		imgs[i].onmouseover = mouseGoesOver;
		imgs[i].onmouseout = mouseGoesOut;
		}
	}
}


var container;
var container2;
var oldclass;
var oldclass2;
var navitems;
var navitemsmeta;

function initNaviMouseovers() 
{
 container = document.getElementById("menupane");
 navitems = container.getElementsByTagName("li");
 for (var i=0;i<navitems.length;i++)
	{
		navitems[i].onmouseover = function() {
      oldclass = this.className;
			this.className = "ieaktiv";
		}
		navitems[i].onmouseout  = function() {
		 this.className = oldclass;
		}
	}
	
 container2 = document.getElementById("metanavigation");
 navitemsmeta = container2.getElementsByTagName("li");
 for (var i=0;i<navitemsmeta.length;i++)
 {
	navitemsmeta[i].onmouseover = function() {
  oldclass2 = this.className;
	this.className = "ieaktiv";
 }
	navitemsmeta[i].onmouseout  = function() {
	this.className = oldclass2;
	}
 }	
}
