
init.waitForSingleJsFile('component.libsJs_swfObject1x5.js', function(){content['siteBuilding'] = Class.create({

  THREAD_ID: null,
  EXEC_UID: null,
  arrParams:  null,

  initialize: function(arrInstVars, arrParams)
  {
    this.THREAD_ID = arrInstVars.THREAD_ID;
    this.EXEC_UID  = arrInstVars.EXEC_UID;
    this.arrParams = arrParams;
    
    this.arrImages = $$('div.content a[_name="photos"]');
    this.arrImages.each(function(el)
    {
        el.observe('click', this._showLargePhoto.bind(this))
    }.bind(this));
    
    this.elPlan = $('plan');
    if(this.elPlan)
    {
        var strId = init.genUnicId();
        this.objSWF = new SWFObject('/swf/sitePlan.swf', 
          strId, 
          "873", 
          "299",
          "9",
          "#FFFFFF"
          );
        this.objSWF.addParam('allowScriptAccess', 'always');
        this.objSWF.addVariable('strJSON', this.arrParams._strJSON);
        this.objSWF.useExpressInstall('/swf/expressinstall.swf');
        
          
        this.objSWF.write('plan');
        this.elSwf = $(strId);    
    }
  },
  _showLargePhoto: function(evt)
  {
    $(document).fire('slideShow:start', {intStartImgNum: evt.findElement('a[_num]').getAttribute('_num'), arrImagesElements: this.arrImages});
    evt.stop();
  }
});
arrJsLoaded['content.siteBuilding.js']=true;init.jsLoaded("content.siteBuilding.js");}, true);