/* [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','43',jdecode('Home'),jdecode(''),'/43.html','true',[],'',''],
	['PAGE','64',jdecode('About+us'),jdecode(''),'/64/index.html','true',[ 
		['PAGE','73',jdecode('The+team'),jdecode(''),'/64/73.html','true',[],'','']
	],'',''],
	['PAGE','57601',jdecode('*+Coupons+Click+Here+*'),jdecode(''),'/57601.html','true',[],'',''],
	['PAGE','82',jdecode('Products'),jdecode(''),'/82.html','true',[],'',''],
	['PAGE','118',jdecode('Showroom+Hours+Location'),jdecode(''),'/118/index.html','true',[ 
		['PAGE','127',jdecode('Adresses+hours'),jdecode(''),'/118/127.html','true',[],'',''],
		['PAGE','136',jdecode('How+to+find+us'),jdecode(''),'/118/136.html','true',[],'','']
	],'',''],
	['PAGE','1574',jdecode('Directions'),jdecode(''),'/1574.html','true',[],'',''],
	['PAGE','54801',jdecode('Wall+Murals+Ideas'),jdecode(''),'/54801.html','true',[],'',''],
	['PAGE','59101',jdecode('Decorative+Metal+Tile'),jdecode(''),'/59101.html','true',[],'',''],
	['PAGE','7601',jdecode('Ideas+Tile+Album'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','50701',jdecode('Pool+Ideas+I'),jdecode(''),'/50701.html','true',[],'',''],
	['PAGE','42501',jdecode('Commercial+Ideas+I'),jdecode(''),'/42501.html','true',[],'',''],
	['PAGE','24401',jdecode('Commercial+Ideas+II'),jdecode(''),'/24401.html','true',[],'',''],
	['PAGE','26664',jdecode('Commercial+Ideas+III'),jdecode(''),'/26664.html','true',[],'',''],
	['PAGE','26685',jdecode('Commercial+Ideas+IV'),jdecode(''),'/26685.html','true',[],'',''],
	['PAGE','50722',jdecode('Commercial++Ideas+V'),jdecode(''),'/50722.html','true',[],'',''],
	['PAGE','33804',jdecode('Our+Blog'),jdecode(''),'/33804.html','true',[],'',''],
	['PAGE','37306',jdecode('Guestbook'),jdecode(''),'/37306/index.html','false',[ 
		['PAGE','37301',jdecode('Read+Guestbook'),jdecode(''),'/37306/37301.html','false',[],'','']
	],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='E99C2E';
theSitetree.keyvisualId='9690';
theSitetree.keyvisualName='kv_9690.gif';
theSitetree.fontsetId='10659';
theSitetree.graphicsetId='11182';
theSitetree.contentColor='AF6F13';
theSitetree.contentBGColor='CCCACA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Dispose',
				paletteFamily: 	'E99C2E',
				keyvisualId: 	'9690',
				keyvisualName: 	'kv_9690.gif',
				fontsetId: 		'10659',
				graphicsetId: 	'11182',
				contentColor: 	'AF6F13',
				contentBGColor: 'CCCACA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-1373608']={
webappId:    '1501',
documentId:  '43',
internalId:  '1373608',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '1574',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '43',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-eec025b4703697ad9ea332b1e0739408']={
webappId:    '7060',
documentId:  '7601',
internalId:  'eec025b4703697ad9ea332b1e0739408',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-46']={
webappId:    '7050',
documentId:  '33804',
internalId:  '46',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-37306ahw050in31q3']={
webappId:    '1002',
documentId:  '37306',
internalId:  '37306ahw050in31q3',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20100726-132431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64',
internalId:  '',
customField: '20080709-154932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73',
internalId:  '',
customField: '20080709-155117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82',
internalId:  '',
customField: '20090923-150058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118',
internalId:  '',
customField: '20100309-121938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127',
internalId:  '',
customField: '20100303-130318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136',
internalId:  '',
customField: '20080709-140036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1574',
internalId:  '',
customField: '20080325-143735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20090923-150608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42501',
internalId:  '',
customField: '20090923-150813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20090923-150827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26664',
internalId:  '',
customField: '20090923-150840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26685',
internalId:  '',
customField: '20090923-150854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20090923-150319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33804',
internalId:  '',
customField: '20081031-112615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37306',
internalId:  '',
customField: '20080918-133011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37301',
internalId:  '',
customField: '20080918-133011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50701',
internalId:  '',
customField: '20090923-150800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50722',
internalId:  '',
customField: '20090923-151025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20090923-150304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20100716-145135'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN31Q3';
var companyName   = 'IDEAS+TILE+%26++FLOORING+-+Call%3A+%28631%29+920-6238';
var htmlTitle	  = 'Tile+ideas%2C+ideas+tile+NY+Tile%2CGranite%2C+Travertine%2C+Slate%2C+Marble%2C+Ceramic%2C+Porcelain%2C+Glass%2C+Metal%2C+Ny+tile%2C+tile+ny';
var metaKeywords  = '+tile+ideas%2Ctile+%2C+flooring%2C+Carpet%2Ctile%2Cceramic+tile%2Cceramic%2Cnatural+stone%2Cnatural+stone+tile%2Cslate+tile%2Cgranitetile%2Cglass+tile%2Ctile+do+it+yourself%2Ctile+installation%2Ctile+sales%2Ctile+tools%2Ctile+supplies%2Cgrout%2Conyx+tile%2Ctravertine%2Ctravertine+tile%2Ctile+listellos%2Ctiledecos%2Ctile+switchplates%2Chand+carved+stone+basins%2Cstone+accessories%2Ctile+accessories%2Cstone+tile%2Cporcelain+tile%2Chow+to+install+tile%2Cstone+mosaics%2Cglass+mosaics%2Ctiles%2Cgranite%2Cfloor+tile%2Cwall+tile%2Ccountertops%2Cbathroom+tiles%2Ckitchen+tiles%2Cflooring%2Cflooring+tile%2Cbacksplash+tile%2Ctile+marble%2Ctile+granite%2Ctile+travertine%2Ctile+glass%2Cshower+tile%2Csubway+tile%2Ctile+shop%2Ctile+stores%2Ctile+online%2Cdiscounttile%2Ckitchen+backsplash%2Cceramic+floor+tile%2Cceramic+wall+tile%2Cstone+facings%2Cdesign+ideas%2Ctile+design';
var metaContents  = '+Porcelain+tile%2C+Marble%2C+Granite%2C+tile%2C+Carpet%2CThe+Ideas+Tile++carries+the+finest+selection+of+natural+stone+tile%2C+ceramic+tile+%2C+porcelain+tile%2C+glass+tile%2C+bannan+appeal%2C+tile+ideas.';
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();
};
