//
// CATEGORY
// - - - - - - - - - - - - - - - - - - - - - 

/**
* Breadcrumb category declaration
*/
var __bc = [];
__bc['0'] = 'Home';
__bc['aboutus'] = 'About Us';
__bc['privacy-policy'] = 'Privacy Policy & Disclaimers';
__bc['news'] = 'News';
__bc['customer-list'] = 'Customer List';

__bc['support'] = 'Support';
__bc['art-guidelines'] = 'Art Guidelines';
__bc['faq'] = 'F.A.Q.\'s';

__bc['portfolio'] = 'Portfolio';
__bc['sales-centers-portfolio'] = 'Sales Centers Portfolio';
__bc['signage-portfolio'] = 'Signage Portfolio';
__bc['design-services-portfolio'] = 'Design Services Portfolio';

__bc['contactus'] = 'Contact Us';
__bc['ftp-site'] = 'FTP Site';
__bc['pick-up-art-here'] = 'Pick Up Art';
__bc['drop-off-art-here'] = 'Drop Off Art';
__bc['how-to-use'] = 'How To Use';


__bc['solutions'] = 'Company Stores';
__bc['sales-centers-solutions'] = 'Sales Centers';
__bc['signage-solutions'] = 'Signage';
__bc['custom-design-services-solutions'] = 'Custom Design Services';

__bc['successful_sales_centers_welcome%5Farea'] = 'Successful Sales Centers';	//a neat trick to add 2 breadcrumb segments with the same name
__bc['successful_sales_centers_welcome_area'] = 'Welcome Lobby Area';
__bc['successful_sales_centers_project_overview_area'] = 'Project Overview Area';
__bc['successful_sales_centers_project_builders_pres'] = 'Product & Builders Presentation Area';
__bc['successful_sales_centers_closing_area'] = 'Closing Area';
__bc['successful_sales_centers_affiliated_area'] = 'Affiliated Area';

__bc['effective_layouts_sales_center_floor%5fplans'] = 'Effective Layouts';
__bc['effective_layouts_sales_center_floor_plans'] = 'Sales Center Floor Plans';
__bc['effective_layouts_display_graphics'] = 'Display Graphics';
__bc['effective_layouts_interior_design'] = 'Interior Design';

__bc['custom_sales_centers'] = 'Custom Sales Centers';
__bc['custom_graphics_design'] = 'Custom Graphics Design';
__bc['custom_signage'] = 'Custom Signage';

__bc['custom_sales_centers_sales_trailer_floor_plan'] = 'Sales Trailer Floor Plan';
__bc['custom_sales_centers_two_car_garage'] = 'Two-Car Garage Floor Plan';
__bc['custom_sales_centers_three_car_garage'] = 'Three-Car Garage Floor Plan';
__bc['custom_sales_centers_whole_house'] = 'Whole-House Floor Plan';

__bc['custom_views_custom_builders'] = 'Custom Builders';
__bc['custom_views_designers'] = 'Designers';
__bc['custom_views_national_builders'] = 'National Builders';
__bc['custom_views_regional_builders'] = 'Regional Builders';

/**
* Breadcrumb trail declaration
*/
var __bcp = [];
__bcp['aboutus'] = ['0'];
__bcp['privacy-policy'] = ['0', 'aboutus'];
__bcp['news'] = ['0', 'aboutus'];
__bcp['customer-list'] = ['0', 'aboutus'];

__bcp['support'] = ['0'];
__bcp['art-guidelines'] = ['0', 'support'];
__bcp['faq'] = ['0', 'support'];

__bcp['portfolio'] = ['0'];
__bcp['sales-centers-portfolio'] = ['0', 'portfolio'];
__bcp['signage-portfolio'] = ['0', 'portfolio'];
__bcp['design-services-portfolio'] = ['0', 'portfolio'];

