﻿var AjaxResources = AjaxResources_DE;

function ChangeAjaxResources(locale) {
	var s = new String(locale);
	s = s.toLocaleLowerCase();
	
	if (s.length > 2 && s != "fr-be")
		s = s.substring(0, 2);
		
	if (s == "de")
		AjaxResources = AjaxResources_DE;
	else if (s == "at")
		AjaxResources = AjaxResources_DE;
	else if (s == "fr")
		AjaxResources = AjaxResources_FR;
	else if (s == "nl")
		AjaxResources = AjaxResources_NL;
	else if (s == "es")
		AjaxResources = AjaxResources_ES;
	else if (s == "fr-be")
		AjaxResources = AjaxResources_fr_BE;
	else if (s == "uk" || s == "gb" || s == "en")
		AjaxResources = AjaxResources_EN;		
	else 
		AjaxResources = AjaxResources_DE;
}

var AjaxResources_DE = {
	"Basket": {
		"InstrumentColumnCaption":				"Gerätebezeichnung",
		"UnitPriceColumnCaption":				"Einzelpreis",
		"TotalAmountColumnCaption":				"Gesamtpreis",
		"AcceptButtonText":						"übernehmen",
		"ShippingAndPackingCosts":				"Verpackungs- und Versandkosten",
		"TotalNetAmountCaption":				"Summe Netto",
		"SalesTaxCaption":						"Mehrwertsteuer",
		"TotalGrossAmountCaption":				"Gesamt",
		"NoSelection":							"Keine Auswahl",
		"QuantityColumnCaption":				"Anzahl"
	}, 
	"BasketOverview": {
		"OneArticle":							"Artikel",
		"Articles":								"Artikel",
		"NoSelection":							"Keine Auswahl"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"Bestellnummer:",
		"QuantityColumnCaption":				"Stückzahl:",
		"AcceptButtonText":						"übernehmen",
		"BasePriceColumnCaption":				"Grundpreis:",
		"TotalAmountColumnCaption":				"Gesamtpreis:",
		"PleaseWaitInfo":						"Bitte warten..."
	}
}; 

var AjaxResources_FR = {
	"Basket": {
		"InstrumentColumnCaption":				"Description",
		"UnitPriceColumnCaption":				"Prix unitaire",
		"TotalAmountColumnCaption":				"Prix total",
		"AcceptButtonText":						"Appliquer",
		"ShippingAndPackingCosts":				"Frais de port et emballage (France métropolitaine)",
		"TotalNetAmountCaption":				"Montant net",
		"SalesTaxCaption":						"TVA",
		"TotalGrossAmountCaption":				"Montant à payer",
		"NoSelection":							"Aucun choix",
		"QuantityColumnCaption":				"Quantité"
	}, 
	"BasketOverview": {
		"OneArticle":							"Article",
		"Articles":								"Articles",
		"NoSelection":							"vide"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"Référence :",
		"QuantityColumnCaption":				"Quantité :",
		"AcceptButtonText":						"Appliquer",
		"BasePriceColumnCaption":				"Prix de base :",
		"TotalAmountColumnCaption":				"Prix total :",
		"PleaseWaitInfo":						"Veuillez attendre..."
	}
}; 

var AjaxResources_fr_BE = {
	"Basket": {
		"InstrumentColumnCaption":				"Description",
		"UnitPriceColumnCaption":				"Prix unitaire",
		"TotalAmountColumnCaption":				"Prix total",
		"AcceptButtonText":						"Appliquer",
		"ShippingAndPackingCosts":				"Frais de port et emballage (Belgique et Luxembourg)",
		"TotalNetAmountCaption":				"Montant net",
		"SalesTaxCaption":						"TVA",
		"TotalGrossAmountCaption":				"Montant à payer",
		"NoSelection":							"Aucun choix",
		"QuantityColumnCaption":				"Quantité"
	}, 
	"BasketOverview": {
		"OneArticle":							"Article",
		"Articles":								"Articles",
		"NoSelection":							"vide"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"Référence :",
		"QuantityColumnCaption":				"Quantité :",
		"AcceptButtonText":						"Appliquer",
		"BasePriceColumnCaption":				"Prix de base :",
		"TotalAmountColumnCaption":				"Prix total :",
		"PleaseWaitInfo":						"Veuillez attendre..."
	}
}; 

var AjaxResources_NL = {
	"Basket": {
		"InstrumentColumnCaption":				"Instrumentbeschrijving",
		"UnitPriceColumnCaption":				"Stuksprijs",
		"TotalAmountColumnCaption":				"Totaalprijs",
		"AcceptButtonText":					"overnemen",
		"ShippingAndPackingCosts":				"Verzend- en verpakkingkosten",
		"TotalNetAmountCaption":				"Netto Som",
		"SalesTaxCaption":					"BTW",
		"TotalGrossAmountCaption":				"Totaal",
		"NoSelection":						"Geen keuze",
		"QuantityColumnCaption":				"Aantal"
	}, 
	"BasketOverview": {
		"OneArticle":						"Artikel",
		"Articles":							"Artikel",
		"NoSelection":						"Geen keuze"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"Bestelnummer:",
		"QuantityColumnCaption":				"Aantal:",
		"AcceptButtonText":					"overnemen",
		"BasePriceColumnCaption":				"Basisprijs:",
		"TotalAmountColumnCaption":				"Totaalprijs:",
		"PleaseWaitInfo":						"S.v.p. wachten..."
	}
};

var AjaxResources_ES = {
	"Basket": {
		"InstrumentColumnCaption":				"Nombre del instrumento",
		"UnitPriceColumnCaption":				"Precio por unidad",
		"TotalAmountColumnCaption":				"Importe total",
		"AcceptButtonText":						"Aceptar",
		"ShippingAndPackingCosts":				"Portes y Embalajes",
		"TotalNetAmountCaption":				"Suma total neta",
		"SalesTaxCaption":						"IVA",
		"TotalGrossAmountCaption":				"Total",
		"NoSelection":							"Sin selección",
		"QuantityColumnCaption":				"Número"
	}, 
	"BasketOverview": {
		"OneArticle":							"Artículo",
		"Articles":								"Artículos",
		"NoSelection":							"Sin selección"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"Número de pedido:",
		"QuantityColumnCaption":				"cantidad, número:",
		"AcceptButtonText":						"Cantidad",
		"BasePriceColumnCaption":				"Precio base",
		"TotalAmountColumnCaption":				"Importe total",
		"PleaseWaitInfo":						"Por favor espere ..."
	}
}; 

var AjaxResources_EN = {
	"Basket": {
		"InstrumentColumnCaption":				"Instrument",
		"UnitPriceColumnCaption":				"unit price",
		"TotalAmountColumnCaption":				"all round sum",
		"AcceptButtonText":						"accept",
		"ShippingAndPackingCosts":				"Shipping and handling cost",
		"TotalNetAmountCaption":				"net sum",
		"SalesTaxCaption":						"VAT",
		"TotalGrossAmountCaption":				"Total",
		"NoSelection":							"No selection",
		"QuantityColumnCaption":				"quantity"
	}, 
	"BasketOverview": {
		"OneArticle":							"item",
		"Articles":								"item",
		"NoSelection":							"No selection"
	},
	"Configurator": {
		"OrderCodeColumnCaption":				"order number:",
		"QuantityColumnCaption":				"quantity:",
		"AcceptButtonText":						"accept",
		"BasePriceColumnCaption":				"base price:",
		"TotalAmountColumnCaption":				"total:",
		"PleaseWaitInfo":						"please wait..."
	}
}; 

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

