function disableselect(e){return false}
function reEnable(){return true}
document.onselectstart=new Function ("return false")
if (window.sidebar){document.onmousedown=disableselect
document.onclick=reEnable}

function updateScurry(c) {
for (i=0;i<c.imageCount;i++) {   // direction 0=right 1=left
var newX = getLayerX(c.prefix + i) + ((c.direction[i] * 2) - 1) * (-c.speed2[i]);
var newY = getLayerY(c.prefix + i);
if (c.direction[i] == 1 && newX < getViewXOffset()) {  var done = 1; }
else if (c.direction[i] == 0 && newX > getViewXOffset() + getViewWidth() - c.imageWidth) {  var done = 1; }
else { var done = 0; }
if (done) {
c.direction[i] = random(2);
c.speed2[i] = c.speed + random(4);
var newX = getViewXOffset() + c.direction[i] * (getViewWidth() - c.imageWidth)
var newY = getViewYOffset() + random(getViewHeight() - c.imageHeight)
}
moveLayer(c.prefix + i, newX, newY);
}
setTimeout("updateScurry(c" + c.uid + ")", c.updateDelay);
}


var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",30)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=5.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function disableselect(e){return false}
function reEnable(){return true}
document.onselectstart=new Function ("return false")
if (window.sidebar){document.onmousedown=disableselect
document.onclick=reEnable}

function updateScurry(c) {
for (i=0;i<c.imageCount;i++) {   // direction 0=right 1=left
var newX = getLayerX(c.prefix + i) + ((c.direction[i] * 2) - 1) * (-c.speed2[i]);
var newY = getLayerY(c.prefix + i);
if (c.direction[i] == 1 && newX < getViewXOffset()) {  var done = 1; }
else if (c.direction[i] == 0 && newX > getViewXOffset() + getViewWidth() - c.imageWidth) {  var done = 1; }
else { var done = 0; }
if (done) {
c.direction[i] = random(2);
c.speed2[i] = c.speed + random(4);
var newX = getViewXOffset() + c.direction[i] * (getViewWidth() - c.imageWidth)
var newY = getViewYOffset() + random(getViewHeight() - c.imageHeight)
}
moveLayer(c.prefix + i, newX, newY);
}
setTimeout("updateScurry(c" + c.uid + ")", c.updateDelay);
}

