jQuery(document).ready(function($){

	if(($.browser.msie) && ($.browser.version=='6.0')){
	
		$("body").prepend('<div id="warning">Uw browser is verouderd en u loopt een serieus risico. <br />Download en installeer <a href="http://www.getfirefox.com">Firefox</a>.</div>');
	
	}
	
	
	$("#nav li").each(function(i){this.id = "nav-li-"+i;});
	$("#nav li ul").hide();
	$("#nav > li").hover(
		function(){
			$(this).addClass("onhover");
			$("#"+this.id+" > ul").css('z-index:','10000');
			$("#"+this.id+" > ul").fadeIn(200);
		},
		function(){
			$("#"+this.id+" > ul").fadeOut(200);
		}
	)

	$("#nav > li li").hover(
		function(){
			$(this).addClass("onhover");
			$("#"+this.id+" > ul").css('z-index:','10000');
			$("#"+this.id+" > ul").fadeIn(200);
		},
		function(){
			$("#"+this.id+" > ul").fadeOut(200)
		}
	)
	
	$('a:contains("Google Maps")').each(function(){
		$(this).parent().after('<div class="googlemap"><iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+$(this).attr('href')+'&output=embed"></iframe></div>');
		$(this).parent().hide();
	});
	
	$("em a").each(function (i) {
		$(this).wrapInner('<span>');
	});
	

	
	if($("#myController").length>0){
		$("#myController").jFlow({
			slides: "#slides",
			controller: ".jFlowControl", // must be class, use . sign
			slideWrapper : "#jFlowSlide", // must be id, use # sign
			selectedWrapper: "jFlowSelected",  // just pure text, no sign
			auto: false,		//auto change slide, default true
			width: "900px",
			height: "220px",
			duration: 800,
			prev: ".jFlowPrev", // must be class, use . sign
			next: ".jFlowNext" // must be class, use . sign
		});
	}
	
	
});
