$(document).ready(function(){
	$("ul.lijst").hide();
	$(".contentcontainer").corner("keep");
	$(".leftarm").corner("keep");
	$(".header h2").corner("keep");

	$("#login_field").hover(
	function(){	$(".loginfield").show();	
	$(".login").hide();},	
	function(){ $(".loginfield").hide(); 
	$(".login").show();
	});

	$('li.month').click(function(event){ 
	$(this).children().show('slow');
	 event.stopPropagation();
	});
	
/*
	$('li.month').click(function(event){ 
	$(this).children().toggle("slow");
	 event.stopPropagation();
	});

	$('li.year').click(function(event){ 
	$(this).children().toggle("slow");
	event.stopPropagation();
	});
	*/
	
	//open alles.
		$('#ToggleAll').toggle(function() {
			$('ul.lijst').show('slow');
		}, function() {
		    $('ul.lijst').hide('slow');
		});
	
	$(function(){
			/**
			All the functions for the Tagcloud. only works within Tagcloud.
			zoom: 90 Initial zoom level
			min_zoom: 25
			max_zoom: 120
			zoom_factor: 2 - Speed of zoom by the mouse wheel
			rotate_factor: -0.45 - Amount that the sphere rotates when the mouse moves. Positive values reverse the direction.
			fps: 10 - Defines the (target) number of times the animation will be updated per second
			centrex: 250 - Horizontal rotation centre in the container <div>
			centrey: 250 Vertical rotation centre in the container <div>
			min_font_size: 12
			max_font_size: 32
			font_units: 'px'
			random_points: 50 - Adds some random points on to the sphere to enhance the effect
			foreground_colour: #fff - Accepted colour formats are #333 #0A0A0A and rgb(n,n,n)
			background_colour: rgb(0,0,0) - Named colours may not work 
		*/
	    $('#tagcloud').tagcloud({centrex:400, centrey:350, init_motion_x:5, init_motion_y:5, zoom:105,min_zoom:80,max_zoom:120, random_points: 500});
	});	
	
	$('.container').css({ opacity: 0.85 });
	
	Shadowbox.init();	
	$('a.sbox').live('click',function(e){
 
        Shadowbox.open(this);
        //Stops loading link
        e.preventDefault();
    });
	
}); 

	//voorpagina zodat je een domain naam kan invullen.	

	function blog_doorzoeken(number)
	{
		$(".content").html('<center><img src="http://www.cablegunmaster.nl/images/ajax-loader.gif"><br/>Even geduld alstublieft.</center>'); 
		$(".content").load("http://www.cablegunmaster.nl/includes/ajax_middle.php?blog="+number);
		//$(".content").load("http://www.cablegunmaster.nl/includes/ajax_middle.php?blog="+number);
	}
