  var data = new Array();

  function storeValue(value, table, row, col){			
    if (col==0&&row==0){
      data[table] = new Array();
    }
    if (row==0){
      data[table][col] = new Array();
    }
    data[table][col][row] = value;			
	}
	
  function mouseOverBar(numOfTable, numOfBar){
			for (var n=0; n<data[numOfTable].length; n++){
				var refVal = data[numOfTable][n][numOfBar];
				for (var i=0; i<data[numOfTable][n].length; i++){
					var actVal = data[numOfTable][n][i];
					var value = (actVal/refVal)*100;
					if(numOfBar == i){
						document.getElementById("bar"+numOfTable+"_"+i+"_"+n).firstChild.nodeValue = +Math.round(value)+"%";
						document.getElementById("bar"+numOfTable+"_"+i+"_"+n).style.fontWeight = 'bold';
						document.getElementById("testproduct"+numOfTable+"_"+i).style.textDecoration = 'underline';
					}
					else{
						document.getElementById("bar"+numOfTable+"_"+i+"_"+n).firstChild.nodeValue = Math.round(value)+"%";
						document.getElementById("testproduct"+numOfTable+"_"+i).style.fontWeight = 'normal';							
					}					
				}				
			}			
	}		
	
	function mouseOutBar(numOfTable, numOfBar, decPlaces){	
		document.getElementById("testproduct"+numOfTable+"_"+numOfBar).style.textDecoration = 'none';			
			for (var n=0; n<data[numOfTable].length; n++){	
				for (var i=0; i<data[numOfTable][n].length; i++){						
					document.getElementById("bar"+numOfTable+"_"+i+"_"+n).firstChild.nodeValue = data[numOfTable][n][i].toFixed(decPlaces).toString().replace(".",",");				
					document.getElementById("bar"+numOfTable+"_"+i+"_"+n).style.fontWeight = 'normal';
				}
			}						
	}