﻿/**
 * Class to control behavior  of Fine-Country presentation
 * outside of the flash movie
 */
 
/**
 * Constructor
 * @param objPres
 */ 
function CFCControls(objPres){
    /* Set presentation to control */
    this.objPresentation = objPres;
};

/* Class Constants (static members) */
CFCControls.MI_CHANGE_FLOOR        = 1;
CFCControls.MI_LOCAL_AREA_INFO     = 2;
CFCControls.MI_PROP_LOCATION_MAP   = 3;
CFCControls.MI_PROP_GOOGLE_MAP     = 4;
CFCControls.MI_EMAIL_ME            = 5;
CFCControls.MI_BOOK_VIEWER         = 6;
CFCControls.MI_BROCHURE            = 7;
CFCControls.MI_TOGGLE_PLAN         = 8;


/**
 * Changes Level in presentation
 * @param strLevelID presentation level ID 
 */
CFCControls.prototype.changeLevel = function(strLevelID){
   this.objPresentation.callFlash(CFCControls.MI_CHANGE_FLOOR, strLevelID);
}

CFCControls.prototype.togglePlanGallery = function(){
    this.objPresentation.callFlash(CFCControls.MI_TOGGLE_PLAN, null);
}

/**
 * Set of methods for future use
 */

 
CFCControls.prototype.viewLocalAreaInfo = function(){
    this.objPresentation.callFlash(CFCControls.MI_LOCAL_AREA_INFO, null);
}

CFCControls.prototype.viewPropLocationMap = function(){
   this.objPresentation.callFlash(CFCControls.MI_PROP_LOCATION_MAP, null);
}

CFCControls.prototype.viewPropGoogleMap = function(){
    this.objPresentation.callFlash(CFCControls.MI_PROP_GOOGLE_MAP, null);
    
    // TODO :
    // Place your code here
}

CFCControls.prototype.emailMe = function(){
    this.objPresentation.callFlash(CFCControls.MI_EMAIL_ME, null);
    
    // TODO :
    // Place your code here
}

CFCControls.prototype.viewBook = function(){
    this.objPresentation.callFlash(CFCControls.MI_BOOK_VIEWER, null);
}

CFCControls.prototype.viewBrochure = function(){
    this.objPresentation.callFlash(CFCControls.MI_BROCHURE, null);
}


/* Create Controls object */
objControls = new CFCControls(objPresentation);


