
function resize_object(obj,h) {
	var v = document.getElementById(obj);
	v.style.height = h;
	if (document.body.scrollHeight > document.body.offsetHeight) {
		v.style.height = document.body.scrollHeight - h;
	} else {
		v.style.height = document.body.offsetHeight - h;
	}
}


$(function(){
	

	$(".code").each(function(){ 

		if ($(this).height() < 40) {
			$(this).css("height",50);
		}

	});

	$(".code").css("width",($(window).width()-$(".sidebar").width())-70);

	$(".faq-question").each(function(){
		$(this).html('<a href="#">'+$(this).text()+'</a>');
	});

	$(".faq-question").toggle(function(){
		var q = $(this).attr("question");
		$("[answer="+q+"]").show();
	},function(){
		var q = $(this).attr("question");
		$("[answer="+q+"]").hide();
	});

});