function SMShipMethods(){
	var SMPrice = new cSMPrice(), totalPrice = 0, usingShipToAddress = false;
	SMPrice.decode(SMShop.basket.getAttribute(_SMADSubTotal));

	this.relTotalPrice = SMShop.getAttribute(_SMAOutGross)!="1" ? SMPrice.net : SMPrice.gross;
	/* find country */
	usingShipToAddress = (SMShop.getFormElement("BILLTO", "BILLTO_SHIPTO_DIFFERS") != null);
	if(usingShipToAddress){
		usingShipToAddress = cbool(SMShop.getFormValue("BILLTO", "BILLTO_SHIPTO_DIFFERS", true));
		};
	if(usingShipToAddress){
		this.relCountryCode = SMShop.getFormValue('SHIPTO','SHIPTO_COUNTRY', true).toUpperCase();
	}else{
		this.relCountryCode = SMShop.getFormValue('BILLTO','BILLTO_COUNTRY', true).toUpperCase();
	};
	/* continue */
	this.relTotalWeight = SMShop.basket.getAttribute(_SMAWeightTotal);
	this.relTotalQty = SMShop.basket.getAttribute(_SMATotalItems);
	this.relSelectedItemId = SMShop.getActiveShipMethodId();

	this.getSelectedShipMethod = SMShipMethods_getSelectedShipMethod;
	this.setShipMethod = SMShipMethods_setShipMethod;
	this.saveRedirect = SMShipMethods_saveRedirect;
	this.calcDynamic = SMShipMethods_calcDynamic;
	this.calcCharge = SMShipMethods_calcCharge;
	this.autoSelect = SMShipMethods_autoSelect;
	this.saveMethod = SMShipMethods_saveMethod;
	this.printTable = SMShipMethods_printTable;
	this.htmlTable = SMShipMethods_htmlTable;
	this.goBack = SMShipMethods_goBack;

	this.selectdItemIndex = 0;

	this.arrMethods = function(){
		var sWeight = '', fromWeight = maxWeight = 0, arrWeight = null;
		var dblCharge = 0, arrSource = null, arrTarget = new Array();
		var oCalculator = oMethod = null, sPluginRef = sPluginFunction = '';
		for(pkid in m_arrShipMethods){
			if(isNaN(pkid)) continue;
			arrSource = m_arrShipMethods[pkid].split(';');

			oMethod = new SMShipMethod();
			oMethod.id = SX_uEsc(arrSource[0]);
			oMethod.name = SX_uEsc(arrSource[1]);
			oMethod.desc = SX_uEsc(arrSource[2]);
			oMethod.thumb = SX_uEsc(arrSource[3]);
			oMethod.exclPayMethods = arrSource[9];
			oMethod.publicId = SX_uEsc(arrSource[10]);

			oCalculator = new SMShipCalculator(pkid, arrSource[8], this.relCountryCode); // zones
			if(oCalculator == null || oCalculator.chargeValues == null) continue;

			oMethod.calculator = oCalculator;
			oMethod.calcShipSurcharge = false;

			sPluginRef = arrSource[4].toString(); // pluginref
			if(sPluginRef.length > 0){
				sPluginFunction = 'SMShipMethodPlugin_' + SX_uEsc(sPluginRef);
				try{window[sPluginFunction](oMethod)}
				catch(e){continue};
			};

			sWeight = arrSource[7].toString(); // fromWeight, maxWeight
			if(sWeight.length > 0){
				arrWeight = sWeight.split(',');
				fromWeight = parseFloat(arrWeight[0]);
				maxWeight = parseFloat(arrWeight[1]);
				if(this.relTotalWeight < fromWeight || (maxWeight > 0 && this.relTotalWeight > fromWeight 
					&& this.relTotalWeight > maxWeight)) continue;
			};

			dblCharge = this.calcCharge(oCalculator);
			if(dblCharge < 0) continue;

			oMethod.charge = parseFloat(dblCharge);
			oMethod.taxkey = parseInt(arrSource[5]);

			if(parseInt(arrSource[6]) == 1){ // calcProductSurcharges 
				oMethod.calcShipSurcharge = true;
			};

			if(oMethod.id == this.relSelectedItemId){
				this.selectdItemIndex = parseInt(arrTarget.length);
			};

			arrTarget[arrTarget.length] = oMethod;
		};
		return(arrTarget);
	};

	this.shipMethods = this.arrMethods();
	this.selectedMethod = null;
	this.doAutoSelect = false;

};

