/* **************************************
                Object : VideoObj
--------------------------------------------------
 Version :
     1.0 - 090102 - KIG
************************************** */
function VideoObj(titre, urlPlayer, urlVideo, width, height){
    this.titre = titre ;
    this.urlPlayer = urlPlayer ;
    this.urlVideo = urlVideo ;
    this.width = width ; 
    this.height = height ;
}

/* **************************************
                Object : SiteServer
--------------------------------------------------
 Version :
     1.0 - 080218 - KIG
 Description :
    Permet d'associer a l'url d'un site, l'url eRepo par defaut 
 Attributes :
    + urlSite : l'url du site
    + eRepoUrl : l'url du serveur eRepo associe
************************************** */
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 : NewsHpg
--------------------------------------------------
 Version :
     1.0 - 080624 - KIG
************************************** */
function NewsHpg(idDivNews, urlNews, imgNews, titleNews, targetNews, calquefiltre){
    this.idDivNews = idDivNews ;
    this.urlNews = urlNews ;
    this.imgNews = imgNews ;
    this.titleNews = titleNews ; 
    this.targetNews = targetNews ;
    this.calquefiltre = calquefiltre ;     
}

/* *************** Object concernant larbo multicriteres *************** */
function SousCritereArbo(nom, valeur,titreaafficher){
    this.nom = nom ;
    this.valeur = valeur;
    this.titreaafficher = titreaafficher;
}

SousCritereArbo.prototype.getNom = function(){
    if(this.nom){
        return this.nom ;
    }
    else{
        return "" ;
    }
}

SousCritereArbo.prototype.getValeur = function(){
    if(this.valeur){
        return this.valeur ;
    }
    else{
        return "" ;
    }
}

SousCritereArbo.prototype.getTitre = function(){
    if(this.titreaafficher){
        return this.titreaafficher ;
    }
    else{
        return "" ;
    }
}

SousCritereArbo.prototype.setNom = function(nom){
    this.nom = nom ;
}

SousCritereArbo.prototype.setValeur = function(valeur){
    this.valeur = valeur ;
}

function Produitarbo(id,sexe,type,couleur,sexeDetail,couleurIndus){
    this.id=id;
    this.sexe=sexe;
    this.type=type;
    this.couleur=couleur;
    this.sexeDetail=sexeDetail;
    this.couleurIndus=couleurIndus;
}

Produitarbo.prototype.getId = function(){
    if(this.id){
        return this.id ;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.getSexe = function(){
    if(this.sexe){
        return this.sexe ;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.getCouleur = function(){
    if(this.couleur){
        return this.couleur ;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.getType= function(){
    if(this.type){
        return this.type ;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.getSexedetail= function(){
    if(this.sexeDetail){
        return this.sexeDetail ;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.getCouleurindus= function(){
    if(this.couleurIndus){
        return this.couleurIndus;
    }
    else{
        return "" ;
    }
}

Produitarbo.prototype.setId = function(id){
    this.id = id ;
}

Produitarbo.prototype.setSexe = function(sexe){
    this.sexe = sexe ;
}

Produitarbo.prototype.setType = function(type){
    this.type = type ;
}

Produitarbo.prototype.setCouleur = function(couleur){
    this.couleur = couleur ;
}

/* *********************************************************************** */

/* **************************************
                Object : EnseigneSiteObj
--------------------------------------------------
 Version :
     1.0 - 0800919 - KIG
 Description :
    Permet de creer l'objet EnseigneSiteObj
 Attributes :
    + centrale : la centrale du pays
    + url : l'url du site enseigne
    + repository : le repository itool
************************************** */
function EnseigneSiteObj(centrale, url, repository){
    this.centrale = centrale ;
    this.url = url ;
    this.repository = repository ;
}

EnseigneSiteObj.prototype.getCentrale = function(){
    if(this.centrale){
        return this.centrale ;
    }
    else{
        return "" ;
    }
}

EnseigneSiteObj.prototype.getUrl = function(){
    if(this.url){
        return this.url ;
    }
    else{
        return "" ;
    }
}

EnseigneSiteObj.prototype.getRepository = function(){
    if(this.repository){
        return this.repository ;
    }
    else{
        return "" ;
    }
}

EnseigneSiteObj.prototype.setCentrale = function(_centrale){
    this.centrale = _centrale ;
}

EnseigneSiteObj.prototype.setUrl = function(_url){
    this.url = _url ;
}

EnseigneSiteObj.prototype.setRepository = function(_repository){
    this.repository = _repository ;
}