<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="show(event)">
<mx:Script>
	<![CDATA[
		import mx.controls.Alert;
		import mx.binding.utils.BindingUtils;
		import mx.utils.URLUtil;
		import mx.managers.BrowserManager;
		import mx.managers.IBrowserManager;
	
		public var UName:String;
		public var CityId:String;
		
		private var bm:IBrowserManager;
		public function show(e:Event):void
		{
			bm=BrowserManager.getInstance();
			bm.init("?","Welcome");
			var o:Object=URLUtil.stringToObject(bm.fragment,"&");
			UName=o.UserName;
			CityId=o.CityId;
			
			//Alert.show(UName+","+CityId);
		}
		public function Booking():void
		{
			var url:URLRequest=new URLRequest("Booking.html#UserName="+UName+"&CityId="+CityId);
			navigateToURL(url,"_self");
		}	
		
		public function Photo():void
		{
			var url:URLRequest=new URLRequest("TakePhotoTour.html#UserName="+UName+"&CityId="+CityId);
			navigateToURL(url,"_self");
		}	
		
		public function Vedio():void
		{
			var url:URLRequest=new URLRequest("DisplayVideo.html#UserName="+UName+"&CityId="+CityId);
			navigateToURL(url,"_self");
		}	
	]]>
</mx:Script>
	<mx:LinkButton x="101" y="168" label="Direct Booking" click="Booking()"/>
	<mx:LinkButton x="101" y="215" label="Check Photos" click="Photo()" />
	<mx:LinkButton x="109" y="259" label="Check Vedio" click="Vedio()"/>
	
</mx:Application>
