/***************************/
//@Author: Adrian "yEnS" Mato Gondelle
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!
/***************************/

//SETTING UP OUR POPUP
//0 means disabled; 1 means enabled;
var popupStatus = 0;

//loading popup with jQuery magic!
function loadPopup() {
    //loads popup only if it is disabled
    if (popupStatus == 0) {
        $("#backgroundPopup").css({
            "opacity": "0.7"
        });
        $("#backgroundPopup").fadeIn("slow");
        $("#popupContact").fadeIn("slow");
        popupStatus = 1;
    }
}

function loadMediaPopup() {
    //loads popup only if it is disabled

/*
    alert( $("#popupContact div[class='media'] object"));                    */


    if (popupStatus == 0) {
        $("#backgroundPopup").css({
            "opacity": "0.7"
        });
        $("#backgroundPopup").fadeIn("slow");
        $("#popupContact").fadeIn("slow");
        popupStatus = 1;
    }

       $("#hgvideo div[class='media']").remove();


}



function loadMedia2Popup() {
    //loads popup only if it is disabled

/*
    alert( $("#popupContact div[class='media'] object"));                    */


    if (popupStatus == 0) {
        $("#backgroundPopup").css({
            "opacity": "0.7"
        });
        $("#backgroundPopup").fadeIn("slow");
        $("#popupContact").fadeIn("slow");
        popupStatus = 1;
    }

       $("#video2play div[class='media']").remove();
     $("#video2playIE div[class='media']").remove();


}

//disabling popup with jQuery magic!
function disablePopup() {
    //disables popup only if it is enabled
    if (popupStatus == 1) {
        $("#backgroundPopup").fadeOut("slow");
        $("#popupContact").fadeOut("slow");
        popupStatus = 0;



        $("div[class='media']").remove();

        $("#hgvideo").html("<a class='media'></a>");
        $("#video2playIE").html("<div id='video2playIE' style='display:none'></div>");
        $("#video1playIE").html("<div id='video1playIE' style='display:none'></div>");
      //  $("#video2play").html("<a class='mediavideo2play'><embed width='576' height='324' src='http://media.nbcnewyork.com/assets/dev-thep-pdk/web/pdk/swf/flvPlayer.swf?pid=_YUX0QdrP6jgC5wrEj71qrbfGsYm2fXD' flashvars='v=http%3A%2F%2Fwww.nbcnewyork.com%2Fi%2Fembed_new%2F%3Fcid%3D135336553&path=%2Fhttp://www.nbcnewyork.com/blogs/open-house/?tag=%22designer+living%22'allowFullScreen='true' AllowScriptAccess='always' /></a>");

        if (jQuery.browser.msie) {
            history.go(0);
        }

    }
}

//centering popup
function centerPopup() {
    //request data for centering
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = $("#popupContact").height();
    var popupWidth = $("#popupContact").width();
	//centering
    $("#popupContact").css({
        "position": "absolute",
        "top": 15,
        "left": 37
    });
	//only need force for IE6

    $("#backgroundPopup").css({
        "height": windowHeight
    });




}

function centerPopupVideo() {
    //request data for centering
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = $("#popupContact").height();
    var popupWidth = $("#popupContact").width();
	//centering
    $("#popupContact").css({
        "position": "absolute",
        "top": 47,
        "left": 205
    });
	//only need force for IE6

    $("#backgroundPopup").css({
        "height": windowHeight
    });




}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function() {

    //LOADING POPUP
    //Click the button event!
    /*$("#button").click(function(){
         //centering with css
         centerPopup();
         //load popup
         loadPopup();
     });*/


    /*  $("#button").click(function(){
         //centering with css
         centerPopup();
         //load popup
         loadPopup();
     });


    hgtv*/

    //CLOSING POPUP
    //Click the x event!
    $("#popupContactClose").click(function() {
        disablePopup();





     //  $("div[class='media']").remove();


    });
	//Click out event!
    $("#backgroundPopup").click(function() {
        disablePopup();
    });
	//Press Escape event!
    $(document).keypress(function(e) {
        if (e.keyCode == 27 && popupStatus == 1) {
            disablePopup();
        }
    });

});


