/* jQuery --> */
$(document).ready(function() {
	$('.menu li ul').hide();
	$('#cursub').parent().show().parent().parent().show();
	$('#cursub').parent().parent("li").siblings().children("ul").hide();
	$('#cursub').siblings().children("ul").hide();
	$('.meerinfo').parent().click(function() {
		var id = $(this).attr('class').substr($(this).attr('class').lastIndexOf('_')+1);
		$('#info_'+id).toggle();
		return false;
	});
	$('#s1').cycle({fx:'fade',speed:1000,timeout:15000,random:1,height:91,fit:1});
	$('#s1 img').css("visibility","visible");
	
	$('.menu li > a').click(function() {
		$(this).parent().children("ul").slideDown();
		$(this).parent().siblings("li").children("ul").slideUp();
		if ( $(this).parent().children("ul").length ) {
  			return false;
		} else {
			return true;
		}
	});
	
	$('#slideshow').cycle({ 
    	fx:     'fade', 
    	prev:   '#prev', 
    	next:   '#next', 
    	timeout: 0 
	});
	
	});
/* <-- jQuery */


function externalLinks() {
	if (!document.getElementsByTagName) {
		return;
	}
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "external") {
			anchor.target = "_blank";
		}
	}
}

window.onload=function() {
	externalLinks();
}