/* [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 theSitetree=[ 
	['PAGE','16602',jdecode('HOME'),jdecode(''),'/16602/index.html','true',[ 
		['PAGE','5897',jdecode('Camera'),jdecode(''),'/16602/5897.html','true',[],''],
		['PAGE','20102',jdecode('STAGE'),jdecode(''),'/16602/20102.html','true',[],'']
	],''],
	['PAGE','5825',jdecode('Production+Manager+'),jdecode(''),'/5825/index.html','true',[ 
		['PAGE','5876',jdecode('About+us'),jdecode(''),'/5825/5876.html','true',[],'']
	],''],
	['PAGE','7951',jdecode('NEWS'),jdecode(''),'/7951.html','true',[],''],
	['PAGE','5939',jdecode('3D+Stereo'),jdecode(''),'/5939/index.html','true',[ 
		['PAGE','7993',jdecode('3D+Stereo'),jdecode(''),'/5939/7993.html','true',[],'']
	],''],
	['PAGE','6002',jdecode('Graphics'),jdecode(''),'/6002/index.html','true',[ 
		['PAGE','20144',jdecode('Computer+Graphics'),jdecode(''),'/6002/20144.html','true',[],'']
	],''],
	['PAGE','6065',jdecode('Contact'),jdecode(''),'/6065/index.html','true',[ 
		['PAGE','6825',jdecode('Blog+Neil'),jdecode(''),'/6065/6825.html','true',[],''],
		['PAGE','6023',jdecode('Studio+Location'),jdecode(''),'/6065/6023.html','true',[],'']
	],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10367';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10367',
				graphicsetId: 	'10527',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:  '20102',
internalId:  '',
customField: '20090814-014635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5825',
internalId:  '',
customField: '20090814-033345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5897',
internalId:  '',
customField: '20090821-224144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16602',
internalId:  '',
customField: '20090904-001316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5876',
internalId:  '',
customField: '20090828-164919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6065',
internalId:  '',
customField: '20090813-150628'
};
webappMappings['7050']=webappMappings['7050-1335']={
webappId:    '7050',
documentId:  '6825',
internalId:  '1335',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6825',
internalId:  '',
customField: '20090822-011039'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '16602',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6002',
internalId:  '',
customField: '20090822-011714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5939',
internalId:  '',
customField: '20090822-015017'
};
webappMappings['7060']=webappMappings['7060-d551a2f0a17814296190c81526660752']={
webappId:    '7060',
documentId:  '7993',
internalId:  'd551a2f0a17814296190c81526660752',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6023',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7993',
internalId:  '',
customField: '20090803-143147'
};
webappMappings['7008']=webappMappings['7008-4431']={
webappId:    '7008',
documentId:  '6065',
internalId:  '4431',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20144',
internalId:  '',
customField: '20090821-232933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7951',
internalId:  '',
customField: '20090803-215921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6023',
internalId:  '',
customField: '20090728-000351'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLU0P';
var companyName   = 'neil+murphy+graphics';
var htmlTitle	  = 'Neil+Murphy+Graphics';
var metaKeywords  = 'digital+to+film%2C+video+to+film%2C+photo+animation%2C+motion+control%2C+3D+stereo+production%2C+3D+stereo+post+production%2C+Neil+Murphy+';
var metaContents  = 'Production+manager+for+video+and+digital+elements+to+film+recording.Post+coordinator+for+digital+deliverable.+Color+timing+for+features.+3D+stereo+cameras+3D+stereo+editing+for+convergence.+3D+stereo+projection+for+display.+Neil+Murphy';
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();
};
