{
	"translatorID": "22d0bede-8db5-4656-9b9a-7d682ec1335d",
	"label": "Publications du Québec",
	"creator": "Marc Lajoie",
	"target": "^https?://(www\\.)?legisquebec\\.gouv\\.qc\\.ca/",
	"minVersion": "3.0",
	"maxVersion": "",
	"priority": 100,
	"inRepository": true,
	"translatorType": 4,
	"browserSupport": "gcsibv",
	"lastUpdated": "2017-06-03 15:38:52"
}
/*
Publications du Québec Translator
Copyright (C) 2014 Marc Lajoie
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
function detectWeb(doc, url) {
	if (url.indexOf('/ShowDoc/') != -1) {
		return "statute";
	} else if (getSearchResults(doc, true)) {
		return "multiple";
	}
}
function getSearchResults(doc, checkOnly) {
	var items = {};
	var found = false;
	var rows = ZU.xpath(doc, '//tr[contains(@class, "legisDocRow")]/td/a') ||
		ZU.xpath(doc, '//tr/td/a[contains(@href, "ShowDoc/")]');
	for (var i=0; i