$(document).ready(function() {

	// first hide all before moving
	$('div.random').hide();

	// random padding (jumping)
	maxPad=50;
	$('div.random').each(function(){
		rndHor=rnd(maxPad);
		rndVer=rnd(maxPad);
		padding=rndVer+'px '+(maxPad-rndHor)+'px '+(maxPad-rndVer)+'px '+rndHor+'px';
		$(this).css({padding:padding});
	});
	
	// moving images under menu down
	menuHeight=$('#menu ul li.active ul').outerHeight()+10;
	// which images?
	movingImages = new Array(2,5);
	if ($('body').hasClass('cobbenhagen_hendriksen')) movingImages=Array();
	if ($('body').hasClass('campaigns') || $('body').hasClass('miscellaneous')) movingImages = Array(3,6);
	for (x in movingImages)	{
		nr=movingImages[x];
		$('div.random.nr'+nr).css({marginTop:menuHeight+'px'});
	}

	// show them all after moving
	$('div.random').show();



	function rnd(m) { return Math.random()*m+1;	}
});
