// [+] Intranet settings
	var extranet_url = 'http://www.waxcenter.com';
// [-] Intranet settings 

// [+] First level index
	var ewc_images = Array();
	var ewc_links_top		= 0;
	var ewc_links_nav		= 1;
	var ewc_links_bottom	= 2;
// [-] First level index

// [+] Second level index: top images
	ewc_images[ewc_links_top] = Array();
	var my_account	= 0;
	var separator1	= 1;
	var my_cart		= 2;
	var separator2	= 3;
	var track_order	= 4;
// [-] Second level index: top images

// [+] Second level index: nav images
	ewc_images[ewc_links_nav] = Array();
	var waxing2			=  0;
	var products2		=  1;
	var promos2			=  2;
	var testimonials2	=  3;
	var support2		=  4;
	var facilities2		=  5;
	var news2			=  6;
	var brochure2		=  7;
	var career2			=  8;
	var vision2			=  9;
	var franchise2		=  10;
	var locations2		=  11;
	var contact2		=  12;
// [-] Second level index: nav images

// [+] Second level index: bottom images
	ewc_images[ewc_links_bottom] = Array();
	var career		= 0;
	var our_vision	= 1;
	var blog		= 2;
	var intranet	= 3;
// [-] Second level index: bottom images

// [+] Third level index
	var img_href	= 0;
	var img_img_on	= 1;
	var img_img_off	= 2;
	var img_width	= 3;
	var img_height	= 4;
// [-] Third level index

// [+] top images (img_href, img_img_on, img_img_off, img_width, img_height)
	ewc_images[ewc_links_top][my_account] 		= [extranet_url + "/my_account.php",					"media/img/header/top_my_account_on.png", 	"media/img/header/top_my_account_off.png", 		219, 	36];
	ewc_images[ewc_links_top][separator1] 		= ["",													"media/img/header/top_link_separator.png", 	"media/img/header/top_link_separator.png", 		1, 		36];
	ewc_images[ewc_links_top][my_cart] 			= [extranet_url + "/cart.php",							"media/img/header/top_my_cart_on.png", 		"media/img/header/top_my_cart_off.png", 		81, 	36];
	ewc_images[ewc_links_top][separator2] 		= ["",													"media/img/header/top_link_separator.png", 	"media/img/header/top_link_separator.png", 		1, 		36];
	ewc_images[ewc_links_top][track_order] 		= [extranet_url + "/track_order.php",					"media/img/header/top_track_order_on.png", 	"media/img/header/top_track_order_off.png", 	113, 	36];
// [-] top images (img_href, img_img_on, img_img_off, img_width, img_height)

// [+] nav images (img_href, img_img_on, img_img_off, img_width, img_height)
	ewc_images[ewc_links_nav][waxing2] 			= ["http://www.waxcenter.com/waxing_services.php",				"media/img/header/nav_waxing_o.png", 		"http://www.waxcenter.com/media/img/header/nav_waxing.png", 			70, 	23];
	ewc_images[ewc_links_nav][products2] 		= ["http://www.waxcenter.com/products.php",						"http://www.waxcenter.com/media/img/header/nav_products_o.png", 	"http://www.waxcenter.com/media/img/header/nav_products.png", 		78, 	23];
	ewc_images[ewc_links_nav][promos2] 			= ["http://www.waxcenter.com/promotions.php",					"http://www.waxcenter.com/media/img/header/nav_promos_o.png", 		"http://www.waxcenter.com/media/img/header/nav_promos.png", 			64, 	23];
	ewc_images[ewc_links_nav][testimonials2] 	= ["http://www.waxcenter.com/testimonials.php",					"http://www.waxcenter.com/media/img/header/nav_testimonials_o.png", "http://www.waxcenter.com/media/img/header/nav_testimonials.png", 	94, 	23];
	ewc_images[ewc_links_nav][support2] 			= ["http://www.waxcenter.com/support.php",						"http://www.waxcenter.com/media/img/header/nav_support_o.png", 		"http://www.waxcenter.com/media/img/header/nav_support.png", 		65, 	23];
	ewc_images[ewc_links_nav][facilities2] 		= ["http://www.waxcenter.com/facilities.php",					"http://www.waxcenter.com/media/img/header/nav_facilities_o.png", 	"http://www.waxcenter.com/media/img/header/nav_facilities.png", 		72, 	23];
	ewc_images[ewc_links_nav][news2] 			= ["http://www.waxcenter.com/news.php",							"http://www.waxcenter.com/media/img/header/nav_news_o.png", 		"http://www.waxcenter.com/media/img/header/nav_news.png", 			52, 	23];
	ewc_images[ewc_links_nav][brochure2] 		= ["http://www.waxcenter.com/brochure_request.php",				"http://www.waxcenter.com/media/img/header/nav_brochure_o.png", 	"http://www.waxcenter.com/media/img/header/nav_brochure.png", 		78, 	23];
	ewc_images[ewc_links_nav][career2] 		= ["http://www.waxcenter.com/career_opportunities.php",				"http://www.waxcenter.com/media/img/header/nav_careers_o.png", 	"http://www.waxcenter.com/media/img/header/nav_careers.png", 		65, 	23];
	ewc_images[ewc_links_nav][vision2] 		= ["http://www.waxcenter.com/vision_and_history.php",				"http://www.waxcenter.com/media/img/header/nav_vision_o.png", 	"http://www.waxcenter.com/media/img/header/nav_vision.png", 		82, 	23];
	ewc_images[ewc_links_nav][franchise2] 		= ["http://www.waxcenter.com/franchise_interests.php",			"http://www.waxcenter.com/media/img/header/nav_franchising_o.png", 	"http://www.waxcenter.com/media/img/header/nav_franchising.png", 		90, 	23];
	ewc_images[ewc_links_nav][locations2] 		= ["http://www.waxcenter.com/locations.php",						"http://www.waxcenter.com/media/img/header/nav_locations_o.png", 	"http://www.waxcenter.com/media/img/header/nav_locations.png", 		85, 	23];
	ewc_images[ewc_links_nav][contact2] 			= ["http://www.waxcenter.com/contact_us.php",					"http://www.waxcenter.com/media/img/header/nav_contact_o.png", 		"http://www.waxcenter.com/media/img/header/nav_contact.png", 		76, 	23];
