var _overallSizeChange = 0;
var _tblPolices = {};
_tblPolices["V10-000000-T"] = 10 ;
_tblPolices["V10-000000-L"] = 10 ;
_tblPolices["V10-000000-B-T"] = 10 ;
_tblPolices["V10-000000-B-L"] = 10 ;
_tblPolices["V10-000000-I-T"] = 10 ;
_tblPolices["V10-000000-I-L"] = 10 ;
_tblPolices["V12-000000-T"] = 12 ;
_tblPolices["V12-000000-L"] = 12 ;
_tblPolices["V12-000000-B-T"] = 12 ;
_tblPolices["V12-000000-B-L"] = 12 ;
_tblPolices["V12-000000-BI-T"] = 12 ;
_tblPolices["V12-000000-BI-L"] = 12 ;
_tblPolices["V14-000000-T"] = 14 ;
_tblPolices["V14-000000-L"] = 14 ;
_tblPolices["V14-000000-B-T"] = 14 ;
_tblPolices["V14-000000-B-L"] = 14 ;
_tblPolices["V18-000000-T"] = 18 ;
_tblPolices["V18-000000-L"] = 18 ;
_tblPolices["V18-000000-B-T"] = 18 ;
_tblPolices["V18-000000-B-L"] = 18 ;
_tblPolices["V10-0066CC-T"] = 10 ;
_tblPolices["V10-0066CC-L"] = 10 ;
_tblPolices["V12-0066CC-T"] = 12 ;
_tblPolices["V12-0066CC-L"] = 12 ;
_tblPolices["V14-0066CC-T"] = 14 ;
_tblPolices["V14-0066CC-L"] = 14 ;
_tblPolices["V18-003399-B-T"] = 18 ;
_tblPolices["V18-003399-B-L"] = 18 ;
_tblPolices["V10-666666-T"] = 10 ;
_tblPolices["V10-666666-L"] = 10 ;
_tblPolices["V12-666666-T"] = 12 ;
_tblPolices["V12-666666-L"] = 12 ;
_tblPolices["V10-333333-T"] = 10 ;
_tblPolices["V10-333333-L"] = 10 ;
_tblPolices["V10-333333-I-T"] = 10 ;
_tblPolices["V10-333333-I-L"] = 10 ;
_tblPolices["V10-FF3300-T"] = 10 ;
_tblPolices["V10-FF3300-L"] = 10 ;
_tblPolices["V18-FF3300-B-T"] = 18 ;
_tblPolices["V18-FF3300-B-L"] = 18 ;
_tblPolices["V14-FF3300-B-T"] = 14 ;
_tblPolices["V14-FF3300-B-L"] = 14 ;
_tblPolices["V12-FF3300-B-T"] = 12 ;
_tblPolices["V12-FF3300-B-L"] = 12 ;
_tblPolices["V10-FF3300-B-T"] = 10 ;
_tblPolices["V10-FF3300-B-L"] = 10 ;
_tblPolices["V16-FF3300-B-T"] = 16 ;
_tblPolices["V16-FF3300-B-L"] = 16 ;
_tblPolices["V10-000000-BI-T"] = 10 ;
_tblPolices["V10-000000-BI-L"] = 10 ;
_tblPolices["V16-000000-T"] = 16 ;
_tblPolices["V16-000000-L"] = 16 ;
_tblPolices["V16-000000-B-T"] = 16 ;
_tblPolices["V16-000000-B-L"] = 16 ;
_tblPolices["V12-003399-B-T"] = 12 ;
_tblPolices["V12-003399-B-L"] = 12 ;
_tblPolices["V14-003399-B-T"] = 14 ;
_tblPolices["V14-003399-B-L"] = 14 ;
_tblPolices["V10-003399-T"] = 10 ;
_tblPolices["V10-003399-L"] = 10 ;
_tblPolices["V12-003399-T"] = 12 ;
_tblPolices["V12-003399-L"] = 12 ;
_tblPolices["V12-FF3300-T"] = 12 ;
_tblPolices["V12-FF3300-L"] = 12 ;
_tblPolices["V30-FF3300-B-T"] = 30 ;
_tblPolices["V30-FF3300-B-L"] = 30 ;
_tblPolices["V40-FF3300-B-T"] = 40 ;
_tblPolices["V40-FF3300-B-L"] = 40 ;

// Création : Dustin Diaz ****************************************************
//Site : http://www.dustindiaz.com/getelementsbyclass
function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
// *****************************************************************************

function biggerText(amount){
  overallAmount = _overallSizeChange + amount;
  for( var i in _tblPolices ){
    tmpElts = getElementsByClass(i);
	for( _ind = 0 ; _ind < tmpElts.length ; _ind++){
	  tmpCalc = _tblPolices[i] + overallAmount;
	  tmpElts[_ind].style.fontSize = tmpCalc + "px";
	}
  }
  _overallSizeChange = _overallSizeChange + amount;
}

function smallerText(amount){
  overallAmount = _overallSizeChange - amount;
  for( var i in _tblPolices ){
    tmpElts = getElementsByClass(i);
	for( _ind = 0 ; _ind < tmpElts.length ; _ind++){
	  tmpCalc = _tblPolices[i] + overallAmount;
	  tmpElts[_ind].style.fontSize = tmpCalc + "px";
	}
  }
  _overallSizeChange = _overallSizeChange - amount;
}
