$(window).load(function() { $("").insertBefore(".size-full"); $("").insertAfter(".size-full"); resizeBlocks(); }); $(window).resize(function() { resizeBlocks(); }); function resizeBlocks() { if ($("#left").height() > $("#right").height()) $("#right").height($("#left").height()); else $("#left").height($("#right").height()); } function sendEmail(replaceDiv,toemail,fromemail,emailsubject,emailbody) { if (emailbody != null) { $.post("http://georgiapellegrini.com/wp-content/themes/georgiap/sendemail.php", "to="+toemail+"&from="+fromemail+"&subject=" +emailsubject+"&ebody="+emailbody,function(data) { $("

Thank you! Your message was sent.



").insertBefore($("#"+replaceDiv)); $("#"+replaceDiv).hide(); } ); } } var currentPhotos; var currentCounter = 0; function rotatePhotos() { if ($("#blurb")) { $("#blurb").height('300px'); var links = $("#blurb a"); var imgs = $("#blurb a img"); if (imgs.length>0) { currentPhotos = imgs; randnumz = Math.floor(Math.random()*imgs.length); randnumz = 0; $("#blurb").css('background',"url("+$(imgs[randnumz]).attr('src')+") no-repeat"); } } } function keepRotating() { if (currentCounter == currentPhotos.length-1) { currentCounter = -1; } currentCounter = currentCounter+1; var nextImage = $(currentPhotos[currentCounter]).attr('src'); $("#blurb").css('background','url('+nextImage+') no-repeat'); setTimeout(keepRotating,5000); }