
var buick_options = [
{
code: 'A',
description: 'Dynaflow',
price: 209,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/dynaflow/blades.jpg',
url: '/dynaflow',
type: 'Factory',
detail: 'Variable Pitch Dynaflow combines an oil-cushioned, velvet smoothness throughout all speed ranges with breath-taking new breakaway. '
},
{
code: 'B',
description: 'Heater & Defroster',
price: 87,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/ww2.jpg',
url: '/ww.html',
type: 'Factory',
detail: 'Buick\'s Weather Warden heating system brings you two-direction heating at a price you usually pay for one.'
},
{
code: 'C',
description: 'Power Steering',
price: 110,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69'],
image: '/pics/pr1.jpg',
url: '/power.html',
type: 'Factory',
detail: 'Makes even parking in tight spots a pleasure; in an invaluable safety feature in helping control car over rough roads, getting off soft shoulders, or n case of blow-out.'
},
{
code: 'D',
description: 'Radio (Sono) & Ant (Manual)',
price: 98,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opson.jpg',
url: '/OwnersManual/om11.htm',
type: 'Factory',
oneOf: ['E', 'O', 'P'],
detail: 'Clear push-button reception of any five stations -- even wider station selection by dial. Famous for its superb tone.'
},
{
code: 'E',
description: 'Radio (Select) & Ant (Manual)',
price: 129,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opsel.jpg',
url: '/OwnersManual/om12.htm',
type: 'Factory',
oneOf: ['D', 'O', 'P'],
detail: 'Operates by both toe-button and finger-tip control. Electronic "brain" picks up all available wave lengths unless set for strong signals only. Finest automobile radio made. '
},
{
code: 'O',
description: 'Radio (Sono) & Ant (Electric)',
price: 121,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		'61',  '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opson.jpg',
url: '/OwnersManual/om11.htm',
type: 'Factory',
oneOf: ['E', 'D', 'P'],
detail: 'Famous for its superb tone. Control button on drivers side of dash panel raises and lowers antenna electrically from the inside.'
},
{
code: 'P',
description: 'Radio (Select) & Ant (Electric)',
price: 152,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opsel.jpg',
url: '/OwnersManual/om12.htm',
type: 'Factory',
oneOf: ['E', 'O', 'D'],
detail: 'Operates by both toe-button and finger-tip control. Electronic "brain" picks up all available wave lengths unless set for strong signals only. Control button on drivers side of dash panel raises and lowers antenna electrically from the inside.'
},
{
code: 'F',
description: 'Safety Group',
price: 40,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R'],
image: '/pics/opsafe.jpg',
url: '/options.html#safe',
type: 'Factory',
detail: 'Back-up lights, brake warning light (a reminder parking brake is on), windshield washers, glareproof rear-view mirror. '
},
{
code: 'G',
description: 'W/S Washer & Wide Angle Wiper',
price: 15,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R'],
image: '/pics/opwash.jpg',
url: '/options.html#wash',
type: 'Factory',
detail: 'Plays two adjustable jets of water on windshield, while wipers clear away dirt. Shuts off automatically.'
},
{
code: 'H',
description: 'Deluxe Steering Wheel',
price: 16,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/NewBuick/55BuickSteeringWheel.jpg',
//url: '/options.html#wash',
type: 'Factory',
detail: 'Deluxe Steering Wheel'
},
{
code: 'I',
description: 'Easy Eye Glass',
price: 33,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opeye.jpg',
url: '/options.html#eye',
type: 'Factory',
detail: 'Cuts down sun heat and glare through windshield and all windows. '
},
{
code: 'K',
description: 'Foamtex Cushions',
price: 22,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/facts/models/pg29-right-seat-image.gif',
//url: '/options.html#eye',
type: 'Factory',
detail: 'Resilient Foam rubber seat cushions'
},
{
code: 'L',
description: 'Power Brakes',
price: 40,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/pr2.jpg',
url: '/OwnersManual/om9.htm',
type: 'Factory',
requires: 'A',
detail: 'Requires Dynaflow. Makes stopping twice as easy. New air suspension principle and pedal position make all stops gentler, softer, yet assure adequate braking even with the engine off.'
},
{
code: 'M',
description: 'Accessory Group',
price: 40,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/pics/opm.jpg',
url: '/options.html#m',
type: 'Factory',
detail: 'Includes electric clock, full wheel covers, automatic trunk light, rear license plate frame.'
},
{
code: 'N',
description: 'Airconditioner',
price: 440,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/coolair4.jpg',
url: '/ac.html',
type: 'Factory',
detail: 'The Buick Airconditioner\'s cost, when you consider how much pleasure and comfort it gives, is moderate indeed.'
},
{
code: 'Q710',
description: 'W. W. Tires (710 X 15)',
price: 37,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/pics/optub.jpg',
url: '/options.html#ww',
type: 'Factory',
oneOf: ['Q760', 'Q800', 'QR'],
detail: 'Smoother, quieter riding -- give longer mileage, add perfect glamour touch to Buick beauty.'
},
{
code: 'Q760',
description: 'W. W. Tires (760 X 15)',
price: 37,
models: ['61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R'],
image: '/pics/optub.jpg',
url: '/options.html#ww',
type: 'Factory',
oneOf: ['Q710', 'Q800', 'QR'],
detail: 'Smoother, quieter riding -- give longer mileage, add perfect glamour touch to Buick beauty.'
},
{
code: 'Q800',
description: 'W. W. Tires (800 X 15)',
price: 46,
models: ['72', '73', '76C', '76R'],
image: '/pics/optub.jpg',
url: '/options.html#ww',
type: 'Factory',
oneOf: ['Q760', 'Q710', 'QR'],
detail: 'Smoother, quieter riding -- give longer mileage, add perfect glamour touch to Buick beauty.'
},
{
code: 'QR',
description: 'W. W. Tires - Oversize (760 X 15)',
price: 57,
models: ['41', '43', '46C', '46R', '48', '48D', '49'],
image: '/pics/optub.jpg',
url: '/options.html#ww',
type: 'Factory',
oneOf: ['Q760', 'Q800', 'Q710'],
detail: 'Smoother, quieter riding -- give longer mileage, add perfect glamour touch to Buick beauty.'
},
{
code: 'S1',
description: 'Power Seat Adj. 6 Way',
price: 95,
models: ['41', '43', '46C', '46R', '48', '49',
		 '61', '63D', '63', '66R', '69',
		 '52', '53', '56R',
		 '72'],
image: '/pics/pr3.jpg',
url: '/power.html',
type: 'Factory',
detail: 'Moves back and forth and up and down --positions you at the right height and distance from the wheel by push button -- a wonderful convenience for the family Buick.'
},
{
code: 'S2',
description: 'Power Seat Adj. 6 Way',
price: 69,
models: [ '66C',  '56C', '73', '76C', '76R'],
image: '/pics/pr3.jpg',
url: '/power.html',
type: 'Factory',
detail: 'Moves back and forth and up and down --positions you at the right height and distance from the wheel by push button -- a wonderful convenience for the family Buick.'
},
{
code: 'U',
description: 'Power Window Lifts (4)',
price: 99,
models: ['41', '43', '46C', '46R', '48D', '49',
		 '61', '63D', '63', '66R', '69',
		 '52', '53',  '56R',
		 '72'],
image: '/OwnersManual/powerWindow.jpg',
url: '/OwnersManual/om16.htm',
type: 'Factory',
detail: 'Raise and lower windows by master panel on drivers side or by individual controls on each door.'
},
{
code: 'W',
description: 'Dual Exhaust',
price: 29,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72'],
image: '/OwnersManual/V.jpg',
//url: '/OwnersManual/om16.htm',
type: 'Factory',
requires: 'A',
detail: 'Requires Dynaflow. Dual Exhaust'
},
{
code: 'Z',
description: 'Special Order Paint',
price: 99,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/2ToneAEE.jpg',
url: '/paint.html',
type: 'Factory',
oneOf: ['ZU', 'ZL', 'Z3'],
detail: 'Special Order Paint'
},
{
code: 'ZU',
description: 'Two Tone Paint Upper',
price: 16,
models: ['41', '43',  '46R', '48', '48D', '49',
		 '61', '63D', '63',  '66R', '69',
		 '52', '53', '56R'],
image: '/pics/2ToneAUU.jpg',
url: '/paint.html',
type: 'Factory',
oneOf: ['Z', 'ZL', 'Z3'],
detail: 'Your choice of any two 1955 Buick colors -- over 200 combinations in all -- at exceptionally modest cost.'
},
{
code: 'ZL',
description: 'Two Tone Paint Lower',
price: 24,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R'],
image: '/pics/2ToneBBL.jpg',
url: '/paint.html',
type: 'Factory',
oneOf: ['ZU', 'Z', 'Z3'],
detail: 'Your choice of any two 1955 Buick colors -- over 200 combinations in all -- at exceptionally modest cost.'
},
{
code: 'Z3',
description: 'Tri Tone Paint',
price: 40,
models: ['41', '43',  '46R', '48', '48D', '49',
		 '61', '63D', '63',  '66R', '69',
		 '52', '53', '56R'],
image: '/pics/2ToneASC.jpg',
url: '/paint.html',
type: 'Factory',
oneOf: ['ZU', 'ZL', 'Z'],
detail: '3-Tone color choice'
},
{
code: 'CT4',
description: 'Custom Trim',
price: 44,
models: ['41', '43',  '46R', '48D'],
image: '/OwnersManual/V.jpg',
//url: '/paint.html',
type: 'Factory',
detail: 'Custom Trim'
},
{
code: 'CT5',
description: 'Custom Trim',
price: 36,
models: ['52'],
image: '/OwnersManual/V.jpg',
//url: '/paint.html',
type: 'Factory',
detail: 'Custom Trim'
},
{
code: 'SS',
description: 'Split Rear Seat',
price: 39,
models: ['49', '69'],
image: '/pics/options/wagonFoldingSeat.jpg',
url: '/pics/options/wagonFoldingSeat.jpg',
type: 'Factory',
detail: 'This model may be ordered with a split rear seat which can be folded away in sections, thus giving deeper loading space and rear seating space at the same time.'
},
{
code: 'ZW',
description: 'Wire Wheels',
price: 300,
models: ['61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/opwir.jpg',
url: 'http://www.55buick.com/options.html#wire',
type: 'Factory',
detail: 'Forty gleaming spokes on every wheel give your Buick classic sports-car verve. I have no information on price. $300 is a guess. '
},
{
code: 'RL',
description: 'Redliner Speedometer',
price: 50,
models: ['41', '43',  '46R', '48D'],
image: '/pics/options/redliner.jpg',
url: '/pics/options/redliner.jpg',
type: 'Factory',
detail: 'Shows car speed in a red band in place of the conventional pointer. . I have no information on price. $50 is a guess. '
},
{
code: 'D1',
description: 'Side Mirror',
price: 5.95,
models: ['41', '43',  '46R', '48D'],
image: '/pics/options/outsideMirror.jpg',
url: '/pics/options/outsideMirror.jpg',
type: 'Dealer',
detail: 'Chromed for lasting beauty and designed for full rear vision. Easily adjusted to individual\'s requirements.'
},
{
code: 'D2',
description: 'Gas Door Guard',
price: 1.95,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/gasDoorGuard.jpg',
url: '/pics/options/gasDoorGuard.jpg',
type: 'Dealer',
detail: 'A gleaming stanless steel guard that protects the finish from being marred or chipped by gasoline-pump nozzles.'
},
{
code: 'D3',
description: 'Kleenex Dispenser',
price: 5.20,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/kleenexdispenser.jpg',
url: '/pics/options/kleenexdispenser.jpg',
type: 'Dealer',
detail: 'This Buick-crested beauty is attached to the lower edge of the instrument panel. Designed to hold an entire box of tissues and dispense them one at a time.'
},
{
code: 'D4',
description: 'Vanity Mirror',
price: 1.60,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/vanityMirror.jpg',
url: '/pics/options/vanityMirror.jpg',
type: 'Dealer',
detail: 'A popular and appreciated luxury for feminine motorists. Easily clips on sun visor to afford ready access for vanity use.'
},
{
code: 'D5',
description: 'Rear Seat Speaker',
price: 21.25,
models: ['41', '43',  '46R', '48', '48D', 
		 '61', '63D', '63',  '66R', 
		 '52', '53',  '56R',
		 '72', '73', '76R'],
image: '/pics/options/rearSpeaker.jpg',
url: '/pics/options/rearSpeaker.jpg',
type: 'Dealer',
detail: 'Gives quality tone reproduction and good distribution throughout the car. Driver controlled - speaker works with, or independently of, regular speaker.'
},
{
code: 'D6',
description: 'Exhaust Extension',
price: 3.00,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/exhaustTrim.jpg',
url: '/pics/options/exhaustTrim.jpg',
type: 'Dealer',
detail: 'Carries exhaust beyond rear bumper to prevent smudge and discoloration.'
},
{
code: 'D7',
description: 'Handy Mat',
price: 2.25,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/handyMat.jpg',
url: '/pics/options/handyMat.jpg',
type: 'Dealer',
detail: 'Available in red, green, blue, black and yellow to harmonize with car interior. Easily removed for cleaning.'
},
{
code: 'D8',
description: 'Door Guard',
price: 6.20,
models: [ '46C', '46R', '48', '48D', '49',
		 '66C', '66R', 
		 '53', '56C', '56R', 
		 '73', '76C', '76R'],
image: '/pics/options/doorGuard.jpg',
url: '/pics/options/doorGuard.jpg',
type: 'Dealer',
detail: 'Designed to protect door edges from chipping or scratching. Lustrous stanless steel, snaps over edge of car door quickly and easily.'
},
{
code: 'D9',
description: 'Door Guard',
price: 9.20,
models: [ '41', '43',  '49',
		 '61', '63',  '69',
		 '52', 
		 '72', '73', '76C', '76R'],
image: '/pics/options/doorGuard.jpg',
url: '/pics/options/doorGuard.jpg',
type: 'Dealer',
detail: 'Designed to protect door edges from chipping or scratching. Lustrous stanless steel, snaps over edge of car door quickly and easily.'
},
{
code: 'D10',
description: 'Handy Spot',
price: 7.95,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/handySpot.jpg',
url: '/pics/options/handySpot.jpg',
type: 'Dealer',
detail: 'Sturdily constructed of polished chrome, this handsome trouble light or spotlight plugs into the cigar lighter.'
},
{
code: 'D11',
description: 'Curb feelers',
price: 1.95,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
//image: '/pics/options/handySpot.jpg',
//url: '/pics/options/handySpot.jpg',
type: 'Dealer',
detail: 'Curb feelers.'
},
{
code: 'D12',
description: 'Cushion Topper',
price: 9.95,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/cushionTopper.jpg',
url: '/Advertisment/CushionTopper/cushionTopper.jpg',
type: 'Dealer',
detail: 'Tailored for front or rear cushions in grey, blue, black and green. A smooth rayon fabric permanently fused to a Thana foamed latex base.'
},
{
code: 'D13',
description: 'Safety Belt 1 person',
price: 14.00,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R'],
//image: '/pics/options/cushionTopper.jpg',
//url: '/Advertisment/CushionTopper/cushionTopper.jpg',
type: 'Dealer',
detail: 'Safety Belt 1 person.'
},
{
code: 'D14',
description: 'Safety Belt 1 person',
price: 19.00,
models: ['72', '73', '76C', '76R'],
//image: '/pics/options/cushionTopper.jpg',
//url: '/Advertisment/CushionTopper/cushionTopper.jpg',
type: 'Dealer',
detail: 'Safety Belt 1 person.'
},
{
code: 'D15',
description: 'Tank Gasoline',
price: 6.00,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
//image: '/pics/options/cushionTopper.jpg',
//url: '/Advertisment/CushionTopper/cushionTopper.jpg',
type: 'Dealer',
detail: 'Tank Gasoline.'
},
{
code: 'D16',
description: 'Solvent & Rad. Cond.',
price: 3.00,
models: ['41', '43', '46C', '46R', '48', '48D', '49',
		 '61', '63D', '63', '66C', '66R', '69',
		 '52', '53', '56C', '56R',
		 '72', '73', '76C', '76R'],
image: '/pics/options/coolingSystemRustInhib.jpg',
url: '/pics/options/coolingSystemRustInhib.jpg',
type: 'Dealer',
detail: 'Recommended as a rust deterrent to keep cooling systems free from harmful rust formation. Also acts as a water pump lubricant.'
},
{
code: 'D17',
description: 'Vent Shades',
price: 8.75,
models: ['41', '43',  '46R', '48', '48D', '49',
		 '61', '63D', '63', '66R', '69',
		 '52', '53',  '56R',
		 '72', '73',  '76R'],
image: '/Accessories/ventshades.jpg',
url: '/Accessories/index.html',
type: 'Dealer',
detail: 'Constructed of gleaming stainless steel, Buick Ventshades are designed to compliment Buick\'s smart lines. Ventshades cut down sunglare, reduce drafts with open window driving and permit open window ventilation on rainy days. A dash of beauty plus year-round motoring comfort.'
}
];

function formatCurrency(num) {
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num))
		num = "0";
	sign = (num == (num = Math.abs(num)));
	num = Math.floor(num*100+0.50000000001);
	cents = num%100;
	num = Math.floor(num/100).toString();
	if(cents<10)
		cents = "0" + cents;
	for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		num = num.substring(0,num.length-(4*i+3))+','+
		num.substring(num.length-(4*i+3));
	return (((sign)?'':'-') + '$' + num + '.' + cents);
}

