'+''+''+''+''+''); var $sv=$('#splash_video'); var $svd=$('div', $sv); var $svi=$('iframe', $svd); var width=$svi.width(); var height=width * .5625; $svi.height(height); height=($sv.height()/2)-($svd.outerHeight()/2); $svd.css('marginTop', height+'px'); $('#play').on('click', function(){ $svi.attr('src', $svi.attr('src')+'&autoplay=1'); }); $('#more').on('click', function(){ location.href='/showcase' }); $('#done').on('click', function(){ $sv.remove(); site.pref.home_splash_date=new Date(); }); $('#splash_video').addClass('show'); } });