function co(element,mode) {
	if (mode=="in") {
      cursortype = 'hand';
      colorval = '#010101';

    } else if (mode=="out") {
      cursortype = '';
      colorval = 0;

    }
  element.style.background=colorval;
  element.style.cursor=cursortype;
}

function opac(felt,funk) {
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.appVersion.indexOf("MSIE 5")>-1 || navigator.appVersion.indexOf("MSIE 5.5")>-1) {
			if (funk=="focus") {
				felt.style.background = "#FFFFFF"
			} else {
				felt.style.background = "#DEDEDE"
			}
		}

	}
}

function vindue(fil,bredde,hojde) {
	window.open(fil,'','height='+hojde+',width='+bredde+',status=no');
}

function popup(filNavn, titel) { 

LeftPos = 150;
TopPos = 100;
settings = 'height=130,width=130,top='+TopPos+',left='+LeftPos+',scrollbars=no,resizable=yes';
imageWin=window.open('',"imageWin",settings);
imageWin.document.open(); 
imageWin.document.write( 
'<html>'+ 
'<head>'+ 
'<title>'+ titel + '</title>'+ 
'<\script language="JavaScript">'+ 
'function myResize() {'+ 
'picW = document.images["pic"].width;'+ 
'picH = document.images["pic"].height;'+ 
'picW = picW+10;'+
'picH = picH+25;'+
'window.resizeTo(picW,picH);'+ 
'}'+ 
'<\/script>'+ 
'</head>'+ 
'<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="myResize();">'+ 
'<a href="#" onclick="self.close();">'+
'<img src="' + filNavn + '" NAME="pic" border="0"></a>'+ 
'</body>'+ 
'</html>' ); 
imageWin.focus();
imageWin.document.close(); 
} 







function popupquicktime(movurl,movwidth,movheight,titel) { 

LeftPos = 150;
TopPos = 100;
settings = 'height=' + movheight + ',width=' + movwidth + ',top='+TopPos+',left='+LeftPos+',scrollbars=no,resizable=yes';
imageWin=window.open('',"imageWin",settings);
imageWin.document.open(); 
imageWin.document.write( 
'<html>'+ 
'<head>'+ 
'<title>'+ titel + '</title>'+ 
'</head>'+ 
'<body bgcolor="#000000" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'+ 
'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="' + movwidth + '" height="' + movheight + '" '+
'codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"> '+ 
'<param name="controller" value="true"> '+
'<param name="type" value="video/quicktime"> '+
'<param name="cache" value="false"> '+
'<param name="kioskmode" value="true"> '+
'<param name="autoplay" value="true"> '+
'<param name="target" value="myself"> '+
'<param name="src" value="' + movurl + '"> '+
'<param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html"> '+
'<embed width="' + movwidth + '" height="' + movheight + '" controller="true" target="myself" '+ 
'src="' + movurl + '" type="video/quicktime" kioskmode="true" bgcolor="#000000" border="0" '+
'pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed></object> '+
'</body>'+ 
'</html>' ); 
imageWin.focus();
imageWin.document.close(); 
} 


