 function PromptMe() {
                // some application vars


                // the sole public method to manipulate this application
                this.promtForNew = function(a) {
                    // do the stuff that changes the state

                    // Set the new history hash. This value must be a string, so serializtion is up to you.
                    // JSON works nicely, if you need something quick: http://www.json.org
                    // When a new entry is made, unFocus.History will notify the historyListener
                    // method of the change, even on the first call. For this demo app we can
                    // rely on the historyListener method to update the state, and view.
                    unFocus.History.addHistory(a);
                };

                // This is the method that will recieve notifications from the History Keeper,
                // which will then update the state of the app.
                // :NOTE: This will be called when a new entry is added.
                // :NOTE: This will be called if another app on the page sets a history,
                //        so you will need to watch out for this, if you have more than
                //        one script using the history keeper, by doing some kind of
                //        check to make sure that the new hash belongs to this app.
                //        I wouldn't expect this to be a problem all that frequently.
                this.historyListener = function(historyHash) {
                    // update the stateVar
                    stateVar = historyHash;
                    // update display content
                    //displayDiv.innerHTML = "Current History: " + historyHash;
                    // update document title
                    if (historyHash!= "" )
                    {//alert (stateVar.toQueryParams().po);


                        //document.title = "Saveltrade Shop - : " + stateVar.toQueryParams().c;
                        //alert (stateVar.toQueryParams().po);
                 
                  
     $(stateVar).onclick();
                      // updatediv(url, containerid)

                       
                    }}
                // subscribe to unFocus.History
                 unFocus.History.addEventListener('historyChange', this.historyListener);

                // Check for an initial value (deep link).
                // In this demo app, the historyListener can handle the task.
                this.historyListener(unFocus.History.getCurrent());
            };
         

