$(document).ready(function(){
	
	//	Initialisation of pngFix plugin
	 $(document).pngFix(); 
	
	//	Adding divs around the button elements
	$('li.page_item a').wrap('<div class="btn_body"><div class="btn_text"></div></div>');
	$('li.page_item').prepend('<div class="btn_left"></div>');
	$('li.page_item').append('<div class="btn_right"></div><div class="clear"></div>');
	
	//	Button hovers
	$('li.page_item:not(.current_page_item)').hover(
		function(){
			$(this).addClass('current_page_item');
		},function(){
			$(this).removeClass('current_page_item');
	});
	
	//	Remove buttons that do not contain text
	$('li.page_item > .btn_body > .btn_text > a').each(function(){
		if($(this).html().length == 0)
		{
			$(this).parents().filter('.page_item').remove();
		}
	});
});