$(document).ready(function(){
	
	/*$("a.read").click(function(){
		$("#diskutera").show();
		return false;
	});*/
	
	$('a.volunteer').live('click', function(){
		$("#volunteer").show();
		$('.scrollPanel').html('');
		$('.combobox').attr('class', 'combobox');
		return false;
	});
	$("#volunteer a.close").click(function(){
		$("#volunteer").hide();
		$('#shareButtons').css('display', 'none');
		return false;
	});
	
	$("#diskutera a.close").click(function(){
		$("#diskutera").hide();
		$('#shareButtons').css('display', 'none');
		return false;
	});

	$("#p_svar a.close").click(function(){
		$("#p_svar").hide();
		$('#shareButtons').css('display', 'none');
		return false;
	});

	/*$("a.ask").click(function(){
		$("#fraga").show();
		return false;
	});*/
	
	$("#fraga a.close").click(function(){
		$("#fraga").hide();
		$('#shareButtons').css('display', 'none');
		return false;
	});
	/*$("a.remind").click(function(){
		$("#paminn").show();
		return false;
	});*/
	$("#paminn a.close").click(function(){
		$("#paminn").hide();
		$('#shareButtons').css('display', 'none');
		return false;
	});
	/*$("a.answer").click(function(){
		$("#confirm_posts").show();
		return false;
	});*/
	$("#confirm_posts a.close").click(function(){
		$("#confirm_posts").hide();
		return false;
	});

	$("#first_confirm_posts a.close").click(function(){
		$("#first_confirm_posts").hide();
		return false;
	});

	$("a.om").click(function(){
		$("#om").show();
		return false;
	});
	$("#om a.close").click(function(){
		$("#om").hide();
		return false;
	});

	$("a.siffror").click(function(){
		$("#siffror").show();
		return false;
	});
	
	$("#siffror a.close").click(function(){
		$("#siffror").hide();
		return false;
	});
	
	$("a.popup_2").click(function(){
		$("#popup_2").show();
		return false;
	});
	$("#popup_2 a.close").click(function(){
		$("#popup_2").hide();
		return false;
	});

	$('#confirmation a.close').live('click', function(){
		$("#confirmation").hide();
		return false;
	});
	
	$("#field_error a.close").click(function(){
		$("#field_error").hide();
		return false;
	});
	
	$("#url_error a.close").click(function(){
		$("#url_error").hide();
		return false;
	});
	
	/*$("a.siffror_popup").click(function(){
		$("#siffror_popup").show();
		return false;
	});*/
	$("#siffror_popup a.close").click(function(){
		$("#siffror_popup").hide();
		return false;
	});
	
	$("a.terms").click(function(){
		$("#terms").show();
		return false;
	});
	$("#terms a.close").click(function(){
		$("#terms").hide();
		return false;
	});
	
	$("#ie6_error a.close").click(function(){
		$("#ie6_error").hide();
		return false;
	});
});
