Jquery LightBox

I'm creating a basic lightbox effect. I have a link that when I click it opens the lightbox normally, but when I click on the transparency of the Lightbox to close, it closes and it adds more time, and next time I click to close again it takes longer to disappear. Example: 1º - Click on the link 2º - Hold open the lightbox 3º - Click on transparency to close 4º - Repeat the process 10 times or less and you'll notice it takes longer to stop disappearing.

by Nate Balcom

HTML

<html>
<head>
<title>- Plugin jQuery</title>
</head>
<body>
<a href="http://www.youtube.com/v/OigUqkBEV5w" id="click" rel="Darwinismo - Parte 1">Darwinismo - Parte 1</a>
</body>
</html>

CSS

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
:focus {
    outline: 0;
}
ins {
    text-decoration: none;
}
del {
    text-decoration: line-through;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.teste {
position:fixed;
width:100%;
height:100%;
top: 0;
left:  0;
z-index:9999;
display: none;
}

.fundo {
  height: 600px;
  width: 800px;
  margin: auto;
}

.box {
position: fixed;
background-color: #000;
z-index: 9999;
display: none;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
border-radius: 9px;
-o-border-radius: 9px;
-icab-border-radius: 9px;
-khtml-border-radius: 9px;
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
padding: 10px;
}
.geral {
background-color:#fff;
margin: auto;
border-radius: 9px;
-o-border-radius: 9px;
-icab-border-radius: 9px;
-khtml-border-radius: 9px;
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align:center;
}
.video {
  margin-top: 15px;
}


.titulo{
  height: 30px;
  width: 600px;
  color: #FFFFFF;
  padding-top: 5px;
  display: none;
}

JavaScript

$(document).ready(function(){
/****************************************************/

var scrollbody = true;
var tempoa = 800;
var tempos = 800;
var tempoav = 600;
var temposv = 600;
var opacidade = 0.7;
var altura = 400;
var largura = 600;
var texto = $("#click").attr('rel');
var link  = $("#click").attr('href');
var cor = "#000";

/****************************************************/
$("body").append('<div class="teste"></div><div class="box"><div class="geral"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><embed class="video" type="application/x-shockwave-flash" src="" width="'+largura+'" height="'+altura+'"></embed></object></div><div class="titulo"></div></div>');
/****************************************************/

$(".titulo").html('<p>'+texto+'</p>');

$(".box").css({
   "height" : altura+30,
   "width" : largura+30
});
$(".geral").css({
   "height" : altura+30,
   "width" : largura+30
});
$(".teste").css({
  "background-color" : cor,
  "opacity" : opacidade,
});
/****************************************************/

$("#click").click(function(event){
event.preventDefault();
/****************************************************/

if (scrollbody == false){
  $("body").css({
    "overflow" : "hidden"
    });
    } else {
    $("body").css({
      "overflow" : "visible"
      });
    }

/****************************************************/
$(".teste").fadeIn(tempoa, function(){
  $(".box").fadeIn(tempoav, function(){
     $(".box").animate({
        height: '+=50'
     }, 500, 'linear', function(){
       $(".titulo").fadeIn('slow');
       $(".video").attr('src', link);
     });
  });
});

/****************************************************/

       $(".teste").click(function(){
         $(".video").attr('src', "");
         $(".titulo").fadeOut(temposv, function(){
           $(".box").animate({
               height: altura+30
               }, 500, 'linear', function(){
               if (scrollbody == false){
              ...