function PPVStep()
{
	this.show = function(sLocation)
	{
		document.write('<style type="text/css">');
		document.write('div#dStep {clear:both; font-size:12px; font-weight:bold; text-transform:uppercase; margin:auto; width:95%;}');
		document.write('div#dStep .stepactive{display:block; float:left; margin-left:5px;}');
		document.write('div#dStep .stepactivenow{display:block; color:#cc0000; float:left; margin-left:5px;}');
		document.write('div#dStep .stepinactive{display:block; color:#E8E8E8; float:left; margin-left:5px;}');
		document.write('</style>');

		
		var aStepList = this.getList();
		var sClassName = 'stepactive';
		document.write('<div id="dStep">');
		for(var i = 0; i < aStepList.length; i++)
		{
			aStepList[i].value = aStepList[i].value.replace(sLocation,'');
			
			if(sLocation.toLowerCase().indexOf(aStepList[i].value.replace(sLocation,'').toLowerCase()) > -1)
			{
				document.write('<a href="javascript:void(0);" class="stepactivenow">'+aStepList[i].label+'</a>');
				sClassName = 'stepinactive';
			}
			else
			{
				if(sClassName == 'stepinactive')
				{
					document.write('<a href="javascript:void(0);" class="stepinactive">'+aStepList[i].label+'</a>');
				}
				else
				{
					document.write('<a href="'+aStepList[i].value +'" class="'+sClassName+'">'+aStepList[i].label+'</a>');
				}
				
			}
		}
		document.write('</div>');
	}
	
	this.getList = function()
	{
		var sQuery = document.location.href;
		if(sQuery.indexOf('?') > -1)
		{
			sQuery = sQuery.substr(sQuery.indexOf('?'),sQuery.length);
		}


		var aList = new Array();
		
		var oObject = new Object();
		oObject.label = "Escolha um Pay-Per-View > ";
		oObject.value = "payperview.aspx";
		aList.push(oObject);

		var oObject = new Object();
		oObject.label = "Escolha uma Data > ";
		oObject.value = "payperview-data.aspx" + sQuery;
		aList.push(oObject);

		var oObject = new Object();
		oObject.label = "Identificação > ";
		oObject.value = "PayPerView-identificacao.aspx" + sQuery;
		aList.push(oObject);
		
		
		var oObject = new Object();
		oObject.label = "Confirmação > ";
		oObject.value = "PayPerView-Confirmacao.aspx" + sQuery;
		aList.push(oObject);

		var oObject = new Object();
		oObject.label = "Finalização";
		oObject.value = "PayPerView-Finalizacao.aspx" + sQuery;
		aList.push(oObject);
		
		return aList;
	}
}

