function hoverArrowOver(id){
document.getElementById(id).getElementsByTagName('img')[0].src = '/UMBImages/forside_pil_over.gif';
}
function hoverArrowOut(id){
document.getElementById(id).getElementsByTagName('img')[0].src = '/UMBImages/forside_pil.gif';
}

function daysWithMoreEvents(){

var eventDays = document.getElementsByTagName('td'); 

for (i=0; i<eventDays.length; i++){

	if(eventDays[i].className=='eventDay'){
		var eventsOnSameDayCount = eventDays[i].getElementsByTagName('div').length;
		if(eventsOnSameDayCount>1){
			var dayContent =eventDays[i].innerHTML;
			var day = dayContent.substring(0,dayContent.indexOf('<')); 

			eventDays[i].innerHTML = day+'<div class=\"item\"><a class=\"eventDayLink\" href=\"/events.aspx\">'+day+'</a></div>';
		}
	}
}
}
function PartnerMouseOut(){
	
	var alltags=document.getElementsByTagName('*');
			
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className=='partnerImg'){ 
			alltags[i].src = '/UMBImages/forside_pil.gif';	
		}
		if (alltags[i].className=='partnerLinkSelected'){ 
			alltags[i].className = 'partnerLink';	
		}
		if (alltags[i].className=='partnerBanner'){ 
			alltags[i].style.display = 'none';
			document.getElementById('partner6Banner').style.display = 'block';	
		}
	}
	
	document.getElementById('partner1LinkImg').src = '/UMBImages/partner1.gif';
	document.getElementById('partner2LinkImg').src = '/UMBImages/partner2.gif';
	document.getElementById('partner3LinkImg').src = '/UMBImages/partner3.gif';
	//document.getElementById('partner4LinkImg').src = '/UMBImages/partner4.gif';
	//document.getElementById('partner5LinkImg').src = '/UMBImages/partner5.gif';
}

function setSelectedPartner(id){
	
	var alltags=document.getElementsByTagName('*');
			
	for (i=0; i<alltags.length; i++){
		
		if (alltags[i].className=='partnerImg'){ 
			alltags[i].src = '/UMBImages/forside_pil.gif';	
		}
		if (alltags[i].className=='partnerLinkSelected'){ 
			alltags[i].className = 'partnerLink';	
		}
		if (alltags[i].className=='partnerBanner'){ 
			alltags[i].style.display = 'none';	
		}
	}


	document.getElementById(id+'Img').src = '/UMBImages/forside_pil_over.gif';

	document.getElementById(id+'Link').className = 'partnerLinkSelected';

	//document.getElementById(id+'Banner').style.display = 'block';


	document.getElementById('partner1LinkImg').src = '/UMBImages/partner1.gif';
	document.getElementById('partner2LinkImg').src = '/UMBImages/partner2.gif';
	document.getElementById('partner3LinkImg').src = '/UMBImages/partner3.gif';
	//document.getElementById('partner4LinkImg').src = '/UMBImages/partner4.gif';
	//document.getElementById('partner5LinkImg').src = '/UMBImages/partner5.gif';
	
	document.getElementById(id+'LinkImg').src = '/UMBImages/'+id+'_over.gif';
	
	
}
function showOtherMonthDays(){
	
	var alltags=document.getElementsByTagName('*');
			
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className=='otherMonthDay'){ 
			alltags[i].innerHTML = '-';	
		}
	}
	
}
function showSelectedLeftNav(){

if(document.getElementById('selected')){	

document.getElementById('selected').getElementsByTagName('img')[0].src = '/UMBImages/venstremenu_pil_over.gif';
//document.getElementById('selected').style += '';
}
}
function showMouseoverLeftNav(){
if(document.getElementById('hover')){
if(document.getElementById('hover').getElementsByTagName('img')[0]){
document.getElementById('hover').getElementsByTagName('img')[0].src = '/UMBImages/venstremenu_pil_over.gif';
}
//document.getElementById('hover').style ='color: #ffffff;'; 
}
}
function showMouseoutLeftNav(){
if(document.getElementById('hover')){
if(document.getElementById('hover').getElementsByTagName('img')[0]){
document.getElementById('hover').getElementsByTagName('img')[0].src = '/UMBImages/venstremenu_pil.gif';
}
document.getElementById('hover').id  ='';
//document.getElementById('hover').style ='color: #ffffff;'; 
}
}
function ShowBanner(topImg1,topImg2,topImg3,topImg4,topImg5,topImg6,topImg7,topImg8,topImg9,topImg10,
colorScheme1,colorScheme2,colorScheme3,colorScheme4,colorScheme5,colorScheme6,colorScheme7,colorScheme8,colorScheme9,colorScheme10) { 

var topImgs=new Array();
var i = 1;

if(topImg1!=''){
	topImgs[i]=topImg1;
	i++; 
}
if(topImg2!=''){
	topImgs[i]=topImg2;
 	i++;
}
if(topImg3!=''){
	topImgs[i]=topImg3;
	i++;
}
if(topImg4!=''){
	topImgs[i]=topImg4;
	i++;
}  
if(topImg5!=''){
	topImgs[i]=topImg5;
	i++;
} 
if(topImg6!=''){
	topImgs[i]=topImg6;
	i++;
} 
if(topImg7!=''){
	topImgs[i]=topImg7;
	i++;
} 
if(topImg8!=''){
	topImgs[i]=topImg8;
	i++;
} 
if(topImg9!=''){
	topImgs[i]=topImg9;
	i++;
} 
if(topImg10!=''){
	topImgs[i]=topImg10;
	i++;
} 
  
var colorSchemes=new Array();
colorSchemes[1]=colorScheme1;
colorSchemes[2]=colorScheme2;
colorSchemes[3]=colorScheme3;
colorSchemes[4]=colorScheme4;
colorSchemes[5]=colorScheme5;
colorSchemes[6]=colorScheme6;
colorSchemes[7]=colorScheme7;
colorSchemes[8]=colorScheme8;
colorSchemes[9]=colorScheme9;
colorSchemes[10]=colorScheme10;
 
num = Math.random(); 
num = 1 + ( num * ((topImgs.length - 1)-1)); 
num = Math.round(num); 

document.getElementById('frontPageTopImg').innerHTML ='<img src="'+topImgs[num]+'"/>';

var h1= document.getElementsByTagName('div'); 

//setStyleByTag("H1","color",colorSchemes[num],1);
//setStyleByTag("H2","color",colorSchemes[num],1);
//setStyleByTag("H3","color",colorSchemes[num],1);
//setStyleById("calDays", "color", colorSchemes[num]);
//setStyleByClass("td", "toDay", "color", colorSchemes[num]);

if(num==1){	
setStyleByClass("img", "tema1Img", "display", "inline");
}
if(num==2){	
setStyleByClass("img", "tema2Img", "display", "inline");
}
if(num==3){	
setStyleByClass("img", "tema3Img", "display", "inline");
}
if(num==4){	
setStyleByClass("img", "tema1Img", "display", "inline");
}
if(num==5){	
setStyleByClass("img", "tema2Img", "display", "inline");
}
if(num==6){	
setStyleByClass("img", "tema3Img", "display", "inline");
} 
if(num==7){	
setStyleByClass("img", "tema1Img", "display", "inline");
}
if(num==8){	
setStyleByClass("img", "tema2Img", "display", "inline");
}
if(num==9){	
setStyleByClass("img", "tema3Img", "display", "inline");
} 
if(num==10){	
setStyleByClass("img", "tema3Img", "display", "inline");
}    
} 
function getDate(){
	
var months=new Array(13);
months[1]="januar"; 
months[2]="februar"; 
months[3]="marts"; 
months[4]="april"; 
months[5]="maj"; 
months[6]="juni"; 
months[7]="juli"; 
months[8]="august"; 
months[9]="september"; 
months[10]="oktober"; 
months[11]="november"; 
months[12]="december"; 
var time=new Date(); 
var lmonth=months[time.getMonth() + 1]; 
var date=time.getDate(); 
var year=time.getFullYear(); 
document.write(date + ". " + lmonth + " " + year); 
}

