//HOVER EFFEKT PÅ LAGER
function hover(id){
	document.getElementById(id).style.opacity = 0.85;//FF
	document.getElementById(id).style.filter='alpha(opacity=85)';//IE
}
function hoverOut(id){
	document.getElementById(id).style.opacity = 1.0;//FF
	document.getElementById(id).style.filter='alpha(opacity=100)';//IE
}

//ÖPPNAR NYTT FÖNSTER
var new_win_i = 0;
function openWindow(){
	var strSnabbval = document.getElementById('linklist');
	var strIndex=strSnabbval.selectedIndex;
	var strUrl=strSnabbval.options[strIndex].value;
	new_win_i++;
	alert(strUrl);
	var attr = "directories=no,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes,toolbar=no,width=800,height=600";
	setHighlightWindow = window.open(strUrl, "newWindow"+new_win_i, attr);
}

//ÖPPNAR LÄNK (alternativt öppnar sida i nytt fönster)
function getUrl(){
	//Deklarerar variabler
	var strSnabbval = document.getElementById('linklist');
	var strIndex=strSnabbval.selectedIndex;
	var strUrl=strSnabbval.options[strIndex].value;
	var strId=strSnabbval.options[strIndex].id;
	//Öpnnar länk i samma fönster
	if(strId==""){
		if(strUrl!=""){
			window.location=strUrl;
		}
	}
	//Öppnar länk i nytt fönster
	else{
		var strAttr = "directories=no,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes,toolbar=no,width=800,height=600";
		setHighlightWindow = window.open(strUrl, "newWindow"+strId);
	}
}		