<!--

/********************************************************************************
*                        \     Kohler Credit Union     /
*                         -----------------------------
*
*   File Location        : /site/about_locations.js
*
*   Begin Work           : Tuesday, September 26, 2006
*   Last Work            : 
*   Copyright            : (c) 2006-2007 Kohler Credit Union
*                          All other copyrights to their respectful owners
                           and is noted where necessary.
*   Location             : http://www.kohlercu.com/
*
*   Current Version      : v1.0.0
*
********************************************************************************/



/*						       FUNCTION :: Load ATM Map
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
function kcu_atm_map_load(map_load)
{
	if (GBrowserIsCompatible())
	{
			 // Latitude		// Longitude		// Location Name			// Location Address
		var marker_info = [
			[43.789134773256364, -87.75853157043457, 'Habitat for Humanity Resale Store',	'4110 HWY 42 North<br />Sheboygan, WI 53083'],
			[43.38259473335273,	-87.94744491577148,	'Crossroads Plaza',			'408 West Dekora Street<br />Saukville, WI 53080'],
			[43.761625754689305, -87.74851083755493, 'St. Nicholas Hospital',		'3100 Superior Ave<br />Sheboygan, WI 53085'], //this atm was moved here
			[43.837312818711595, -87.82196044921875, 'Howards Grove Branch',			'724 Madison Avenue<br />Howards Grove, WI 53083'],
			[43.72525818800002,	-87.83588647842407,	'Meadowland Credit Union',		'800 County Road PP<br />Sheboygan Falls, WI 53085'],
			[43.76878505020142,	-87.72857666015625,	'Pick \'n Save',			'2213A Calumet Drive<br />Sheboygan, WI 53083'],
			[43.74702557551045,	-87.95416116714478,	'Plymouth Branch',			'2303 Eastern Avenue<br />Plymouth, WI 53073'],
			[43.745816483791295, -87.78050422668457, 'Q Mart*',				'820 Commerce Drive<br />Kohler, WI 53044'],
			[43.38508989465153,	-87.92160987854004,	'Saukville Branch',			'840 East Green Bay Avenue<br />Saukville, WI 53080'],
			[43.75079995471303,	-87.71341681480408,	'Howard Johnson Inn',			'723 Center Avenue<br />Sheboygan, WI 53081'],
			[43.72085413605901,	-87.72005796432495,	'South High School',			'3128 South 12th Street<br />Sheboygan, WI 53081'],
			[43.74583198512173,	-87.74409055709839,	'Taylor Drive Branch',			'831 South Taylor Drive<br />Sheboygan, WI 53081'],
			[43.74356099743083,	-87.78163075447083,	'Woodlake Market',			'759 Woodlake Road<br />Kohler, WI 53044'],
			
			// ATMs added after creation of this script
			[43.74694807036361,	-87.78140544891357,	'Kohler Branch',			'850 Woodlake Road<br />Kohler, WI 53044'],
			[43.715258, -87.75928,	'Cruisers',			'3740 S. Taylor Drive<br />Kohler, WI 53044'],
			[43.775706, -87.716975, 'North High School',			'1042 School Ave<br />Kohler, WI 53044'],
			[43.320447714048534, -87.92804718017578, 'Grafton Branch',			'2550 Washington Street<br />Grafton, WI 53024']
		];
		
		if (map_load == 'all')
		{
			var center_lat = 43.635081245522485;
			var center_lng = -87.94212341308594;
			var zoom       = 9
			
			content_change('All ATM Locations', 'bal_atm_branch_name');							// Modify ATM map title
			GMapDraw(center_lat, center_lng, marker_info, zoom, 'bal_atm_map');						// Draw the map with supplied information
		}
		else
		{
			var zoom               = 14;
			var marker_info_single = [ marker_info[map_load] ];
			
			content_change(marker_info_single[0][2], 'bal_atm_branch_name');						// Modify ATM map title
			GMapDraw(marker_info_single[0][0], marker_info_single[0][1], marker_info_single, zoom, 'bal_atm_map');		// Draw the map with supplied information
		}
	}
}



/*						    FUNCTION :: Load Branch Map
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
function kcu_branch_map_load(map_load)
{
	if (GBrowserIsCompatible())
	{
		 	 // Latitude		// Longitude		// Location Name			// Location Address
		var marker_info = [
			[43.76878505020142,	-87.72857666015625,	'Calumet Square Branch',	'2213A Calumet Drive<br />Sheboygan, WI 53083'],
			[43.74544445065666,	-87.74288892745972,	'Financial Center',			'905 South Taylor Drive<br />Sheboygan, WI 53081'],
			[43.837312818711595, -87.82196044921875,'Howards Grove Branch',	    '724 Madison Avenue<br />Howards Grove, WI 53083'],
			[43.74694807036361,	-87.78140544891357,	'Kohler Branch',			'850 Woodlake Road<br />Kohler, WI 53044'],
			[43.74702557551045,	-87.95416116714478,	'Plymouth Branch',			'2303 Eastern Avenue<br />Plymouth, WI 53073'],
			[43.38508989465153,	-87.92160987854004,	'Saukville Branch',			'840 East Green Bay Avenue<br />Saukville, WI 53080'],
			[43.74583198512173,	-87.74409055709839,	'Taylor Drive Branch',		'831 South Taylor Drive<br />Sheboygan, WI 53081'],
			[43.320447714048534, -87.92804718017578,'Grafton Branch',           '2550 Washington Street Grafton, WI 53024']
		];
		
		var zoom               = 14;
		var marker_info_single = [ marker_info[map_load] ];
		
		GMapDraw(marker_info[map_load][0], marker_info[map_load][1], marker_info_single, zoom, 'bal_bi_map');			// Draw the map with supplied information
	}
}



/*					     FUNCTION :: Raw Branch Information
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
function kcu_branch_show(map_load)
{
	var branch = [															// Raw materials to construct the branch
		[
			'Calumet Square Branch',											// Branch name
			'2213A Calumet Drive<br />Sheboygan, WI 53083',									// Address
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',	// Phone Number
			[
				['&nbsp;',		'Lobby Hours'],									// Branch hours
				['Monday - Friday',	'10:00AM - 7:00PM'],
				['Saturday - Sunday',	'10:00AM - 4:00PM']
			],
			'branch_calumet_square.jpg',											// Branch photo (branch_no_photo.jpg if none)
			'0'														// Branch ID for Google Maps (please see scripts_gmap.js)
		],
		[
			'eBranch Services',
			'<a href="https://www.kohlercu.com/Forms/OnlineForm.cgi?form=email_app&amp;section=contactus&amp;department=member" onclick="website_app(\'form=email_app&amp;section=contactus&amp;department=member\'); return false;">Member Services</a><br /><a href="https://www.kohlercu.com/Forms/OnlineForm.cgi?form=email_app&amp;section=contactus&amp;department=loan" onclick="website_app(\'form=email_app&amp;section=contactus&amp;department=loan\'); return false;">Lending Services</a>',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Branch Hours'],
				['Monday - Thursday',	'8:00AM - 5:00PM'],
				['Friday',		'8:00AM - 6:00PM'],
				['Saturday',		'8:00AM - 12:00PM'],
				['Sunday',		'Closed']
			],
			'branch_ebranch.jpg',
			''	// IMPORTANT: Do not map eBranch Services!
		],
		[
			'Financial Center',
			'905 South Taylor Drive<br />Sheboygan, WI 53081',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Branch Hours'],
				['Monday - Friday',	'9:00AM - 5:00PM'],
				['&nbsp;',		'Other Hours by Appointment']
			],
			'branch_financial_center.jpg',
			'1'
		],
		[
			'Howards Grove Branch',
			'724 Madison Avenue<br />Howards Grove, WI 53083',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 5:30PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'Closed',		'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_howards_grove.jpg',
			'2'
		],
		[
			'Kohler Branch',
			'850 Woodlake Road<br />Kohler, WI 53044',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 5:30PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'Closed',		'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_kohler.jpg',
			'3'
		],
		[
			'Plymouth Branch',
			'2303 Eastern Avenue<br />Plymouth, WI 53073',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 5:30PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'9:00AM - 12:00PM',	'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_plymouth.jpg',
			'4'
		],
		[
			'Saukville Branch',
			'840 East Green Bay Avenue<br />Saukville, WI 53080',
			'<strong>(262) 268-7240</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 6:00PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'Closed',	'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_saukville.jpg',
			'5'
		],
		[
			'Taylor Drive Branch',
			'831 South Taylor Drive<br />Sheboygan, WI 53081',
			'<strong>(920) 459-2595</strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 5:30PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'9:00AM - 12:00PM',	'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_taylor_drive.jpg',
			'6'
		],
		[
			'Grafton Branch',
			'2550 Washington Street <br />Grafton, WI 53024',
			'<strong>(262) 375-2675 </strong> &ndash; Local<br /><strong>(888) 528-2595</strong> &ndash; Long Distance',
			[
				['&nbsp;',		'Lobby Hours',		'Drive Up Hours'],
				['Monday - Thursday',	'9:00AM - 5:00PM',	'8:30AM - 6:00PM'],
				['Friday',		'9:00AM - 6:00PM',	'8:00AM - 6:00PM'],
				['Saturday',		'9:00AM - 12:00PM',	'8:00AM - 12:00PM'],
				['Sunday',		'Closed',		'Closed']
			],
			'branch_grafton.jpg',
			'7'
		]
	];
	
	
	
	var new_branch = kcu_branch_construction(branch[map_load]);									// Build the branch
	content_change(new_branch, 'bal_branch_info');											// Display newly built branch
	
	if (branch[map_load][5] != '')
	{
		kcu_branch_map_load(branch[map_load][5]);										// Plot the new branch on a map
	}
}



/*						   FUNCTION :: Build New Branch
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
function kcu_branch_construction(branch)
{
	var build_branch;
	
	build_branch  = '<div class="bal_bi_bg_top"></div>';
	build_branch += '<div class="bal_bi_bg_content">';
	
	if (branch[4] != '')
	{
		build_branch += '';
		build_branch += '<div class="bal_bi_branch_photo"><img src="../images/' + branch[4] + '" width="247" height="160" alt="Photo: ' + branch[0] + '" title="Photo: ' + branch[0] + '" /></div>';
	}
	
	build_branch += '';
	build_branch += '<div id="bal_bi_branch_name">' + branch[0] + '</div>';
	build_branch += '';
	build_branch += '<div class="bal_bi_address_header">Address:</div>';
	build_branch += '<div class="bal_bi_address">' + branch[1] + '</div>';
	build_branch += '';
	build_branch += '<div class="bal_bi_phone_header">Phone:</div>';
	build_branch += '<div class="bal_bi_phone">' + branch[2] + '</div>';
	build_branch += '';
	build_branch += '<div class="bal_bi_hours_header">Branch Hours:</div>';
	build_branch += '<div class="bal_bi_hours">';
	build_branch += '<table border="0" cellpadding="0" cellspacing="0" width="100%">';
	
	if (branch[3][0].length == 2)
	{
		for (i = 0; i < branch[3].length; i++)
		{
			if (i == 0)
			{
				build_branch += '<tr>';
				build_branch += '<td width="291" class="bi_header bi_space_01">' + branch[3][i][0] + '</td>';
				build_branch += '<td width="291" class="bi_header bi_space_02">' + branch[3][i][1] + '</td>';
				build_branch += '</tr>';
			}
			else
			{
				build_branch += '<tr>';
				build_branch += '<td width="291" class="bi_info bi_space_01">' + branch[3][i][0] + '</td>';
				build_branch += '<td width="291" class="bi_info bi_space_02">' + branch[3][i][1] + '</td>';
				build_branch += '</tr>';
			}
		}
	}
	else if (branch[3][0].length == 3)
	{
		for (i = 0; i < branch[3].length; i++)
		{
			if (i == 0)
			{
				build_branch += '<tr>';
				build_branch += '<td width="194" class="bi_header bi_space_01">' + branch[3][i][0] + '</td>';
				build_branch += '<td width="194" class="bi_header bi_space_02">' + branch[3][i][1] + '</td>';
				build_branch += '<td width="194" class="bi_header bi_space_02">' + branch[3][i][2] + '</td>';
				build_branch += '</tr>';
			}
			else
			{
				build_branch += '<tr>';
				build_branch += '<td width="194" class="bi_info bi_space_01">' + branch[3][i][0] + '</td>';
				build_branch += '<td width="194" class="bi_info bi_space_02">' + branch[3][i][1] + '</td>';
				build_branch += '<td width="194" class="bi_info bi_space_02">' + branch[3][i][2] + '</td>';
				build_branch += '</tr>';
			}
		}
	}
	
	build_branch += '</table>';
	build_branch += '</div>';
	
	if (branch[5] == '')
	{
		build_branch += '';
		build_branch += '<div class="bal_bi_map_header">Map of Locations:</div>';
		build_branch += '<div id="bal_bi_no_map">Map unavailable for this location.</div>';
	}
	else
	{
		build_branch += '';
		build_branch += '<div class="bal_bi_map_header">Map of Locations:</div>';
		build_branch += '<div id="bal_bi_map">Loading...</div>';
	}
	
	build_branch += '';
	build_branch += '</div>';
	build_branch += '<div class="bal_bi_bg_bottom"></div>';
	
	return build_branch;
}







//-->