jQuery.fn.advertisement = function(newopts) {
	return $(this).each( function() {
		var opts = {
			sponsor: false,
			side: 'right',
			offsetx: 0,
			offsety: 0,
		}
		$.extend(opts, newopts);
		
		var test = $('.wrap').width() + 300;
		var total = $('body').width();
		
		if(test > total) {
			window.alert('not enough room');
		} else {
			$(this).css({
				marginLeft:'-300'
			});
		}
		
	});
}
