//Start Moving Elements script
function moveTo(obj, x, y) {
        if (document.getElementById) {
        document.getElementById('ImageDiv').style.left = x;
        document.getElementById('ImageDiv').style.top = y;
        }
}

function init(){
        if(document.getElementById){
        //Image
		obj = document.getElementById("ImageDiv");
        obj.style.left = -200;
		//Menu
		obj2 = document.getElementById("MenuDiv");
        obj2.style.left = -100;
        }
}

//Moving Image
function slideRight(){
        if(document.getElementById){
                if(parseInt(obj.style.left) < 80){
                        obj.style.left = parseInt(obj.style.left) + 10 + "px";
                        setTimeout("slideRight()",75);
                }
        }
}

//Moving Menu
function MenuSlide(){
var PiontLeft =  parseInt(obj2.style.left);
	if (PiontLeft < 0) {
		MenuSlideRight();
	} else {
		MenuSlideLeft();
	}
}

function MenuSlideRight(){
        if(document.getElementById){
                if(parseInt(obj2.style.left) < 0){
                        obj2.style.left = parseInt(obj2.style.left) + 10 + "px";
                        setTimeout("MenuSlideRight()",50);
                }
        }
}

function MenuSlideLeft(){
        if(document.getElementById){
                if(parseInt(obj2.style.left) > -100){
                        obj2.style.left = parseInt(obj2.style.left) - 10 + "px";
                        setTimeout("MenuSlideLeft()",50);
                }
        }
}
//End Moving Elements script


//start no select text script (IE4+, NS6+)

if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
 event.cancelBubble = true
 event.returnValue = false;

 return false;
}

function norightclick(e) // This function is used by all others
{
 if (window.Event) // again, IE or NAV?
 {
  if (e.which == 2 || e.which == 3)
   return false;
 }
 else
  if (event.button == 2 || event.button == 3)
  {
   event.cancelBubble = true
   event.returnValue = false;
   return false;
  }
}
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//end no select text script -->
