(function($) {

$(document).ready(function() {

$("div.block:has(.testimonial-id)").addClass("testimonialblock");

$("div.block:has(.feedreader_box)").addClass("blogblock");
$("div.blogblock div.pad").append('<a href="/blog/" class="readmore">READ MORE</a>');


$("div.block:has(.IngeniMailSubscribeContainer)").addClass("newsletterblock");
$("div.newsletterblock div.pad").remove()
$("div.newsletterblock").append('<div class="pad"><iframe scrolling="no" height="200" frameborder="0" width="100%" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="http://www.ricksegel.com/Portals/32749/forms/newsletter-signup-form.html" allowtransparency="true">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></div>');


//google search
$("#googlesearchbox").appendTo("#brighton_menu");
$("#googlesearchbox").prepend('<div>Search:</div>');
$("#googlesearchbox").show();


if( $("#rick-photo").length && !$("#hsnavigation").length) {
	$("div.ContactFormWrapper").wrap("<div class='rickphoto-formwrapper'></div>");
	$("#rick-photo").prependTo("div.rickphoto-formwrapper");
}

}); 

})(jQuery);
