	$.getJSON("http://suadmin.streetunitforum.com/json/footer/?callback=?", function(data){
		
		// do the 3 banner things
		//========================================
		$("#little_panels .little_panel").each(function(i){
			if($(data.banners).size()-1 >= i){
				var banner = data.banners[i].Banner;
				if(banner.original_image == ''){
					$(this).html(banner.html);
				}else{
					$(this).html('<a href="http://suadmin.streetunitforum.com/banners/click/'+banner.id+'"><img src="http://suadmin.streetunitforum.com/img/banners/'+banner.original_image+'"></a>');
				}
			}else{
				$(this).html('');
			}
		});
	});
	
	
$(document).ready(function(){
	// add a "rel" attrib if Opera 7+
	if(window.opera) {
		if ($("a#bookmark_link").attr("rel") != ""){ // don't overwrite the rel attrib if already set
			$("a#bookmark_link").attr("rel","sidebar");
		}
	}

	$("a#bookmark_link").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		var url = window.location.href;
		var title = document.title;

		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else if(window.opera) { // Opera 7+
			return false; // do nothing - the rel="sidebar" should do the trick
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			 alert('Unfortunately, this browser does not support the requested action,'
			 + ' please bookmark this page manually.');
		}

	});
});
