<%@LANGUAGE="Javascript" CODEPAGE="65001"%><% 
Session.CodePage = 65001
Response.CharSet = "UTF-8"
Session.LCID = 1036 
LNG = "fr"
date = new Date()
%><!--#include file="inc/function.js"--><!--#include file="inc/Conn.js"--><%
Response.ContentType="text/xml"

Server.ScriptTimeout=400

var fs = Server.CreateObject("Scripting.FileSystemObject")

ff = "Sitemap\\Sitemap-marque.xml.cache0.txt"
fd = Server.MapPath(".") + "\\"
function coded(itm){
		return (String(itm) != "" && String(itm) != "undefined" && String(itm) != "null") ?  Server.URLEncode(itm) : ""
	}

	RS_Marque 	= Conn.execute("SELECT title AS [name],[image] AS prio FROM Marque WHERE valid = true ")
	
	out = '<?xml version="1.0" encoding="UTF-8"?>'
	out += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
	out += 'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'
	
	while (!(RS_Marque.eof)){
		_URL = coded(RS_Marque("name").value) + ".html"
		prior = RS_Marque("prio").value ? "0.6" : "0.5"
		out += xml_url("http://glasman.fr/marque/"+ _URL ,prior) 
	RS_Marque.MoveNext}	
	

	out += "</urlset>"
	
	
	Response.Write(out)


function xml_url(u,prio){
	return '<url><loc>'+u+'</loc><priority>'+prio+'</priority><changefreq>monthly</changefreq></url>'
}

Conn.close()
%>

