
        if(document.images) {
                imgover = new Array(7);
                imgout = new Array(7);
                imgover[1]=new Image;
                imgout[1]=new Image;
                for(var n=2;n<=8;n++) {
                        imgover[n]=new Image;
                        imgout[n]=new Image;
                }
                for(var n=1;n<=8;n++) { 
                        imgover[n].src="/img/header_menu_item"+n+"on.gif";
                        imgout[n].src="/img/header_menu_item"+n+".gif";
                }
        }
        function topImgOn(i) {
                if(document.images) document.images["topmenu" + i].src=imgover[i].src;
        }
        function topImgOff(i) {
                if(document.images) document.images["topmenu" + i].src=imgout[i].src;
        }
		

function LoadPopup(doc, w, h) {
  if (!w) w=650; 
  if (!h) h=500; 
  win = window.open(doc, "Monitor", 'status=no,toolbar=0,scrollbars=1,menubar=0,titlebar=0,resizable=0,width='+w+',height='+h);
  win.moveTo(screen.width/2-w/2, screen.height/2-h/2);
  win.focus();
}


function fade(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 

function startload(){
	  setTimeout("fade('topmenu1',0,100,600)",400);
	  setTimeout("fade('topmenu2',0,100,600)",600);
	  setTimeout("fade('topmenu3',0,100,600)",800);
	  setTimeout("fade('topmenu4',0,100,600)",1000);
	  setTimeout("fade('topmenu5',0,100,600)",1200);
	  setTimeout("fade('topmenu6',0,100,600)",1400);
	  setTimeout("fade('topmenu7',0,100,600)",1600);
	  setTimeout("fade('topmenu8',0,100,600)",1800);
}

function openPicture(imageName,imageWidth,imageHeight,alt) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onmousedown="self.close()" onblur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt="'+alt+'">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.moveTo(screen.width/2-imageWidth/2, screen.height/2-imageHeight/2);
	newWindow.focus();
}