function buildSidebarSellMenu(x){
	buildMenuMember("Overview","/ns/SellOverview.html",x);
	buildMenuDivider();
	buildMenuMember("Getting Started","/ns/GetStarted.html",x);
	buildMenuMemberBullet("Get Ready","/ns/GetReady.html",x);
	buildMenuMemberBullet("Set the Stage","/ns/SettheStage.html",x);
	buildMenuMemberBullet("Build Relationships","/ns/BuildRelationships.html",x);	
	buildMenuMemberBullet("Find Resources","/ns/FindResources.html",x);	
	buildMenuDivider();
	buildMenuMember("Manage Listings and Sales","/ns/ManageListings.html",x);
	buildMenuMemberBullet("Finding the Right Tool","/ns/FindingtheRightTool.html",x);	
	buildMenuMemberBullet("Feature Comparison","/ns/SellToolFeatureComparison.html",x);	
	buildMenuMemberBullet("Creating a Listing","/ns/CreateListings.html",x);
	buildMenuDivider();
	buildMenuMember("Marketplace Access Program","/ns/MarketplaceAccessProgram.html",x);
	buildMenuDivider();
	buildMenuMember("Trust Providers","/ns/TrustProviders.html",x); 
}

function buildSidebarAboutUsMenu(x){
	buildMenuMember("About Us","/ns/AboutUs.html",x);
//	buildMenuMemberNoBullet("Goodprint Statements and Definitions","GoodprintStatements.html",x);
	buildMenuDivider();
	buildMenuMember("Marketplace","/ns/Marketplace.html",x);
	buildMenuMemberNoBullet("Trustology","/ns/AboutTrustology.html",x);
	buildMenuMemberNoBullet("Goodprint","/ns/AboutGoodprint.html",x);
//	buildMenuMemberNoBullet("Goodprint Statements and Definitions","GoodprintStatements.html",x);
	buildMenuDivider();
	buildMenuMember("Community","/ns/AboutCommunity.html",x);
	buildMenuDivider();
	buildMenuMember("Business","/ns/Business.html",x);	
	buildMenuMemberNoBullet("Our Collaboration","/ns/OurCollaboration.html",x);	
	buildMenuMemberNoBullet("Our Founding Story","/ns/OurFoundingStory.html",x);	
	buildMenuDivider();
	buildMenuMember("News","News.html",x);	
	buildMenuMemberNoBullet("Coverage","/ns/Coverage.html",x);
	buildMenuMemberNoBullet("Media Kit","/ns/MediaKit.html",x);		
	buildMenuDivider();
	buildMenuMember("Our Newsletter","http://visitor.constantcontact.com/d.jsp?m=1102722410896&p=oi",x);	
	buildMenuDivider();
	buildMenuMember("Contact Us","/ns/AboutContactUs.html",x);	
}

function buildSidebarAboutMenu(x){
	buildMenuMember("About Us","/ns/AboutUs.html",x);
	buildMenuMemberBullet("Social Commitment","/ns/SocialCommitment.html",x);
	buildMenuMemberBullet("Contact Us","/ns/ContactUs.html",x);
	buildMenuMemberBullet("In the Media","/ns/IntheMedia.html",x);
}

function buildSidebarCommunityMenu(x){
	buildMenuMember("Connect","",x);
	buildMenuMemberBullet("Blogs","http://community.worldofgood.com/go/view/articles?type=blogs",x);
	buildMenuMemberBullet("Articles","http://community.worldofgood.com/go/view/articles?type=articles",x);
	buildMenuMemberBullet("Discussions","http://community.worldofgood.com/go/view/discussions",x);	
	buildMenuMemberBullet("Answers","http://community.worldofgood.com/go/view/answers",x);	
	buildMenuDivider();
	buildMenuMember("Topics","",x);
	buildMenuMemberBullet("Ethical Fashion","http://community.worldofgood.com/go/view/articles?topic=1011",x);
	buildMenuMemberBullet("Natural Beauty","http://community.worldofgood.com/go/view/articles?topic=1021",x);	
	buildMenuMemberBullet("Natural Home","http://community.worldofgood.com/go/view/articles?topic=1031",x);	
	buildMenuMemberBullet("Healthy Living","http://community.worldofgood.com/go/view/articles?topic=1041",x);	
	buildMenuMemberBullet("Sustainable Business","http://community.worldofgood.com/go/view/articles?topic=1051",x);	
	buildMenuDivider();
	buildMenuMemberBullet("Trust Provider Directory","TrustProviderHub.html",x);
	buildMenuMemberBullet("Media Provider Directory","MediaProviderHub.html",x);	
}

