/* [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','7101',jdecode('Home'),jdecode(''), jdecode('%2F7101.html'), 'true',[],'',''],
	['PAGE','77801',jdecode('From+The+Heart+'),jdecode(''), jdecode('%2F77801.html'), 'true',[],'',''],
	['PAGE','7152',jdecode('Relaxation+Recordings'),jdecode(''), jdecode('%2F7152%2Findex.html'), 'true',[ 
		['PAGE','7173',jdecode('Instructions'),jdecode(''), jdecode('%2F7152%2F7173.html'), 'true',[],'',''],
		['PAGE','7194',jdecode('Feedback+on+Recordings'),jdecode(''), jdecode('%2F7152%2F7194.html'), 'true',[],'','']
	],'',''],
	['PAGE','7215',jdecode('Theoretical+Explanations'),jdecode(''), jdecode('%2F7215%2Findex.html'), 'true',[ 
		['PAGE','7236',jdecode('Happiness'),jdecode(''), jdecode('%2F7215%2F7236.html'), 'true',[],'',''],
		['PAGE','65501',jdecode('The+Effect+of+Flowers'),jdecode(''), jdecode('%2F7215%2F65501.html'), 'true',[],'',''],
		['PAGE','7257',jdecode('Relaxation'),jdecode(''), jdecode('%2F7215%2F7257.html'), 'true',[],'',''],
		['PAGE','7278',jdecode('Evolutionary+Psychology'),jdecode(''), jdecode('%2F7215%2F7278.html'), 'true',[],'',''],
		['PAGE','7299',jdecode('Fight+or+Flight'),jdecode(''), jdecode('%2F7215%2F7299.html'), 'true',[],'',''],
		['PAGE','7341',jdecode('Anxiety+Helped+Survival'),jdecode(''), jdecode('%2F7215%2F7341.html'), 'true',[],'',''],
		['PAGE','7320',jdecode('Anxiety+Questionnaire'),jdecode(''), jdecode('%2F7215%2F7320.html'), 'true',[],'','']
	],'',''],
	['PAGE','7362',jdecode('Methods+of+Relaxation'),jdecode(''), jdecode('%2F7362%2Findex.html'), 'true',[ 
		['PAGE','7383',jdecode('Meditation'),jdecode(''), jdecode('%2F7362%2F7383.html'), 'true',[],'',''],
		['PAGE','7404',jdecode('Hypnosis'),jdecode(''), jdecode('%2F7362%2F7404.html'), 'true',[],'',''],
		['PAGE','7425',jdecode('Deep+Breathing'),jdecode(''), jdecode('%2F7362%2F7425.html'), 'true',[],'',''],
		['PAGE','7446',jdecode('Muscle+Relaxation'),jdecode(''), jdecode('%2F7362%2F7446.html'), 'true',[],'',''],
		['PAGE','7467',jdecode('Visualization'),jdecode(''), jdecode('%2F7362%2F7467.html'), 'true',[],'',''],
		['PAGE','7488',jdecode('Relaxing+Among+People'),jdecode(''), jdecode('%2F7362%2F7488.html'), 'true',[],'','']
	],'',''],
	['PAGE','7509',jdecode('Stress+Anxiety+%26+Depression'),jdecode(''), jdecode('%2F7509%2Findex.html'), 'true',[ 
		['PAGE','7530',jdecode('Sleep+Problems'),jdecode(''), jdecode('%2F7509%2F7530.html'), 'true',[],'',''],
		['PAGE','7551',jdecode('Nightmares'),jdecode(''), jdecode('%2F7509%2F7551.html'), 'true',[],'',''],
		['PAGE','7572',jdecode('Sexual+Disorders'),jdecode(''), jdecode('%2F7509%2F7572.html'), 'true',[],'',''],
		['PAGE','79401',jdecode('Separation+Anxiety'),jdecode(''), jdecode('%2F7509%2F79401.html'), 'true',[],'',''],
		['PAGE','63101',jdecode('Bashful+Bladder'),jdecode(''), jdecode('%2F7509%2F63101.html'), 'true',[],'',''],
		['PAGE','7593',jdecode('Grind+Teeth+-+Nail+Biting'),jdecode(''), jdecode('%2F7509%2F7593.html'), 'true',[],'',''],
		['PAGE','7614',jdecode('Depression'),jdecode(''), jdecode('%2F7509%2F7614.html'), 'true',[],'',''],
		['PAGE','75501',jdecode('Mourning+A+Loss'),jdecode(''), jdecode('%2F7509%2F75501.html'), 'true',[],'',''],
		['PAGE','30601',jdecode('Hyperventilation'),jdecode(''), jdecode('%2F7509%2F30601.html'), 'true',[],'',''],
		['PAGE','7635',jdecode('Intrusive+Thoughts'),jdecode(''), jdecode('%2F7509%2F7635.html'), 'true',[],'',''],
		['PAGE','7656',jdecode('Pessimism'),jdecode(''), jdecode('%2F7509%2F7656.html'), 'true',[],'',''],
		['PAGE','7677',jdecode('Test+Anxiety'),jdecode(''), jdecode('%2F7509%2F7677.html'), 'true',[],'',''],
		['PAGE','7698',jdecode('Guilt+Feelings'),jdecode(''), jdecode('%2F7509%2F7698.html'), 'true',[],'',''],
		['PAGE','7719',jdecode('Reaction+to+Acts+of+Terror'),jdecode(''), jdecode('%2F7509%2F7719.html'), 'true',[],'','']
	],'',''],
	['PAGE','7740',jdecode('Coping+with+Phobias'),jdecode(''), jdecode('%2F7740%2Findex.html'), 'true',[ 
		['PAGE','30501',jdecode('Claustro%2FAgro%2FAcrophobia'),jdecode(''), jdecode('%2F7740%2F30501.html'), 'true',[],'',''],
		['PAGE','30622',jdecode('Fear+of+Flying'),jdecode(''), jdecode('%2F7740%2F30622.html'), 'true',[],'',''],
		['PAGE','30643',jdecode('Fear+of+Elevators'),jdecode(''), jdecode('%2F7740%2F30643.html'), 'true',[],'',''],
		['PAGE','30664',jdecode('Fear+of+Insects'),jdecode(''), jdecode('%2F7740%2F30664.html'), 'true',[],'',''],
		['PAGE','30685',jdecode('Social+Phobia'),jdecode(''), jdecode('%2F7740%2F30685.html'), 'true',[],'','']
	],'',''],
	['PAGE','30706',jdecode('Physical+Issues'),jdecode(''), jdecode('%2F30706%2Findex.html'), 'true',[ 
		['PAGE','30727',jdecode('Body+%26+Mind'),jdecode(''), jdecode('%2F30706%2F30727.html'), 'true',[],'',''],
		['PAGE','30748',jdecode('Healing+Via+Relaxation'),jdecode(''), jdecode('%2F30706%2F30748.html'), 'true',[],'',''],
		['PAGE','30769',jdecode('Surgery'),jdecode(''), jdecode('%2F30706%2F30769.html'), 'true',[],'',''],
		['PAGE','30790',jdecode('Knee+Pains'),jdecode(''), jdecode('%2F30706%2F30790.html'), 'true',[],'',''],
		['PAGE','81201',jdecode('Restless+Leg+Syndrome'),jdecode(''), jdecode('%2F30706%2F81201.html'), 'true',[],'',''],
		['PAGE','30811',jdecode('Bacteria+%26+Viruses'),jdecode(''), jdecode('%2F30706%2F30811.html'), 'true',[],'',''],
		['PAGE','72801',jdecode('Coping+With+Cancer'),jdecode(''), jdecode('%2F30706%2F72801.html'), 'true',[],'',''],
		['PAGE','72822',jdecode('Free+Choice+and+Cancer'),jdecode(''), jdecode('%2F30706%2F72822.html'), 'true',[],'',''],
		['PAGE','71901',jdecode('Effects+of+Chemotherapy'),jdecode(''), jdecode('%2F30706%2F71901.html'), 'true',[],'','']
	],'',''],
	['PAGE','30832',jdecode('Publications+Of+Dr.+Elitzur'),jdecode(''), jdecode('%2F30832.html'), 'true',[],'',''],
	['PAGE','30853',jdecode('Questions+%26+Comments'),jdecode(''), jdecode('%2F30853.html'), 'true',[],'',''],
	['PAGE','42101',jdecode('Testimonials+from+Readers'),jdecode(''), jdecode('%2F42101.html'), 'true',[],'','']];
var siteelementCount=54;
theSitetree.topTemplateName='Hotel';
theSitetree.paletteFamily='B5A370';
theSitetree.keyvisualId='11669';
theSitetree.keyvisualName='kv_11669.jpg';
theSitetree.fontsetId='32958';
theSitetree.graphicsetId='13997';
theSitetree.contentColor='443d27';
theSitetree.contentBGColor='B5A370';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hotel',
				paletteFamily: 	'B5A370',
				keyvisualId: 	'11669',
				keyvisualName: 	'kv_11669.jpg',
				fontsetId: 		'32958',
				graphicsetId: 	'13997',
				contentColor: 	'443d27',
				contentBGColor: 'B5A370',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20111107-113918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7152',
internalId:  '',
customField: '20111101-225433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7173',
internalId:  '',
customField: '20110926-220506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7215',
internalId:  '',
customField: '20101208-221400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7362',
internalId:  '',
customField: '20101214-225802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7509',
internalId:  '',
customField: '20110729-143813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7740',
internalId:  '',
customField: '20101206-215533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7530',
internalId:  '',
customField: '20110209-212735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7572',
internalId:  '',
customField: '20110209-214114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7593',
internalId:  '',
customField: '20110209-215057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7635',
internalId:  '',
customField: '20110209-220831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7677',
internalId:  '',
customField: '20110209-222953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7698',
internalId:  '',
customField: '20110209-223526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7719',
internalId:  '',
customField: '20110209-224204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7194',
internalId:  '',
customField: '20110506-010736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7236',
internalId:  '',
customField: '20110926-223145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7257',
internalId:  '',
customField: '20110209-194909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7278',
internalId:  '',
customField: '20110209-195605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7299',
internalId:  '',
customField: '20110209-200118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7320',
internalId:  '',
customField: '20110209-202149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7341',
internalId:  '',
customField: '20110209-201445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7383',
internalId:  '',
customField: '20110209-204520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7404',
internalId:  '',
customField: '20110209-204906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7425',
internalId:  '',
customField: '20110209-205337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7446',
internalId:  '',
customField: '20110209-210238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7467',
internalId:  '',
customField: '20110508-160251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7488',
internalId:  '',
customField: '20110220-223645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7551',
internalId:  '',
customField: '20110209-213523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7614',
internalId:  '',
customField: '20110209-220255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7656',
internalId:  '',
customField: '20110209-221833'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20110209-225809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20110220-224002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30622',
internalId:  '',
customField: '20110209-230403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30643',
internalId:  '',
customField: '20110209-230901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30664',
internalId:  '',
customField: '20110209-231852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30685',
internalId:  '',
customField: '20110209-232517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30706',
internalId:  '',
customField: '20110605-013423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30727',
internalId:  '',
customField: '20110209-185151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30748',
internalId:  '',
customField: '20110926-220314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30769',
internalId:  '',
customField: '20110603-003449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30790',
internalId:  '',
customField: '20110209-185718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30811',
internalId:  '',
customField: '20110209-185847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30832',
internalId:  '',
customField: '20101214-222146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30853',
internalId:  '',
customField: '20101212-205517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42101',
internalId:  '',
customField: '20101207-005156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63101',
internalId:  '',
customField: '20110220-230555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65501',
internalId:  '',
customField: '20110507-021853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20110630-184411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77801',
internalId:  '',
customField: '20110821-001244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20110630-184141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72822',
internalId:  '',
customField: '20110630-184225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75501',
internalId:  '',
customField: '20110729-143604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79401',
internalId:  '',
customField: '20110926-223655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81201',
internalId:  '',
customField: '20111223-154652'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INZY73';
var companyName   = 'Less+Stress+More+Happiness+++++++++++++++++++++++';
var htmlTitle	  = 'Less+Stress+More+Happiness';
var metaKeywords  = 'Artintel.net%2C+Dr.+Baruch+Elitzur%2C+Less+Stress+More+Happiness%2C+relaxation+recordings%2C+relaxation+instructions%2C+From+the+Heart%2C+positive+psychology%2C+evolutionary+psychology%2C+fight+or+flight%2C+mental+imagery%2C+Claustrophobia%2C+Agoraphobia%2C+Acrophobia%2C+fear+of+flying%2C+fear+of+elevators%2C+fear+of+insects%2C+social+phobia%2C+sleep+problems%2C+nightmares%2C+sexual+disorder+bashful+bladder%2C+grinding+teeth%2C+nail+biting%2C+depression+morning%2C+hyperventilation%2C+intrusive+thoughts%2C+pessimism+test+anxiety%2C+guilt+feelings%2C+reaction+to+acts+of+terror%2C+preparing+for+surgery%2C+knee+pains%2C+coping+with+cancer';
var metaContents  = 'Dr.+Baruch+Elitzur%3A+The+objective+of+this+site+is+to+give+the+reader+an+insight+on+stress+and+anxiety+with+useful+means+of+relieving+them.+In+this+website%2C+there+are+two+relaxation+sessions+to+listen+to+at+your+leisure.+Listening+to+any+one+of+them+daily%2C+may+bring+peace+and+relaxation+into+your+life.+This+is+a+Non-Profit+site.+If+you+find+this+site+helpful%2C+please+share+it+with+your+friends.';
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();
};

