$(function(){$('#right').cycle({fx:'scrollLeft',speed:1500,timeout:0,easing:"bounceout",next:'#next',prev:'#prev'});});
function sh(divId1) {
    if (document.getElementById(divId1).style.display=="none") {
        document.getElementById(divId1).style.display = 'block';
    } else {
        document.getElementById(divId1).style.display = 'none';
    }
}
function hide(divId1) {document.getElementById(divId1).style.display = 'none';}
function show(divId1) {document.getElementById(divId1).style.display = 'block';}
$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	var href = $('.qLinks a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #content';
			$('#content').load(toLoad)
		}											
	});

	$('.qLinks a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #content';
		$('#content').hide('fast',loadContent);
		$('#load').remove();
		$('#laden').append('<div id="load" style="float:right;">Bezig met laden...<\/div>');
		$('#load').fadeIn('normal');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#content').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#content').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});

});

function cimg(img,to) {
document[to].src = img;
}
