var myimages=new Array();
var do_mouseout=1;
var hi_color="#ffffff";
var normal_color="#000000";
var normal_bg="#ffffff";
var hi_bg="#000000";



function click_ma (ma_id,bild){
if (!(bild == 1 && do_mouseout == 0)) {
document.images.ma_bild.src=ma_bilder[ma_id];
do_mouseout=0;
for (i=0;i<ma_bilder.length;i++){
if (i != ma_id) {document.getElementsByName("ma_link")[i].style.color= normal_color; document.getElementsByName("ma_link")[i].style.background= normal_bg;}
else {document.getElementsByName("ma_link")[i].style.color= hi_color; document.getElementsByName("ma_link")[i].style.background=hi_bg;}
}}}

function over_ma (ma_id,bild){
if (do_mouseout==1){

if (bild != 1) {document.images.ma_bild.src=ma_bilder[ma_id];}
document.getElementsByName('ma_link')[ma_id].style.color= hi_color;
document.getElementsByName('ma_link')[ma_id].style.textDecoration= "none";
document.getElementsByName("ma_link")[i].style.background=hi_bg;
return true;
}}

function out_ma (ma_id)
{
if (do_mouseout==1)
{
document.images.ma_bild.src=out_pic;
document.getElementsByName("ma_link")[ma_id].style.color= normal_color;
document.getElementsByName('ma_link')[ma_id].style.textDecoration= "none";
document.getElementsByName("ma_link")[i].style.background=normal_bg;
}}

function preload_images(){
for (i=0;i<ma_bilder.length;i++){
myimages[i]=new Image()
myimages[i].src=ma_bilder[i]
}}



