function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function elektroniskpost(navn) {
	document.location='mailto:'+navn+'@fl-teknik.com';  
}

var lang=readCookie('FL-Teknik_lang');


var copytext='&copy 2011 FL-Teknik. Alle rettigheder forebeholdes. <br>Kontakt <a href="javascript:void();" onclick="elektroniskpost(\'webmaster\');">Webmaster</a>.';

if (lang=='de') {
  copytext='&copy 2011 FL-Teknik. Alle Rechte vorbehalten. <br><a href="javascript:void();" onclick="elektroniskpost(\'webmaster\');">Webmaster</a> Kontakten.';
}


if (lang=='en') {
  copytext='&copy 2011 FL-Teknik. All rights reserved. <br>Contact <a href="javascript:void();" onclick="elektroniskpost(\'webmaster\');">the Webmaster</a>.';
}


document.write('<div id="copyright">');
document.write(copytext);
document.write('</div>');