function optionsPopulateTable(boptions,divName) {
    var c='<table class="options">'
	// c+='<tr><th></th><th>Code</th><th>Option</th><th>Price</th><th></th><th></th></tr>';
	d=document.getElementById(divName);
	if(!d){return;}	
	var odd = true;
	for(var i=0;i<boptions.length;i++){
	    odd = !odd;
		if (odd) 
		    c+='<tr class="odd">';
		else
		    c+='<tr class="even">';
		c += '<td><INPUT TYPE=CHECKBOX OnClick="optionPick(\''+i+'\');" NAME="option'+boptions[i].code+'" id="option'+boptions[i].code+'"></td><td><p class="optionCode">'+boptions[i].type+'</p></td><td><p class="optionTitle">'+
		boptions[i].description+'</p></td><td><p class="optionPrice">'+
		formatCurrency(boptions[i].price)+'</p></td><td><p class="optionDescrip">'+
		boptions[i].detail+'</p></td><td>';
		if (boptions[i].image != null || boptions[i].image != undefined)
		    c+='<img height="30" src="'+boptions[i].image+'" />';
		if (boptions[i].url != null)
		    c+='<a href="'+boptions[i].url+'">more</a>';
		c+='</td></tr>';

		}
		c+="</table>";
	d.innerHTML=c;
}


