function init(){
	$("#tbl_rekenblad tr").mouseover(function() {
		$(this).addClass("trover");}).mouseout(function() {$(this).removeClass("trover");}).click(function() {
		//$(this).toggleClass("trclick");
	});
	$("#tbl_resultaten tr:odd").addClass("oddtr");
	$("#tbl_resultaten tr").mouseover(function() {
		$(this).addClass("trover");}).mouseout(function() {$(this).removeClass("trover");}).click(function() {
		$(this).toggleClass("trclick");
	});
	var toggleMinus = 'images/treeview/minus.gif';
	var togglePlus = 'images/treeview/plus.gif';
	//var $subHead = $('tbody th:first-child');
	var $subHead = $(".source_main");
	$subHead.prepend('<img src="' + togglePlus + '" alt="lineair spectrum" /> ');
	$('img', $subHead).addClass('clickable').click(function(){
		var toggleSrc = $(this).attr('src')
		if ( toggleSrc == toggleMinus ) {
			$(this).attr('src', togglePlus);
			$(this).parent().parent().next().fadeOut("fast");
		} else{
			$(this).attr('src', toggleMinus);
			$(this).parent().parent().next().fadeIn("fast");
		}
	}) 

}

function start_page(){
	window.location.href = './index.php';
}

function resizeDiv(){
	var ns=(document.layers);
	var ie=(document.all);
	var w3=(document.getElementById && !ie);

	if (ie){
		height = document.body.offsetHeight;
	}else if (ns){
		height = window.innerHeight;
	}else if (w3){
		height = self.innerHeight;
	}
	document.getElementById('content').style.height = (parseInt(height) - 120) - 175 + "px";
}

function Clickheretoprint(){ 

	var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
	  	disp_setting+="scrollbars=yes,width=1000, height=800, left=10, top=10"; 
	var content = $("#content" ).html(); 
	
	var docprint=window.open("","",disp_setting); 

	docprint.document.open();
	docprint.document.write('<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> \n');
	docprint.document.write('<html>\n<head>\n<title>Alara-Lukagro<\/title> \n');
	docprint.document.write('<link rel="stylesheet" type="text/css" href="css/style_print.css" /> \n');
   	docprint.document.write('<\/head>\n<body onLoad="self.print()"> \n'); 
	docprint.document.write('<div id="main"><div id="header"><div id="menu">	Alara-Lukagro bv <br \/> \n'); 
	docprint.document.write('Huijgensweg 3 2964 LL  Groot-Ammers<br \/>Postbus 15 2964 ZG  Groot-Ammers<br \/>T +31 (0)184 66 17 00  F +31(0)184 66 27 21<br \/> \n'); 
	docprint.document.write('E  info@alara-lukagro.nl  I www.alara-lukagro.nl<br \/><\/div> \n'); 
	docprint.document.write('<div id="logo"><img src="images/alg_print.gif"	alt="Alara-Lukagro noise control" width="502" height="82" \/><\/div> \n'); 
	docprint.document.write('<\/div><br \/><div id="print"> \n'); 
	docprint.document.write(content);  
	docprint.document.write('<\/div><\/div> \n'); 
	docprint.document.write('\n<\/body><\/html>'); 
	docprint.document.close(); 
	docprint.focus(); 
}