function SMShipMethod(){
	this.id = '';
	this.publicId = '';
	this.name = '';
	this.desc = '';
	this.thumb = '';
	this.charge = 0;
	this.taxkey = 0;
	this.exclPayMethods = '';
	this.calculator = null;
};

function SMShipMethods_setShipMethod(shipMethodId){
	this.selectedMethod = null;
	for(var i=0;i<this.shipMethods.length;i++){
		if(this.shipMethods[i].id == shipMethodId){
			this.selectedMethod = this.shipMethods[i];
			break;
		};
	};
	return((this.selectedMethod!=null));
};

function SMShipMethods_autoSelect(){
	if(this.doAutoSelect && this.shipMethods.length == 1){
		this.selectedMethod = this.shipMethods[0];
		SMShop.setShipMethod(this.selectedMethod)
		location.replace(SMGetCheckoutStep('SM_RESERVED_DATA_ENTRY_SHIPMENT', false));
	};
};

function SMShipMethods_calcDynamic(calculator,isTable){
	var dblBase = dblCharge = 0;
	switch(calculator.chargeBase){
		case 0: dblBase = this.relTotalPrice; break; // price
		case 1: dblBase = this.relTotalWeight; break; // weight
		case 2: dblBase = this.relTotalQty; break; // qty
	};

	dblCharge = dblBase*calculator.chargeMultiplier;
	if(!isTable){
		if(calculator.chargeBase == 0){
			dblCharge = dblCharge/100; // price-surcharge in percent
		};
		dblCharge += calculator.chargeValue;

		if(calculator.chargeMax > 0 && dblCharge > calculator.chargeMax){
			dblCharge = calculator.chargeMax;
		};
	};
	return(dblCharge);
};

function SMShipMethods_calcCharge(calculator){
	var oCalc = null, bytBase = 0, bCalculate = false;
	if(calculator.chargeFreeFrom > 0 && this.relTotalPrice >= calculator.chargeFreeFrom){
		return(0); // charge free
	} else if(calculator.chargeType == 0){ // fix
		return(calculator.chargeValue);
	} else if(calculator.chargeType == 1){ // dynamic
		return(this.calcDynamic(calculator,false));
	} else if(calculator.shipTables != null){ // table
		bytBase = calculator.chargeBase;
		for(var i=0;i<calculator.shipTables.length;i++){
			oCalc = calculator.shipTables[i];
			if(bytBase == 0){
				bCalculate = cbool(this.relTotalPrice <= oCalc.upToAmount);
			} else if(bytBase == 1){
				bCalculate = cbool(this.relTotalWeight <= oCalc.upToAmount);
			} else if(bytBase == 2){
				bCalculate = cbool(this.relTotalQty <= oCalc.upToAmount);
			};

			if(bCalculate){
				if(oCalc.chargeType == 0){ // fix
					return(oCalc.chargeValue);
				} else if(oCalc.chargeType == 1){ // dynamic
					return(this.calcDynamic(oCalc,true));
				};
			};
		};
	};
	return(-1);
};

function SMShipCalculator(pkid, zones, country){
	var arrCharge = function (){
		var arrZones = zones.length>0 ? zones.split(',') : null;
		if(arrZones == null){
			if(m_arrShipCalculators[pkid]){
				return(m_arrShipCalculators[pkid].split(';'));
			};
		} else {
			for(var i=0; i<arrZones.length;i++){
				if(!m_arrShipZones[arrZones[i]]) continue;
				if((';' + m_arrShipZones[arrZones[i]].toUpperCase() + ';').indexOf(';' + country + ';') > -1){
					return(m_arrZoneCalculators[arrZones[i]].split(';'));
				};
			};
		};
	};
	this.chargeValues = arrCharge();
	if(this.chargeValues != null){
		this.chargeType = parseInt(this.chargeValues[0]);
		this.chargeBase = parseInt(this.chargeValues[1]);
		this.chargeValue = parseFloat(this.chargeValues[2]);
		this.chargeMultiplier = parseFloat(this.chargeValues[3]);
		this.chargeMax = parseFloat(this.chargeValues[4]);
		this.chargeFreeFrom = parseFloat(this.chargeValues[5]);
		this.shipTables = null;
		if(this.chargeType == 2){
			this.shipTables = new SMShipTables(this.chargeValues).tables;
		};
	};
};

