//Copyright 2007, Howling Dynamo, Inc. or its suppliers. All Rights Reserved. http://www.hdyn.com/wr/common/contact.php?addr=pr
var g_shuffle=location.search=="";
function doLoad(){
document.getElementById("home").onclick=noClick;
document.getElementById("help").onclick=noClick;
document.getElementById("previews").onclick=noClick;
document.getElementById("scattered").onclick=noClick;
if(g_shuffle){
tweakANodes();
document.body.onclick=shuffle;
}
}
function tweakANodes(){
var _1=document.getElementById("holder").getElementsByTagName("a");
var n=_1.length;
for(var i=0;i<n;++i){
var a=_1[i];
a.onclick=noClick;
positionANode(a);
}
}
function positionANode(a){
var _6=document.body.offsetWidth-a.offsetWidth;
if(_6<1){
_6=1;
}
a.style.left=(rand(_6))+"px";
_6=document.body.offsetHeight-a.offsetHeight;
if(_6<1){
_6=1;
}
a.style.top=(rand(_6))+"px";
a.style.zIndex=rand(5);
}
function shuffle(){
var _7=document.getElementById("holder").getElementsByTagName("a");
var n=_7.length;
for(var i=0;i<n;++i){
positionANode(_7[i]);
}
}
function rand(lt){
return Math.floor(Math.random()*0.99999*lt);
}
function color(c){
return "rgb("+c[0]+","+c[1]+","+c[2]+")";
}
function noClick(e){
if(!e){
e=window.event;
}
stopProp(e);
}
function stopProp(e){
if(g_badBubble){
return;
}
e.cancelBubble=true;
if(typeof e.stopPropagation!="undefined"){
e.stopPropagation();
}
}
