//constants, &c:
var PATH_PREFIX = "/powerpositioning"; //NB: this needs to be set to an empty string, when the pages go live;
IMG_PATH = "../images/";
//instantiate the wrapper to the left nav
LEFT_NAV = new navUI();
//build the discrete sections of the nav, and add them to the left nav wrapper:
var section;
/* Top Sellers: */
//constructor signature for 'navSection' object: @id, @img
section = new navSection( "powerpositioning", (IMG_PATH + "cat_featuredplans.gif") );
//constructor signature for 'navItem' object: 
//@id (which must be the same as the absolute (from root) path to the page the item targets);
//@image
//@rollover image
//@selected image
section.navItems[section.navItems.length] = new navItem( (PATH_PREFIX + "/allinthenumbers/index.html"), (IMG_PATH + "btn_plans_off.gif"), (IMG_PATH + "btn_plans_ro.gif"), (IMG_PATH + "btn_plans_on.gif") );
	
LEFT_NAV.sections[LEFT_NAV.sections.length] = section;

/* Featured Plans: */
section = new navSection( "servicePhones", (IMG_PATH + "cat_featured.gif") );

section.navItems[section.navItems.length] = new navItem( (PATH_PREFIX + "/coolunique/index.html"), (IMG_PATH + "btn_ultracool_off.gif"), (IMG_PATH + "btn_ultracool_ro.gif"), (IMG_PATH + "btn_ultracool_on.gif") );

LEFT_NAV.sections[LEFT_NAV.sections.length] = section;

/* Online Exclusives: */
section = new navSection( "onlineExclusives", (IMG_PATH + "cat_onlineexclu.gif") );

section.navItems[section.navItems.length] = new navItem( (PATH_PREFIX + "/moreforless/index.html"), (IMG_PATH + "btn_freeflips_off.gif"), (IMG_PATH + "btn_freeflips_ro.gif"), (IMG_PATH + "btn_freeflips_on.gif") );

section.navItems[section.navItems.length] = new navItem( (PATH_PREFIX + "/walkietalkie/index.html"), (IMG_PATH + "btn_WalkieTalkie_off.gif"), (IMG_PATH + "btn_WalkieTalkie_ro.gif"), (IMG_PATH + "btn_WalkieTalkie_on.gif") );

LEFT_NAV.sections[LEFT_NAV.sections.length] = section;

/* Existing Customer Offer: */
section = new navSection( "existingOffer", (IMG_PATH + "cat_existing.gif") );

section.navItems[section.navItems.length] = new navItem( (PATH_PREFIX + "/aap/index.html"), (IMG_PATH + "btn_aap_off.gif"), (IMG_PATH + "btn_aap_ro.gif"), (IMG_PATH + "btn_aap_on.gif") );

LEFT_NAV.sections[LEFT_NAV.sections.length] = section;

/* Special Offer: */
section = new navSection( "specialOffer", (IMG_PATH + "cat_special.gif") );

section.navItems[section.navItems.length] = new navItem( ("http://sprint.p.delivery.net/m/p/nxt/reg/cus/ereg.asp?ATR_ExtraOne=LandingPage_PowerPositioning_nav"), (IMG_PATH + "btn_special_off.gif"), (IMG_PATH + "btn_special_ro.gif"), (IMG_PATH + "btn_special_on.gif") );

LEFT_NAV.sections[LEFT_NAV.sections.length] = section;


//invoke the flat-collection builder, which streamlines the dynamic writing of the nav:
LEFT_NAV.buildFlatCollection();
//invoke the image preloader:
preLoadImages();