function SMShipTables(cvalues){
	var arrTables = function(){
		var arrTable = cvalues[6].length>0 ? cvalues[6].split(',') : null;
		var arrValues = new Array();
		if(arrTable!=null){
			for(var i=0;i<arrTable.length;i++){
				if(!m_arrShipTables[arrTable[i]]) continue;
				arrValues[arrValues.length] = new SMShipTable(cvalues, arrTable[i]);
			};
		};
		return(arrValues);
	};
	this.tables = arrTables();
};

function SMShipTable(cvalues, pkid){
	var arrValues = m_arrShipTables[pkid].split(';');
	this.chargeType = parseInt(arrValues[0]);
	this.chargeValue = parseFloat(arrValues[1]);
	this.upToAmount = parseFloat(arrValues[2]);
	this.chargeBase = parseInt(cvalues[1]);
	this.chargeMultiplier = parseFloat(arrValues[1]);
	this.chargeMax = parseFloat(cvalues[4]);
};

function SMShipMethods_htmlTable(){
	var arrMethods = this.shipMethods;
	var oSMPrice = oSMPriceSurcharge = imgThumb = null;
	var sProductSurcharges = '', sProductSurchargesCaption = 'excl. %su Transport surcharge';
	var sTable = '<form name="shipmethods" onsubmit="return(oSMShipMethods.saveRedirect())" style="display:inline"><table id="shipmethods" border="0" cellpadding="4" cellspacing="0" width="100%">';
	if(arrMethods.length > 0){
		for(var i=0;i<arrMethods.length;i++){
			oSMPrice = new cSMPrice();
			oSMPriceSurcharge = new cSMPrice();
			oSMPrice.calculate(arrMethods[i].charge, !cbool(SMShop.getAttribute(_SMAInGross)), arrMethods[i].taxkey);
			// 
			// oSMPriceSurcharge.decode(SMShop.basket.getAttribute(_SMATotalShipSurcharges));
			oSMPriceSurcharge.calculate(SMShop.basket.getAttribute(_SMATotalShipSurcharges), !cbool(SMShop.getAttribute(_SMAInGross)),  arrMethods[i].taxkey);

			if(arrMethods[i].calcShipSurcharge && oSMPriceSurcharge.net > 0){
				sProductSurcharges = cprimary.format((SMShop.getAttribute(_SMAOutGross)!="1") ? oSMPriceSurcharge.net : oSMPriceSurcharge.gross, SM_CGROUP + SM_CSYMBOL);
				sProductSurchargesCaption = sProductSurchargesCaption.replace(/%su/gi, sProductSurcharges);
			} else {
				sProductSurcharges = '';
				sProductSurchargesCaption = '';
			};
			sTable += '<tr valign="top" class="shipmethod shipmethod-line">'
				+ '<td align="center" style="width:24px"><input id="' + arrMethods[i].id + '" type="radio" ' + (i==this.selectdItemIndex?"checked ":"") + 'name="optShipMethod" value="' + arrMethods[i].id + '"></td>'
				+ '<td>';
			if(arrMethods[i].thumb.length > 0){
				imgThumb = new Image();
				imgThumb.src = arrMethods[i].thumb;
				sTable += '<img class="shipmethod-thumb" src="' + imgThumb.src + '" border="0" width="' + imgThumb.width + '" height="' + imgThumb.height + '">';
			};
			sTable += '<h3><label for="' + arrMethods[i].id + '">' + arrMethods[i].name + '</label></h3><div>' + arrMethods[i].desc;
			if(sProductSurchargesCaption != ''){
				sTable += '<br>' + sProductSurchargesCaption;
			};
			sTable += '</div>'
				+ '</td>'
				+ '<td align="right">' + cprimary.format(cbool(SMShop.getAttribute(_SMAOutGross)) ? oSMPrice.gross : oSMPrice.net, SM_CGROUP + SM_CSYMBOL); + '</td>'
				+ '</tr>';
		};
		sTable += '<tr align="right"><td colspan="3">';
		sTable += '<input type="image" src="' + SMOMAbsoluteRootURL + '/images/button_back.gif" onclick="return(oSMShipMethods.goBack())">&nbsp;';
		sTable += '<input type="image" src="' + SMOMAbsoluteRootURL + '/images/button_forward.gif"></td></tr>';
	} else {
		sTable += '<tr><strong>Verzeihung</strong><br>Das System konnte leider keine entsprechende Versandart bereitstellen. '
			+ 'Bitte kontaktieren Sie uns, um Ihnen schnellstmöglich ein passendes Angebot zu machen.</tr>'
			+ '<tr><td><input type="reset" value="&lt zurück" onclick="oSMShipMethods.goBack()"></td></tr>';
	};
	sTable += '</table></form>';
	return(sTable);
};