__bcp['contactus'] = ['0'];
__bcp['ftp-site'] = ['0', 'contactus'];
__bcp['pick-up-art-here'] = ['0', 'contactus', 'ftp-site'];
__bcp['drop-off-art-here'] = ['0', 'contactus', 'ftp-site'];
__bcp['how-to-use'] = ['0', 'contactus', 'ftp-site'];

__bcp['solutions'] = ['0'];
__bcp['sales-centers-solutions'] = ['0', 'solutions'];
__bcp['signage-solutions'] = ['0', 'solutions'];
__bcp['custom-design-services-solutions'] =  ['0', 'solutions'];

__bcp['successful_sales_centers_welcome_area'] =  ['0', 'solutions', 'sales-centers-solutions', 'successful_sales_centers_welcome%5Farea'];
__bcp['successful_sales_centers_project_overview_area'] = ['0', 'solutions', 'sales-centers-solutions', 'successful_sales_centers_welcome%5Farea'];
__bcp['successful_sales_centers_project_builders_pres'] = ['0', 'solutions', 'sales-centers-solutions', 'successful_sales_centers_welcome%5Farea'];
__bcp['successful_sales_centers_closing_area'] = ['0', 'solutions', 'sales-centers-solutions', 'successful_sales_centers_welcome%5Farea'];
__bcp['successful_sales_centers_affiliated_area'] = ['0', 'solutions', 'sales-centers-solutions', 'successful_sales_centers_welcome%5Farea'];

__bcp['effective_layouts_sales_center_floor_plans'] = ['0', 'solutions', 'sales-centers-solutions', 'effective_layouts_sales_center_floor%5fplans'];
__bcp['effective_layouts_display_graphics'] = ['0', 'solutions', 'sales-centers-solutions', 'effective_layouts_sales_center_floor%5fplans'];
__bcp['effective_layouts_interior_design'] = ['0', 'solutions', 'sales-centers-solutions', 'effective_layouts_sales_center_floor%5fplans'];

__bcp['custom_sales_centers'] =  ['0', 'solutions', 'custom-design-services-solutions'];
__bcp['custom_graphics_design'] = ['0', 'solutions', 'custom-design-services-solutions'];
__bcp['custom_signage'] = ['0', 'solutions', 'custom-design-services-solutions'];

__bcp['custom_sales_centers_sales_trailer_floor_plan'] = ['0', 'solutions', 'custom-design-services-solutions', 'custom_sales_centers'];
__bcp['custom_sales_centers_two_car_garage'] = ['0', 'solutions', 'custom-design-services-solutions', 'custom_sales_centers'];
__bcp['custom_sales_centers_three_car_garage'] =['0', 'solutions', 'custom-design-services-solutions', 'custom_sales_centers'];
__bcp['custom_sales_centers_whole_house'] = ['0', 'solutions', 'custom-design-services-solutions', 'custom_sales_centers'];

__bcp['custom_views_custom_builders'] = ['0'];
__bcp['custom_views_designers'] = ['0'];
__bcp['custom_views_national_builders'] = ['0'];
__bcp['custom_views_regional_builders'] = ['0'];

/**
* Header image declaration
*/
var __hi = [];
__hi[''] = '/../catalog.png';	//default

__hi['privacy-policy'] = 'img_main_2.jpg';
__hi['news'] = 'img_main_2.jpg';
__hi['aboutus'] = 'img_main_2.jpg';
__hi['customer-list'] = 'img_main_2.jpg';

__hi['support'] = 'img_main_6.jpg';
__hi['art-guidelines'] = 'img_main_6.jpg';
__hi['faq'] = 'img_main_6.jpg';

__hi['portfolio'] = 'img_main_5.jpg';
__hi['sales-centers-portfolio'] = 'img_main_5.jpg';
__hi['signage-portfolio'] = 'img_main_5.jpg';
__hi['design-services-portfolio'] = 'img_main_5.jpg';
__hi['design-services-portfolios'] = 'img_main_5.jpg';

