mg_jQuery = jQuery.noConflict(true);
mg_jQuery(document).ready(function($){

// Red Circle Code - Michael Goldberg
	var red_circle_start = 1;
	$('ol.red-circles').each(function(){
		$(this).css('padding-left', '0');
		$(this).css('margin-left', '0');
		if ($(this).attr('start')){
			red_circle_start = parseInt($(this).attr('start'));
		} else {
			red_circle_start = 1;
		}
		if ($(this).attr('type') == 'a'){
			$(this).children('li').each(function(index){
				$(this).css('list-style', 'none');
				$(this).css('padding', '5px 0 10px 25px');
				$(this).css('background', function(){
					return 'url(/campus/images/global/red-circles/red-lower-letter-' + (index + red_circle_start) + '.png) no-repeat 0 3px';
				});
			});
		} else if ($(this).attr('type') == 'A'){
			$(this).children('li').each(function(index){
				$(this).css('list-style', 'none');
				$(this).css('padding', '5px 0 10px 25px');
				$(this).css('background', function(){
					return 'url(/campus/images/global/red-circles/red-upper-letter-' + (index + red_circle_start) + '.png) no-repeat 0 3px';
				});
			});
		} else if ($(this).attr('type') == 'i'){
			$(this).css('list-style', 'lower-roman inside none');
			$(this).children('li').each(function(index){
				$(this).css('padding', '5px 0 10px 0');
			});
		} else if ($(this).attr('type') == 'I'){
			$(this).css('list-style', 'upper-roman inside none');
			$(this).children('li').each(function(index){
				$(this).css('padding', '5px 0 10px 0');
			});
		} else {
			$(this).children('li').each(function(index){
				$(this).css('list-style', 'none');
				$(this).css('padding', '5px 0 10px 25px');				
				$(this).css('background', function(){
					return 'url(/campus/images/global/red-circles/red-circle-' + (index + red_circle_start) + '.png) no-repeat 0 3px';
				});
			});
		}
	});
// End Red Circle Code

});

