		});
		// hiding close button
		$('.close_btn_overlay').hide();
	}
	
</script>	<script type="text/javascript">
		uid = parseInt();
		
	if(uid > 0) {
		var favicon = new Favico({
			type : 'rectangle',
			elementId : 'badgeImage'
		});
		
		window.addEventListener("message", receiveMessage, false);

		function receiveMessage(evt) {
			switch(evt.data.action) {
				case 'updatereadnotifications':
					favicon.badge(0);
					break;
				case 'updateheaderValues':
					$("#total-points").html(evt.data.totalpoin