function menuHover(id){
	document.getElementById(id).src ='/UMBImages/'+id+'_over.gif';
}
function menuHoverOut(id){
	if(document.getElementById(id).className!='selected')
		document.getElementById(id).src ='/UMBImages/'+id+'.gif';

}

function hideLines(){
	
	

	var alltags=document.getElementsByTagName('img');
			
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className=='colHR'){ 
			alltags[i].style.display = 'none';	
		}
	}

}
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART)
{
  var d = document.getElementById(DivID);
  d.innerHTML = '<object width="550" height="400"><param name="movie" value="'+ URL +'"><embed src="'+ URL +'" width="550" height="400"></embed></object>';
    //'<object classid=' + CLSID + ' id=' + ObjectID + 
    //' width=' + WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param name="autoStart" value=' + AUTOSTART + '/>';
}

function writeFlash(id, file, width, height) {

document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + width + "' height='" + height + "' id='myflash' align='top'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+ file +"' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='mymovie.swf' quality='high' bgcolor='#ffffff' width='200' height='200' name='mymovie' align='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";

} 
function writeFlashNoSize(id, file) {

document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+ file +"' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='mymovie.swf' quality='high' bgcolor='#ffffff' width='200' height='200' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";

} 

function writeFlashNy(id, file, width, height) {

//width = 590;
//height = 611;

document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + width + "' height='" + height + "' id='myflash'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + file + "'><param name='quality' value='high'/><embed src='" + file + "' width='"+width+"' height='" + height + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' ></embed></object>";

} 

function ChangeBGColor(){
var color = document.getElementById('testBg').className;
//document.write('color '+ color);

document.getElementById('body').bgColor = color;//'#555555';

//.style.background = document.getElementById('testBg').bgColor; 
//if(color!='')
//	document.getElementById('mainPage').style.bgColor = color;	
//else
//	document.getElementById('mainPage').style.bgColor = '#ffffff';

}

function HideSearch(){

document.getElementById('MicroSearchAndLogin').style.display = 'none';

}




























































































































