

$(document).ready(function(){



});

$(window).ready(function(){

	$('#container').fadeIn('fast');
/*
	$('.picca').each(function(index) {
			var r=Math.round(Math.random() * 500 +100);
			$(this).fadeIn('slow');
			//alert($(this));
	});
*/	

	$('.contentrow').each(function(index) {
		$(this).click(function(){
			var uitklap=0;
			if($(this).children('div.txtshort').css('display')=='none'){
				var uitklap=1;
			}
			
			$('.txtshort').each(function(index) {
				$(this).css('display','block');
			});
			$('.txtlong').each(function(index) {
				$(this).css('display','none');
			});		
			
			if(uitklap==0){
				$(this).children('div.txtshort').css('display','none');
				$(this).children('div.txtlong').slideDown();
			} 
			
		});
	
	});

});

function runSlide_sponsors(id,width,amt){
	iii=0;
	setInterval("goSlide_sponsors('"+id+"','"+width+"','"+amt+"')",5000);
}
function goSlide_sponsors(id,width,amt){
	var toscroll3 = iii * width;
	$('#'+id).scrollTo({top:"0px",left:toscroll3+"px"},800);

	iii++;
	if(iii==amt){
		iii=0;
	}
}

function runSlide_social(id,width,amt){
	ii=0;
	setInterval("goSlide_social('"+id+"','"+width+"','"+amt+"')",5000);
}
function goSlide_social(id,width,amt){
	var toscroll2 = ii * width;
	$('#'+id).scrollTo({top:"0px",left:toscroll2+"px"},800);

	ii++;
	if(ii==amt){
		ii=0;
	}
}

function runSlide(id,width,amt){
	i=0;
	setInterval("goSlide('"+id+"','"+width+"','"+amt+"')",5000);
}

function goSlide(id,width,amt){
	var toscroll = i * width;
	$('#'+id).scrollTo({top:"0px",left:toscroll+"px"},800);

	i++;
	if(i==amt){
		i=0;
	}
}

/* oude functies */

		function change (id,state){
			document.images[id].src='img/'+id+'_'+state+'.png';
		}

		function makeEmail(addr1,addr2){
			linktext=addr1+'@'+addr2;
			document.write("<a href=" + "mail" + "to:" + linktext + ">" + linktext + "</a>");
		}
	
		
		function subs(appear){
		if(typeof myTimer != 'undefined'){
		clearTimeout(myTimer);
		
		}
		document.getElementById('plus').style.display="none";
	
		if(appear==""){ } else {
		document.getElementById(appear).style.display="";
		}
		}

		function hideabout(appear){
		document.getElementById(appear).style.display="none";
		}
	
		function starttimer(appear){
		myTimer = setTimeout("hideabout ('"+appear+"')",2500);
		}

		function displaydiv(name){
			document.getElementById(name).style.display='';
		}

		function foo(){
		
		}
