/**
 * jquery.expose 0.14. Make HTML elements stand out.
 * 
 * http://flowplayer.org/tools/expose.html
 *
 * Copyright (c) 2008 Tero Piirainen (support@flowplayer.org)
 *
 * Released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * >> Basically you can do anything you want but leave this header as is <<
 *
 * Since  : 0.10 - 10/06/2008
 * Version: 0.14 - Fri Nov 07 2008 16:51:33 GMT-0000 (GMT+00:00)
 */
(function($){function expose(el,params){var opts={speed:1000,zIndex:100,opacity:0.8,color:'#333',onClose:null};$.extend(opts,params);var blanket=$("#blanket");if(blanket.is(":visible")){return;}if(!blanket.length){blanket=$('<div id="blanket"></div>').css({position:'absolute',top:0,left:0,width:'100%',height:$(document).height(),display:'none'}).css("opacity",0);$("body").append(blanket);}blanket.css({backgroundColor:opts.color,zIndex:opts.zIndex});el.css({zIndex:opts.zIndex+1});if(!/relative|absolute/i.test(el.css("position"))){el.css("position","relative");}blanket.css("display","block").fadeTo(opts.speed,opts.opacity);function unexpose(fn){if(opts.onClose||fn){if(!fn||fn.target){fn=opts.onClose;}if(fn){fn.call(el);}}blanket.fadeTo(opts.speed,0,function(){blanket.hide();el.css({zIndex:opts.zIndex-1});});blanket.unbind("click.unexpose");}$.unexpose=unexpose;}$.fn.expose=function(params){expose(this,params);return this;};})(jQuery);