function removeIEdoubleclick(sourceURL,width,height)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + width + ' height=' + height + ' id="deptsensors" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value=' + sourceURL + ' />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src=' + sourceURL + ' quality="high" wmode="transparent" bgcolor="#ffffff" width=' + width + ' height=' + height + ' name="Inpoc flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

// This is the function that will open the
// new window when the mouse is moved over the link
function open_new_window() 
{
new_window = open("","hoverwindow","width=300,height=200,left=10,top=10");

// open new document 
new_window.document.open();

// Text of the new document
// Replace your " with ' or \" or your document.write statements will fail
new_window.document.write("<html><title>JavaScript New Window</title>");
new_window.document.write("<body bgcolor=\"#FFFFFF\">");
new_window.document.write("This is a new html document created by JavaScript ");
new_window.document.write("statements contained in the previous document.");
new_window.document.write("<br>");
new_window.document.write("</body></html>");

// close the document
new_window.document.close(); 
}

// This is the function that will close the
// new window when the mouse is moved off the link
function close_window() 
{
new_window.close();
}



function nothing(){
	return;
}

function gifLoad(navn){
	forkort = new Image;
	forkort.src = navn + '.gif';
	return forkort;
}

function fortidlig(){
	return true;
}

function btnOver(imgname, img, updown){
	window.onerror = fortidlig
	b = eval(img + "_" + updown + ".src");
	document[imgname].src = b;
}

function menuOver(el){
	el.style.cursor = "pointer";
	el.style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_middle_on.gif)";
	var nodelist = el.childNodes;
	for(i = 0; i < nodelist.length; i++){
		if(nodelist[i].nodeType == 1){
			if(nodelist[i].id == "left"){nodelist[i].style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_left_on.gif)";}
			else if(nodelist[i].id == "right"){nodelist[i].style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_right_on.gif)";}
			//else if(nodelist[i].id == "link"){nodelist[i].style.color = "#000000";}
			else if(nodelist[i].id == "arrow"){nodelist[i].src = "/globalgfx/mainmenu/menu_btn_arrow_on.gif";}
		}
	}
}
        	
function menuOut(el){
	el.style.cursor = "auto";
	el.style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_middle.gif)";
	var nodelist = el.childNodes;
	for(i = 0; i < nodelist.length; i++){
		if(nodelist[i].nodeType == 1){
			if(nodelist[i].id == "left"){nodelist[i].style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_left.gif)";}
			else if(nodelist[i].id == "right"){nodelist[i].style.backgroundImage = "url(/globalgfx/mainmenu/menu_btn_right.gif)";}
			//else if(nodelist[i].id == "link"){nodelist[i].style.color = "#FFFFFF";}
			else if(nodelist[i].id == "arrow"){nodelist[i].src = "/globalgfx/mainmenu/menu_btn_arrow.gif";}
		}
	}
}