// (C) 2007 - 2010 Serge Lamarche
// sergewebservice.ca
// All codes copyrights Serge Lamarche, any reproduction and 
// use strictly forbidden without written consent.
// Toute reproduction est interdite sans autorisation écrite
// Contact sergewebservice@yahoo.ca or sergelamarche@gmail.com 
// for help with your website. Reliable, inexpensive website service.
// Les effets javascripts sont disponibles à prix abordables. Merci. 

if (!nodenouvelle) var nodenouvelle = new Object(); //conserveimage = false; 


function writelinouvelles(nodearret, max) { var j=0; nodenouvelle["js"] = true; 
for (var i in nodenouvelle) { if (i=="js") continue; if (i==nodearret) return; 
nodenouvelle[i].indice = j; j++;  //alert(j+" "+i); 
var lamininouvelle = '<li><h4><a href="heliski-news.html#news-'+i+'">' + nodenouvelle[i].date + " - "; 
lamininouvelle += (nodenouvelle[i].titre.length>38) ? nodenouvelle[i].titre.substr(0, 35)+"..." : nodenouvelle[i].titre; lamininouvelle += '</a></h4><p style="color: #ccc;">'; 
//lamininouvelle += (nodenouvelle[i].proprio.length>19) ? nodenouvelle[i].proprio.substr(0, 16)+"..." : nodenouvelle[i].proprio; lamininouvelle += ": "; 
lamininouvelle += (nodenouvelle[i].description.length>72) ? nodenouvelle[i].description.substr(0, 69)+"..." : nodenouvelle[i].description; lamininouvelle += "</p><p>";
lamininouvelle += (nodenouvelle[i].affiche.length>200) ? nodenouvelle[i].affiche.substr(0, 197)+"..." : nodenouvelle[i].affiche; lamininouvelle += "</p></li>"; //alert(lamininouvelle); pr ajout manuel. 
document.write(lamininouvelle); if (j>max) return; }; }; 

function writelitoutesnouvelles(nodearret) { if (!document.getElementById) return; 
var j=0; nodenouvelle["js"] = true; 
for (var i in nodenouvelle) { if (i=="js") continue; 
if (i==nodearret) return; nodenouvelle[i].indice = j; j++;  //alert(j+" "+i); 
var lamininouvelle = '<li style="clear: both;"><a name="news-'+i+'"></a><h2 class="title">' + nodenouvelle[i].date + " - "; 
lamininouvelle += nodenouvelle[i].titre + '</h2><p style="font-weight: bold; color: #999;">'; 
lamininouvelle += nodenouvelle[i].proprio + ": "; 
lamininouvelle += nodenouvelle[i].description + "</p>";
lamininouvelle += nodenouvelle[i].nouvellehtml + "</li>"; 
if (document.getElementById("lesli")) document.getElementById("lesli").value += lamininouvelle; //pr ajout manuel. 
document.write(lamininouvelle); }; }; 


//Remplacer ' par &rsquo; dans les légendes, enlever les images dans affiche:
/* 
nodenouvelle[''] = { 
"proprio": "", 
"sousgroupe": "aucun", 
"date": "2009-01-01", 
"cote": 0, 
"legende": "", 
"affiche": '', 
"nouvellehtml": '<div class="droite"><img src="gallery-textes/.jpg" width="210" height="210" align="middle" border="0" alt="" /><p></p></div><p></p>', 
"description": "", 
"titre": ""
 }; 
*/

// insertions ligne suivante: 
// inséré par Tim le Monday, 2010 February 22 at 12:57:22, Mountain time (Golden, BC):
nodenouvelle['Tim1266868642'] = {
"proprio": "Tim",
"sousgroupe": "aucun",
"date": "2010-02-22",
"cote": 0,
"legende": "",
"affiche": '',
"nouvellehtml": '<p>The Ultimate Ski Bum contest was a competition organised by Kootenay Tourism (our regional tourism association) that promotes the &ldquo;Powder Highway&rdquo; a joint marketing venture between ski resorts, cat-skiing and heliskiing operations in the area.</p><p>The person who made the best &ldquo;Why I&rsquo;m the Ultimate Ski Bum&rdquo; video was the extremely lucky recipient of free skiing all winter long with unlimited resort skiing at places like Kicking Horse, Revelstoke, Red Mountain, Fernie, etc and the coolest part: 1 free day of heliskiing at all the different cat and heliskiing operations in the region.</p><p>A 2nd generation Aspen/Sun Valley ski bum, Chris -˜Tats&rsquo; Tatsuno won the competition with <a href="http://powderhighway.com/SkiBum">this video</a>.</p><p>Tats visited us last week for a day and had a blast! In fact, he racked up 14 powder filled runs! Maybe he should of visited us last as we may have spoiled him!! <br /> <br />Tats took some time off his busy schedule to file this trip report: <a href="http://www.powderhighway.com/blog/?p=83#more-83">Ultimate Ski Bum Trip Report</a></p>',
"description": "",
"titre": "The Ultimate Ski Bum Finds the Ultimate Heli-Skiing Experience"
 };

// inséré par Tim le Friday, 2010 February 5 at 09:52:57, Mountain time (Golden, BC):
nodenouvelle['Tim1265388777'] = {
"proprio": "Tim",
"sousgroupe": "aucun",
"date": "2010-02-05",
"cote": 0,
"legende": "",
"affiche": '',
"nouvellehtml": '<p>Hi everyone! <br /> <br />Wow, we&#39;ve had an awesome past couple of weeks and it&#39;s still going on!  I knew we hadn&#39;t received any new BIG dumps for awhile, so I thought it would be prudent to go out and do some product testing. Weeelllll I was very pleasantly surprised!  </p><p>I joined some super fun guests from the Czech republic and we were skiing about 15-20cm of fresh powder and it was awesome!  We managed to ski 14 runs and did 9,400 metres (30,840 feet)! The day before they skied 16 runs! <br /> <br /> <br /></p><p>If you&#39;d like to check out some recent video footage of our guests check out <a href="http://www.youtube.com/user/GCHeliski" target="_blank">our YouTube page</a>.</p>',
"description": "New video, what are the conditions and how much vertical are we skiing?",
"titre": "Some Super Cool Updates!"
 };


/* 
nodenouvelle[''] = { 
"proprio": "", 
"sousgroupe": "aucun", 
"date": "2009-01-01", 
"cote": 0, 
"legende": "", 
"affiche": '', 
"nouvellehtml": '<div class="droite"><img src="gallery-textes/.jpg" width="210" height="210" align="middle" border="0" alt="" /><p></p></div><p></p>', 
"description": "", 
"titre": ""
 }; 
*/