var activeChild;

if (activeImg == '')
	activeImg = 'hem';

function init()
	{
	document[activeImg].src = 'pictures/navigation/' + activeImg + '-active.gif';
	}

function mouseOver(imgName)
	{
	if (activeImg != imgName)
		document[imgName].src = 'pictures/navigation/' + imgName + '-over.gif';
	}

function mouseOut(imgName)
	{
	if (activeImg != imgName)
		document[imgName].src = 'pictures/navigation/' + imgName + '.gif';
	}
	
function openPopup(URL, window_width, window_height)
	{
	var h,w
	h = screen.height //height of screen, not just the parent window
	w = screen.width //width of the screen, not just the parent window
	var l,t
	l = parseInt((w-window_width)/2)
	t = parseInt((h-window_height)/2)
	popupWin = window.open(URL,'open_window','status,dependent,width='+window_width+',height='+window_height+',left='+(l-20)+',top='+t)
}

function preloadImages() {
     var d = document;
     if(d.images) {
         if(!d.MM_p) {
             d.MM_p = new Array();
         }
         var i;
         var j = d.MM_p.length;
         var a = preloadImages.arguments;
         for(i = 0; i < a.length; i++) {
             if (a[i].indexOf("#") != 0) {
                 d.MM_p[j] = new Image;
                 d.MM_p[j++].src = a[i];
             }
         }
     }
}