function SaltaParaPagina(url) {

  document.location = url;

}

function TemporizaSaltoPagina(url, milisegundos) {

  setTimeout("SaltaParaPagina('" + url + "')", milisegundos);

}

function escreveCaminho( strSeparador, blnEspaco, strDefaultDoc, strStyle, strStyleCurr) {

  var strDoc = document.URL;
  
  //Para testes
  var strTestDir = "file://C:\\Documents%20and%20Settings\\Christian\\Os%20meus%20documentos\\Trabalho\\Desenvolvimento\\Cligest\\Marketing\\TC%20Design\\Site\\html"
  strDoc = strDoc.substring(strTestDir.length);
  
  var indUltOcorr;
  var chrBusca;
  var strCaminho = "";
  var strCaminho = "";
  var strFich = "";
  
  if (strDoc.indexOf('\\') != -1)
    chrBusca = '\\';
  else
    chrBusca = '/';

  indUltOcorr = 0;
  while ((indUltOcorr = strDoc.indexOf( chrBusca, indUltOcorr)) != -1) {

    strFich = strDoc.substring(strCaminho.length+1,strDoc.indexOf( chrBusca, indUltOcorr));
    strCaminho = strDoc.substring( 0, indUltOcorr);
    indUltOcorr++;

	document.write( '<a href="' + strCaminho + '/' + (strDefaultDoc=''?'main.htm':strDefaultDoc) + '"'); 
	if (strDoc.indexOf( chrBusca, indUltOcorr) != -1) {
		if (strStyle != "") {
	      document.write( ' class="' + strStyle +'"');
  		}
	} else {
		if (strStyleCurr != "") {
	      document.write( ' class="' + strStyleCurr +'"');
  		}
	}
    document.write( '>');
	document.write(strFich); 
	document.write('</a>'); 

	if (strDoc.indexOf( chrBusca, indUltOcorr) != -1) {
		if (blnEspaco) {
    	  document.write(' '); 
		}  
   		document.write(strSeparador); 
		if (blnEspaco) {
    	  document.write(' '); 
		}  
	}
  }

//  document.location = strPathBase + strDoc.substring( indUltOcorr + 1)

}


function mudaLingua( strPathBase) {

  var strDoc = document.URL;
  var indUltOcorr;
  var chrBusca;

  if (strDoc.indexOf('\\') != -1)
    chrBusca = '\\';
  else
    chrBusca = '/';

  indUltOcorr = 0;
  while (strDoc.indexOf( chrBusca, indUltOcorr + 1) != -1) {
    indUltOcorr = strDoc.indexOf( chrBusca, indUltOcorr + 1);
  }

  document.location = strPathBase + strDoc.substring( indUltOcorr + 1)
}