function optionsPopulateSelect(boptions,selectName) {
	d=document.getElementById(selectName);
	if(!d){return;}	
	d.options.length=boptions.length;
	for(var i=0;i<boptions.length;i++)
	{
		d.options[i].text=boptions[i].description;
		d.options[i].value=boptions[i].code;
	}
}

function getBuickOptionByCode(code) {
	for(var i=0;i<buick_options.length;i++)
		{
			if (buick_options[i].code == code)
			    return buick_options[i];
		}
	return null;
}

		
function optionsShowSelect(element,value) {
    d=document.getElementById(element);
	if(!d){alert('element not found!');return;}	
    var selectedOption = getBuickOptionByCode(value);
	if (selectedOption == null)
	    d.innerHTML='No value found';
	else {
	var c = '<div>code='+selectedOption.code+', price='+selectedOption.price+'</div><div>'+selectedOption.detail+'</div>';
	if (selectedOption.image != null || selectedOption.image != undefined)
	    c+='<img width="75" src="'+selectedOption.image+'" />';
	if (selectedOption.url != null)
	    c+='<a href="'+selectedOption.url+'">more</a>';
	c+='</div>';
	d.innerHTML=c;
	}
}

function getOptionsArrayForModel(model) {
    var options = new Array();
    for(var i=0;i<buick_options.length;i++)
		{
		var models = buick_options[i].models;
		for (var j=0; j<models.length; j++) {
		    if (models[j] == model) {
			   //alert('pushing option '+bu
			   options.push(buick_options[i]);
			   break;
			}
		}
	}
	return options;
}