function makeArray() 
{
this.length = makeArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i + 1] = makeArray.arguments[i]
} 
function randNum (num) 
{
var now = new Date();
var rand = Math.round(num * Math.cos(now.getTime()));
if (rand < 0) rand = - rand; if (rand == 0) rand++;
return rand;
} 

var coverpics = new Array("cover.jpg", "cover.jpg", "cover.jpg", "cover.jpg", "coverback.jpg", "cover13.jpg"); 

function covergo() { var covpnr = randNum(6-1); if(covpnr < 4) { document.write("<img src='pics/" + coverpics[covpnr] + "' height='185'><br>"); } else { document.write("<img src='pics/" + coverpics[covpnr] + "' height='136'><br>"); } } 

var coveradpics = new Array("<a href='http://www.pogo.biz' target='_blank'><img src='img/webbanner_SBS.gif' width='468' height='60' vspace='3' border='0'></a>", "<a href='http://www.pogo.biz' target='_blank'><img src='img/webbanner_SBS.gif' width='468' height='60' vspace='3' border='0'></a>", "<a href='http://www.rabansersnowboards.com' target='_blank'><img src='img/Rabanserbanner.jpg' width='477' height='59' vspace='3' border='0'></a>", "<a href='http://www.jonasrejman.com/carved' target='_blank'><img src='img/carvedbanners.jpg' width='450' height='150' vspace='3' border='0'></a>", "<a href='http://www.jonasrejman.com/carved' target='_blank'><img src='img/carvedbanners.jpg' width='450' height='150' vspace='3' border='0'></a>", "<a href='http://www.bomberonline.com' target='_blank'><img src='img/BomberOnline_com.gif' width='398' height='74' vspace='3' border='0'></a>", "<a href='http://www.carversparadise.com' target='_blank'><img src='img/cp_468x60.gif' width='468' height='60' vspace='3' border='0'></a>"); 
function coveradgo() { var covadpnr = randNum(7-1); document.write(coveradpics[covadpnr]); } 

var spiritlines = new Array("riding is its own reward", "riding is its own reward", "in it for the total experience", "the soul-enriching exhilaration of great riding", "feeding the stoke", "hooked on the edge", "the g-force will be with you", "committed to the edge", "carve your own lines", "life is good", "that's one of those half ski, half boarding things ... it's called a Grooving Board", "wow awesome raceboard, guys that ride alpine are sooo hot", "is that hard? ... nah it's not too bad", "I have been dancing ballet for 30 years ... what you are doing is ballet", "nice turns", "wow I didn't know you could get your body layed out so close to the ground like that", "that's just about the coolest thing I've ever seen", "just because you are on one of those monoskis doesn't mean you can speed", "... and I have no idea what that is", "it's falling with style", "when I get it right it feels like flying", "riding and smiling", "feelin' good's good enough", "I feel the need ... the need for speed", "ready to be happy?", "playing on the edge", "Careful son, watch out for that trench.", "The hardest part about alpine snowboarding isn't the equipment. It's spending so much time on the lift.", "You ride a rail? I rail every ride.", "I know what I'm doing this winter", "sharing the stoke with folk on the slope", "style is free", "I hate skid marks", "it's just plain fun", "harnessing the laws of physics to achieve an adrenaline induced euphoria", "it's like riding a slingshot from one carve to the next", "those of us who 'free ride' the earth have a bit of eccentrcity that has remained largely undefined", "snow cats turn me on", "caution: makes wide turns", "down with the G's", "get laid on the slope", "think snow", "let it snow", "painting the slope", "you stupid snowmelt", "supertrench", "you feel 100% of what you're doing", "just basic riding, it's such a buzz ...", "... and you're not really thinking 'Oh, I'm weighting, I'm unweighting'. Who gives a shit.", "industry of cool?", "fun times", "happy trails", "Is that harder than snowboarding?", "Can you snowboard too?", "Is that like snowboarding?", "schau ... typische Snowboarderpose, sitzt do, sehr sportlich", "absolutely beautiful lines", "great carving", "you must be an artist", "Hey I remember you! You're the guy that leaves a line behind you.", "nice carves", "nice arcs", "Why do you ride one of those boards? ~ Follow me.", "they say jump, you say how high?", "now you do what they told ya?", "That looks like fun! What do you call it? ~ Snowboarding.", "riding is its own reward"); 
function linego() { var liness = randNum(66-1); document.write(spiritlines[liness]); } 

function copgo() { document.write("&copy; 2010 stoked.at"); } 

function copgos() { document.write("&copy; 2010 stoked.at"); } 

