// NebuCart - The JavaScript Shopping Cart
// by Nebulus Designs
//
// Copyright 1999-2001 all rights reserved.

// None of this script may be redistributed or sold
// without the authors express consent.
// Violations of copyright will be prosecuted.

// If you would like to use NebuCart,
// email us at nebucart@nebulus.org
// or visit http://nebucart.nebulus.org

// ********************************************
// NebuCart Shipping Options Creation         *
// ********************************************
// DO NOT CHANGE ANYTHING BELOW THIS LINE!    *
// ********************************************

var i;
var tmpOption;
var optionName  = new Array();
var useShipOpt  = useShipOptions;

if(useShipOpt && shipOptions.length > 0){
	for(i = 0; i < shipOptions.length; i ++){
		tmpOption     = shipOptions[i].split(delim);
		if(tmpOption[1] != ''){
			optionName[i] = tmpOption[0] + ' ' + currency + tmpOption[1];
		} else {
			optionName[i] = tmpOption[0];
		}
		if(tmpOption[2] == 'true' && tmpOption[1] != ''){
			optionName[i] = optionName[i] + ' (per item)';
		}
	}
	document.write('<br>');
	document.write('<table border=0>');
	document.write('<tr><td valign=top><font face=' + myFont + ' size=-1><b>Choose your shipping method</td></tr>');
	document.write('<tr><td valign=top>');
	document.write('<select name=ship_option>');
	document.write('<option value="' + shipOptions[0] + '" SELECTED>' + optionName[0] + '</option>');
	for(i = 1; i < shipOptions.length; i ++){
		document.write('<option value="' + shipOptions[i] + '">' + optionName[i] + '</option>');
	}
	document.write('</select>');
	document.write('</td></tr>');
	document.write('</table>');
	document.write('<br>');
}