function buildSidebarSellHubMenu(x){
	buildMenuMember("Current Seller","",x);
	buildMenuMemberNoBullet("Listing Tools Overview","/ns/SellingToolsSY.html",x);
	buildMenuMemberNoBullet("Creating the Ideal Listing","/ns/CreatetheIdealListingSY.html",x);
	buildMenuMemberNoBullet("Managing Listings and Sales","/ns/ManageListingsandSalesSY.html",x);
	buildMenuMemberNoBullet("Seller Education Programs","/ns/SellerEducationSY.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramSY.html",x);
	buildMenuMemberNoBullet("<b>Start Selling</b>","http://list.WorldofGood.com",x);
	buildMenuDivider();
	buildMenuMember("Future Seller","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersSN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerSN.html",x);
	//buildMenuMemberNoBullet("Choose a listing tool","SellingToolsSN.html",x);
	//buildMenuMemberNoBullet("Track activity ","ManageListingsandSalesSN.html",x);
	//buildMenuMemberNoBullet("Stay current on WorldofGood.com","SellerEducationSN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramSN.html",x);
	buildMenuMemberNoBullet("<b>Apply to sell</b>","http://sellerapply.worldofgood.com/TempSignIn.aspx",x);	
}

function buildSidebarCurrentSellerMenu(x){
	buildMenuMember("Current Seller","",x);
	buildMenuMemberNoBullet("Listing Tools Overview","/ns/SellingToolsSY.html",x);
	buildMenuMemberNoBullet("Creating the Ideal Listing","/ns/CreatetheIdealListingSY.html",x);
	buildMenuMemberNoBullet("Managing Listings and Sales","/ns/ManageListingsandSalesSY.html",x);
	buildMenuMemberNoBullet("Seller Education Programs","/ns/SellerEducationSY.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramSY.html",x);
	buildMenuMemberNoBullet("<b>Start Selling</b>","http://list.WorldofGood.com",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
}

function buildSidebarNewSellerMenu(x){
	buildMenuMember("Future Seller","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersSN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerSN.html",x);
	//buildMenuMemberNoBullet("Choose a listing tool","SellingToolsSN.html",x);
	//buildMenuMemberNoBullet("Track activity ","ManageListingsandSalesSN.html",x);
	//buildMenuMemberNoBullet("Stay current on WorldofGood.com","SellerEducationSN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramSN.html",x);
	buildMenuMemberNoBullet("<b>Apply to sell</b>","http://sellerapply.worldofgood.com/TempSignIn.aspx",x);	
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
	//buildMenuDivider();
}

function buildSidebarProducerHubMenu(x){
	buildMenuMember("Active Producer ","",x);
//	buildMenuMemberNoBullet("Marketing Opportunities","LINK",x);
	buildMenuMemberNoBullet("Creating the Ideal Listing","/ns/CreatetheIdealListingPY.html",x);
	buildMenuMemberNoBullet("Seller Education Programs","/ns/SellerEducationPY.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewPY.html",x);						    
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersPY.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramPY.html",x);
	buildMenuDivider();
	buildMenuMember("Future Producer","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersPN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerPN.html",x);
//	buildMenuMemberNoBullet("Our categories","Categories.html",x);
	buildMenuMemberNoBullet("International Selling","/ns/InternationalSellingPN.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewPN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramPN.html",x);	
}

function buildSidebarActiveProducerMenu(x){
	buildMenuMember("Active Producer ","",x);
//	buildMenuMemberNoBullet("Marketing Opportunities","LINK",x);
	buildMenuMemberNoBullet("Creating the Ideal Listing","/ns/CreatetheIdealListingPY.html",x);
	buildMenuMemberNoBullet("Seller Education Programs","/ns/SellerEducationPY.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewPY.html",x);						    
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersPY.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramPY.html",x);
	    buildMenuDivider();
	buildMenuMemberNoBullet("","",x);
}

function buildSidebarNewProducerMenu(x){
	buildMenuMember("Future Producer","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersPN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerPN.html",x);
//	buildMenuMemberNoBullet("Our categories","/ns/Categories.html",x);
	buildMenuMemberNoBullet("International Selling","/ns/InternationalSellingPN.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewPN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramPN.html",x);		
	buildMenuDivider();
	buildMenuMemberNoBullet("","",x);
}

function buildSidebarTPHubMenu(x){
	buildMenuMember("Current Trust Provider","",x);
	buildMenuMemberNoBullet("Trust Provider Marketing Tools","/ns/pdf/WorldofGoodcomTrustProviderMarketingTools.pdf",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramTY.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewTY.html",x);
	buildMenuMemberNoBullet("Trust Provider Directory","/ns/TrustProviderHub.html",x);
	buildMenuDivider();
	buildMenuMember("Future Trust Provider","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersTN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerTN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramTN.html",x);
	buildMenuMemberNoBullet("Trust Provider Directory","/ns/TrustProviderHub.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewTN.html",x);
}

function buildSidebarCurrentTPMenu(x){
	buildMenuMember("Current Trust Provider","",x);
	buildMenuMemberNoBullet("Trust Provider Marketing Tools","/ns/pdf/WorldofGoodcomTrustProviderMarketingTools.pdf",x);
	buildMenuMemberNoBullet("Marketplace Access Program ","/ns/MarketplaceAccessProgramTY.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewTY.html",x);
	buildMenuMemberNoBullet("Trust Provider Directory","/ns/TrustProvidersTN.html",x);
	buildMenuDivider();
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
}


function buildSidebarNewTPMenu(x){
	buildMenuMember("Future Trust Provider","",x);
	buildMenuMemberNoBullet("Trust Provider Overview","/ns/TrustProvidersTN.html",x);
	buildMenuMemberNoBullet("Seller Eligibility Overview","/ns/BecomeaSellerTN.html",x);
	buildMenuMemberNoBullet("Marketplace Access Program","/ns/MarketplaceAccessProgramTN.html",x);
	buildMenuMemberNoBullet("Trust Provider Directory","/ns/TrustProviderHub.html",x);
	buildMenuMemberNoBullet("Community Overview","/ns/CommunityOverviewTN.html",x);
	buildMenuDivider();
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
}

function buildSidebarL4Menu(x){

	buildMenuMember("Sellers","/ns/SellHub.html",x);
	buildMenuMember("Producers","/ns/ProducerHub.html",x);
	buildMenuMember("Trust Providers","/ns/TPHub.html",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
	buildMenuMemberNoBullet("","",x);
}

function buildSidebarCSMenu(x){
	buildMenuMember("Getting Started","/ns/HelpGettingStarted.html",x);
//	buildMenuMemberNoBullet("Overview","/ns/HelpGettingStartedOverview.html",x);
	buildMenuMemberNoBullet("Registration","/ns/HelpRegistration.html",x);
	buildMenuMemberNoBullet("Sign In","/ns/HelpSignIn.html",x);
	buildMenuMemberNoBullet("Categories","/ns/HelpCategories.html",x);
	buildMenuMemberNoBullet("WorldofGood.com and eBay","/ns/HelpeBay.html",x);
	//buildMenuMemberNoBullet("TBD","TBD.com",x);
	buildMenuDivider();
	buildMenuMember("Buying","/ns/HelpBuying.html",x);
	buildMenuMemberNoBullet("Finding Items","/ns/HelpFindingItems.html",x);
//	buildMenuMemberNoBullet("International Shopping","/ns/HelpInternational.html",x);	
	buildMenuMemberNoBullet("Contact a Seller","/ns/HelpContactSeller.html",x);	
	buildMenuMemberNoBullet("Payment Methods","/ns/HelpPayment.html",x);	
	buildMenuMemberNoBullet("Returns","/ns/HelpReturns.html",x);	
	buildMenuDivider();
	
//	buildMenuMember("Selling","HelpSelling.html",x);
	buildMenuMember("Selling","",x);
    buildSubMenuForSelling(x);
//	buildMenuMemberNoBullet("Eligibility","HelpEligibility.html",x);
//	buildMenuMemberNoBullet("Selling Tools","HelpTools.html",x);
//	buildMenuMemberNoBullet("Tool Features","HelpToolFeatures.html",x);	
//	buildMenuMemberNoBullet("Shipping","HelpShipping.html",x);	
//	buildMenuMemberNoBullet("Creating the Ideal Listing","HelpCreateListing.html",x);	
//	buildMenuMemberNoBullet("Marketplace Access Program","HelpMAP.html",x);	
//	buildMenuMemberNoBullet("Basic Tool","HelpBasicTool.html",x);	
//	buildMenuMemberNoBullet("Marketing Opportunities","HelpMarketing.html",x);	
//  buildMenuMemberNoBullet("Manage Activity","HelpManageActivity.html",x);
//	buildMenuMemberNoBullet("Fees on WorldofGood.com","HelpFees.html",x);	


	buildMenuDivider();
	buildMenuMember("Safety, Security, and Trust","/ns/HelpTrust.html",x);	
	buildMenuMemberNoBullet("Buyer Protection","/ns/HelpBuyerProtection.html",x);
	buildMenuMemberNoBullet("Policies","/ns/HelpPolicies.html",x);	
	buildMenuMemberNoBullet("Glossary","/ns/HelpGlossary.html",x);	
	buildMenuMemberNoBullet("Goodprint","/ns/HelpGoodprint.html",x);	
	buildMenuMemberNoBullet("Feedback","/ns/HelpFeedback.html",x);	
	buildMenuMemberNoBullet("Trust Providers and Trustology","/ns/HelpTrustology.html",x);	
	buildMenuDivider();
	buildMenuMember("Community","/ns/HelpCommunity.html",x);	
	buildMenuMemberNoBullet("Community Overview","/ns/HelpCommunityOverview.html",x);	
	buildMenuMemberNoBullet("Creating Your Profile","/ns/HelpCommunityProfile.html",x);	
	buildMenuMemberNoBullet("Adding and Managing Content","/ns/HelpCommunityContent.html",x);	
	buildMenuMemberNoBullet("Community Writing Topics","/ns/HelpCommunityTopics.html",x);	
//	buildMenuMemberNoBullet("Media Providers","/ns/MediaProviderHub.html",x);	

}

function buildSidebarCSMenuOLD(x){
	buildMenuMember("Overview","/ns/Overview.html",x);
	buildMenuDivider();
	buildMenuMember("New to WorldofGood.com","",x);
	buildMenuMemberNoBullet("About WorldofGood.com","/ns/About.html",x);
	buildMenuMemberNoBullet("Registration","Registration.html",x);
	//buildMenuMemberNoBullet("TBD","TBD.com",x);
	buildMenuDivider();
	buildMenuMember("Your Account","",x);
	buildMenuMemberNoBullet("Lost Password","LostPassword.html",x);
	buildMenuMemberNoBullet("Order Status","OrderStatus.html",x);	
	buildMenuDivider();
	buildMenuMember("How to Buy","",x);
	buildMenuMemberNoBullet("Finding Items","FindingItems.html",x);
	buildMenuMemberNoBullet("International Shoppers","InternationalShoppers.html",x);	
	buildMenuMemberNoBullet("Contact a Seller","ContactaSeller.html",x);	
	buildMenuMemberNoBullet("Returns","Returns.html",x);	
	buildMenuDivider();
	buildMenuMember("Checkout","",x);	
	buildMenuMemberNoBullet("Payment Methods","PaymentMethods.html",x);	
	buildMenuMemberNoBullet("Order Status","OrderStatus.html",x);	
	buildMenuMemberNoBullet("Shipping","Shipping.html",x);	
	buildMenuMemberNoBullet("Buyer Protection","BuyerProtection.html",x);	
	buildMenuDivider();
	buildMenuMember("Shop With Confidence","",x);	
	buildMenuMemberNoBullet("Privacy and Security Policies","PrivacyandSecurity.html",x);	
	buildMenuMemberNoBullet("Trust Providers and Trustology","Trustology.html",x);	
	buildMenuMemberNoBullet("Goodprint","Goodprint.html",x);	
	buildMenuMemberNoBullet("Feedback","Feedback.html",x);	
	buildMenuDivider();
	buildMenuMember("How to Sell","",x);	
	buildMenuMemberNoBullet("Get Started","GetStarted.html",x);	
	buildMenuMemberNoBullet("Eligibility","Eligibility.html",x);	
	buildMenuMemberNoBullet("Tools and Requirements","Goodprint.html",x);	
	buildMenuMemberNoBullet("Listing Your Items","ListingYourItems.html",x);	
	buildMenuMemberNoBullet("Selecting Categories","SelectingCategories.html",x);	
	buildMenuMemberNoBullet("Trade Services Providers","TradeServicesProviders.html",x);	
	buildMenuDivider();
	buildMenuMember("WorldofGood.com Community","HelpCommunity.html",x);	
	buildMenuMemberNoBullet("Community Overview","HelpCommunityOverview.html",x);	
	buildMenuMemberNoBullet("Create Your Profile","HelpCommunityProfile.html",x);	
	buildMenuMemberNoBullet("Add and Manage Content","HelpCommunityContent.html",x);	
	buildMenuMemberNoBullet("Community Writing Topics","HelpCommunityTopics.html",x);	
	buildMenuMemberNoBullet("Media Providers","MediaProviderHub.html",x);	

}

function buildMenuMember(text, fileName, x){
	if (x == fileName) document.write("<div id=\"sidebar_h4\"><span class=\"sidebar_at_color\">" + text + "</span></div>");
	else if (fileName == "") document.write("<div id=\"sidebar_h4\">" + text + "</div>");
	else document.write("<div id=\"sidebar_h4\"><a href=\"" + fileName + "\" style=\"color: #993333;\">" + text + "</a></div>");
}

function buildMenuMemberBullet(text, fileName, x){
	if (x == fileName) document.write("<div id=\"sidebar_bullet_list\"><span class=\"sidebar_at_color\">" + text + "</span></div>");
	else document.write("<div id=\"sidebar_bullet_list\"><a href=\"" + fileName + "\">" + text + "</a></div>");
}

function buildMenuMemberNoBullet(text, fileName, x){
	if (x == fileName) document.write("<div id=\"sidebar_list\"><span class=\"sidebar_at_color\">" + text + "</span></div>");
	else if (fileName.indexOf('http:') != -1) document.write("<div id=\"sidebar_list\"><a href=\"" + fileName + "\" target=\"_blank\">" + text + "</a></div>");
	else document.write("<div id=\"sidebar_list\"><a href=\"" + fileName + "\">" + text + "</a></div>");
}

function buildMenuDivider(){
	document.write("<div id=\"sidebar_sep\"></div>");
}

function buildSubMenuForSelling(page){

	document.write("<div id=\"sidebar_list\"><span class=\"sidebar_collapse\">");
	document.write("<a href=\"#\" onclick=\"toggle(\'sellingbasics\',\'sellingbasic_img\');return false;\">");
	document.write("<img src=\"http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg\" border=\"0\" id=\"sellingbasic_img\" style=\"margin-right:7px;vertical-align:middle;\">Selling Basics</a></span></div>");
	document.write("<div id=\"sellingbasics\" style=\"display:none\">");
	document.write("<span id=\"eligibility\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/eligibility/\">Eligibility</a></span><br/>");
	document.write("<span id=\"feeandbilling\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/fee-and-billing/\">Fees and Billing</a></span><br/>");
	document.write("<span id=\"gettingstarted\" class=\"sidebar_submenu\" \"sidebar_submenu\"><a href=\"/help/sellhub/getting-started/\">Getting Started</a></span>");
	document.write("</div>");

	document.write("<div id=\"sidebar_list\"><span class=\"sidebar_collapse\">");
	document.write("<a href=\"#\" onclick=\"toggle(\'listing\',\'listing_img\');return false;\">");
	document.write("<img src=\"http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg\" border=\"0\" id=\"listing_img\" style=\"margin-right:7px;vertical-align:middle;\">Listing</a></span></div>");
	document.write("<div id=\"listing\" style=\"display:none\">");
	document.write("<span id=\"generallistinginfo\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/general-listing-info/\">General Listing Info</a></span><br/>");
	document.write("<span id=\"basiclistingtool\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/basic-listing-tool/\">Basic Listing Tool</a></span><br/>");
	document.write("<span id=\"advancelistingtool\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/advance-listing-tools/\">Advanced Listing Tools</a></span></div>");
	document.write("<div id=\"sidebar_list\"><span class=\"sidebar_collapse\"><a href=\"#\" onclick=\"toggle(\'managesales\',\'manage_img\');return false;\"><img src=\"http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg\" border=\"0\" id=\"manage_img\" style=\"margin-right:7px;vertical-align:middle;\">Managing Sales</a></span></div>");	
	document.write("<div id=\"managesales\" style=\"display:none\"><span id=\"shippingandsales\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/shipping-and-sales/\">Shipping and Sales</a></span><br/><span id=\"communicatingbuyers\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/communicating-buyers/\">Communicating with Buyers</a></span><br/><span id=\"returnexchange\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/returns-exchanges/\">Returns and Exchanges</a></span></div>");
  	document.write("<div id=\"sidebar_list\"><span class=\"sidebar_collapse\"><a href=\"#\" onclick=\"toggle(\'growsales\',\'grow_img\');return false;\"><img src=\"http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg\" border=\"0\" id=\"grow_img\" style=\"margin-right:7px;vertical-align:middle;\">Growing Sales</a></span></div>");
	document.write("<div id=\"growsales\" style=\"display:none\"><span id=\"wogcommunity\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/wog-community/\">WorldofGood.com Community</a></span><br/><span <span id=\"ebaystoretools\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/ebay-store-tools/\">Using eBay Store Tools</a></span><br/><span id=\"mediaresources\" class=\"sidebar_submenu\"><a href=\"/help/sellhub/media-resources/\">Media Resources</a></span></div>");

  if (page == "eligibility" || page == "feeandbilling" || page == "gettingstarted"){
      document.getElementById("sellingbasics").style.display="block";
      document.getElementById("sellingbasic_img").src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/collapse.jpg";
  }else if (page == "generallistinginfo" || page == "basiclistingtool" || page == "advancelistingtool"){
      document.getElementById("listing").style.display="block";
      document.getElementById("listing_img").src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/collapse.jpg";
  }else if (page == "shippingandsales" || page == "communicatingbuyers" || page == "returnexchange"){
      document.getElementById("managesales").style.display="block";
      document.getElementById("manage_img").src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/collapse.jpg";
  }else if (page == "wogcommunity" || page == "ebaystoretools" || page == "mediaresources"){
      document.getElementById("growsales").style.display="block";
      document.getElementById("grow_img").src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/collapse.jpg";
  }else{
	  page = "eligibility";
      document.getElementById("sellingbasics").style.display="none";
      document.getElementById("sellingbasic_img").src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg";
  }

  document.getElementById(page).className="sidebar_submenu_bold";
}

function toggle(showhidediv, colexpimg){
 if (document.getElementById(showhidediv).style.display == "none"){
    document.getElementById(showhidediv).style.display="block";
	document.getElementById(colexpimg).src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/collapse.jpg";
   }
 else {
	document.getElementById(showhidediv).style.display="none";
 	document.getElementById(colexpimg).src="http://pics.ebaystatic.com/aw/pics/row/art/shared/sellhub/expand.jpg";
 }

}

/**************** This Section to build left nave for CMS only *******/

function CMSbuildSidebarAboutUsMenu(x){
	buildMenuMember("About Us","/ns/AboutUs.html",x);
//	buildMenuMemberNoBullet("Goodprint Statements and Definitions","GoodprintStatements.html",x);
	CMSbuildMenuDivider();
	buildMenuMember("Marketplace","/ns/Marketplace.html",x);
	buildMenuMemberNoBullet("Trustology","/ns/AboutTrustology.html",x);
	buildMenuMemberNoBullet("Goodprint","/ns/AboutGoodprint.html",x);
//	buildMenuMemberNoBullet("Goodprint Statements and Definitions","GoodprintStatements.html",x);
	CMSbuildMenuDivider();
	buildMenuMember("Community","/ns/AboutCommunity.html",x);
	CMSbuildMenuDivider();
	buildMenuMember("Business","/ns/Business.html",x);	
	buildMenuMemberNoBullet("Our Collaboration","/ns/OurCollaboration.html",x);	
	buildMenuMemberNoBullet("Our Founding Story","/ns/OurFoundingStory.html",x);	
	CMSbuildMenuDivider();
	buildMenuMember("News","/ns/News.html",x);	
	buildMenuMemberNoBullet("Coverage","/ns/Coverage.html",x);
	buildMenuMemberNoBullet("Media Kit","/ns/MediaKit.html",x);		
	CMSbuildMenuDivider();
	buildMenuMember("Our Newsletter","http://visitor.constantcontact.com/d.jsp?m=1102722410896&p=oi",x);	
	CMSbuildMenuDivider();
	buildMenuMember("Contact Us","/ns/AboutContactUs.html",x);	
}

function CMSbuildMenuDivider(){
	document.write("<div id=\"sidebar_divider\"></div>");
}
