function blanket_size(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportheight = window.innerHeight;
	} else {
		viewportheight = document.documentElement.clientHeight;
	}
	if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
		blanket_height = viewportheight;
	} else {
		if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
			blanket_height = document.body.parentNode.clientHeight;
		} else {
			blanket_height = document.body.parentNode.scrollHeight;
		}
	}
	var blanket = document.getElementById('blanket');
	blanket.style.height = blanket_height + 'px';
	var popUpDiv = document.getElementById(popUpDivVar);
	popUpDiv_height=blanket_height/2-150;//150 is half popup's height
	popUpDiv.style.top = popUpDiv_height + 'px';
}

window.onload = function() {
	/*
	The new 'validTags' setting is optional and allows you to specify other HTML elements that curvyCorners can attempt to round.
	The value is comma separated list of html elements in lowercase.
	validTags: ["div", "form"]
	The above example would enable curvyCorners on FORM elements.
	*/
	settings = {
      tl: { radius: 15 },
      tr: { radius: 15 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true,
      autoPad: true,
	validTags: ["div"]
	}
	
	/*
	Usage:
	newCornersObj = new curvyCorners(settingsObj, classNameStr);
	newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
	*/
	var myBoxObject = new curvyCorners(settings, "headlines");
	myBoxObject.applyCornersToAll();
	
	var myBoxObject2 = new curvyCorners(settings, "aide");
	myBoxObject2.applyCornersToAll();
	
	var myBoxObject2 = new curvyCorners(settings, "aider");
	myBoxObject2.applyCornersToAll();
	
	var myBoxObject2 = new curvyCorners(settings, "infos");
	myBoxObject2.applyCornersToAll();
	
	var myBoxObject2 = new curvyCorners(settings, "activites");
	myBoxObject2.applyCornersToAll();
	
}