// [-] nav images (img_href, img_img_on, img_img_off, img_width, img_height)

// [+] bottom images (img_href, img_img_on, img_img_off, img_width, img_height)
	ewc_images[ewc_links_bottom][career] 		= [extranet_url + "/career_opportunities.php",			"media/img/footer/career_on.png", 			"media/img/footer/career_off.png", 				115, 	14];
	ewc_images[ewc_links_bottom][our_vision] 	= [extranet_url + "/vision_and_history.php",			"media/img/footer/our_vision_on.png", 		"media/img/footer/our_vision_off.png", 			115, 	16];
	ewc_images[ewc_links_bottom][blog] 			= [extranet_url + "/blog",								"media/img/footer/blog_on.png", 			"media/img/footer/blog_off.png", 				115, 	15];
	ewc_images[ewc_links_bottom][intranet] 		= [               "/intranet/",							"media/img/footer/intranet_on.png", 		"media/img/footer/intranet_off.png",			115, 	15];
// [-] bottom images (img_href, img_img_on, img_img_off, img_width, img_height)

///////////////////////////////////////////
function render_links(area, current_page) {
///////////////////////////////////////////
	
	// Links to render
	var to_render = '';
	switch(area) {
		
		///////////////////
		case ewc_links_top:
		///////////////////      
			
			for(i = 0; i < ewc_images[ewc_links_top].length; i++) {
				if(i == current_page)
					ewc_images[ewc_links_top][i][img_img_off] = ewc_images[ewc_links_top][i][img_img_on];
				
				to_render = to_render + (ewc_images[ewc_links_top][i][img_href] == ''? '': '<a href="' + ewc_images[ewc_links_top][i][img_href] + '">')
									  + '<img src="' + ewc_images[ewc_links_top][i][img_img_off] + '" '
									  +      'width="' + ewc_images[ewc_links_top][i][img_width] + '" '
									  +      'height="' + ewc_images[ewc_links_top][i][img_height] + '" '
									  +      'onMouseOver="this.src = \''+ewc_images[ewc_links_top][i][img_img_on]+'\'" '
									  +      'onMouseOut="this.src = \''+ewc_images[ewc_links_top][i][img_img_off]+'\'">'
									  + (ewc_images[ewc_links_top][i][img_href] == ''? '': '</a>') + '\n'
			} // end for
			break;
			
		///////////////////
		case ewc_links_nav:
		///////////////////      
			
			// Page choosing
			for(i = 0; i < ewc_images[ewc_links_nav].length; i++) {
				if(i == current_page)
					ewc_images[ewc_links_nav][i][img_img_off] = ewc_images[ewc_links_nav][i][img_img_on];
				
				to_render = to_render + (ewc_images[ewc_links_nav][i][img_href] == ''? '': '<a href="' + ewc_images[ewc_links_nav][i][img_href] + '">')
									  + '<img src="' + ewc_images[ewc_links_nav][i][img_img_off] + '" '
									  +      'width="' + ewc_images[ewc_links_nav][i][img_width] + '" '
									  +      'height="' + ewc_images[ewc_links_nav][i][img_height] + '" '
									  +      'onMouseOver="this.src = \''+ewc_images[ewc_links_nav][i][img_img_on]+'\'" '
									  +      'onMouseOut="this.src = \''+ewc_images[ewc_links_nav][i][img_img_off]+'\'">'
									  + (ewc_images[ewc_links_nav][i][img_href] == ''? '': '</a>') + '\n'
			} // end for
			break;
			
		//////////////////////
		case ewc_links_bottom:
		//////////////////////
			
			// Page choosing
			for(i = 0; i < ewc_images[ewc_links_bottom].length; i++) {
				if(i == current_page)
					ewc_images[ewc_links_bottom][i][img_img_off] = ewc_images[ewc_links_bottom][i][img_img_on];
				
				to_render = to_render + (ewc_images[ewc_links_bottom][i][img_href] == ''? '': '<a href="' + ewc_images[ewc_links_bottom][i][img_href] + '">')
									  + '<img src="' + ewc_images[ewc_links_bottom][i][img_img_off] + '" '
									  +      'width="' + ewc_images[ewc_links_bottom][i][img_width] + '" '
									  +      'height="' + ewc_images[ewc_links_bottom][i][img_height] + '" '
									  +      'onMouseOver="this.src = \''+ewc_images[ewc_links_bottom][i][img_img_on]+'\'" '
									  +      'onMouseOut="this.src = \''+ewc_images[ewc_links_bottom][i][img_img_off]+'\'">'
									  + (ewc_images[ewc_links_bottom][i][img_href] == ''? '': '</a>') + '<br>\n'

			} // end for
			break;
			
	} // end switch
	
	document.write(to_render);

	
/////////////////
} // end function
/////////////////

