var addthis_config = {
//	service_custom: {
//		name: "RSS",
//		url: "http://"+BASE_URL+"rss",
//		icon: "http://"+BASE_URL+"graphics/socicon_rss.png"
//	},
	username: 'xa-4b83362f7bbe913c',
	services_compact: 'twitter,facebook,digg,delicious,blogger,email,' + BASE_URL,
	ui_508_compliant: true
}
$(document).ready(function() {
	$('textarea.rich').ckeditor(function(){}, {
	    entities: true,
	    toolbar: 'Omni',
	    toolbar_Omni: [ 
	      ['Source','-','Templates'],
	      ['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo'],
	      ['Bold','Italic','Underline', '-', 'NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	      ['Link','Unlink','Anchor'],
	      ['Image','Flash','Table','HorizontalRule','PageBreak'],
	      ['Format','Font','FontSize'],
	      ['TextColor','BGColor']
	    ]
	});
	
	$(".page_heading").imageText({script: BASE_URL + 'code/img.php', width: 410, height: 105, wrap: 24, size: 24});
	
	$('a').each(function() {
	    if ($(this).attr('href') == BASE_URL + URL) {
	        $(this).addClass('here');
	    }
	}); 
	
	$('#win').dialog({ 
		autoOpen: false, 
		modal: true, 
		resizable: false, 
		width: 880, 
		height: 480,
		open: function() {	loco.bubblesStop();	},
		close: function() { loco.bubbles(); }
	})
	
	addthis.button('.addthis');
});
