$(document).ready(function(){$("#pastebody").html("<textarea id='pbd' name='pbody'></textarea>");function sizeIt() {$ww=$(window).width()-300;$wh=$(window).height()-150;$("#pbd").css("width",$ww);$("#pbd").css("height",$wh);} sizeIt();$(window).resize(function(){sizeIt();});$("<div class='pasteemail'><input type='checkbox' id='yemc' /><label for='yemc'>Email me this code</label><span id='meml' style='display: none;'>: <input type='text' name='email' id='yem' size='30' /> (Your email address will not be saved in our system.)</span></div>").insertAfter("#pbd");$("<div class='pastebutton'><input type='submit' name='SendIt' value='Paste' id='pbt' /></div>").insertAfter(".pasteemail");$("#yemc").click(function() {var s=$(this).attr("checked");if(s==true) {$("#meml").show();$("#yem").focus();} else {$("#meml").hide();}});$("#latest").show();$("#pasteitem").show();if($("#pbcode").width()>$(window).width()) {$("#wraplong").show();$("#wlc").click(function(){if($(this).attr("checked")==true) $("#pasteitem").css("word-wrap","break-word");else $("#pasteitem").css("word-wrap","normal");});}});
