// JavaScript Document

$(document).ready(function() {						   
	$(document).initialize();
	
	$('.slideLeft').mouseover(function(){
		$('.thumbSlider').animate({
								  marginLeft: '-200px'
								  }, 1000);								   
	});
	$('.slideRight').mouseover(function(){
		$('.thumbSlider').animate({
								  marginLeft: '200px'
								  }, 1000);								   
	});
 });

$.fn.initialize = function() {	
	checkmuziek();
}


function controlAppeareance()
{
	$("#inhoud").hide();
	setTimeout('$("#inhoud").show(300);',500);	
}



function setupGallery()
{
	 
	 $("a.group").fancybox({ 
			'zoomSpeedIn': 300, 
			'zoomSpeedOut': 500, 
			'hideOnContentClick': true
	}); 
}

function writeBlogIcon()
{
		var so = new SWFObject("images/icon_blog.swf", "blogicon", "32", "32", "8.0.23", "", true);						
		so.addParam("menu", "0");
		so.addParam("wmode","transparent");	
		so.write("blogicon");		
		var so = new SWFObject("images/icon_reactie.swf", "reactieicon", "32", "32", "8.0.23", "", true);						
		so.addParam("menu", "0");
		so.addParam("wmode","transparent");	
		so.write("reactieicon");			
}

function showReactieForm()
{
	$('#reactieform').show(500);
}

// JavaScript Document
function muziek() {
   var sendText = document.getElementById('muziekcheck').checked ? 2 : 1;
   top.onder.window.document.flashmuziek.SetVariable("stopgeluid", sendText);
   top.onder.window.document.getElementById('geluidsindicatie').value = sendText;
}

function checkmuziek() {
	if (document.getElementById('muziekcheck')) {
		if (top.onder.window.document.getElementById('geluidsindicatie').value == 2) {	
			document.getElementById('muziekcheck').checked = true;	
		} else {
			document.getElementById('muziekcheck').checked = false;			
		}
	}
}

function threadBlogPost(status)
{
	if (status == "<!-- OK -->") {
		document.getElementById('bericht').value='';
		document.getElementById('email').value='';
		document.getElementById('veiligheidscode').value='';
		tekst = document.getElementById('tkst_success').value;
		$("#coderesponse").html(tekst);		
		setTimeout("location.reload();",1500);
	}
}