

var inmenu=false;
var lastmenu=0;

var nBild =0;
var bild = new Array(18);
bild[0]  = "bilder/1.jpg";
bild[1]  = "bilder/2.jpg";
bild[2]  = "bilder/3.jpg";
bild[3]  = "bilder/4.jpg";
bild[4]  = "bilder/5.jpg";
bild[5]  = "bilder/6.jpg";
bild[6]  = "bilder/7.jpg";
bild[7]  = "bilder/8.jpg";
bild[8]  = "bilder/9.jpg";
bild[9]  = "bilder/10.jpg";
bild[10] = "bilder/11.jpg";
bild[11]  = "bilder/12.jpg";
bild[12]  = "bilder/13.jpg";
bild[13]  = "bilder/14.jpg";
bild[14]  = "bilder/15.jpg";

id=window.setTimeout("bytbild();",1000);

dayName = new Array ("söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag")
monName = new Array ("januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "December")

now = new Date


function bytbild() {

document.images[0].src = bild[nBild]; ; 
document.images[0].height = "75";
nBild ++;
if (nBild>14) {
   nBild = 0;
}
document.images[1].src = bild[nBild]; 
document.images[1].height = "75";
nBild ++;
if (nBild>14) {
   nBild = 0;
}


id=window.setTimeout("bytbild();",1000);

}


function Menu(current) {
if (!document.getElementById) return;
inmenu=true;
oldmenu=lastmenu;
lastmeny=current;
if (oldmenu) Erase(oldmenu);
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.visibility="visible";
m.style.backgroundColor="orange";
box.style.Width="10%";
}
function Erase(current) {

if (!document.getElementById) return;
if (inmenu && lastmenu==current) {
return;
}
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.visibility="hidden";
m.style.backgroundColor="Silver";

}
function Timeout(current) {
inmenu=false;
window.setTimeout("Erase('"+current + "');",500);
}
function Highlight(menu,item) {
if (!document.getElementById) return;
inmenu = true;
lastmenu=menu;
obj=document.getElementById(item);
obj.style.backgroundColor="yellow";
}
function UnHighlight(menu,item) {
if (!document.getElementById) return;
Timeout(menu);
obj=document.getElementById(item);
obj.style.backgroundColor="Aqua";

}

