// JavaScript Document

function ShowAsp(theURL,winName,features) {
	win = window.open(theURL,winName,features);
}
 
t=0;

function oc (name) {
	if (t==1) {clearTimeout(timeoutID) };
	t=1; window.status=name;
	timeoutID=setTimeout("t=0; window.status='';",2000);
}
	
function rowOver(){
	lmnt = window.event.srcElement;
	if (lmnt.tagName.toUpperCase() == 'TABLE')
		return;
	while (lmnt.tagName.toUpperCase() !='TR') 
		lmnt = lmnt.parentElement;
	lmnt.style.background = "#dcdcdc";
}

function rowOut(){
	lmnt = window.event.srcElement;
	if (lmnt.tagName.toUpperCase() == 'TABLE')
		return;
	while (lmnt.tagName.toUpperCase() !='TR') 
		lmnt = lmnt.parentElement;
	lmnt.style.background ="#eeeeee";
}


function MakeArray(size)
{
	this.length = size;
	for(var i = 1; i <= size; i++)
	{
		this[i] = 0;
	}

	return this;
}

function dato()
{
	dag = new Date();
	document.writeln(convertDay(dag.getDay()) + ' d. ' + dag.getDate() + '. ' + convertMonth(dag.getMonth()));
}
function convertDay(dayValue) {
	strDay= new MakeArray(7);
	strDay[0] = "Søndag";
	strDay[1] = "Mandag";
	strDay[2] = "Tirsdag";
	strDay[3] = "Onsdag";
	strDay[4] = "Torsdag";
	strDay[5] = "Fredag";
	strDay[6] = "Lørdag";
	return strDay[dayValue];
}

function convertMonth(monthValue) {
	strMonth= new MakeArray(12);
	strMonth[0] = "januar ";
	strMonth[1] = "februar ";
	strMonth[2] = "marts ";
	strMonth[3] = "april ";
	strMonth[4] = "maj ";
	strMonth[5] = "juni ";
	strMonth[6] = "juli ";
	strMonth[7] = "august ";
	strMonth[8] = "september ";
	strMonth[9] = "oktober ";
	strMonth[10] = "november ";
	strMonth[11] = "december ";
	return strMonth[monthValue];
}

if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion.substring(0,1)) >= 4))
var ie4 = 1;

function mouseon(link) {
	if (ie4 == 1) {
		link.style.color='#ffffff';
	}
}

function outcolor(link, farve) {
link.style.color='#CCCCCC';
}

function mouseoff(link) {
	if (ie4 == 1) {
		setTimeout("outcolor(" + link.id + ", '#EEEEEE')",100);
		setTimeout("outcolor(" + link.id + ", '#DEDEDE')",250);
		setTimeout("outcolor(" + link.id + ", '#DDDDDD')",320);
		setTimeout("outcolor(" + link.id + ", '#CDCDCD')",400);
		setTimeout("outcolor(" + link.id + ", '#CCCCCC')",520);
	}
}
