/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','452',jdecode('BIENVENIDOS'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','18501',jdecode('QUIENES+SOMOS'),jdecode(''),'/18501.html','true',[],'',''],
	['PAGE','401',jdecode('PRODUCTOS'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','473',jdecode('Vajilla+Bauscher'),jdecode(''),'/401/473.html','true',[],'',''],
		['PAGE','39901',jdecode('Vajilla+Corona'),jdecode(''),'/401/39901.html','true',[],'',''],
		['PAGE','43101',jdecode('Vajilla+Bormioli'),jdecode(''),'/401/43101.html','true',[],'',''],
		['PAGE','494',jdecode('Cubiertos+WMF'),jdecode(''),'/401/494.html','true',[],'',''],
		['PAGE','39922',jdecode('Cubiertos+Norihotel'),jdecode(''),'/401/39922.html','true',[],'',''],
		['PAGE','515',jdecode('Cristaler%C3%ADa+Spiegelau'),jdecode(''),'/401/515.html','true',[],'',''],
		['PAGE','39943',jdecode('Cristaler%C3%ADa+Libbey'),jdecode(''),'/401/39943.html','true',[],'',''],
		['PAGE','40901',jdecode('Complementos+de+Cristaler%C3%ADa'),jdecode(''),'/401/40901.html','true',[],'',''],
		['PAGE','39964',jdecode('Extras'),jdecode(''),'/401/39964.html','true',[],'',''],
		['PAGE','39985',jdecode('Calentadores'),jdecode(''),'/401/39985.html','true',[],'',''],
		['PAGE','13001',jdecode('Sugerencias'),jdecode(''),'/401/13001.html','true',[],'','']
	],'',''],
	['PAGE','536',jdecode('SERVICIOS'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','557',jdecode('NUESTRAS+MARCAS'),jdecode(''),'/557/index.html','true',[ 
		['PAGE','18901',jdecode('Bauscher'),jdecode(''),'/557/18901.html','true',[],'',''],
		['PAGE','18922',jdecode('Hutschenreuther'),jdecode(''),'/557/18922.html','true',[],'',''],
		['PAGE','18943',jdecode('WMF+HOTEL'),jdecode(''),'/557/18943.html','true',[],'',''],
		['PAGE','18964',jdecode('Spiegelau'),jdecode(''),'/557/18964.html','true',[],'',''],
		['PAGE','40922',jdecode('Corona'),jdecode(''),'/557/40922.html','true',[],'',''],
		['PAGE','40943',jdecode('Bormioli'),jdecode(''),'/557/40943.html','true',[],'',''],
		['PAGE','40964',jdecode('Norihotel'),jdecode(''),'/557/40964.html','true',[],'',''],
		['PAGE','40985',jdecode('Libbey'),jdecode(''),'/557/40985.html','true',[],'','']
	],'',''],
	['PAGE','20001',jdecode('COTIZACIONES'),jdecode(''),'/20001/index.html','true',[ 
		['PAGE','50712',jdecode('Lista+de+Precio'),jdecode(''),'/20001/50712.html','true',[],'','']
	],'',''],
	['PAGE','620',jdecode('CONTACTO'),jdecode(''),'/620.html','true',[],'',''],
	['PAGE','18522',jdecode('LIGAS'),jdecode(''),'/18522.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090730-175812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20091012-122806'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '452',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090730-180425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080723-094031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090223-133042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40985',
internalId:  '',
customField: '20080723-081010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40964',
internalId:  '',
customField: '20080723-081010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18522',
internalId:  '',
customField: '20090223-135528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20091012-122958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090223-140031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20090730-230241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39985',
internalId:  '',
customField: '20090730-231944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20090223-140416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20090223-141054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20090730-223528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20090730-224136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20061004-164650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39922',
internalId:  '',
customField: '20090730-224443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39943',
internalId:  '',
customField: '20090730-224846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39964',
internalId:  '',
customField: '20090730-231455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20070722-181614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18922',
internalId:  '',
customField: '20070720-172143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18943',
internalId:  '',
customField: '20061010-091802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18964',
internalId:  '',
customField: '20070720-172449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40922',
internalId:  '',
customField: '20080723-081010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40943',
internalId:  '',
customField: '20080723-081010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20070721-172113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50712',
internalId:  '',
customField: '20091012-122923'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2KLT';
var companyName   = 'Lo+mejor+del+mundo+para+su+evento';
var htmlTitle	  = 'Kerscher%C2%B4s+Top+Rent';
var metaKeywords  = 'eventos+renta+de+vajilla+renta+de+cristaleria+renta+de+cubiertos+guadalajara+jalisco+renta+de+calentadores+top+rent+fiestas+mobiliario+table+top+minimalista+vajilla+cuadrada+equipo+para+eventos+renta+de+equipo+para+eventos';
var metaContents  = 'Lo+mejor+del+mundo+para+su+evento+con+la+mejor++relaci%C3%B3n++precio-calidad%3A+vajilla+cuadrada+minimalista%2C+cubiertos%2C+cristaler%C3%ADa++todos+muy+modernos%2C+de+la+m%C3%A1s+alta+calidad+%28Bauscher%2C+WMF+y+Spiegelau%29+y+%C3%BAnicos+en+el+mercado%3B++l%C3%ADnea+profesional+%28Corona%2C+Norihotel+y+Libbey%29+para+el+mercado+medio%3B+calentadores+para+exteriores+tipo+hongo.+Servicio+especializado+que+marca+la+diferencia.+Contamos+con+stock+para+eventos+muy+grandes.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
