Here is the code to add a sprout to your Ning header.
<script type=”text/javascript”>
/**
* Tracking Code Hack: Replace the Header of the network with a swf
**/
var headerSwfUrl = “http://farm.sproutbuilder.com/load/HAAQ–J3FYnB0soP.swf”;
var headerSwfWidth = 980;
var headerSwfHeight = 350;
var newHeaderHtml = ‘<embed src=”‘+headerSwfUrl+’” width=”‘+headerSwfWidth+’” height=”‘+headerSwfHeight+’” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer <http://www.macromedia.com/go/getflashplayer> “> </embed>’;
var headerElement = document.getElementById(‘xg_masthead’);
//replace the old header with the new one
headerElement.innerHTML = newHeaderHtml;
//change the id as a simple way to remove all css attached to it
headerElement.id = ‘newheader’;
</script>
