function setSrc(src)
{
	var frame = frames['aktuellt'];
	if (frame==null)
	{
	    frame = parent.frames['aktuellt'];
		
	}
	if (frame!=null)
	{
	   frame.location.href =src;
	}
	
}


var newWindows = new Array();

function NewWindow(url, name) {
	
	if (newWindows[name]!=null && !newWindows[name].closed)
	{
		newWindows[name].close()
	}
	
        newWindows[name] = window.open(url, name, 'toolsbar=no,scrollbars=yes,width=775,height=600');
	/*newWindows[name].focus();*/
	
}

function setSelected(select, value) 
{
    for (var i = 0; i < select.options.length; i++) 
    {
        if (select.options[i].value == value) 
        {
            select.selectedIndex = i;
            break;
        }
    }
    return;
}



/* Roligt skript som vi har lånat rakt av från http://www.kirunawinter.com */
   var maxheight = 600;
   var s1vy = 5 + Math.random()*10;
   var s1vx = 5 - Math.random()*10;
   var s2vy = 5 + Math.random()*10;
   var s2vx = 5 - Math.random()*10;
   var s3vy = 5 + Math.random()*10;
   var s3vx = 5 - Math.random()*10;
   var s4vy = 5 + Math.random()*10;
   var s4vx = 5 - Math.random()*10;
   var s5vy = 5 + Math.random()*10;
   var s5vx = 5 - Math.random()*10;
   var NS = false;
   if (navigator.appName == 'Netscape') NS = true;

   function Init() {
     if (document.images && parseInt(navigator.appVersion) >= 4) {
       setInterval('MoveThings()',50);
     }
   }

   function MoveThings() {
     if (NS == true) {
       s1vy += 2 - Math.random()*4 - (Math.random()*(s1vy-10)/4);
       s1vx += 2 - Math.random()*4 - (Math.random()*s1vx/4);
       document.sflinga1.top += s1vy;
       document.sflinga1.left += s1vx;
       if (document.sflinga1.top > window.innerHeight) {
         document.sflinga1.top = 0;
         document.sflinga1.left = maxheight;
         s1vy = 5 + Math.random()*10;
         s1vx = 5 - Math.random()*10;
       }
       s2vy += 2 - Math.random()*4 - (Math.random()*(s2vy-10)/4);
       s2vx += 2 - Math.random()*4 - (Math.random()*s2vx/4);
       document.sflinga2.top += s2vy;
       document.sflinga2.left += s2vx;
       if (document.sflinga2.top > maxheight) {
         document.sflinga2.top = 0;
         document.sflinga2.left = Math.random()*window.innerWidth;
         s2vy = 5 + Math.random()*10;
         s2vx = 5 - Math.random()*10;
       }
       s3vy += 2 - Math.random()*4 - (Math.random()*(s3vy-10)/4);
       s3vx += 2 - Math.random()*4 - (Math.random()*s3vx/4);
       document.sflinga3.top += s3vy;
       document.sflinga3.left += s3vx;
       if (document.sflinga3.top > maxheight) {
         document.sflinga3.top = 0;
         document.sflinga3.left = Math.random()*window.innerWidth;
         s3vy = 5 + Math.random()*10;
         s3vx = 5 - Math.random()*10;
       }
       s4vy += 2 - Math.random()*4 - (Math.random()*(s4vy-10)/4);
       s4vx += 2 - Math.random()*4 - (Math.random()*s4vx/4);
       document.sflinga4.top += s4vy;
       document.sflinga4.left += s4vx;
       if (document.sflinga4.top > maxheight) {
         document.sflinga4.top = 0;
         document.sflinga4.left = Math.random()*window.innerWidth;
         s4vy = 5 + Math.random()*10;
         s4vx = 5 - Math.random()*10;
       }
       s5vy += 2 - Math.random()*4 - (Math.random()*(s5vy-10)/4);
       s5vx += 2 - Math.random()*4 - (Math.random()*s5vx/4);
       document.sflinga5.top += s5vy;
       document.sflinga5.left += s5vx;
       if (document.sflinga5.top > maxheight) {
         document.sflinga5.top = 0;
         document.sflinga5.left = Math.random()*window.innerWidth;
         s5vy = 5 + Math.random()*10;
         s5vx = 5 - Math.random()*10;
       }

     } else {
       s1vy += 2 - Math.random()*4 - (Math.random()*(s1vy-10)/4);
       s1vx += 2 - Math.random()*4 - (Math.random()*s1vx/4);
       sflinga1.style.pixelTop += s1vy;
       sflinga1.style.pixelLeft += s1vx;
       if (sflinga1.style.pixelTop > maxheight) {
         sflinga1.style.pixelTop = 0;
         sflinga1.style.pixelLeft =
Math.random()*document.body.clientWidth;
         s1vy = 5 + Math.random()*10;
         s1vx = 5 - Math.random()*10;
       }
       s2vy += 2 - Math.random()*4 - (Math.random()*(s2vy-10)/4);
       s2vx += 2 - Math.random()*4 - (Math.random()*s2vx/4);
       sflinga2.style.pixelTop += s2vy;
       sflinga2.style.pixelLeft += s2vx;
       if (sflinga2.style.pixelTop > maxheight) {
         sflinga2.style.pixelTop = 0;
         sflinga2.style.pixelLeft =
Math.random()*document.body.clientWidth;
         s2vy = 5 + Math.random()*10;
         s2vx = 5 - Math.random()*10;
       }
       s3vy += 2 - Math.random()*4 - (Math.random()*(s3vy-10)/4);
       s3vx += 2 - Math.random()*4 - (Math.random()*s3vx/4);
       sflinga3.style.pixelTop += s1vy;
       sflinga3.style.pixelLeft += s1vx;
       if (sflinga3.style.pixelTop > maxheight) {
         sflinga3.style.pixelTop = 0;
         sflinga3.style.pixelLeft =
Math.random()*document.body.clientWidth;
         s3vy = 5 + Math.random()*10;
         s3vx = 5 - Math.random()*10;
       }
       s4vy += 2 - Math.random()*4 - (Math.random()*(s4vy-10)/4);
       s4vx += 2 - Math.random()*4 - (Math.random()*s4vx/4);
       sflinga4.style.pixelTop += s4vy;
       sflinga4.style.pixelLeft += s4vx;
       if (sflinga4.style.pixelTop > maxheight) {
         sflinga4.style.pixelTop = 0;
         sflinga4.style.pixelLeft =
Math.random()*document.body.clientWidth;
         s4vy = 5 + Math.random()*10;
         s4vx = 5 - Math.random()*10;
       }
       s5vy += 2 - Math.random()*4 - (Math.random()*(s5vy-10)/4);
       s5vx += 2 - Math.random()*4 - (Math.random()*s5vx/4);
       sflinga5.style.pixelTop += s5vy;
       sflinga5.style.pixelLeft += s5vx;
       if (sflinga5.style.pixelTop > maxheight) {
         sflinga5.style.pixelTop = 0;
         sflinga5.style.pixelLeft =
Math.random()*document.body.clientWidth;
         s5vy = 5 + Math.random()*10;
         s5vx = 5 - Math.random()*10;
       }
     }
   }
