function showsplooge() {
	pbs = document.getElementById('plushus_bottom_splooge');
	if (pbs) {
		if ($.browser.mozilla && $.browser.version.substr(0,3) < 1.9 ) pbs.style.top = (parseInt($(document).height()) - 358)+'px';
		else pbs.style.top = (parseInt($(document).height()) - 338)+'px';
		pbs.style.display = 'block';
	}
}
$(document).ready( function(){
						
	if ( !($.browser.safari && $.browser.version < 500) ) {	
		//for each nav image
		$('#plushus_nav2 img').each( function(i,img) {
			if ( img.parentNode.parentNode.className !== 'plushus_selected_link' ) {			
				var newimg = document.createElement('img');
				newimg.src = $(img).attr('src').replace( 'plusnav.gif', 'plusnav_pink.gif' );
				newimg.src = newimg.src.replace( 'font_color=105,102,81', 'font_color=238,62,150' );
				$(img).parent().after( '<span style="display:none" ><img src="' + newimg.src + ' width="130" height="15" /></span>' );
	
				//$(img).parent().parent().bind('mouseenter', function() {
				$(img).parent().parent().mouseover( function() {
					//$($(this).children()[0]).slideUp(300);
					//$($(this).children()[1]).slideDown(300);
					$($(this).children()[0]).hide();
					$($(this).children()[1]).show();
				});
				//$(img).parent().parent().bind('mouseleave', function() {
				$(img).parent().parent().mouseout( function() {
					$($(this).children()).stop();
					$($(this).children()).height(15);
					$($(this).children()[0]).show();
					$($(this).children()[1]).hide();
				});
			}
		});
	}

	// get rid of the line above the first overview block
	$('.overview_label:first').css( {'border-top':'1px solid #e8e8d9','padding-top':'0px'} );
	$('.central_post_summary_block:first').css( {'border-top':'0px','padding-top':'0px'} );
	
	
	
	//THIS BREAKS RECAPTCHA IN CHORME - SEE FOOT.PHP WHERE THE LEAVE A COMMENT (plushus_label_inline) IS COMMENTED OUT
	/*	
	// move comment form in the right place
	var comments_form_html = $('#central_comment_form_div').html();
	$('#central_comment_form_div').empty();
	$('#central_comment_form_div').hide(); 
	$('#plushus_comment_form').append(comments_form_html);
	*/
	//var = the_comments_label = $('#plushus_label_inline');
	
	// hide "Recent Posts"
	blog_nav_header = document.getElementById('central_blog_nav_header');
	if (blog_nav_header) {
		if (blog_nav_header.innerHTML == 'Recent Posts') blog_nav_header.style.display = 'none';
	}

	// depends on buttons.js
	if (document.contactform) plushus_replace_button(document.contactform.Submit,'config_central/plushus_images/send.gif');
	if (document.central_comment_form) plushus_replace_button(document.central_comment_form.Submit,'config_central/plushus_images/comment.gif');
	if (document.tellFriend) plushus_replace_button(document.tellFriend.Submit,'config_central/plushus_images/send.gif');
	if (document.subscribe_form) plushus_replace_button(document.subscribe_form.Submit,'config_central/plushus_images/send.gif');
	if (document.extrainfo) plushus_replace_button(document.extrainfo.extrainfo,'config_central/plushus_images/send.gif');
	
	
	
	
	// fix store item spacing (for browsers that do not support css last-child) 
	$('.plushus_store_item').css('padding-right','22px');
	$('.plushus_store_row .plushus_store_item:last-child').css('padding-right','5px');
		
	// move the bottom splooge to where it should go
	if (wait_before_showing_splooge || $.browser.safari) setTimeout(showsplooge,1000);
	else showsplooge();

	
});

window.onload = function() { showsplooge(); }