hex=255; function fadetext() { if(hex>0) { hex-=11; document.getElementById("fadline").style.color="rgb("+hex+","+hex+","+hex+")"; setTimeout("fadetext()",75); } else hex=255; } 

function gobig(picnr) { document.images[1].src = "pics/" + pics[picnr]; document.images[1].vspace = 25; document.location.href = "#"; } 

function gobiggear(picnr,imloc) { document.images[imloc].src = "pics/" + pics[picnr]; document.images[imloc].vspace = 37; document.images[imloc-2].vspace = 37; document.location.href = "#" + imloc; } 

function gobiggearbi(picnr,imloc) { document.images[imloc].src = "pics/" + pics[picnr]; document.images[imloc].vspace = 0; document.location.href = "#" + imloc; } 

function gobiggearo(picnr,imloc) { document.images[imloc].src = "pics/" + pics[picnr]; document.images[imloc].vspace = 37; document.location.href = "#" + imloc; } 

function whatego() { document.write("<font color='#fcfcfc' face='verdana, arial, helvetica' style='font-size: 12px'><b>S | O</b></font>"); } 

function windChill(form) {
if(form.wind.value=="" || form.temp.value=="") { return false; } else {
wind=eval(form.wind.value);
temp=eval(form.temp.value);
if(wind==0) { chillX = temp; } else {
chillX=(13.12 + 0.6215 * temp - 11.37 * Math.pow(wind, 0.16) + 0.3965 * temp * Math.pow(wind, 0.16));
}
chill = chillX;

if(document.all) { document.all.chills.innerHTML = "= " + chill + " ºC"; } else 
{ if(chill<22 || chill==22) { alert(chill + " ºC You should wear clothes!"); } else { alert(chill + " ºC Clothes optional!"); } }

} }

function windChill2(form) {
if(form.wind2.value=="" || form.temp2.value=="") { return false; } else {
windM=eval(form.wind2.value); wind = windM * 1.609; 
tempF=eval(form.temp2.value); temp = 100/(212-32) * (tempF - 32); 
chillC=(13.12 + 0.6215 * temp - 11.37 * Math.pow(wind, 0.16) + 0.3965 * temp * Math.pow(wind, 0.16));
if(windM==0) { chillF = tempF; chillC = temp; } else {
chillF = (212-32)/100 * chillC + 32;
}
chill = chillF;

if(document.all) { document.all.chills.innerHTML = "= " + chill + " ºF"; } else
{ if(chillC<22 || chillC==22) { alert(chill + " ºF You should wear clothes!"); } else { alert(chill + " ºF Clothes optional!"); } }

} } 





var verf = new Date(); verf.setTime(verf.getTime() + (1000 * 60 * 60 * 24 * 365));
function setzeCookie(name, wert, verfall) { document.cookie = escape(name) + "=" + escape(wert) + "; path=/" + ((verfall == null) ? "" : "; expires=" + verfall.toGMTString()); }
function holeCookie(name) { var cookiename = name + "="; var dc = document.cookie; var anfang, ende;
if (dc.length > 0) { anfang = dc.indexOf(cookiename); if (anfang != -1) { anfang += cookiename.length; ende = dc.indexOf(";", anfang); if (ende == -1) { ende = dc.length; }
return unescape(dc.substring(anfang, ende)); } }

return null; }

function loescheCookie(name) { document.cookie = name + "=; verfall=Thu, 22-May-75 00:00:01 GMT" + "; path=/"; }

function cookiego(cname) { if (holeCookie(cname) == null || holeCookie(cname) == "Guest") { document.write("Guest"); } else { var member = holeCookie(cname).toUpperCase(); document.write(member); } }

function cookiech(bname) { if (holeCookie(bname) == null) { document.write("<img src='img/sepp.gif' width='22' height='6' alt=''><br>Please allow cookies for this site!&nbsp;<a href='javascript:cinfo()'><font color=#ff9933>Info</font></a><br><img src='img/sepp.gif' width='22' height='17' alt=''>"); } else { if (holeCookie(bname) != "Guest") { document.login_form.loginName.value = holeCookie(bname).toLowerCase(); document.login_form.user_pwd.focus(); } } }

function cookiechecken(aname, awert) { var verf = new Date(); verf.setTime(verf.getTime() + (1000 * 60 * 60 * 24 * 365)); 
if (holeCookie(aname) == null) { setzeCookie(aname, awert, verf); } else { var frisch = holeCookie(aname); setzeCookie(aname, frisch, verf); } }

function chuser() { if (document.login_form.loginName.value == "") { return false; }
else { var verf = new Date(); verf.setTime(verf.getTime() + (1000 * 60 * 60 * 24 * 365)); setzeCookie("mid", document.login_form.loginName.value, verf); } }