var divs = ['main','menu'];
		
		function syncronizeDivs(){
		    var maxH = 0;
		    d = document.getElementsByTagName("DIV");
		    for(i=0;d.length>i;i++){
		        for(j=0;divs.length>j;j++){
		            if(d[i].id==divs[j])maxH = Math.max(maxH,d[i].offsetHeight);
		        }
		    }
		    for(i=0;d.length>i;i++){
		        for(j=0;divs.length>j;j++){
		            if(d[i].id==divs[j])d[i].style.height=maxH + 'px';
		        }
		    }
		}

if(document.all&&navigator.userAgent.indexOf('Opera')==-1)
  document.write('<link href="/Templates/normalside/Viborgregatta_layout_IE.css" rel="stylesheet" type="text/css">');
else
  document.write('<link href="/Templates/normalside/Viborgregatta_layout_NS.css" rel="stylesheet" type="text/css">');

// Printer venlig version
function printContent() {
	var sContent = '<html><head><link href="/Templates/normalside/viborgregatta_print.css" type="text/css" rel="stylesheet" /></head><body><table>'
	sContent += "<tr><td valign='top'>"+document.getElementById('main').innerHTML+"</td>";
	sContent += '</table></body></html>';
	var printwindow=window.open("","","toolbar=no,location=no,directories=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,screenX=200,screenY=50");
	printwindow.document.open();
	printwindow.document.write(sContent);
	printwindow.document.close();
	printwindow.focus();
	printwindow.print();
}