__hi['contactus'] = 'img_main_7.jpg';
__hi['ftp-site'] = 'img_main_7.jpg';
__hi['pick-up-art-here'] = 'img_main_7.jpg';
__hi['drop-off-art-here'] = 'img_main_7.jpg';
__hi['how-to-use'] = 'img_main_7.jpg';

__hi['collections'] = 'img_main_50.jpg';

__hi['solutions'] = 'img_main_4.jpg';
__hi['sales-centers-solutions'] = 'img_main_41.jpg';

	__hi['successful_sales_centers_welcome_area'] = 'img_main_41.jpg';
	__hi['successful_sales_centers_welcome%5Farea'] = 'img_main_41.jpg';
	__hi['successful_sales_centers_project_overview_area'] = 'img_main_41.jpg';
	__hi['successful_sales_centers_project_builders_pres'] = 'img_main_41.jpg';
	__hi['successful_sales_centers_closing_area'] = 'img_main_41.jpg';
	__hi['successful_sales_centers_affiliated_area'] = 'img_main_41.jpg';

	__hi['effective_layouts_sales_center_floor_plans'] = 'img_main_41.jpg';
	__hi['effective_layouts_display_graphics'] = 'img_main_41.jpg';
	__hi['effective_layouts_interior_design'] = 'img_main_41.jpg';

__hi['signage-solutions'] = 'img_main_42.jpg';
__hi['custom-design-services-solutions'] =   'img_main_43.jpg';

	__hi['custom_sales_centers'] = 'img_main_43.jpg';
		
		__hi['custom_sales_centers_sales_trailer_floor_plan'] = 'img_main_43.jpg';
		__hi['custom_sales_centers_two_car_garage'] = 'img_main_43.jpg';
		__hi['custom_sales_centers_three_car_garage'] = 'img_main_43.jpg';
		__hi['custom_sales_centers_whole_house'] = 'img_main_43.jpg';

	__hi['custom_graphics_design'] = 'img_main_43.jpg';
	__hi['custom_signage'] = 'img_main_43.jpg';

__hi['custom_views_custom_builders'] = '/../img_main_cvcustombuilder.jpg';
__hi['custom_views_designers'] = '/../img_main_cvdesigner.jpg';
__hi['custom_views_national_builders'] = '/../img_main_cvnationalbuilders.jpg';
__hi['custom_views_regional_builders'] = '/../img_main_cvregionalbuilders.jpg';



//
// FUNCTIONS
// - - - - - - - - - - - - - - - - - - - - - 

/**
* Prints breadcrumb
*/
function breadCrumb(key, imgPath, cgiPath) {
	if (!__bcp[key]) {
		// load default
		key = '0';
		}
	
	S = __bcp[key];	//segments
	if (S != undefined) {
		S[S.length] = key;
		}
	
	C = '';
	for (i in S) {
		// 30MAY08 GLH	Added test to see if __bc[S[i]] is undefined and if it is, then skip it.
		if (__bc[S[i]] == undefined) continue
		C += ((C == '') ? '' : ' <img height=5 width=5 src=\"'+imgPath+'/arrow_crumb.gif\"> ')
			+ ' '
			+ ((S[i] == key) ? '' : '<a class=breadCrumbs href=\"'+cgiPath+'/category.cgi?category='+unescape(S[i])+'\">')
			+ __bc[S[i]]
			+ ((S[i] == key) ? '' : '</a>')
			+ ' ';
		}
	document.write(C);
	if (C) {
		document.write('<style>table.hide_catalog{DISPLAY:NONE}</style>');
		}
	}

/**
* Prints header image
*/
function headerImage(key, imgPath) {

	if (!__hi[key]) {
		// load default
		key = '';
		}

	document.write(
		'<img  width=760 x-height=86 src=\"'+imgPath+'//'+__hi[key]+'\">'
		);
	}
