$.clientCoords = function() {
      var dimensions = {width: 0, height: 0};
      if (document.documentElement) {
          dimensions.width = document.documentElement.offsetWidth;
          dimensions.height = document.documentElement.offsetHeight;
      } else if (window.innerWidth && window.innerHeight) {
          dimensions.width = window.innerWidth;
          dimensions.height = window.innerHeight;
      }
      return dimensions;
 }
$(document).ready(function() {
	$('#notice').fadeIn(200);
	$('#notice_close').click( function() {
		$('#notice').fadeOut(500);
	});
	var dimensions = {width: 0, height: 0};
	if (document.documentElement) {
	    dimensions.width = document.documentElement.offsetWidth;
	    dimensions.height = document.documentElement.offsetHeight;
	} else if (window.innerWidth && window.innerHeight) {
	    dimensions.width = window.innerWidth;
	    dimensions.height = window.innerHeight;
	}
	dimensions.width-=$('#notice').width();
	$('#notice').css('left',dimensions.width+'px');
});

