$(document).ready(function(){
	$('.block_menu_button a').click(function() {$(this).parent().next().slideToggle('slow')});
	$('.block_menu_button').click(function() {($(this).attr('style')) ? $(this).removeAttr('style') : $(this).attr('style', 'background:url(images/block_menu.png) no-repeat 0 -28px;'); });
});

$(function() {
	var block_vote = $('.pollButton input.pollBut').clone();
	$('#vote_botton').append(block_vote);
	$('#vote_botton input').hide();
	$('#vote_botton a').click(function() {
		$('#vote_botton input').click();
	});
});

$(document).ready(function(){
	//$(".header_pop").css('display','none');
	$("#bot1").click(function () {
		
		$('.header_pop').parent().css('zIndex','auto');
		$('.header_pop').fadeOut(300);
		
		$(this).parent().css('zIndex','5');
		$('.header_pop').css('display','block')
		return false;
	});
	
	$(".header_pop_close").click(function () {
		if ($.browser.msie) {$(this).parents('.header_pop').css('display','none')} else {$(this).parents('.header_pop').fadeOut(300);};
		return false;
	});
});

$(document).ready(function() {
	$(".gDivLeft").before('<div class="forum_top"><div class="forum_top_in"></div></div>');
});


$(function() {
	$(".forum_top").next().each(function() {
	var linkText = $(this).find("td.gTableTop").html();
	$(this).prev().show().find('.forum_top_in').html(linkText); 
	}); 
	$(".gTableTop").remove();
});

