Ext.onReady(function(){
    ShowMapWindow = function(){
        var a = new Ext.Panel({
            //bodyBorder:false,
            border: false,
            id: 'MapHolder',
            hideBorders: true,
            modal: true,
            closeAction: "hide",
            items: [{
                tag: "div",
                html: "Kindly note that blocks are color coded, i.e.  <span style='background-color:#d3d3d3; color:#000;' >&nbsp;gray </span>  = available & clickable; <span style='background-color:#E08088; color:#000;' >&nbsp;red </span> = booked & not clickable; <span style=' background-color:#FAF13E; color:#000' >&nbsp;yellow </span>  = tentative & not clickable; <br><br>"
            }, new Ext.ux.Swiff(mapSwf + "?" + new Date(), {
                width: 740,
                height: 434,
                vars: {
                    image: "/FLOORPLAN_STANDS.jpg",
                    FloorID: "A2DCONPARCO",
                    ScrollSpeed: 5,
                    ReturnPage: "SomePage.php",
                    Receiver: "http://localhost/Anoop/addRecord.php"
                },
                params: {
                    wmode: "transparent",
					allowfullscreen: 'true'
                }
            })],
            width: 740,
            maximizable: true,
            height: 490,
            autoScroll: true
        });
		if(Ext.isLinux)
		Ext.MessageBox.alert("Warning","Since you are using Linux OS, you may find this page to act as not required. <br><br>This is due to ongoing development by Adobe on Flash Player")
        return a
    };
    //ShowMapWindow()
    //Ext.get(contactForm.options.renderTo).setVisible(false)
    //Ext.get(contactForm.options.renderTo).dom.hide()
    //Ext.get(contactForm.options.renderTo).dom.hide()
});

ClientObject = function(MapIDAndMapTitle){
	var map = MapIDAndMapTitle.split(",");
	var mapTitle = map[1]
	var mapId = map[0]
    Ext.get(contactForm.options.renderTo).setVisible(true)
    Ext.getCmp('SelectedProductsField').setValue(mapTitle) // mapTitle
	Ext.getCmp('SelectedProducts').setValue(mapId)
	Ext.MessageBox.alert("Block Selected","Block "+mapTitle+" has been selected.")
};

