

//
// HYPERLINK FUNCTION FOR RESULT WINDOW
//

function openHyperlink(layer, fldName, fldValue) {
    
    switch(layer) {
        case 'pernambuco':
            //if (fldName == 'OBJECTID') {
            //    window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //    window.open('http:/' + '/localhost/debian.html/');C:\ms4w\Apache\htdocs
                window.open('../pmapper/images/fundarpe/' + fldValue + '.pdf');
            //}
        break;
	//Exibindo a foto dos Pontos de Cultura: Emanuel
        case 'pontosCultura':
            //if (fldName == 'OBJECTID') {
            //    window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //    window.open('http:/' + '/localhost/debian.html/');C:\ms4w\Apache\htdocs
	    //}
	    if (fldValue == '') {
                window.open('../pmapper/images/fundarpe/' + 'arquivoNull' + '.pdf');
	   }
	   else {
                window.open('../pmapper/images/fundarpe/fotos/' + fldValue);
	   }
        break;
	//Exibindo a foto dos Patrimônios Vivos: Emanuel
        case 'patrimoniosVivos':
            //if (fldName == 'OBJECTID') {
            //    window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //    window.open('http:/' + '/localhost/debian.html/');C:\ms4w\Apache\htdocs
	    //}
	    if (fldValue == '') {
                window.open('../pmapper/images/fundarpe/' + 'arquivoNull' + '.pdf');
	   }
	   else {
                window.open('../pmapper/images/fundarpe/fotos/' + fldValue);
	   }
        break;
	//Exibindo a foto dos Espaços de Convivência Cultural: Emanuel
        case 'equipamentosCulturais':
            //if (fldName == 'OBJECTID') {
            //    window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //    window.open('http:/' + '/localhost/debian.html/');C:\ms4w\Apache\htdocs
	    //}
	    if (fldValue == '') {
                window.open('../pmapper/images/fundarpe/' + 'arquivoNull' + '.pdf');
	   }
	   else {
                window.open('../pmapper/images/fundarpe/fotos/' + fldValue);
	   }
        break;
	//Exibindo a fotos dos bens materiais: Emanuel
        case 'materiais':
            //if (fldName == 'OBJECTID') {
            //    window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //    window.open('http:/' + '/localhost/debian.html/');C:\ms4w\Apache\htdocs
	    //}
	    if (fldValue == '') {
                window.open('../pmapper/images/fundarpe/' + 'arquivoNull' + '.pdf');
	   }
	   else {
                window.open('../pmapper/images/fundarpe/fotos/' + fldValue);
	   }
        break;
	            
        default:
            alert ('Homero - See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue);
   }
}


function showCategoryInfo(cat) {
    alert('Info about category: ' + cat);
}


function showGroupInfo(group) {
    alert('Info about group: ' + group);
}



