
// Source: CodeFoot.com

function blockError(){return true;}

window.onerror = blockError;

image1up = new Image;
image1up.src = "kids1.gif"
image1down = new Image;
image1down.src = "kids2.gif"
image1box = new Image;
image1box.src = "mainkids.jpg"

image2up = new Image;
image2up.src = "tv1.gif"
image2down = new Image;
image2down.src = "tv2.gif"
image2box = new Image;
image2box.src = "maintv.jpg"

image3up = new Image;
image3up.src = "patio1.gif"
image3down = new Image;
image3down.src = "patio2.gif"
image3box = new Image;
image3box.src = "main.jpg"

image4up = new Image;
image4up.src = "exotic1.gif"
image4down = new Image;
image4down.src = "exotic2.gif"
image4box = new Image;
image4box.src = "mainexot.jpg"

image5up = new Image;
image5up.src = "sbt1.gif"
image5down = new Image;
image5down.src = "sbt2.gif"
image5box = new Image;
image5box.src = "mainsbt.jpg"

image6up = new Image;
image6up.src = "coldwar1.gif"
image6down = new Image;
image6down.src = "coldwar2.gif"
image6box = new Image;
image6box.src = "maincw.jpg"

image7up = new Image;
image7up.src = "subcui1.gif"
image7down = new Image;
image7down.src = "subcui2.gif"
image7box = new Image;
image7box.src = "main.jpg"

image8up = new Image;
image8up.src = "cruel1.gif"
image8down = new Image;
image8down.src = "cruel2.gif"
image8box = new Image;
image8box.src =  "main.jpg"

image9up = new Image;
image9up.src = "mesbrd1.gif"
image9down = new Image;
image9down.src = "mesbrd2.gif"
image9box = new Image;
image9box.src =  "main.jpg"

image10up = new Image;
image10up.src = "links1.gif"
image10down = new Image;
image10down.src = "links2.gif"
image10box = new Image;
image10box.src = "main.jpg"

image11up = new Image;
image11up.src = "store.jpg"
image11down = new Image;
image11down.src = "store2.jpg"
image11box = new Image;
image11box.src = "main.jpg"

image12up = new Image;
image12up.src = "blog1.jpg"
image12down = new Image;
image12down.src = "blog2.jpg"
image12box = new Image;
image12box.src = "main.jpg"

image13up = new Image;
image13up.src = "myspace1.jpg"
image13down = new Image;
image13down.src = "myspace2.jpg"
image13box = new Image;
image13box.src = "main.jpg"

function image_down(imgName)
{
        imgDown = eval(imgName + "down.src");
        document[imgName].src = imgDown;
        box = eval(imgName + "box.src");
        document["box"].src = box;
}

function image_up(imgName)
{
        document[imgName].src = eval(imgName + "up.src");
        document["box"].src =  "main.jpg";
}




function Mailit(form) {
document.location.href=("mailto:" + form.address.value + "?subject=A web page to see&body=I found this web page at " + document.location.href + ", which I thought you might like to see.")
return false
}



var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}

}



function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

addLoadEvent(Function1);
addLoadEvent(Function2);
addLoadEvent(Function3);


