/*
 * UI.js
 */



function openSiteMap()
{
    //mapWin = window.open("sitemapbig.aspx","mywindow","address=no,location=0,status=1,scrollbars=1,resizable=1,width=1200,height=1940")
    mapWin = window.open("sitemapbig.aspx","mywindow","address=no,location=0,status=1,scrollbars=1,resizable=1,width=800,height=740")
    mapWin.focus()
}
function openBigHouses(inValue)
{
    mapWin = window.open("bighouses.aspx?page="+inValue,"mywindow","address=no,location=0,status=1,scrollbars=0,resizable=1,width=910,height=700")
    mapWin.focus()
}
function openReg()
{
window.open('reg.aspx', 'mywindow', 'height=385,width=447', false);
}
function openMap()
{
    mapWin = window.open("map.pdf","mywindow","address=no,location=0,status=1,scrollbars=0,resizable=1")
    mapWin.focus()
}
function openFloorPlan(fp)
{
    sURL = "Floorplans.aspx?page=" + fp
    fpWin = window.open(sURL,"mywindow","address=no,location=0,status=1,scrollbars=1,resizable=1,width=900,height=800")
    fpWin.focus()

}
function openVirtualTour(vt)
{
    
    fpWin = window.open(vt,"mywindow","address=no,location=0,status=1,scrollbars=0,resizable=1,width=625,height=665")
    fpWin.focus()

}
function openThumbs(inValue,inValue2)
{
        if (inValue2 == "portrait")
        thumbWin = window.open("bigpics.aspx?page="+inValue,"mywindow","address=no,location=0,status=1,scrollbars=0,resizable=1,width=635,height=931")
        else
        thumbWin = window.open("bigpics.aspx?page="+inValue,"mywindow","address=no,location=0,status=1,scrollbars=0,resizable=1,width=635,height=424")
}
function showCinThumb(inValue)
{
    MM_swapImage(inValue)
}
function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage(inValue) {
    var cinema=MM_findObj("ctl00_ContentPlaceHolder1_bigpic")
    cinema.src = "/images/cinema/"+inValue
}


