var currentButton = "";

function toggleVisible(imageName) {

        temp = document.getElementById("chngicn");

        var deltaY =  window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;

        temp.style.top = deltaY + 150 + "px";

	temp.style.display = "block";

        currentButton = imageName;

        new Draggable("chngicn");

}

function toggleCrayonsOn() {

        temp = document.getElementById("chngbg");

        temp.style.display = "block";
        
        new Draggable("chngbg");

}

function toggleButton(id) {

        temp = document.getElementById("chngicn");

        document.images[currentButton].src = document.images[id].src;

        temp.style.display = 'none';

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
