function addEventSimple(obj,evt,fn)
{
	if( obj.addEventListener )
	{
		obj.addEventListener(evt,fn,false);
	}
	else if( obj.attachEvent )
	{
		obj.attachEvent('on'+evt,fn);
	}
}

addEventSimple(window,'load',doToolManSort);

$(document).ready(function() {
	$("input[type='checkbox']").css({border:0}) // For win/ie
	});

$('.delete')
	.livequery('click',function() {
		var title = this.getAttribute('title');
		var msg = title.split('\"');
		if( confirm('Are you sure you want to delete the page \"'+msg[1]+'\" and all of its dependent pages (including all associated images and files)? As an alternative, you may want to hide this page from users by unchecking its \'Active\' box.') )
		{
			return true;
		}
		else
		{
			return false;
		}
	});
	
$('.delete_thumb')
	.livequery('click',function() {
		var msg = this.getAttribute('title');
		if( confirm(msg+'?') )
		{
			return true;
		}
		else
		{
			return false;
		}
	});