// <!-- 

// skript von gunthi wieder ausgegraben
// if you like to change the button name one button f.e. button.gif and the other akt_button.gif
// in img TAG Name= fill in the name of the button in the html page
// f.e <a HREF="link.htm" onMouseOver="change('button') ; return true" onMouseOut="rechange('button') ; return true">
// <img SRC="button.gif" NAME="button" width="6" height="10">Information</a>
// to use the script for your personell use, change the var path = "images/"
// to your own images directory
// if you don't use gif files than change var ext = ".gif" to ".jpg"

// browser test

        browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 3 )))

        if (browser){

        var lastchangeName = "";
        var lastClickName = "";
        var lastchange = new Image();
        var path = "images/navi/";
        var hi  = "_akt";
        var click  = "_akt";
        var ext = ".gif";
        }

// change gif 
// here you can also fill in a fixed gifname, fill instead of +name  "button" in so you can use it for one picture if you like
// but than the function in html must have f.e. button1, button2 etc.
                
        function change(name)
        {
                if (browser && lastchangeName != name) 
                {
                        lastchange.src = document[name].src;
                        document [name].src = path+name+hi+ext;
                        lastchangeName = name;
                }
        }

// load the original
        
        function rechange(name) 
        {
                if (browser && lastchangeName == name) 
                {
                        document [lastchangeName].src = lastchange.src;
                        lastchangeName = "";
                }
        }

// on click loads same gif as MouseOver
        
        function Click(name) 
        {
		if (lastchangeName.length >= 1)
			{
			rechange(lastchangeName)
			}
         if (browser && lastClickName != name) 
            {
         	if (lastClickName != ""){document [lastClickName].src = path+lastClickName+ext;}
            document [name].src = path+name+click+ext;
			document [name].prototype = 'xxx'
            lastchangeName = "";
            lastClickName = name;
            CheckNavi()
			}
        }
		
	var k = "";
	
		function CheckNavi()
		{
		k = top.right_top_navi.document.images.length;
		for (var i = 0; i < k; i++)
		{			
			if (top.right_top_navi.document.images[i].prototype)
			{
			top.right_top_navi.location.reload();
			}
		}
		}
// -->

