/* -- tekstballonnen -- */
$(document).ready(function(){

	$(".menu a").hover(function() {
	$(this).next("em").animate({opacity: "show", top: "33"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "43"}, "fast");
	});

	$(".launch a").hover(function() {
	$(this).next("em").animate({opacity: "show", top: "53"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "63"}, "fast");
	});
});

/* -- zebrascript -- */
	var stripe = function() {
		var tables = document.getElementsByTagName("table");	

		for(var x=0;x!=tables.length;x++){
			var table = tables[x];
			if (! table) { return; }
			
			var tbodies = table.getElementsByTagName("tbody");
			
			for (var h = 0; h < tbodies.length; h++) {
				var even = true;
				var trs = tbodies[h].getElementsByTagName("tr");
				
				for (var i = 0; i < trs.length; i++) {
					trs[i].onmouseover=function(){
						this.className += " ruled"; return false
					}
					trs[i].onmouseout=function(){
						this.className = this.className.replace("ruled", ""); return false
					}
					
					if(even)
						trs[i].className += " even";
					
					even = !even;
				}
			}
		}
	}

	window.onload = stripe;

/* -- externe links -- */
$(document).ready(function(){

  $("a[@rel=external]").each(function(i){

    this.target="_blank";

  });

});

/* -- pop-up -- */
function Venster(URL) {
venster = window.open(URL, 'popupvenster', 'width=400, height=240, resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}

// JavaScript Document 
$(document).ready(function() {
	$('div.pers:eq(0)> div').hide(); 
	$('div.pers:eq(0)> h3').click(function() {
	$(this).next().slideToggle('fast');
	});
});
