var pages = [{"title":"Default","type":"default","details":"{\"type\":\"\\\/\"}","_o_a_s_page":"\/","_o_a_s_positions":"sas_pageId=\"152158\"","locked":true,"platform":"desktop"},{"title":"Home","type":"home","details":"{\"type\":\"\\\/\"}","_o_a_s_page":"\/home","_o_a_s_positions":"sas_pageId=\"152158\"","locked":true,"platform":"desktop"},{"title":"Liga \u00c1guila","type":"section","details":"{\"type\":\"futbol-colombiano\/liga-aguila\"}","_o_a_s_page":"\/futbol-colombiano\/liga-aguila","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Futbol Colombiano","type":"section","details":"{\"type\":\"futbol-colombiano\"}","_o_a_s_page":"\/futbol-colombiano","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Copa \u00c1guila","type":"section","details":"{\"type\":\"futbol-colombiano\/copa-aguila\"}","_o_a_s_page":"\/futbol-colombiano\/copa-aguila","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Torneo \u00c1guila","type":"section","details":"{\"type\":\"futbol-colombiano\/torneo-aguila\"}","_o_a_s_page":"\/futbol-colombiano\/torneo-aguila","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"F\u00fatbol Femenino","type":"section","details":"{\"type\":\"futbol-colombiano\/futbol-femenino\"}","_o_a_s_page":"\/futbol-colombiano\/futbol-femenino","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Selecciones Nacionales","type":"section","details":"{\"type\":\"selecciones-nacionales\"}","_o_a_s_page":"\/selecciones-nacionales","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Champions League","type":"section","details":"{\"type\":\"champions-league\"}","_o_a_s_page":"\/champions-league","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Liga Espa\u00f1a","type":"section","details":"{\"type\":\"liga-de-espana\"}","_o_a_s_page":"\/liga-de-espa\u00f1a","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Liga de Francia","type":"section","details":"{\"type\":\"liga-francesa\"}","_o_a_s_page":"\/liga-francesa","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Liga Alemana","type":"section","details":"{\"type\":\"bundesliga\"}","_o_a_s_page":"\/bundesliga","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Copa Libertadores","type":"section","details":"{\"type\":\"copa-libertadores\"}","_o_a_s_page":"\/copa-libertadores","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Copa Sudamericana","type":"section","details":"{\"type\":\"copa-sudamericana\"}","_o_a_s_page":"\/copa-sudamericana","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Otras Ligas","type":"section","details":"{\"type\":\"otras-ligas-de-futbol\"}","_o_a_s_page":"\/otras-ligas-de-futbol","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Selecci\u00f3n Colombia","type":"section","details":"{\"type\":\"seleccion-colombia\"}","_o_a_s_page":"\/seleccion-colombia","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Colombianos en el exterior","type":"section","details":"{\"type\":\"colombianos-en-el-exterior\"}","_o_a_s_page":"\/colombianos-en-el-exterior","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Curiosidades","type":"section","details":"{\"type\":\"curiosidades-de-futbol\"}","_o_a_s_page":"\/curiosidades-de-futbol","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Premier League","type":"section","details":"{\"type\":\"premier-league\"}","_o_a_s_page":"\/premier-league","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"UEFA Europa League","type":"section","details":"{\"type\":\"uefa-europa-league\"}","_o_a_s_page":"\/uefa-europa-league","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"parrila","type":"url","details":"{\"type\":\"\/parrilla-de-futbol\"}","_o_a_s_page":"\/parrilla-de-futbol","_o_a_s_positions":"sas_pageId=\"278354\"","locked":false,"platform":"desktop"},{"title":"Parrilla","type":"url","details":"{\"type\":\"\/parrilla-de-futbol\"}","_o_a_s_page":"\/parrilla-de-futbol","_o_a_s_positions":"sas_pageId=\"534341\"","locked":false,"platform":"desktop"},{"title":"Mundial Rusia 2018","type":"section","details":"{\"type\":\"mundial-rusia-2018\"}","_o_a_s_page":"\/mundial-rusia-2018","_o_a_s_positions":"sas_pageId=\"152298\"","locked":false,"platform":"desktop"},{"title":"Copa Am\u00e9rica Brasil 2019","type":"section","details":"{\"type\":\"copa-america-brasil-2019\"}","_o_a_s_page":"\/copa-america-brasil-2019","_o_a_s_positions":"sas_pageId=\"174110\"","locked":false,"platform":"desktop"}], GT_sitepage = ''; GT_listpos = ''; GT_importance = -1; var Top=1; var currentUri = document.location.pathname; // importance order var importance = ['default', 'home', 'section', 'article', 'url']; for (var i in pages) { var page = pages[i]; var pageDetails = JSON.parse(page.details); var urlMatch = pageDetails.type; // treat home separately if (page.type == 'home' && currentUri.match("^" + urlMatch+ "$")) { GT_listpos = page._o_a_s_positions; GT_sitepage = page._o_a_s_page.replace(/^\//, ''); GT_importance = importance.indexOf(page.type); break; }; if ( (page.type == "default") || (page.type == 'url' && currentUri.match("^" + urlMatch)) || (page.type == 'section' && currentUri.match(urlMatch)) || (page.type == 'article' && currentUri.match(urlMatch) && currentUri.match('.html$')) ) { //decide to keep most important if (importance.indexOf(page.type) > GT_importance) { if (page.type == 'section') { var currentSlashes = (currentUri.match(new RegExp("\/", "g"))||[]).length; var dbSlashes = (urlMatch.match(new RegExp("\/", "g"))||[]).length; if (currentUri.match(urlMatch + "$") && (currentSlashes - 1 == dbSlashes)) { GT_listpos = page._o_a_s_positions; GT_sitepage = page._o_a_s_page.replace(/^\//, ''); GT_importance = importance.indexOf(page.type); } if (currentSlashes - 1 > dbSlashes) { GT_listpos = page._o_a_s_positions; GT_sitepage = page._o_a_s_page.replace(/^\//, ''); GT_importance = importance.indexOf(page.type)-((currentSlashes - 1 - dbSlashes)/10); } } else { GT_listpos = page._o_a_s_positions; GT_sitepage = page._o_a_s_page.replace(/^\//, ''); GT_importance = importance.indexOf(page.type); } }; }; }; GT_listpos = GT_listpos.replace(/(\r\n|\n|\r)/gm,""); eval(GT_listpos);