var tl = new Array(); tl.length = 0; function teaser(url, image, ttfr, tten, stfr, sten) { this.url = url; this.image = image; this.ttfr = ttfr; this.tten = tten; this.stfr = stfr; this.sten = sten; tl.length++; return this } function langage() {return (document.location.href.indexOf('htmlfr')!=-1) ? 'fr' : 'en'} // No spam... function otliam(nom) {var dom='videotron.ca';document.location.href='mailto:' + nom + '@' + dom} // Affichage teaser function printTeaser() { var x = parseInt('' + (Math.random(tl.length)*tl.length)); var i = 1; while (document.location.href.indexOf(tl[x].url) != -1 && i < 10) { x = parseInt('' + (Math.random(tl.length)*tl.length)); i++; } var t = tl[x]; var u = 'http://www.alpix.com/cgi-bin/nice/goto.pl?or=TEAS&url=' + document.location.href.substring(0,document.location.href.lastIndexOf('/')+1) + t.url; var tt = (langage()=='fr') ? t.ttfr : t.tten; var st = (langage()=='fr') ? t.stfr : t.sten; document.write('
| ');
document.write('' + tt + ' '); document.write(' '); document.write('' + st + ' '); document.write(' |
' + t1 + '
');
var done = '';
for(var j=1; j<=n; j++) {
var x = parseInt('' + (Math.random(tl.length)*tl.length));
var i = 1;
while ((document.location.href.indexOf(tl[x].url) != -1 || done.indexOf(tl[x].url) != -1) && i < 10) {
x = parseInt('' + (Math.random(tl.length)*tl.length));
i++;
}
var t = tl[x];
var u = 'http://www.alpix.com/cgi-bin/nice/goto.pl?or=LINK&url=' + document.location.href.substring(0,document.location.href.lastIndexOf('/')+1) + t.url;
var tt = (langage()=='fr') ? t.ttfr : t.tten;
var st = (langage()=='fr') ? t.stfr : t.sten;
document.write('> ' + tt + ': ' + st + '...
');
done = done + t.url;
}
document.write('
'); } // Data Boutique // tl[tl.length] = new teaser('shop0.htm', '../graphics/teaser/shop1.jpg', 'Boutique', 'Shop', 'Nappe coton imprimé ronde 180cm, 27.29 Euros', 'Printed coton round tablecloth 71in., 27.29 Euros') // tl[tl.length] = new teaser('shop0.htm', '../graphics/teaser/shop2.jpg', 'Boutique', 'Shop', 'Rouille provencale. Pot 90g, 2.06 Euros', 'Rouille provencale 3.2oz, 2.06 Euros') // tl[tl.length] = new teaser('shop0.htm', '../graphics/teaser/shop4.jpg', 'Boutique', 'Shop', 'Cigale céramique provencale 12cm, 6.86 Euros', 'Provence Cicada 4.7in., 6.86 Euros') // Data Sections tl[tl.length] = new teaser('pict3.htm', '../graphics/teaser/nice_plage1.jpg', 'Photographies', 'Pictures', 'Nice, sa plage et ses galets', 'Nice rocky beach') tl[tl.length] = new teaser('maps0.htm', '../graphics/teaser/map1.jpg', 'Cartes', 'Maps', 'Rues de Nice et la région en 3d', 'Nice streets and more') tl[tl.length] = new teaser('screens.htm', '../graphics/teaser/nice_chat1.jpg', 'Photographies', 'Pictures', 'Téléchargez Nice en fonds d\'écran', 'Download Nice desktop backgrounds') tl[tl.length] = new teaser('pict7.htm', '../graphics/teaser/nice_facade1.jpg', 'Photographies', 'Pictures', 'Nice ville', 'Nice town') tl[tl.length] = new teaser('pict5.htm', '../graphics/teaser/nice_mtbor1.jpg', 'Photographies', 'Pictures', 'Nice depuis le Mt-Boron et le Mt-Alban', 'Nice from Mt-Boron and Mt-Alban') tl[tl.length] = new teaser('pict2.htm', '../graphics/teaser/nice_vieux1.jpg', 'Photographies', 'Pictures', 'Nice, la vieille ville', 'Nice old town') if (langage() == 'fr') tl[tl.length] = new teaser('pictcors3d.htm', '../graphics/teaser/corse3d.jpg', 'Photographies', 'Pictures', 'La Corse vue de Nice en 3D', 'Corsica 3D') tl[tl.length] = new teaser('vrml.htm', '../graphics/teaser/map3d1.jpg', 'Cartes', 'Maps', 'La région en 3D', '3D maps') tl[tl.length] = new teaser('info1.htm', '../graphics/teaser/nice_info1.jpg', 'Info', 'Info', 'Nice en chiffres', 'Nice data sheet') tl[tl.length] = new teaser('pictstereo.htm', '../graphics/teaser/stereo1.jpg', 'Photographies', 'Pictures', 'Nice en 3D stéréo', '3D Stereo Nice') tl[tl.length] = new teaser('pictair.htm', '../graphics/teaser/aerial.jpg', 'Photographies', 'Pictures', 'Vues aériennes', 'Aerial views') if (langage() == 'fr') tl[tl.length] = new teaser('pictsat.htm', '../graphics/teaser/saisons.jpg', 'Photographies', 'Pictures', 'Quatre saisons vues de l\'espace', 'Four seasons from space') if (langage() == 'fr') tl[tl.length] = new teaser('pictfoudre.htm', '../graphics/teaser/nice_foudre.jpg', 'Photographies', 'Pictures', 'La foudre sur la Baie des Anges', 'Lightnings over Baie des Anges') if (langage() == 'fr') tl[tl.length] = new teaser('pictsnow.htm', '../graphics/teaser/nice_neige.jpg', 'Photographies', 'Pictures', 'Nice sous la neige', 'Snow in Nice') tl[tl.length] = new teaser('pictflip.htm', '../graphics/teaser/pictflip1.gif', 'Photographies', 'Pictures', 'Images alternées', 'Flip Images') // Affichage teaser printTeaser();