/* **************************************
                Object : SiteServer
--------------------------------------------------
 Version :
     1.0 - 080218 - KIG
 Description :
    Permet d'associer à l'url d'un site, l'url eRepo par défaut 
 Attributes :
    + urlSite : l'url du site
    + eRepoUrl : l'url du serveur eRepo associé
************************************** */
function SiteServer(urlSite, eRepoUrl){
    this.urlSite = urlSite ;
    this.eRepoUrl = eRepoUrl ;
}

SiteServer.prototype.getUrlSite = function(){
    if(this.urlSite){
        return this.urlSite ;
    }
    else{
        return "" ;
    }
}

SiteServer.prototype.getERepoUrl = function(){
    if(this.eRepoUrl){
        return this.eRepoUrl ;
    }
    else{
        return "" ;
    }
}

/* **************************************
                Object : SiteAmbiance
--------------------------------------------------
 Version :
     1.0 - 080218 - KIG
 Description :
    Permet d'associer à l'url d'un site, l'url eRepo par défaut 
 Attributes :
    + urlSite : l'url du site
    + eRepoUrl : l'url du serveur eRepo associé
************************************** */
function SiteAmbiance(_newAmbiance, _bgimage, _mdrimage, _mdrbgcolor, _menuhautbgcolor, _mainbgcolor, _logoAmbiance){
    this.nom = _newAmbiance ;
    this.bgImage = _bgimage ;
    this.mdOkImage = _mdrimage ;
    this.mdrSelectBgColor = _mdrbgcolor ;
    this.menuHautBgColor = _menuhautbgcolor ;
    this.bgcolor = _mainbgcolor ;
    this.logoAmbiance = _logoAmbiance ;
}

SiteAmbiance.prototype.getNomAmbiance = function(){
    if(this.nom){
        return this.nom ;
    }
    else{
        return "" ;
    }
}

SiteAmbiance.prototype.getBgImage = function(){
    if(this.bgImage){
        return this.bgImage ;
    }
    else{
        return "" ;
    }
}
SiteAmbiance.prototype.getSearchConfirmButton = function(){
    if(this.mdOkImage){
        return this.mdOkImage ;
    }
    else{
        return "" ;
    }
}

SiteAmbiance.prototype.getSearchSelectBgImage = function(){
    if(this.mdrSelectBgColor){
        return this.mdrSelectBgColor ;
    }
    else{
        return "" ;
    }
}

SiteAmbiance.prototype.getTopMenuBgColor = function(){
    if(this.menuHautBgColor){
        return this.menuHautBgColor ;
    }
    else{
        return "" ;
    }
}

SiteAmbiance.prototype.getMainBgColor = function(){
    if(this.bgcolor){
        return this.bgcolor ;
    }
    else{
        return "" ;
    }
}

SiteAmbiance.prototype.getLogoAmbiance = function(){
    if(this.logoAmbiance){
        return this.logoAmbiance ;
    }
    else{
        return "" ;
    }
}