<!--

/********************************************************************************
*                        \     Kohler Credit Union     /
*                         -----------------------------
*
*   File Location        : /site/scripts_ads.css
*
*   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://kcu.bunnyslipperservices.com/
*
*   Current Version      : v1.0.0
*
********************************************************************************/



function header_ads(category)
{
	var ad  = new Array();
	
	if (category == undefined)											//////// UNDEFINED ad placement call
	{
			/*[
				'image',										// Object type:  image or flash
				[
					'ad_hdr_kcucc_20060926.jpg',							// Filename of object
					'http://kcu.bunnyslipperservices.com/site/the_page.html',					// URL where object should go when clicked
					'Kohler Credit Union Fixed-Rate Platinum Credit Cards &ndash; 9.9%* APR'	// ALT text / title attribute
				]
			],
			[
				'flash',										// Object type:  image or flash
				[
					'ad_hdr_direct_deposit_20060926.swf'						// Filename of object
				]
			]*/
		
		ad = [
			[
				'flash',
				[
					'ad_top_auto_100.swf'
				]
			]
		];
	}
	else														//////// SPECIFIC ad placement call
	{
		ad['savings'] = [
			[
				'flash',
				[
					'ad_top_auto_100.swf'
				]
			]
		];
	}
	
	
	
	var image_num;
	var ad_final;
	
	image_num = (Math.floor(Math.random() * ad.length));
	
	
	
	if (ad[image_num][0] == 'image')
	{
		ad_final  = '<img src="http://www.KohlerCU.com/images/' + ad[image_num][1][0] + '" width="284 height="130" usemap="#header_ad_box" />' + '\n';
		ad_final += '<map name="header_ad_box" id="header_ad_box">' + '\n';
		ad_final += '<area shape="poly" coords="5,4, 5,120, 72, 121, 139,120, 209,115, 278,107, 278,4" href="' + ad[image_num][1][1] + '" alt="' + ad[image_num][1][2] + '" title="' + ad[image_num][1][2] + '" />' + '\n';
		ad_final += '</map>';
		
		// Place the image ad on the page
		content_change(ad_final, 'header_ad');
	}
	else if (ad[image_num][0] == 'flash')
	{
		create_flash_object('header_ad', 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0', '284', '130', 'http://www.KohlerCU.com/images/' + ad[image_num][1][0], 'false', 'high', 'transparent');
	}
	
	
	
	return;
}







//-->