function lux() {

    //picshide();
    /*  alert("test");
        alert($('#luxe').html())
    */
    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#luxe').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function nyspacesjan() {

    //picshide();
    /*  alert("test");
        alert($('#luxe').html())
    */
    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#nyspacesjan').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function homeconcepts() {

    //picshide();
    /*  alert("test");
        alert($('#luxe').html())
    */
    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#homeconcepts').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function house() {

    //picshide();
    /*alert("test");
    alert($('#housegarden').html())*/

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#housegarden').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();


    $("#popupContactClose img").css("position", "relative");

    $("#popupContact").css("height", "560px");
    $("#popupContact").css("width", "720px");



   /* $("#popupContactClose img").css({
        "position": "relative",
        "top": -20,
        "left": 22
    });*/
}


function decor() {

    //picshide();
    /* alert("test");
    alert($('#decor').html())*/

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#decor').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function spaces() {

    //picshide();
    /*
        alert("test");
        alert($('#spaces').html())
    */

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#spaces').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function homes() {

    //picshide();
    /*
        alert("test");
        alert($('#homes').html())
    */

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#homes').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();
    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function digest() {

    //picshide();
    /*
        alert("test");
        alert($('#luxe').html())
    */

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
    $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#digest').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}


function interior() {

    //picshide();
    /*
        alert("test");
        alert($('#interior').html())
    */

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
     $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#interior').html());

                //centering with css
    centerPopup();
                //load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "420px");

       $('#popupContact object').css("height", "560px");
       $('#popupContact object').css("width", "420px");



}


/*function interior() {

    //picshide();
    *//*
        alert("test");
        alert($('#interior').html())
    *//*

    $('#popupContact').css("display", "block");
    $('#popupContact div').remove();
     $('#popupContact embed').remove();
    $('#popupContact object').remove();
    $('#popupContact').append($('#interior').html());

		//centering with css
    centerPopup();
		//load popup
    loadPopup();

    $("#popupContactClose img").css("position", "relative");

       $("#popupContact").css("height", "560px");
       $("#popupContact").css("width", "720px");

}*/


function hgtvShow() {

    //picshide();
    /*
        alert("test");
        alert($('#interior').html())
    */



    $('.media').media({
        width:     400,
        height:    350,
        autoplay:  true,
        src:       'http://www.mrosenbergassociates.com/video/hdtv_avi_WMV V9_001_1.mp4'



    });


    $('#popupContact').css("display", "block");

    $('#popupContact').css("height", "350px");
    $('#popupContact').css("width", "400px");

    $('#popupContact div').remove();
     $('#popupContact object').remove();
    $('#popupContact').append($('#hgvideo').html());

		//centering with css
    centerPopupVideo();
		//load popup
    loadMediaPopup();


    if (jQuery.browser.msie) {

        $('#popupContact').css("width","400px")
        $('#popupContact').css("height","350px")
         $("#popupContact div[class='media']").css("width","400px")
        $("#popupContact embed").remove();

     // alert(parseInt(jQuery.browser.version));
    }


   /* alert($("#popupContact div[class='media']").html());
       $("#popupContact div[class='media'] object").css("style","width: 420px; height: 350px; top: 0px; left: 0px;");
   */ //$("#popupContact div[class='media'] object").attribute("height","400px");


}


function video2Show() {

    if (jQuery.browser.msie) {


    $('#popupContact').css("display", "block");
       $('#popupContact div').remove();
        $('#popupContact embed').remove();
       $('#popupContact object').remove();
       $('#popupContact').append($('<div><embed width="576" height="324" src="http://media.nbcchicago.com/assets/dev-thep-pdk/web/pdk/swf/flvPlayer.swf?pid=OLGl4D_V3mAfnktdlkBXNtwdQ4_vF1f5" flashvars="v=http%3A%2F%2Fwww.nbcchicago.com%2Fi%2Fembed_new%2F%3Fcid%3D124438709&path=%2F/video" allowFullScreen="true" AllowScriptAccess="always" ></embed></div>').html());

                   //centering with css
       centerPopup();
                   //load popup
       loadPopup();

       $("#popupContactClose img").css("position", "relative");

          $("#popupContact").css("height", "310px");
          $("#popupContact").css("width", "570px");

          $('#popupContact object').css("height", "310px");
          $('#popupContact object').css("width", "570px");

    }else{
        $('#popupContact').css("display", "block");
            $('#popupContact div').remove();
             $('#popupContact embed').remove();
            $('#popupContact object').remove();
            $('#popupContact').append($('<div><object width="625" height="352" type="application/x-shockwave-flash" data="http://stage.www.nbcchicago.com/assets/dev-thep-pdk/web/pdk/swf/flvPlayer.swf" id="_featuredPlayer0PdkSwfObject" name="_featuredPlayer0PdkSwfObject" allowfullscreen="true"><param name="scale" value="noscale"><param name="flashvars" value="id=featuredPlayer0&amp;skinurl=http%3A%2F%2Fmedia.nbcchicago.com%2Fdesignvideo%2Fnbc_443_skinGlass.swf&amp;usebootloader=true&amp;autoplay=true&amp;backgroundcolor=0x131313&amp;controlbackgroundcolor=0x131313&amp;controlcolor=0xBEBEBE&amp;controlframecolor=0x545759&amp;controlhovercolor=0xBEBEBE&amp;controlselectedcolor=0x00CCFF&amp;framecolor=0x545759&amp;loadprogresscolor=0x5D9070&amp;pagebackgroundcolor=0x131313&amp;playprogresscolor=0x00CCFF&amp;scrubtrackcolor=0xBEBEBE&amp;scrubbercolor=0xBEBEBE&amp;scrubberframecolor=0x00CCFF&amp;textbackgroundcolor=0x383838&amp;textcolor=0xBEBEBE&amp;allowfullscreen=true&amp;supportedmedia=mpeg4%2Cf4m%2Cflv%2Cm3u%2Cogg%2Cwebm%2Cmpeg%2Cqt%2C3gpp%2Cism%2Cwm%2C3gpp2%2Caac%2Casx%2Cavi%2Cmove%2Cmp3&amp;loglevel=warn&amp;plugin0=type%3Dtracking%7CURL%3Dhttp%3A%2F%2Fmedia.nbcchicago.com%2Fdesignvideo%2FomnitureMedia443.swf%7Caccount%3Dnbculimdivisionprod%2Cnbculimchicagoprod%7CvisitorNamespace%3Dnbcuniversal%7Cdc%3D122%7Chost%3Doimg.nbcuni.com%7CsecureHost%3Dosimg.nbcuni.com%7CtrackVars%3DpageName%2Cchannel%2Cprop2%2Cprop4%2Cprop3%2Cprop6%2Cprop22%2CeVar36%2Cprop37%2CeVar39%2CeVar40%2Cprop48%2CeVar48%2Cprop49%7CpageName%3DDesigner%2520Living%253A%2520Luxurious%2520Living%2520with%2520Michael%2520Rosenberg%7Cchannel%3Dblogs%7Cprop2%3DVideoPlayer%7Cprop3%3DVideo%7Cprop4%3Dblogs%7Cprop6%3Dhttp%3A%2F%2Fwww.nbcchicago.com%2Fblogs%2Fopen-house%2FOHNAT_5119_C_DL_Michael_Rosenberg_Off_Luxe_Mag_web_New_York-124438709.html%7Cprop22%3D%7Cprop37%3DTK%7CeVar39%3DVideoPlayer%7CeVar40%3DDesigner%2520Living%253A%2520Luxurious%2520Living%2520with%2520Michael%2520Rosenberg%7Cprop48%3Dfullplayer%7CeVar48%3Dfullplayer%7Cprop49%3DDesigner%2520Living%253A%2520Luxurious%2520Living%2520with%2520Michael%2520Rosenberg%7Cfrequency%3D25%2525&amp;plugin1=type%3Dadcomponent%7CURL%3Dhttp%3A%2F%2Fobjects.tremormedia.com%2Fembed%2Fswf%2Ftpacudeoplugin46.swf%7CprogId%3D4b69cf866259c%7CvideoDescriptionUrl%3Dhttp%3A%2F%2Fwww.nbcchicago.com%7Csite%3Dchi%7Czone%3DLXTVN_undefined_undefined%7Csect%3Dundefined%7Csub%3Dundefined%7Cpid%3DLXTVN%7Ccontentid%3D124438709%7Ccontentgroup%3DUncategorized%7Chascompanion%3Dcompanion%7Ccompanionexists%3Dtrue&amp;plugin2=type%3DFormat%7CURL%3Dhttp%3A%2F%2Fwww.nbcchicago.com%2Fassets%2Fdev-thep-pdk%2Fweb%2Fpdk%2Fswf%2FakamaiHD.swf%7Cpriority%3D4%7Chosts%3D-f.akamaihd.net&amp;playerurl=http%3A%2F%2Fwww.nbcchicago.com%2Fblogs%2Fopen-house%2FOHNAT_5119_C_DL_Michael_Rosenberg_Off_Luxe_Mag_web_New_York-124438709.html&amp;embeddedplayerhtml=%3Cembed+width%3D%22576%22+height%3D%22324%22+src%3D%22http%3A%2F%2Fmedia.nbcchicago.com%2Fassets%2Fdev-thep-pdk%2Fweb%2Fpdk%2Fswf%2FflvPlayer.swf%3Fpid%3D%7BreleasePID%7D%22+flashvars%3D%22v%3Dhttp%253A%252F%252Fwww.nbcchicago.com%252Fi%252Fembed_new%252F%253Fcid%253D124438709%26path%3D%252F%2Fvideo%22allowFullScreen%3D%22true%22+AllowScriptAccess%3D%22always%22+%2F%3E+%3Cp+style%3D%22font-size%3Asmall%22%3EView+more+videos+at%3A+%3Ca+href%3D%22http%3A%2F%2Fnbcchicago.com%2F%3F__source%3DembedCode%22%3Ehttp%3A%2F%2Fnbcchicago.com%3C%2Fa%3E.%3C%2Fp%3E&amp;layouturl=http%3A%2F%2Fwww.nbcchicago.com%2Ftemplates%2Fnbc_metaLayout_glass&amp;usedefaultplayoverlay=false&amp;releaseurl=http%3A%2F%2Flink.theplatform.com%2Fs%2FXw6mu%2FOLGl4D_V3mAfnktdlkBXNtwdQ4_vF1f5%3Fmbr%3Dtrue&amp;width=625&amp;height=352"><param name="allowscriptaccess" value="always"><param name="menu" value="true"><param name="salign" value="tl"><param name="wmode" value="opaque"><param name="allowfullscreen" value="true"><param name="bgcolor" value="0x131313"></object></div>').html());

                        //centering with css
            centerPopup();
                        //load popup
            loadPopup();

            $("#popupContactClose img").css("position", "relative");

               $("#popupContact").css("height", "360px");
               $("#popupContact").css("width", "570px");

               $('#popupContact object').css("height", "360px");
               $('#popupContact object').css("width", "570px");

    }

}


function video1Show() {

  if (jQuery.browser.msie) {
      $('#popupContact').css("display", "block");
             $('#popupContact div').remove();
              $('#popupContact embed').remove();
             $('#popupContact object').remove();
             $('#popupContact').append($('<div><embed width="576" height="324" src="http://media.nbcnewyork.com/assets/dev-thep-pdk/web/pdk/swf/flvPlayer.swf?pid=_YUX0QdrP6jgC5wrEj71qrbfGsYm2fXD" flashvars="v=http%3A%2F%2Fwww.nbcnewyork.com%2Fi%2Fembed_new%2F%3Fcid%3D135336553&path=%2Fhttp://www.nbcnewyork.com/blogs/open-house/?tag=%22designer+living%22" allowFullScreen="true" AllowScriptAccess="always"></embed></div>').html());

                         //centering with css
             centerPopup();
                         //load popup
             loadPopup();

             $("#popupContactClose img").css("position", "relative");

                $("#popupContact").css("height", "310px");
                $("#popupContact").css("width", "570px");

                $('#popupContact object').css("height", "310px");
                $('#popupContact object').css("width", "570px");


  }else{

    $('#popupContact').css("display", "block");
       $('#popupContact div').remove();
        $('#popupContact embed').remove();
       $('#popupContact object').remove();
       $('#popupContact').append($('<div><object width="620" height="350" type="application/x-shockwave-flash" data="http://www.nbcnewyork.com/assets/dev-thep-pdk/web/pdk/swf/flvPlayer.swf" id="_videoPlayer1PdkSwfObject" name="_videoPlayer1PdkSwfObject" allowfullscreen="true"><param name="scale" value="noscale"><param name="flashvars" value="id=videoPlayer1&amp;skinurl=http%3A%2F%2Fmedia.nbcnewyork.com%2Fdesignvideo%2Fnbc_443_skinGlass.swf&amp;usebootloader=true&amp;autoplay=true&amp;backgroundcolor=0x131313&amp;controlbackgroundcolor=0x131313&amp;controlcolor=0xBEBEBE&amp;controlframecolor=0x545759&amp;controlhovercolor=0xBEBEBE&amp;controlselectedcolor=0x00CCFF&amp;framecolor=0x545759&amp;loadprogresscolor=0x5D9070&amp;pagebackgroundcolor=0x131313&amp;playprogresscolor=0x00CCFF&amp;scrubtrackcolor=0xBEBEBE&amp;scrubbercolor=0xBEBEBE&amp;scrubberframecolor=0x00CCFF&amp;textbackgroundcolor=0x383838&amp;textcolor=0xFFFFFF&amp;allowfullscreen=true&amp;supportedmedia=mpeg4%2Cf4m%2Cflv%2Cm3u%2Cogg%2Cwebm%2Cmpeg%2Cqt%2C3gpp%2Cism%2Cwm%2C3gpp2%2Caac%2Casx%2Cavi%2Cmove%2Cmp3&amp;loglevel=warn&amp;showadcountdown=true&amp;plugin0=type%3Dtracking%7CURL%3Dhttp%3A%2F%2Fmedia.nbcnewyork.com%2Fdesignvideo%2FomnitureMedia443.swf%7Caccount%3Dnbculimdivisionprod%2Cnbculimnewyorkprod%7CvisitorNamespace%3Dnbcuniversal%7Cdc%3D122%7Chost%3Doimg.nbcuni.com%7CsecureHost%3Dosimg.nbcuni.com%7CtrackVars%3DpageName%2Cchannel%2Cprop2%2Cprop4%2Cprop3%2Cprop6%2Cprop10%2Cprop19%2CeVar36%2Cprop37%2CeVar39%2CeVar40%2Cprop48%2CeVar48%2Cprop49%7CpageName%3D%5BLXTVN%5D+Designer+Living%3A+Design+with+Michael+Rosenberg%7Cchannel%3Dblogs%7Cprop2%3DVideoPlayer%7Cprop3%3DVideo%7Cprop4%3Dopen-house%7Cprop6%3Dhttp%3A%2F%2Fwww.nbcnewyork.com%2Fblogs%2Fopen-house%2F%3Ftag%3D%2522designer%2Bliving%2522%7Cprop10%3DNBC+New+York%7Cprop19%3Dopen-house%7Cprop37%3DTK%7CeVar39%3DVideoPlayer%7CeVar40%3D%5BLXTVN%5D+Designer+Living%3A+Design+with+Michael+Rosenberg%7Cprop48%3Dinlineplayer%7CeVar48%3Dinlineplayer%7Cprop49%3D%5BLXTVN%5D+Designer+Living%3A+Design+with+Michael+Rosenberg%7Cfrequency%3D25%2525&amp;plugin1=type%3Dadcomponent%7CURL%3Dhttp%3A%2F%2Fobjects.tremormedia.com%2Fembed%2Fswf%2Ftpacudeoplugin46.swf%7CprogId%3D4b69cf866259c%7CvideoDescriptionUrl%3Dhttp%3A%2F%2Fwww.nbcnewyork.com%7Csite%3Dny%7Czone%3D135336553_undefined_blogs_open-house%7Csect%3Dblogs%7Csub%3Dopen-house%7Cpid%3Dundefined%7Ccontentid%3D135336553%7Ccontentgroup%3DUncategorized%7Chascompanion%3Dnocompanion%7Ccompanionexists%3Dfalse&amp;plugin2=type%3DFormat%7CURL%3Dhttp%3A%2F%2Fwww.nbcnewyork.com%2Fpdk442%2Fpdk%2Fswf%2FakamaiHD.swf%7Cpriority%3D4%7Chosts%3D-f.akamaihd.net&amp;playerurl=http%3A%2F%2Fwww.nbcnewyork.com%2Fvideo%2F%23!%2Fblogs%2Fopen-house%2FDesigner-Living_-Design-with-Michael-Rosenberg%2F135336553&amp;embeddedplayerhtml=%3Cembed+width%3D%22576%22+height%3D%22324%22+src%3D%22http%3A%2F%2Fmedia.nbcnewyork.com%2Fassets%2Fdev-thep-pdk%2Fweb%2Fpdk%2Fswf%2FflvPlayer.swf%3Fpid%3D%7BreleasePID%7D%22+flashvars%3D%22v%3Dhttp%253A%252F%252Fwww.nbcnewyork.com%252Fi%252Fembed_new%252F%253Fcid%253D135336553%26path%3D%252Fhttp%3A%2F%2Fwww.nbcnewyork.com%2Fblogs%2Fopen-house%2F%3Ftag%3D%2522designer%2Bliving%2522%22allowFullScreen%3D%22true%22+AllowScriptAccess%3D%22always%22+%2F%3E+%3Cp+style%3D%22font-size%3Asmall%22%3EView+more+videos+at%3A+%3Ca+href%3D%22http%3A%2F%2Fnbcnewyork.com%2F%3F__source%3DembedCode%22%3Ehttp%3A%2F%2Fnbcnewyork.com%3C%2Fa%3E.%3C%2Fp%3E&amp;wmode=opaque&amp;videoscalingmethod=fit&amp;usedefaultplayoverlay=false&amp;layouturl=http%3A%2F%2Fwww.nbcnewyork.com%2Ftemplates%2Fnbc_metaLayout_glass&amp;releaseurl=http%3A%2F%2Flink.theplatform.com%2Fs%2FXw6mu%2F_YUX0QdrP6jgC5wrEj71qrbfGsYm2fXD%3Fmbr%3Dtrue&amp;width=620&amp;height=350"><param name="allowscriptaccess" value="always"><param name="menu" value="true"><param name="salign" value="tl"><param name="wmode" value="opaque"><param name="allowfullscreen" value="true"><param name="bgcolor" value="0x131313"></object></div>').html());

                   //centering with css
       centerPopup();
                   //load popup
       loadPopup();

       $("#popupContactClose img").css("position", "relative");

          $("#popupContact").css("height", "360px");
          $("#popupContact").css("width", "570px");

          $('#popupContact object').css("height", "360px");
          $('#popupContact object').css("width", "570px");

  }

}













