/* [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(''),'/701.html','true',[],'',''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','878',jdecode('Promotions'),jdecode(''),'/878.html','true',[],'',''],
	['PAGE','899',jdecode('Contact'),jdecode(''),'/899.html','true',[],'',''],
	['PAGE','11001',jdecode('Offers'),jdecode(''),'/11001.html','true',[],'','']];
var siteelementCount=5;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2443';
theSitetree.keyvisualName='beratung.jpg';
theSitetree.fontsetId='405';
theSitetree.graphicsetId='460';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2443',
				keyvisualName: 	'beratung.jpg',
				fontsetId: 		'405',
				graphicsetId: 	'460',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20110627-131832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20070414-050539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20110627-133935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20110627-131755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20080302-201614'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INE09D';
var companyName   = 'NW+Wireless+%26+Satellite';
var htmlTitle	  = 'Official+site%3A+NW+Wireless+and+Satellite%3B+Boost+Mobile%2C+Virgin+Mobile%2C+Xfinity+%28Comcast%29%2C+Dish+Network%2C+Exclusive+Boost+Mobile+Dealer%2C+non-contract+pay+as+you+go+service.';
var metaKeywords  = 'NW+Wireless+and+Satellite%2C+Advanced+Cellular+and+Satellite%2C+Advanced+Cellular%2C+Sprint+together+with+Nextel%2C+mobile+phones%2C+discount+cell+phones%2C+Verizon+Wireless%2C+T-Mobile%2C+Boost+Mobile%2C+Helio%2C+Promotions%2C+cheap+cell+phones%2C+free+activation%2C+cell+phone+deals%2C+N.W.+Wireless%2C+NW+Wireless%2C+Northwest+Wireless%2C+Northwest+Wireless+and+Satellite%2C+N.W.+Wireless+and+Satellite%2C+cellular+communication%2C+satellite+TV%2C+Newberg%2C+McMinnville%2C+Dayton%2C+Hillsboro%2C+Scholls%2C+Sherwood%2C+Tigard%2C+Tualatin%2C+Chehalem%2C+Sheridan%2C+Wilsonville%2C+Aurora%2C+Woodburn%2C+Beaverton%2C+Portland%2C+Oregon%2C+OR%2C+Westside%2C+Yamhill%2C+Yamhill+County%2C+Parks++Recreation%2C+Chehalem+Parks++Recreation%2C+Newberg+Fire+Dept%2C+Fire+Agency%2C+Emergency+Services%2C+George+Fox%2C+GFU%2C+George+Fox+University+Security%2C+NHS%2C+Newberg+High+School%2C+A-Dec%2C+Adec%2C+contractors%2C+government%2C+GSA%2C+school%2C+school+district%2C+VISA%2C+MC%2C+Newberg+Business+Directory%2C+Business+Guide%2C+Business+Listing%2C+Newberg+Chamber%2C+Newberg+Chamber+of+Commerce%2C+Chamber+of+Commerce%2C+Christian+businesses%2C+athletic+donations%2C+501+%28c%29+%283%29%2C+Sports+team+donation%2C+church+donation%2C+charity+donation%2C+swim+team+donation%2C+swim+team%2C+chehalem+swim+team%2C+chehalem+water+polo%2C+newberg+water+polo%2C+Christian%2C+walkie+talkie%2C+press+to+talk%2C+CDMA%2C+IDEN%2C+businesses%2C+northwest%2C+U.S.%2C+wireless+communications+consulting%2C+sales%2C+wireless+subscriber+agreement%2C+subscriber+agreement%2C+Sprint%2FNextel%2C+Nextel%2FSprint%2C+Sprint-NEXTEL%2C+Nextel%2C+Sprint%2C+Verizon+Wireless%2C+Cingular%2C+Cricket%2C+T-Mobile%2C+Boost+Mobile%2C+Fuel%2C+PINs%2C+SIM+cards%2C+cellular+upgrade%2C+upgrades%2C+wireless+handsets%2C+handset%2C+handphone%2C+Sanyo%2C+Sony+Ericsson%2C+Motorola%2C+Samsung%2C+LG%2C+Nokia%2C+BlackBerry%2C+RIM%2C+Treo%2C+Bluetooth+headset%2C+Jabra%2C+headsets%2C+wall+chargers%2C+car+chargers%2C+holsters%2C+phone+clips%2C+clips%2C+cases%2C+phone+cases%2C+cell+phone+accessories%2C+mobile+phones%2C+mobile+phone+accessories%2C+wireless+accessories%2C+satellite+TV%2C+satellite+television%2C+Dish+Network%2C+Wi-Fi+Northwest%2C+satellite%2C+satellite-based+broadband%2C+broadband%2C+broadband+wireless+internet%2C+internet+service%2C+Web+service%2C+exceptional+service%2C+coverage%2C+DSL%2C+cable%2C+service.+';
var metaContents  = 'NW+Wireless+Satellite+provides+cellular+communication+and+satellite+TV+needs+for+businesses+and+residents+of+the+northwest+and+all+parts+of+the+U.S.+We+sell+wireless+subscriber+agreements+from+Sprint-NEXTEL%2C+Verizon+Wireless%2C+Cingular%2C+Cricket%2C+T-Mobile%2C+and+Boost+Mobile%2C+as+well+as+upgrades%2C+wireless+handsets+from+Sanyo%2C+Sony+Ericsson%2C+Motorola%2C+Samsung%2C+LG%2C+Nokia%2C+BlackBerry+%28RIM%29%2C+and+other+manufacturers.+In+addition+we+supply+Bluetooth+headsets%2C+wall+chargers%2C+car+chargers%2C+holsters%2C+clips%2C+cases%2C+and+a+host+of+other+wireless+accessories+from+Jabra+and+other+top+OEM+suppliers.+In+addition%2C+we+sell+Dish+Network+service.+';
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();
};

