// JavaScript Document
melers=new Array();
melers[0]="info";
melers[1]="historiejoodsgroningen.nl";
function set_contentheight() {
	var h=0;
	alert("hallo");
	if($("#content")){
		var h=$("#content").offsetHeight;
	}
	if(h>window.height()){
		$("#contentholder").css("height",h);
	}else $("#contentholder").css("height","100%");
	if($(".databaseheader")){
		alert("hallo");
			if($(".div_right")){
				$(".div_right").css("height",$(".databaseheader").height());
			}
	}
}

function openshowfoto(id,num){
	var showfoto=window.open("showfoto.php?aid="+id+"&fotonum="+num,"foto","left=100,width=350,height=525,scrollbars=auto,resizable=yes");
	if(window.focus)showfoto.focus();
}

function openshowwebfoto(id,num){
	var showwebfoto=window.open("showwebfoto.php?aid="+id+"&fotonum="+num,"foto","left=100,width=350,height=525,scrollbars=auto,resizable=yes");
	if(window.focus)showwebfoto.focus();
}


function showone(fid){
	window.open("shared/fotoboek/shoween.php?fid="+fid+"&lan=<?php echo $lan?>","fotogroot","width=720,height=600,left=0,top=0,resizable=yes,scrollbars=no");
}

function melen(num){
	document.location.href="mailto:"+melers[num]+"@"+melers[num+1]+"?subject=HJG webmail";
}

var version = navigator.appVersion;

function wo(wurl){
  var g=window.open(wurl,"steen","left=100,width=350,height=525,scrollbars=auto,resizable=yes");
	if(window.focus)g.focus();
}


function submitter(str,updown){
	$("#SORTEXTRA").val(str);
	$("#UD").val(updown);
	$("#ZOEKS").val("ZOEKS")
  $("#basezoeker").submit();
  /*document.zoeker.SORTEXTRA.value=str;
  document.zoeker.UD.value=updown;
  document.zoeker.ZOEKS.value="verstuur";
  document.forms[0].submit();*/
}

function toggleProcedure() {
  if (version.indexOf("Windows") != -1) {
    thisProcedure = document.getElementById("procedure").style;
    if (thisProcedure.display == "block") {
      thisProcedure.display = "none";
    }
    else {
      thisProcedure.display = "block";
    }
  }
}

function leegdeVelden(){
  document.zoeker.voorNaam.value="";
  document.zoeker.famNaam.value="";
  document.zoeker.sterfDate.value="";
  document.zoeker.sterfDate2.value="";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function formsubmitter(){
  document.forms[0].submit();
}


//$(window).resize(rset_contentheight);
$(window).load(function () {

	var h=0;
	
/*	if($("#content")){
		var h=$("#content").offsetHeight;
	}
	if(h>window.height()){
		$("#contentholder").css("height",h);
	}else $("#contentholder").css("height","100%");*/
	if($(".databaseheader")){
		$(".speaker").html("<p>hallo in databaseheader</p>"+$(".speaker").text());
			if($("#div_right_header")){
				$("#div_right_header").css("height",$(".databaseheader").outerHeight());
			}
	}	
	if($(".databaselijst")){
		
			if($("#div_right_lijst")){
				$("#div_right_lijst").css("height",$(".databaselijst").outerHeight());
			}
	}	
	
/*	$(function() {
		$("table tr:nth-child(even)").addClass("striped");
	});*/

												
});



