Window.prototype.panier= function(options) { //ajout methode affichage du panier en fonction de l'article var default_args = { 'article' : 0, 'groupe' : 0, 'lang': "fr", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 650, 'width' : 250, 'right': 0, 'varperso': "", 'valvarperso': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/panier.php?art="+options['article']+"&groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']+"&varperso="+options['varperso']+"&valvarperso="+options['valvarperso']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.panieradmin= function(codearticle,codegroupe,langue,style,admin) { //ajout methode affichage du panier en fonction de l'article this.setURL("http://www.yozik.com/yo/panier.php?art="+codearticle+"&groupe="+codegroupe+"&newlang="+langue+"&style="+style+"&admin="+admin); this.show(); }, Window.prototype.telecharge= function(options) { //ajout methode affichage de la page telechargement en fonction de l'article var default_args = { 'article' : 0, 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 350, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/telecharge.php?art="+options['article']+"&groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.fan= function(options) { //ajout methode affichage de la page telechargement en fonction de l'article var default_args = { 'article' : 0, 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 350, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/telecharge.php?art="+options['article']+"&groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.inscription= function(options) { //ajout methode affichage de la pageinscription news en fonction du groupe var default_args = { 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 350, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/profil.php?groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.news= function(options) { //ajout methode affichage de la pageinscription news en fonction du groupe var default_args = { 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 350, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/profil.php?groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.forum= function(options) { //ajout methode affichage du forum en fonction du groupe var default_args = { 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 650, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/forum.php?groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.concert= function(options) { //ajout methode affichage du forum en fonction du groupe var default_args = { 'groupe' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 650, 'width' : 320, 'right': 0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/concert.php?groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.boutique= function(options) { //boutique var default_args = { 'groupe' : 0, 'boutique' : 0, 'lang': "", 'style': "", 'top' : 10, 'left' : 'centre', 'height' : 650, 'width' : 290, 'right': 0, 'depli':0 } for(var index in default_args) { if(typeof options[index] == "undefined") options[index] = default_args[index]; } this.setURL("http://www.yozik.com/yo/boutique.php?groupe="+options['groupe']+"&newlang="+options['lang']+"&style="+options['style']+"&depli="+options['depli']+"&boutique="+options['boutique']); if (options['left'] == 'centre' || options['left'] == -1) { if (options['right']!=0 && options['left']!=-1) { this.setSize(options['width'], options['height']); this.element.setStyle({top: options['top'] + 'px'}); this.element.setStyle({right: options['right'] + 'px'}); this.show(); } else { this.setSize(options['width'], options['height']); this.showCenter(false,options['top']); } } else { this.setLocation(options['top'],options['left']); this.setSize(options['width'], options['height']); this.show(); } }, Window.prototype.concerts= function(codegroupe) { //ajout methode affichage du forum en fonction du groupe this.setURL("http://www.yotanka.net/yo/concerts.php?groupe="+codegroupe); this.show(); }