﻿/// <reference path="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" />
var _qslocation;
var _servicetypes;

$(function () {
    $("#amenities").multiSelect();
    $(".addtoshortlist").click(function () {
        ShowAjaxPopupWithCallback("Add to Shortlist", this.href, 430, 435, true, updateShortlist);
        return false;
    });
    if (querySt("page").indexOf("map") != -1) {
        $create(bizSpace.BizMap, null, null, null, $get("bizMap"));
    }
});

function querySt(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
            return ft[1];
        }
    }
    return "";
}


function updateShortlist(event, ui) {
    document.getElementById("ifrShortlist").contentWindow.location.reload();
}
