
	// $Id: quesaco.js,v 1.4 2008/02/29 17:10:25 paladin Exp $

function qs_up($i) {
		$n = Number(document.qs.result[$i].value);
		$n++;
		document.qs.result[$i].value=String($n);
}
function qs_down($i) {
	$n = Number(document.qs.result[$i].value);
	$n--;
	document.qs.result[$i].value=String($n);
}
function qs_val($boxes,$t) {
	if ($boxes[$t].checked) {
			qs_up($t);
	} else {
			qs_down($t);
	}
	for ($i=0; $i< $boxes.length; $i++) { 
	if ($i==$t) { continue; }
		if ($boxes[$i].checked==true) {
			qs_down ($i);
			$boxes[$i].checked=false;
		}
	}
	$rep = Number(document.qs.result[0].value)+Number(document.qs.result[1].value)+Number(document.qs.result[2].value);
	$tot = Number(document.qs.total.value);
	$statc = "";
	if ($rep<$tot) {
			$statc = " ( "+$rep+" reponses sur "+$tot+" questions )";
	}
	window.status = "Positif: "+document.qs.result[0].value
		+" - Negatif: "+document.qs.result[1].value
		+" - Inconnu: "+document.qs.result[2].value
		+$statc
		;
}
/* effets */
jQuery().ready(function(){
	jQuery('#navigator > .bar > .item').mouseover( function(){ 
		jQuery(this).find('img').attr('src','/img/harrow-d.jpg');
	});
	jQuery('#navigator > .bar > .item').mouseout( function(){ 
		jQuery(this).find('img').attr('src','/img/harrow-u.jpg');
	});
	if(jQuery.browser.mozilla) { 
		jQuery(function() { 
			var menu_height, colonne_height, page_height,  max_height;
			menu_height = jQuery('#menu-left').height();
			colonne_height = jQuery('#conteneur .colonne').height();
			page_height = jQuery('#page').height();
			max_height = Math.max(menu_height,page_height);
			/*alert(menu_height + ' ' + page_height + ' ' + colonne_height + ' ' + max_height );/**/
			if((page_height > menu_height) && (page_height > colonne_height)) max_height += 32; 
			jQuery('html').height(max_height);
			jQuery('body').height(max_height);
			jQuery('#c_9').height(max_height);
		});
	}
});