﻿    $(document).ready(function(){
        $("#MyLinksContents1").html($("#MyLinksContentSource").html());
        $("#MyLinksContents2").html($("#MyLinksContentSource").html());
        
        $("#a").html($("#topnav1").html());
        $("#vc").html($("#topnav2").html());
        $("#vd").html($("#topnav3").html());
        $("#ve").html($("#topnav4").html());
    
        $('#main_nav').superfish({ 
        animation: {height:'show'},
        delay:     1000
        }).find('ul').bgIframe();         

        setTimeout(SetDivHeight,1200);

    })
    
    function SetDivHeight()
    {
        if ($("#at_left").height()<$("#at_right").height()){
            $("#at_left").height(($("#at_right").height()+100+"px"));
        }
    }
    
    function SubmitForms()
    {
        if ($("#qs_1050").val()=="Address") $("#qs_1050").val("");
        if ($("#qs_1080").val()=="Zip") $("#qs_1080").val("");
        if ($("#qs_0110").val()=="MLS Number") $("#qs_0110").val("");
        if ($("#qa_0535").val()=="Agent First or Last Name") $("#qa_0535").val("");
        
        var sQueryString = $("#PropertyQuickSearch").serialize();
        window.location.href = "/PropertyResult.aspx?"+sQueryString;
    }
    function SetShowingTime(siteid,source,BoardId, MlsNumber, Broker){
    var oImgShowingTime = new Image(10,10);
    alert(oImgShowingTime.src);
    oImgShowingTime.src = "http://links.showingtime.com/showingalert/images/wbShowingAlert_dtl.gif?SITEID="+ siteid +"&broker=" + Broker  + "&MLSID=" + BoardId + "&listingid=" + MlsNumber + "&source=" + Source + "";
}
