window.onload = function(){
	var btn1=document.getElementById("btn1");
	var btn2=document.getElementById("btn2");
	var btn3=document.getElementById("btn3");

	btn1.onclick = slide;
	btn2.onclick = function(){ window.close(); };
	btn3.onclick = function(){ window.print(); };
	var theplan = document.getElementById("theplan");
	theplan.style.backgroundPosition = "0px 0px";
};

var zoomIn = true;

function slide(){
	var theplan = document.getElementById("theplan");
	var bckPos = theplan.style.backgroundPosition;
	
	if(zoomIn && bckPos=="0px 0px") theplan.style.backgroundPosition="0px -635px";
	else if(zoomIn && bckPos=="0px -635px") theplan.style.backgroundPosition="0px -1270px";
	else if(zoomIn && bckPos=="0px -1270px") { theplan.style.backgroundPosition="0px -1905px"; zoomIn = false; }
	
	else if(!zoomIn && bckPos=="0px -1905px") theplan.style.backgroundPosition="0px -1270px";
	else if(!zoomIn && bckPos=="0px -1270px") theplan.style.backgroundPosition="0px -635px";
	else if(!zoomIn && bckPos=="0px -635px") { theplan.style.backgroundPosition="0px 0px"; zoomIn = true; }
}