var Storage = Storage || {};
	var lang = navigator.language || navigator.userLanguage;
	if (lang.toLowerCase().indexOf("de") + 1) {
		lang = "de";

	}
	if (lang.toLowerCase().indexOf("fr") + 1) {
		lang = "fr";
	}
	if (!(lang == "fr" || lang == "de")) {
		lang = "en";
	}
	//try{
	Storage.lang = defineLang(lang);
	Storage.langStr = lang;
	//alert(lang);
Storage.dataStorageKey = "FoodArena.DataListTest";
Storage.restaurantsList = [];
Storage.curRestaurantMenu = [];
Storage.curRestaurant = {};
Storage.CurDeliveryTime = {};
Storage.curDeliveryTimes = [];
Storage.curItem = {};
Storage.curItemExtras = [];
Storage.restarantListItem = document.createElement("div");
Storage.paymentMethod = document.createElement("div");
Storage.menuListItem = document.createElement("div");
Storage.additionsListItem = document.createElement("div");
Storage.menuListItem.attributes['data-role'] = 'collapsible';
Storage.restarantListItem.innerHTML = '<div class="tablo" align="left"><table id="rest" class="rest"><tr>		<td name="restaurantName" class="restaurantName" colspan="3"></td>	</tr>	<tr>		<td id="restaurantAddress" class="restaurantAddress" colspan="2">&nbsp;</td>		<td rowspan="3" class="logoTd" ><img name="restLogo" class="restLogo"/></td>	</tr>	<tr>		<td id="hoursOfDel" class="hoursOfDel" >' + Storage.lang.hours_of_delivery + '</td>		<td id="hoursOfDelVal" class="hoursOfDelVal">&nbsp;</td>	</tr>	<tr>		<td id="delTime" class="delTime">' + Storage.lang.delivery_time + '</td>		<td id="delTimeVal" class="delTimeVal">&nbsp;</td>	</tr>	<tr>		<td id="delCharge" class="delCharge">' + Storage.lang.delivery_charge + '</td>		<td id="delChargeVal" class="delChargeVal">&nbsp;</td>		<td rowspan="3">		<div data-role="button"><a href="#mail_to">' + Storage.lang.order + '</a></div></td>	</tr>	<tr>		<td id="minDelCharge" class="minDelCharge">min.</td>		<td id="minDelChargeVal" class="minDelChargeVal"></td>	<tr>		<td name="acceptedPaymentMethods" class="acceptedPaymentMethods" colspan="2"></td>	</tr></tr>	</table>	</div>';
Storage.paymentMethod.innerHTML = '<table cellspacing="0" cellpadiing="0" border="0"><tbody><tr><td><img src="images/yes.png" style="height: 10px;"></td><td style="font-size: 7px;"><div>CASH</div></td></tr></tbody></table>';
Storage.menuListItem.innerHTML = '<h3></h3>';
Storage.additionsListItem.innerHTML = ' <fieldset data-role="controlgroup"><input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" /><label for="checkbox-1"><table style="width:100%; font-weight: normal !important; font-size:70%"><tr><td width="70%"><span>I agree</span></td><td width="50%"><span class="floatRight">ololo</span></td></tr></table></label></fieldset>'
Storage.curOrder = new Order();
Storage.register = false;
Storage.paused = false;
Storage.result = true;
Storage.curUserId = 0;
FoodArena.dataContext.init('dataStorageKey');
Storage.curUserData = FoodArena.dataContext.getUserData()[0];
Storage.addresses = [];
Storage.block = false;
Storage.edditing = false;
Storage.itemsChecked = 0;
Storage.menu = document.getElementById('menu');
Storage.merchantId = 1100001516;
//1000011011;
Storage.refno = 0;
Storage.currency = "CHF";
Storage.amount = 1000;
Storage.paymentType = 0//0=cash, 1=online;
Storage.voucher = null;
