sj.onload.push(
	function(){
		
		
		//module links
		var mod_links = [
			{"t": "Support e:strip by donating through paypal", "u": "https://www.paypal.com/xclick/business=estrip.org@gmail.com&return=www.elmwoodstrip.com&cn=Thanks+for+supporting+elmwoodstrip.org", "s": "donate.png"},
			{"t": "Integrate your journal with your website so that you can style it however you want.", "u": "../api/index.php", "s": "estrip_api.png"},
			{"t": "The surebert Toolkit.", "u": "http://surebert.com", "s": "surebert.png"}
			
		];
		
		mod_links.forEach(function(v){
			
			var tag = new sb.element({
				tag : 'a',
				innerHTML : '<img src="../custom/tag_'+v.s+'" />',
				title : v.t,
				href : v.u,
				styles : {
					cursor : 'pointer'
				}
			});
		
			$('#tag_links').appendChild(tag);
			
			tag=null;
		
		});
		
		sb.events.add('#tag_links', 'click', function(e){
			
			var target = e.target;
			e.preventDefault();
			if(target.nodeName == 'IMG'){
				target = target.parentNode;
				
			}
			
			if(target.nodeName == 'A'){
				
				window.open(target.href, 'taglink');
			}
			
		});
	
	}
);

sj.installed_themes = ["river","orange","sand","fall","red","caramel","klonopin","banana","watermelon","tempreal","summer","winter","seafoam","beach","halloween", "666", "newport"];
	
sj.word_filter = function(lineData){
	lineData =  lineData.replace(/\bbooger\b/i, '<img src="../custom/emoticons/booger.gif" />'); 
	lineData =  lineData.replace(/\bbush\b/i, '<img src="../custom/emoticons/bush.gif" />'); 
	lineData =  lineData.replace(/\brice\b/i, '<img src="../custom/emoticons/rice.jpg" />'); 
	lineData =  lineData.replace(/\b\:\b\)/i, '<img src="../custom/emoticons/lol.png" />'); 
	lineData =  lineData.replace(/\bwalk\b/i, '<img src="../custom/emoticons/walk.gif" />'); 
	return lineData;
};

var txt = function(data){
	return document.createTextNode(data);
};