var rankString = "Rang";							
var requiresLevelString = "Niveau requis&nbsp;:";
var allianceOnly = "<span class = 'newEffect'>Alliance seulement</span>";
var hordeOnly = "<span class = 'newEffect'>Horde seulement</span>";

function printIntroString(whichString, newEffects) {
	stringLowerCase = whichString.toLowerCase();
	document.write("<img src = /shared/wow-com/images/smallcaps/plain/b.gif align = 'left'>ienvenue dans ces pages qui montrent une partie des sorts et techniques prévus pour les niveaux 60 à 70 qui seront ouverts pour l'extension The Burning Crusade. Ces sorts, talents et techniques sont sujets à changements, remplacements, suppressions ou ajouts d'ici la sortie de l'extension.");
	if (newEffects)
		document.write(" Vous verrez en rouge les nouveaux rangs pour les sorts qui ont de nouveaux effets.");
	document.write(" Cette page ne montre pas les rangs supérieurs des vieux sorts");
	if (newEffects)
		document.write(" qui n'ont pas de nouveaux effets");
	document.write(".<p>Vous pouvez également voir l'avant-première des  <a href = '/fr/info/underdev/burningcrusade/"+ stringLowerCase +"/talents.html'>talents</a> pour cette classe.");
}

var barArray = new Array;

barArray[0] = "mana";
barArray[1] = "énergie";
barArray[2] = "rage";
barArray[3] = "vie";

function convertCastTime(theCastTime) {
	if (theCastTime < 0)
		return "";
	if (theCastTime == 0)
		return "Incantation immédiate";					//LOCALIZE THIS
	theResult = theCastTime/1000;
	if (theResult >= 60) {
		theResult = theResult/60;
		printOut = theResult + " min d'incantation";		//LOCALIZE THIS
	} else
		printOut = theResult + " sec d'incantation";		//LOCALIZE THIS
		printOut = printOut.replace(".",",");		//comma instead of decimal point

	return printOut;
}

function convertRange(theRange) {
	if (theRange == 0)
		return "";
	else {
		printOut = "Portée " + theRange + " m";		//LOCALIZE THIS
		return printOut;
	}
}

function convertBar(theCost, theBar) {
	if (theCost == 0 || theBar < 0)
		return "";
	else {
		printOut = theCost + " "+ barArray[theBar];		//LOCALIZE THIS
		return printOut;
	}
}

function convertCooldown(cooldown) {
	if (cooldown <= 0)
		return "";
	theResult = cooldown/1000;
	if (theResult >= 60) {
		theResult = theResult/60;
		printOut = "Recharge " + theResult + " min";		//LOCALIZE THIS
	} else
		printOut = "Recharge " + theResult + " sec";		//LOCALIZE THIS
	return printOut;
}

function convertRank (theRank) {
	return rankString +' '+ theRank;				//CHANGE ORDER IF NEEDED
}