function SMShipMethods_printTable(){
	document.write(this.htmlTable());
};

function SMShipMethods_saveMethod(selectedMethodId){
	if(this.setShipMethod(selectedMethodId)){
		return(SMShop.setShipMethod(this.selectedMethod));
	};
	return(false);
};

function SMShipMethods_saveRedirect(){
	if(this.saveMethod(this.getSelectedShipMethod())){
		location.href = SMGetCheckoutStep('SM_RESERVED_DATA_ENTRY_SHIPMENT', false);
	};
	return(false);
};

function SMShipMethods_goBack(){
	location.href = SMGetCheckoutStep('SM_RESERVED_DATA_ENTRY_SHIPMENT', true);
	return(false);
};

function SMShipMethods_getSelectedShipMethod(){
	var elem = null;
	for(var i=0;i<document.shipmethods.elements.length;i++){
		elem = document.shipmethods.elements[i];
		if(elem.name == 'optShipMethod' && elem.checked){
			return(elem.value);
		};
	};
	return('');
};

var m_arrShipMethods = new Array();m_arrShipMethods[7]="7;DHL_20Express_20WPX_20Worldwide;Worldwide_20Express_20Door_20to_20Door_20shipment_X3_20For_20shipments_20without_20antenna_X3;;;1;1;;4,5,6,7,8,9,10,11,45;;DHL";m_arrShipMethods[9]="9;FedEx;Worldwide_20Express_20Door_20to_20Door_20shipment_X3_20For_20shipments_20without_20antenna_X3;;;1;1;;31,32,33,34,36,38,39,40,44;;FedEx";m_arrShipMethods[10]="10;Kurier;Only_20for_20deliveries_20within_20Germany;;;1;1;;43;;Kurier";m_arrShipMethods[11]="11;Cargo_20Flight;Only_20for_20Shipment_20of_20Antennas;;;1;1;25,0;;;4";var m_arrShipCalculators = new Array();m_arrShipCalculators[11]='2;1;0;0;0;0;609,610,611,612';var m_arrZoneCalculators = new Array();m_arrZoneCalculators[4]='2;1;0;0;0;0;643,644,645,646,647,648,649,650,651,652,653,654';m_arrZoneCalculators[5]='2;1;0;0;0;0;743,744,745,746,747,748,749,750,751,752,753';m_arrZoneCalculators[6]='2;1;0;0;0;0;666,667,668,669,670,671,672,673,674,675,676';m_arrZoneCalculators[7]='2;1;0;0;0;0;677,678,679,680,681,682,683,684,685,686,687';m_arrZoneCalculators[8]='2;1;0;0;0;0;688,689,690,691,692,693,694,695,696,697,698';m_arrZoneCalculators[9]='2;1;0;0;0;0;262,263,264,265,266,267,268,269,270,271,272';m_arrZoneCalculators[10]='2;1;0;0;0;0;273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295';m_arrZoneCalculators[11]='2;1;0;0;0;0;296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318';m_arrZoneCalculators[31]='2;1;0;0;0;0;766,767,768,769,770,771,772,773,774,775,776,777';m_arrZoneCalculators[32]='2;1;0;0;0;0;778,779,780,781,782,783,784,785,786,787,788';m_arrZoneCalculators[33]='2;1;0;0;0;0;789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808';m_arrZoneCalculators[34]='2;1;0;0;0;0;809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825';m_arrZoneCalculators[36]='2;1;0;0;0;0;890,891,892,893,894,895,896,897,898,899,900,901';m_arrZoneCalculators[38]='2;1;0;0;0;0;826,827,828,829,830,831,832,833,834,835,836,837';m_arrZoneCalculators[39]='2;1;0;0;0;0;838,839,840,841,842,843,844,845,846,847,848,849';m_arrZoneCalculators[40]='2;1;0;0;0;0;850,851,852,853,854,855,856,857,858,859';m_arrZoneCalculators[43]='2;1;0;0;0;0;591,592,593,594,595,596,597,598,599,600,601,602,603,604,605';m_arrZoneCalculators[44]='2;1;0;0;0;0;860,861,862,863,864,865,866,867,871,868,869,870';m_arrZoneCalculators[45]='2;1;0;0;0;0;872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889';var m_arrShipZones = new Array();m_arrShipZones[4]='DE;AT;DK';m_arrShipZones[5]='FR;MC;ES';m_arrShipZones[6]='CH;AD;FO;FI;GI;IS;IE;IT;LI;NO;PT;SE';m_arrShipZones[7]='AL;BA;BG;HR;CY;CZ;LV;LT;MT;PL;RO;RU;CS;SI';m_arrShipZones[8]='CA;MX;US';m_arrShipZones[9]='CN;HK;JP;SG;TW;TH';m_arrShipZones[10]='AR;AU;BH;BR;EG;IN;ID;IL;JO;KR;KW;LB;MY;NZ;NG;OM;PY;PH;QA;SA;ZA;SY;AE';m_arrShipZones[11]='AF;DZ;AS;AO;AQ;AG;AM;AZ;BS;BD;BB;BY;BZ;BJ;BM;BT;BO;BW;BV;IO;BN;BI;KH;CM;CV;KY;CF;TD;CL;CX;CC;CO;KM;CG;CK;CR;CI;CU;DJ;DM;DO;EC;SV;GQ;ET;FK;FJ;GF;PF;GA;GM;GH;GL;GD;GP;GU;GT;GN;GW;GY;HT;HM;HN;HU;IQ;JM;KE;KI;KG;LA;LS;LR;LY;MO;MG;MW;MV;ML;MQ;MR;MU;MD;MN;MS;MA;MZ;NA;NR;NP;AN;NC;NI;NE;NU;NF;PK;PA;PG;PE;PN;PR;RE;RW;SH;KN;LC;PM;VC;WS;SM;ST;SN;SC;SL;SB;SO;LK;SR;SJ;SZ;TJ;TZ;TG;TK;TO;TT;TN;TR;TM;TC;TV;UG;UA;UY;UZ;VU;VA;VE;VN;VG;VI;WF;EH;YE;ZM;ZW';m_arrShipZones[31]='AU;CN;HK;ID;JP;KR;MO;MY;NZ;PH;SG;TW;TH;TL;VN';m_arrShipZones[32]='BH;BD;BT;BN;KH;CY;EG;IN;IQ;IL;JO;KW;LA;LB;MT;MM;NP;OM;PK;PS;QA;SA;LK;SY;AE;YE';m_arrShipZones[33]='AI;AG;AR;AW;BS;BB;BZ;BM;BO;BR;KY;CL;CO;CR;DM;DO;EC;SV;GF;GD;GP;GT;GY;HT;HN;JM;MQ;MS;NI;PA;PY;PE;KN;LC;VC;ZA;SR;TT;TC;UY;VE;VG;VI';m_arrShipZones[34]='AF;DZ;AS;AO;AM;AZ;BJ;BW;BF;BI;CM;CV;CF;TD;CG;CD;CK;CI;DJ;GQ;ER;ET;FJ;PF;GA;GM;GE;GH;GU;GN;GW;KZ;KE;KI;KG;LS;LR;MG;MW;MV;ML;MH;MR;MU;FM;MN;MA;MZ;NA;NR;NC;NE;NG;NU;PW;PG;RE;RW;WS;SN;SC;SL;SB;SO;SZ;TZ;TG;TO;TN;TM;TV;UG;UZ;VU;WF;ZM;ZW';m_arrShipZones[36]='AD;BE;DK;FO;FR;GL;IT;LU;MC;NL;PT;ES;GB;VA';m_arrShipZones[38]='DE;AT;FI;EL;IE;SE';m_arrShipZones[39]='CH;GI;IS;LI;NO';m_arrShipZones[40]='AL;BY;BA;BG;HR;CZ;EE;HU;LV;LT;MK;MD;PL;RU;CS;SK;SI;TR;UA';m_arrShipZones[43]='DE';m_arrShipZones[44]='CA;MX;US';m_arrShipZones[45]='BE;LU;NL';var m_arrShipTables = new Array();m_arrShipTables[273]='0;63;1';m_arrShipTables[809]='0;92;1';m_arrShipTables[296]='0;65;1';m_arrShipTables[591]='0;20;1';m_arrShipTables[789]='0;79;1';m_arrShipTables[274]='0;83;2';m_arrShipTables[297]='0;79;2';m_arrShipTables[790]='0;102;2';m_arrShipTables[810]='0;105;2';m_arrShipTables[643]='0;42;5';m_arrShipTables[811]='0;177;5';m_arrShipTables[791]='0;162;5';m_arrShipTables[872]='0;33;5';m_arrShipTables[766]='0;110;5';m_arrShipTables[826]='0;67;5';m_arrShipTables[838]='0;62;5';m_arrShipTables[850]='0;88;5';m_arrShipTables[890]='0;43;5';m_arrShipTables[592]='0;25;5';m_arrShipTables[298]='0;192;5';m_arrShipTables[860]='0;72;5';m_arrShipTables[275]='0;163;5';m_arrShipTables[871]='1;6.88;5.55';m_arrShipTables[827]='0;96;10';m_arrShipTables[262]='0;191;10';m_arrShipTables[812]='0;275;10';m_arrShipTables[851]='0;121;10';m_arrShipTables[839]='0;89;10';m_arrShipTables[792]='0;246;10';m_arrShipTables[861]='0;96;10';m_arrShipTables[767]='0;164;10';m_arrShipTables[743]='0;79;10';m_arrShipTables[688]='0;107;10';m_arrShipTables[677]='0;124;10';m_arrShipTables[666]='0;82;10';m_arrShipTables[644]='0;70;10';m_arrShipTables[593]='0;30;10';m_arrShipTables[299]='0;321;10';m_arrShipTables[276]='0;251;10';m_arrShipTables[778]='0;213;10';m_arrShipTables[873]='0;43;10';m_arrShipTables[891]='0;63;10';m_arrShipTables[874]='0;51;15';m_arrShipTables[300]='0;397;15';m_arrShipTables[813]='0;361;15';m_arrShipTables[793]='0;315;15';m_arrShipTables[277]='0;300;15';m_arrShipTables[892]='0;74;15';m_arrShipTables[594]='0;35;15';m_arrShipTables[678]='0;193;20';m_arrShipTables[862]='0;155;20';m_arrShipTables[768]='0;248;20';m_arrShipTables[744]='0;112;20';m_arrShipTables[875]='0;58;20';m_arrShipTables[840]='0;126;20';m_arrShipTables[828]='0;139;20';m_arrShipTables[689]='0;165;20';m_arrShipTables[814]='0;416;20';m_arrShipTables[667]='0;128;20';m_arrShipTables[595]='0;40;20';m_arrShipTables[852]='0;185;20';m_arrShipTables[263]='0;254;20';m_arrShipTables[278]='0;348;20';m_arrShipTables[794]='0;356;20';m_arrShipTables[645]='0;99;20';m_arrShipTables[779]='0;320;20';m_arrShipTables[301]='0;473;20';m_arrShipTables[893]='0;85;20';m_arrShipTables[815]='0;528;25';m_arrShipTables[302]='0;531;25';m_arrShipTables[795]='0;450;25';m_arrShipTables[279]='0;390;25';m_arrShipTables[894]='0;100;25';m_arrShipTables[596]='0;45;25';m_arrShipTables[876]='0;66;25';m_arrShipTables[745]='0;143;30';m_arrShipTables[769]='0;338;30';m_arrShipTables[796]='0;488;30';m_arrShipTables[780]='0;449;30';m_arrShipTables[877]='0;73;30';m_arrShipTables[816]='0;568;30';m_arrShipTables[679]='0;247;30';m_arrShipTables[303]='0;578;30';m_arrShipTables[863]='0;217;30';m_arrShipTables[264]='0;310;30';m_arrShipTables[853]='0;270;30';m_arrShipTables[280]='0;423;30';m_arrShipTables[895]='0;109;30';m_arrShipTables[841]='0;169;30';m_arrShipTables[597]='0;50;30';m_arrShipTables[668]='0;173;30';m_arrShipTables[690]='0;209;30';m_arrShipTables[646]='0;123;30';m_arrShipTables[829]='0;171;30';m_arrShipTables[598]='0;55;35';m_arrShipTables[817]='0;607;35';m_arrShipTables[304]='0;619;35';m_arrShipTables[878]='0;80;35';m_arrShipTables[281]='0;454;35';m_arrShipTables[797]='0;526;35';m_arrShipTables[770]='0;394;40';m_arrShipTables[680]='0;296;40';m_arrShipTables[265]='0;369;40';m_arrShipTables[781]='0;520;40';m_arrShipTables[746]='0;175;40';m_arrShipTables[896]='0;127;40';m_arrShipTables[647]='0;149;40';m_arrShipTables[669]='0;219;40';m_arrShipTables[691]='0;254;40';m_arrShipTables[305]='0;659;40';m_arrShipTables[599]='0;60;40';m_arrShipTables[282]='0;487;40';m_arrShipTables[864]='0;258;40';m_arrShipTables[842]='0;201;40';m_arrShipTables[818]='0;647;40';m_arrShipTables[798]='0;564;40';m_arrShipTables[879]='0;86;40';m_arrShipTables[830]='0;203;40';m_arrShipTables[854]='0;320;40';m_arrShipTables[600]='0;65;45';m_arrShipTables[819]='0;698;45';m_arrShipTables[880]='0;92;45';m_arrShipTables[283]='0;518;45';m_arrShipTables[306]='0;699;45';m_arrShipTables[799]='0;625;45';m_arrShipTables[855]='0;367;50';m_arrShipTables[865]='0;312;50';m_arrShipTables[681]='0;345;50';m_arrShipTables[897]='0;151;50';m_arrShipTables[820]='0;750;50';m_arrShipTables[284]='0;550;50';m_arrShipTables[747]='0;208;50';m_arrShipTables[648]='0;175;50';m_arrShipTables[692]='0;298;50';m_arrShipTables[601]='0;70;50';m_arrShipTables[831]='0;229;50';m_arrShipTables[307]='0;740;50';m_arrShipTables[843]='0;222;50';m_arrShipTables[670]='0;265;50';m_arrShipTables[800]='0;673;50';m_arrShipTables[782]='0;616;50';m_arrShipTables[771]='0;479;50';m_arrShipTables[881]='0;99;50';m_arrShipTables[266]='0;417;50';m_arrShipTables[801]='0;722;55';m_arrShipTables[821]='0;801;55';m_arrShipTables[602]='0;75;55';m_arrShipTables[308]='0;779;55';m_arrShipTables[285]='0;586;55';m_arrShipTables[882]='0;106;55';m_arrShipTables[772]='0;540;60';m_arrShipTables[286]='0;622;60';m_arrShipTables[783]='0;700;60';m_arrShipTables[682]='0;397;60';m_arrShipTables[802]='0;770;60';m_arrShipTables[649]='0;203;60';m_arrShipTables[844]='0;243;60';m_arrShipTables[671]='0;312;60';m_arrShipTables[856]='0;399;60';m_arrShipTables[693]='0;350;60';m_arrShipTables[267]='0;479;60';m_arrShipTables[832]='0;255;60';m_arrShipTables[898]='0;167;60';m_arrShipTables[883]='0;114;60';m_arrShipTables[603]='0;80;60';m_arrShipTables[866]='0;350;60';m_arrShipTables[748]='0;247;60';m_arrShipTables[822]='0;853;60';m_arrShipTables[309]='0;817;60';m_arrShipTables[823]='0;904;65';m_arrShipTables[310]='0;856;65';m_arrShipTables[884]='0;122;65';m_arrShipTables[803]='0;818;65';m_arrShipTables[604]='0;85;65';m_arrShipTables[287]='0;658;65';m_arrShipTables[268]='0;540;70';m_arrShipTables[784]='0;784;70';m_arrShipTables[824]='0;955;70';m_arrShipTables[288]='0;694;70';m_arrShipTables[311]='0;894;70';m_arrShipTables[749]='0;286;70';m_arrShipTables[804]='0;867;70';m_arrShipTables[867]='0;388;70';m_arrShipTables[899]='0;183;70';m_arrShipTables[857]='0;431;70';m_arrShipTables[694]='0;401;70';m_arrShipTables[833]='0;281;70';m_arrShipTables[683]='0;448;70';m_arrShipTables[650]='0;232;70';m_arrShipTables[885]='0;129;70';m_arrShipTables[605]='0;90;70';m_arrShipTables[773]='0;600;70';m_arrShipTables[845]='0;264;70';m_arrShipTables[672]='0;359;70';m_arrShipTables[289]='0;730;75';m_arrShipTables[312]='0;933;75';m_arrShipTables[313]='0;972;80';m_arrShipTables[886]='0;145;80';m_arrShipTables[684]='0;500;80';m_arrShipTables[269]='0;602;80';m_arrShipTables[673]='0;406;80';m_arrShipTables[750]='0;325;80';m_arrShipTables[651]='0;261;80';m_arrShipTables[290]='0;765;80';m_arrShipTables[695]='0;453;80';m_arrShipTables[314]='0;1011;85';m_arrShipTables[291]='0;801;85';m_arrShipTables[751]='0;364;90';m_arrShipTables[696]='0;504;90';m_arrShipTables[674]='0;453;90';m_arrShipTables[270]='0;664;90';m_arrShipTables[685]='0;552;90';m_arrShipTables[292]='0;837;90';m_arrShipTables[887]='0;160;90';m_arrShipTables[652]='0;291;90';m_arrShipTables[315]='0;1049;90';m_arrShipTables[316]='0;1088;95';m_arrShipTables[293]='0;873;95';m_arrShipTables[846]='1;5.38;99';m_arrShipTables[900]='1;4.13;99';m_arrShipTables[834]='1;7.39;99';m_arrShipTables[785]='1;10.27;99';m_arrShipTables[858]='1;6.69;99';m_arrShipTables[805]='1;11.52;99';m_arrShipTables[868]='1;5.14;99';m_arrShipTables[774]='1;7.74;99';m_arrShipTables[294]='0;909;100';m_arrShipTables[271]='0;725;100';m_arrShipTables[888]='0;176;100';m_arrShipTables[697]='0;556;100';m_arrShipTables[675]='0;500;100';m_arrShipTables[752]='0;404;100';m_arrShipTables[653]='0;320;100';m_arrShipTables[686]='0;603;100';m_arrShipTables[609]='0;550;100';m_arrShipTables[317]='0;1126;100';m_arrShipTables[775]='1;7.39;299';m_arrShipTables[806]='1;11.09;299';m_arrShipTables[786]='1;10.26;299';m_arrShipTables[847]='1;5.1;299';m_arrShipTables[869]='1;4.86;299';m_arrShipTables[835]='1;7.2;299';m_arrShipTables[610]='0;1300;300';m_arrShipTables[807]='1;10.66;499';m_arrShipTables[870]='1;4.64;499';m_arrShipTables[776]='1;7.04;499';m_arrShipTables[836]='1;6.14;499';m_arrShipTables[848]='1;3.97;499';m_arrShipTables[787]='1;9.6;499';m_arrShipTables[611]='0;2400;500';m_arrShipTables[777]='1;8.54;1000';m_arrShipTables[901]='1;3.65;1000';m_arrShipTables[753]='1;3.5;1000';m_arrShipTables[272]='1;5.5;1000';m_arrShipTables[788]='1;10.91;1000';m_arrShipTables[859]='1;7.01;1000';m_arrShipTables[698]='1;4.6;1000';m_arrShipTables[808]='1;12.5;1000';m_arrShipTables[849]='1;3.94;1000';m_arrShipTables[837]='1;5.95;1000';m_arrShipTables[676]='1;4.2;1000';m_arrShipTables[654]='1;2.6;1000';m_arrShipTables[825]='1;14.18;1000';m_arrShipTables[889]='1;3.5;1000';m_arrShipTables[295]='1;6.4;1000';m_arrShipTables[318]='1;7;1000';m_arrShipTables[687]='1;4.6;1000';m_arrShipTables[612]='0;5100;1500';var oSMShipMethods = null;oSMShipMethods = new SMShipMethods();SMShop.base.addMember("oSMShipMethods");function oSMShipMethods_windowOnLoad(args){var oShipSelector = null;oSMShipMethods = new SMShipMethods();if(document.getElementById("shipmethodselector")){oShipSelector = document.getElementById("shipmethodselector");oShipSelector.innerHTML = oSMShipMethods.htmlTable();oShipSelector.style.height = oShipSelector.offsetHeight;};};