function getGeoLocation(success, error)
{
    if(navigator.geolocation){
        browserSupportFlag = true;
        navigator.geolocation.getCurrentPosition(success, error);
    //            function(position){
    //                success(position);
    //            },
    //            function(){
    //                error();
    //            }
    //            );
    }else{
        alert("not supported??")
        error();
    }
}
       
var openDialogPane = function(url)
{   
    $('#dialogPane').remove();
    $('body').attr("biz:scrollTop", "" + $(window).scrollTop());
    $('body').css('overflow', 'hidden');
    var dialogPane = $("<div id='dialogPane'><div></div></div>");
    $("body").append(dialogPane);
    dialogPane.find('div:first-child').load(url);
};
    
var closeDialogPane = function()
{
    $('#dialogPane').remove();
    $('body').css('overflow', 'auto');  
    window.scrollTo(0, $('body').attr("biz:scrollTop"));
};

//$(function () {
//    var hashVal = window.location.hash.substring(1);
//    if (hashVal.length > 0)
//    {
//        if (hashVal.substring(0,2) == '_=')
//        {
//            window.location.hash = "#";
//        }
//        else if ( window.location.hash.substring(0, 2) == '#/'  )
//        {
//            window.location = hashVal;
//        }
//    }
//})

var bizloop = {
    revalidateLayout: function() {}
};
