
//$(document).ready(function() {
$(function(){
	//addWatermerk();
	addShadowBottom();
});

function addWatermerk()
{
	//constants
	padding 			= 5;
	breedte_watermerk 	= 22;
	watermerk 			= "<img src=\"http://www.nielskoopmans.nl/blog/wp-content/themes/hemingway/images/watermerk-3.png\" class=\"watermark\" alt=\"\" /> ";
	
	//getting the different vars for placing the watermark
	hoogte_img = $('.photo p img').outerHeight();	
	breedte_img = $('.photo p img').innerWidth();	
	offset_img = $('.photo p img').position();
	
	//calculate the  position relative to the paragraph
	positie_links = offset_img.left + breedte_img - padding - breedte_watermerk;
	positie_boven = hoogte_img - padding - breedte_watermerk;
	
	//inserting the watermark
	$(".photo p").append(watermerk);

	//placing the watermark	
	$(".watermark").css("left",positie_links);
	$(".watermark").css("top",positie_boven);

}

function addShadowBottom()
{
	//constants
	padding 			= 0;
	breedte_schaduw 	= 480;
	hoogte_schaduw		= 23;
	schaduw				= "<img src=\"http://www.nielskoopmans.nl/blog/wp-content/themes/hemingway/images/schaduw_onder.gif\" class=\"schaduw_onder\" alt=\"\" /> ";
	
	//getting the different vars for placing the watermark
	hoogte_img = $('.photo p img').outerHeight();	
	breedte_img = $('.photo p img').innerWidth();	
	offset_img = $('.photo p img').position();
	
	//calculate the  position relative to the paragraph
	positie_links = offset_img.left + breedte_img - padding - breedte_schaduw;
	positie_boven = hoogte_img - padding;
	
	//inserting the watermark
	$(".photo p").append(schaduw);

	//placing the watermark	
	$(".schaduw_onder").css("left",positie_links);
	$(".schaduw_onder").css("top",positie_boven);



}