        $(document).ready(function() {
		setTimeout('lightbox()',2000);
                });
        
        $(document).ready(function() {
		$('.lightboxbg').click(function() {
                        $('.lightboxbg, .lightbox').fadeOut(500);
			//$('#mainID').removeClass("overlay");
                });
	});

        $(document).ready(function() {
                $('.lightboxExit').click(function() {
                        $('.lightboxbg, .lightbox').fadeOut(500);
			//$('#mainID').removeClass("overlay");
                });
        });

$(document).keyup(function(e) {
if (e.keyCode == 27) {
$('.lightboxbg, .lightbox').fadeOut(500);
//$('body').removeClass("overlay");
}
});

function lightbox()
{
if ($.cookie('20080524') != '365') {
$('.lightboxbg, .lightbox').fadeIn(500);
$.cookie('20080524', '365', { expires: 365 }); }
}

function thankyou()
{
$(".lightboxTY").show();
$(".lbExit2").remove();
$(".percentOff").remove();
var nscript = document.createElement( 'script' );
nscript.type = 'text/javascript';
nscript.src = 'http://lib.store.yahoo.net/lib/1myveryownname/ey-google-script.js';
$(".lightboxTY")[0].appendChild(nscript);
$(".lightboxTY").append("<div style=\"display:inline;\"><img height=\"1\" width=\"1\" style=\"border-style:none;\" alt=\"\" src=\"http://www.googleadservices.com/pagead/conversion/1071932496/?label=0SGxCL7stwIQ0MiR_wM&amp;guid=ON&amp;script=0\"/></div>");
}

