jQuery(document).ready(function() {
	/* mouse hand on mouseover */
	$("#box11").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#box12").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#box21").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#box22").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#box31").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#box32").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});

	/* populate content box */
	$("#box11").click(function() {
	     $("#content_box").attr('class','content_box11').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">9</span> tra manager didattici e tutor che ti assistono nel percorso formativo');
	});
	$("#box12").click(function() {
	     $("#content_box").attr('class','content_box12').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">63</span> il numero di imprese che hanno ospitato stagisti nel 2009');
	});
	$("#box21").click(function() {
	     $("#content_box").attr('class','content_box21').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">45<small><sup>%</sup></small></span> la percentuale dei nostri studenti occupati ad un anno dalla laurea');
	});
	$("#box22").click(function() {
	     $("#content_box").attr('class','content_box22').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">2<small>&</small>4</span> <big>2 Università:</big><br/>Cagliari e Sassari<br/><br/><big>4 Facoltà:</big><br/>Scienze MM.FF.NN, Economia, Agraria,<br/> Lettere e Filosofia');
	});
	$("#box31").click(function() {
	     $("#content_box").attr('class','content_box31').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">1:5</span> è il rapporto numerico tra docenti e studenti');
	});
	$("#box32").click(function() {
	     $("#content_box").attr('class','content_box32').animate({ height: 'show', opacity: 'show' }, 'slow');
	     $("#content_box").append('<span class="numero_box">42<small><sup>%</sup></small></span> la percentuale dei nostri studenti provenienti da province diverse da Oristano');
	});


	$("#content_box").mouseover(function () {
		$(this).css('cursor', 'pointer');
	});
	$("#content_box").click(function() {
	     $("#content_box").empty();
	     $("#content_box").hide("slow");
	});
});
