function addLoadEvent ( func ) {
	var oldonload = window.onload;
	if ( typeof window.onload != "function" ) {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


function besatthetsvarning(){
	var besatt = document.getElementById( "besatthetssak" );
	
	besatt.onclick = function() {
		alert( "Besatthetsvarning" );
	}
}


function link() {
	linksChannah = document.getElementById( "linksChannah" ).getElementsByTagName( "a" ); 

	for( i = 0; i < linksChannah.length; i++ ) {
		agh();
	}

	function agh() {
		linksChannah[i].onmouseover = function() {
			this.style.fontSize = "2em";
			
			if( this.getAttribute( "id" ) == "ill" ) {
				this.style.fontSize = "4em";
			}
		}
			
		linksChannah[i].onmouseout = function() {
			this.style.fontSize = "1em";
			
			if( this.getAttribute( "id" ) == "ill" ) {
				this.style.fontSize = "3em";
			}
		}
	}
}

addLoadEvent( link );
addLoadEvent( besatthetsvarning );

