window.onload=function(){
	// move to center
	var mtc = function(ele){
			// get the notice element
			var el = ele.getElement('.notice');			
			// get the notice box position array
			var elV = el.getPosition();			
			// get the parent box's position array
			var eleV = ele.getPosition();
			// set the position options
			var positionOptions = {
					"top": (eleV.height / 2) - (elV.height / 2)+"px",
					"left":(eleV.width / 2) - (elV.width / 2)+"px"
			}		
			// set the new styles
			el.setStyles(positionOptions);
		
	};
	/* setup draggables */
	var draggables = $S('.drag');
	draggables.each(function(el){	
		// make the box draggable using this handle
		el.makeDraggable({
			handle: el.getElementsBySelector('.handle')[0]
		});
		
	});
	
	
}

function closeAll() {
	close = document.getElementById('Drag1');
	close.setAttribute('style', 'display:none;');
}