jQuery.noConflict();

jQuery(document).ready(function() {

	// allow really long urls in text to wrap
	$('.longurl').each(function() {
		$(this).html($(this).html().replace(/(\/|\?|=|\&|%)/g, '$1<wbr>'));
		});
	
	// add external, document, download, etc. icon hints and tooltips to links
	jQuery('#main').linkHints({
		base : jQuery('link[@rel=home]').attr('href'),
		targetClass : ".arrow",
		cb : function(){
			return $(this).not('.longurl').length
		}}
	);
	jQuery('.linkhint + .arrow, p.video a').addClass('hint_override');

	// ie 6 flickering
	try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {}
	
	if(jQuery.cookie('ub_calendar_admin')) jQuery('.edit_link').show();
});
