function paddToggle(classname,value) {
	jQuery(classname).focus(function() {
		if (value == jQuery(classname).val()) {
			jQuery(this).val('');
		}
	});
	jQuery(classname).blur(function() {
		if ('' == jQuery(classname).val()) {
			jQuery(this).val(value);
		}
	});
}

function paddPlaceCommentCount() {
	jQuery('div.post-group div.post').each(function() {
		id = jQuery(this).attr('id');
		post = jQuery(this).position();
		jQuery('div.post-group div#' + id + ' div.post-comment-count').css('top', post.top);
	});
}

function paddPlaceGoToTop() {
	w = jQuery('div.footer-about').width();
	t = jQuery('div.footer-about').position();
	jQuery('div.footer-about div.link-top').css({
		'margin-left': (w - 145),
		'top': (t.top - 29)
	});
}

function paddAppendSpans(box) {
	jQuery(box + ' ul li a').wrap('<span><span></span></span>')
}

jQuery(document).ready(function() {
	jQuery.noConflict();
	paddToggle('input#s','Search website');
	paddAppendSpans('div.box');
	paddPlaceCommentCount();
	paddPlaceGoToTop();

	jQuery('div.search form').click(function () {
		jQuery('input#s').focus();
	});
	jQuery('div.wp-pagenavi > a:last').css('border-right','0 none');
	jQuery('div.wp-pagenavi > span:last').css('border-right','0 none');
	jQuery('div.menu ul li:last a > span > span').css('background','transparent none');
	jQuery('div.box li:last > span').css('background', 'transparent none');

	paddToggle('input#comment-author','Name');
	paddToggle('input#comment-email','Email');
	paddToggle('input#comment-url','Website');
	paddToggle('textarea#comment-comment','Message');
});
