$(document).ready(function(){
	$("#abc3-iframeholder-questionoftheweek").dialog({ 
		height: "auto",
		width: "610px",
		draggable: false,
		resizable: false,
		autoOpen:false,
		overlay: {
				opacity: 0.8,
				background: "black"
			}
		});
	$("#abc3-news-feature-questionoftheweek a.rounded-button").addClass("text-submit").removeAttr("onclick").click(function(){
		var commentlink = $(this).attr("href");
		$("#abc3-iframeholder-questionoftheweek").dialog("option", "dialogClass", "abc3-questionwoftheweek");
		$("#abc3-iframeholder-questionoftheweek > iframe").attr("src", ""+ commentlink +"");
		$("#abc3-iframeholder-questionoftheweek").dialog("open");
		return false;
	});
});

function closeDialog(){
	alert("Closing");
	$("#abc3-iframeholder-questionoftheweek").dialog("close");
}

