/* [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','701',jdecode('Home'),jdecode(''), jdecode('%2F701%2Findex.html'), 'true',[ 
		['PAGE','2001',jdecode('Programs'),jdecode(''), jdecode('%2F701%2F2001.html'), 'true',[],'',''],
		['PAGE','286551',jdecode('Accreditation'),jdecode(''), jdecode('%2F701%2F286551.html'), 'true',[],'','']
	],'',''],
	['PAGE','291651',jdecode('Spanish+Partners'),jdecode(''), jdecode('%2F291651%2Findex.html'), 'true',[ 
		['PAGE','36443',jdecode('UNIVERSITIES'),jdecode(''), jdecode('%2F291651%2F36443.html'), 'true',[],'',''],
		['PAGE','36464',jdecode('INTERNSHIPS'),jdecode(''), jdecode('%2F291651%2F36464.html'), 'true',[],'',''],
		['PAGE','36485',jdecode('LANGUAGE+SHOOLS'),jdecode(''), jdecode('%2F291651%2F36485.html'), 'true',[],'',''],
		['PAGE','260751',jdecode('SERVICE+PROVIDERS'),jdecode(''), jdecode('%2F291651%2F260751.html'), 'true',[],'',''],
		['PAGE','289972',jdecode('FULL+DEGREES'),jdecode(''), jdecode('%2F291651%2F289972.html'), 'true',[],'','']
	],'',''],
	['PAGE','290151',jdecode('University+Programs'),jdecode(''), jdecode('%2F290151%2Findex.html'), 'true',[ 
		['PAGE','38401',jdecode('Exchanges'),jdecode(''), jdecode('%2F290151%2F38401.html'), 'true',[],'',''],
		['PAGE','291672',jdecode('Study+Abroad'),jdecode(''), jdecode('%2F290151%2F291672.html'), 'true',[],'',''],
		['PAGE','289951',jdecode('Direct+Enroll'),jdecode(''), jdecode('%2F290151%2F289951.html'), 'true',[],'','']
	],'',''],
	['PAGE','289993',jdecode('Language+Programs'),jdecode(''), jdecode('%2F289993%2Findex.html'), 'true',[ 
		['PAGE','36401',jdecode('Language+Schools+ESP'),jdecode(''), jdecode('%2F289993%2F36401.html'), 'true',[],'',''],
		['PAGE','290172',jdecode('Language+Schools+USA'),jdecode(''), jdecode('%2F289993%2F290172.html'), 'true',[],'','']
	],'',''],
	['PAGE','290014',jdecode('Internships'),jdecode(''), jdecode('%2F290014%2Findex.html'), 'true',[ 
		['PAGE','290035',jdecode('Internships+in+Spain'),jdecode(''), jdecode('%2F290014%2F290035.html'), 'true',[],'','']
	],'',''],
	['PAGE','7201',jdecode('Majors%2FCourses%2FLocations'),jdecode(''), jdecode('%2F7201%2Findex.html'), 'true',[ 
		['PAGE','7222',jdecode('Architecture'),jdecode(''), jdecode('%2F7201%2F7222.html'), 'false',[],'',''],
		['PAGE','288951',jdecode('MAJORS'),jdecode(''), jdecode('%2F7201%2F288951.html'), 'true',[],'',''],
		['PAGE','288972',jdecode('LOCATIONS'),jdecode(''), jdecode('%2F7201%2F288972.html'), 'true',[],'',''],
		['PAGE','7243',jdecode('Art+%26+Design'),jdecode(''), jdecode('%2F7201%2F7243.html'), 'false',[],'',''],
		['PAGE','7264',jdecode('Bus.+Admin.'),jdecode(''), jdecode('%2F7201%2F7264.html'), 'false',[],'',''],
		['PAGE','7285',jdecode('Communic.'),jdecode(''), jdecode('%2F7201%2F7285.html'), 'false',[],'',''],
		['PAGE','7306',jdecode('Education'),jdecode(''), jdecode('%2F7201%2F7306.html'), 'false',[],'',''],
		['PAGE','7348',jdecode('Tourism+%28SP%29'),jdecode(''), jdecode('%2F7201%2F7348.html'), 'false',[],'',''],
		['PAGE','275451',jdecode('Tourism+%28ENG%29'),jdecode(''), jdecode('%2F7201%2F275451.html'), 'false',[],'',''],
		['PAGE','283051',jdecode('Social+Sciences'),jdecode(''), jdecode('%2F7201%2F283051.html'), 'false',[],'','']
	],'',''],
	['PAGE','291693',jdecode('Programs+in+the+US'),jdecode(''), jdecode('%2F291693%2Findex.html'), 'true',[ 
		['PAGE','291714',jdecode('Professional+English'),jdecode(''), jdecode('%2F291693%2F291714.html'), 'true',[],'',''],
		['PAGE','291735',jdecode('Internships+in+the+US'),jdecode(''), jdecode('%2F291693%2F291735.html'), 'true',[],'','']
	],'',''],
	['PAGE','284051',jdecode('US+Partners'),jdecode(''), jdecode('%2F284051.html'), 'false',[],'',''],
	['PAGE','272451',jdecode('Campus+Photos'),jdecode(''), jdecode('%2F272451%2Findex.html'), 'true',[ 
		['PAGE','269251',jdecode('UEM'),jdecode(''), jdecode('%2F272451%2F269251.html'), 'true',[],'',''],
		['PAGE','272251',jdecode('EADM'),jdecode(''), jdecode('%2F272451%2F272251.html'), 'true',[],'',''],
		['PAGE','273951',jdecode('EUTA'),jdecode(''), jdecode('%2F272451%2F273951.html'), 'true',[],'','']
	],'',''],
	['PAGE','245137',jdecode('Finances'),jdecode(''), jdecode('%2F245137.html'), 'true',[],'',''],
	['PAGE','7390',jdecode('Contact+us'),jdecode(''), jdecode('%2F7390.html'), 'true',[],'',''],
	['PAGE','264451',jdecode('ECTS+Credits'),jdecode(''), jdecode('%2F264451.html'), 'true',[],'',''],
	['PAGE','265051',jdecode('Info+for+SA+Offices'),jdecode(''), jdecode('%2F265051%2Findex.html'), 'true',[ 
		['PAGE','269951',jdecode('Info+for+SA+Offices+%28follow+up+page%29'),jdecode(''), jdecode('%2F265051%2F269951.html'), 'false',[],'','']
	],'',''],
	['PAGE','265751',jdecode('Info+for+Faculty'),jdecode(''), jdecode('%2F265751%2Findex.html'), 'true',[ 
		['PAGE','268051',jdecode('Info+for+Faculty+Members+%28follow+up+page%29'),jdecode(''), jdecode('%2F265751%2F268051.html'), 'false',[],'','']
	],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Blades';
theSitetree.paletteFamily='466AD2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='31704';
theSitetree.graphicsetId='13467';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='608DFE';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blades',
				paletteFamily: 	'466AD2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'31704',
				graphicsetId: 	'13467',
				contentColor: 	'FFFFFF',
				contentBGColor: '608DFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20110927-123256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20110129-224033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288951',
internalId:  '',
customField: '20110130-180418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20110130-143023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7390',
internalId:  '',
customField: '20090812-135904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20091015-180507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20090215-205719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264451',
internalId:  '',
customField: '20090813-152257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36443',
internalId:  '',
customField: '20101005-233301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36464',
internalId:  '',
customField: '20090127-121224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36485',
internalId:  '',
customField: '20090125-154553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20110129-224005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265051',
internalId:  '',
customField: '20090817-154337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7306',
internalId:  '',
customField: '20090130-125659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7348',
internalId:  '',
customField: '20091015-172558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20090130-124157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7264',
internalId:  '',
customField: '20091015-180418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7285',
internalId:  '',
customField: '20091015-180558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260751',
internalId:  '',
customField: '20090215-213350'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-10464']={
webappId:    '7008',
documentId:  '265751',
internalId:  '10464',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283051',
internalId:  '',
customField: '20100928-184456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245137',
internalId:  '',
customField: '20110129-231230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290151',
internalId:  '',
customField: '20110427-050846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265751',
internalId:  '',
customField: '20090813-153403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291651',
internalId:  '',
customField: '20110517-214946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291672',
internalId:  '',
customField: '20110517-214947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286551',
internalId:  '',
customField: '20110128-000054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268051',
internalId:  '',
customField: '20090812-162153'
};
webappMappings['7060']=webappMappings['7060-17bb79be2c88429267a0e3ba65cb5ba9']={
webappId:    '7060',
documentId:  '269251',
internalId:  '17bb79be2c88429267a0e3ba65cb5ba9',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '269251',
internalId:  '',
customField: '20090812-171059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '269951',
internalId:  '',
customField: '20090812-172348'
};
webappMappings['7060']=webappMappings['7060-4bac2f369340e85691aaba3da777e6f9']={
webappId:    '7060',
documentId:  '272251',
internalId:  '4bac2f369340e85691aaba3da777e6f9',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272251',
internalId:  '',
customField: '20090912-184340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272451',
internalId:  '',
customField: '20090912-184237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273951',
internalId:  '',
customField: '20090912-184408'
};
webappMappings['7060']=webappMappings['7060-41bc64809e16960a29e2ff483f97d75d']={
webappId:    '7060',
documentId:  '273951',
internalId:  '41bc64809e16960a29e2ff483f97d75d',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275451',
internalId:  '',
customField: '20091015-180324'
};
webappMappings['7008']=webappMappings['7008-10463']={
webappId:    '7008',
documentId:  '265051',
internalId:  '10463',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288972',
internalId:  '',
customField: '20110130-141529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284051',
internalId:  '',
customField: '20101019-230808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289951',
internalId:  '',
customField: '20110427-050005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289972',
internalId:  '',
customField: '20110427-050005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289993',
internalId:  '',
customField: '20110427-050005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290172',
internalId:  '',
customField: '20110427-050846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290014',
internalId:  '',
customField: '20110427-050005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290035',
internalId:  '',
customField: '20110427-050005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291693',
internalId:  '',
customField: '20110517-214947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291714',
internalId:  '',
customField: '20110517-214947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291735',
internalId:  '',
customField: '20110517-214947'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INVRXA';
var companyName   = 'SPAIN+EDUCATION+PROGRAMS+-+SEP';
var htmlTitle	  = 'www.spaineduprograms.es';
var metaKeywords  = 'Student+Exchange%2C+Spain%2C+Study+Abroad%2C+Exchange+Programs%2C+Madrid%2C+Oviedo%2C+University%2C+College%2C+Architecture%2C+Art%2C+Design%2C+Communication%2C+Business+Administration%2C+Tourism%2C+Computer+Science%2C+Education%2C+Computer+Engineering%2C+Computer+System%2C+Internship%2C+Spanish%2C+Courses%2C+English';
var metaContents  = 'Student+Exchange%2C+Spain%2C+Study+Abroad%2C';
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();
};

