﻿/// <reference path="jquery.js">

(function()
{

	function removeFilter(e, o)
	{
		if (o && o.style && o.style.filter && o.style.remoteAttribute)
		{
			o.style.remoteAttribute('filter');
		}
	}

	jQuery.fn.extend({
		slideOut: function(s, callback) { this.animate({ height: "hide", width: "hide" }, s, function() { removeFilter(); if (callback) callback(); }) },
		slideIn: function(s, callback) { this.animate({ height: "show", width: "show" }, s, function() { removeFilter(); if (callback) callback(); }) },
		slideToggle: function(s, callback) { this.animate({ height: "toggle", width: "toggle" }, s, function() { removeFilter(); if (callback) callback(); }) }
	});

	jQuery.extend({});
})();