/*
 * jwAnnounce v1.0 - http://jeffrey-way.com/introducing-jwannounce/
 * Simple plugin that creates a bar at the top of your website when you need to inform the user of an important announcement.
 * Last updated : November 2nd, 2009
 * Created by : Jeffrey Way, http://www.jeffrey-way.com, jeffrey@jeffrey-way.com

 * Plugin home : http://jeffrey-way.com/introducing-jwannounce/


(function($) {
	
	$.fn.jwAnnounce = function(options) {

		var options = $.extend({
			className : 'notice',
			text : null,
			siteWidth : null }, options);
	
		return this.each(function() {
			$(this).prepend('<div class="' + options.className + '" />');
			
			var $announceDiv = $('.' + options.className);
			
			$announceDiv
				.append('<div>' + options.text + '</div>')
				.children('div:last')
					.css({
						'width' : options.siteWidth,
						'margin' : 'auto'
					})
				.end()
				.prepend('<span class="close">X</span>')
				.children('.close')
					.css({
						'position' : 'absolute',
						'cursor' : 'pointer',
						'display' : 'none'
					})
				.end()
				
				.hover(function() {
					// over
					$(this)
						.children('.close')
						.show()
						.click(function() {
							$announceDiv.slideUp(250, function() {
								$(this).remove();
							});
						})
				}, function() {
					$('.close').hide();
				});
		}); // end each
	
	}
	
})(jQuery);
*/
