//[blank][pic][banner][opt0]
var zs = 210;
var randpic = true;

function pictop() {
	document.getElementById('pic').style.zIndex=2;
	randpic = true;
	if (zs==120 || zs==021) {
		zs = 210;
		document.getElementById('banner').style.zIndex=1;
		document.getElementById('opt0').style.zIndex=0;
	} else if (zs==102 || zs==201) {
		zs = 201;
		document.getElementById('banner').style.zIndex=0;
		document.getElementById('opt0').style.zIndex=1;
	}
}

function bantop() {
	document.getElementById('banner').style.zIndex=2;
	randpic = false;
	if (zs==102 || zs==012) {
		zs = 021;
		document.getElementById('opt0').style.zIndex=1;
		document.getElementById('pic').style.zIndex=0;
	} else if (zs==201 || zs==210) {
		zs = 120;
		document.getElementById('opt0').style.zIndex=0;
		document.getElementById('pic').style.zIndex=1;
	}
}

function opt0top() {
	document.getElementById('opt0').style.zIndex=2;
	if (zs==120 || zs==021) {
		randpic = false;
		zs = 012;
		document.getElementById('pic').style.zIndex=0;
		document.getElementById('banner').style.zIndex=1;
	} else if (zs==210 || zs==201) {
		randpic = true;
		zs = 102;
		document.getElementById('pic').style.zIndex=1;
		document.getElementById('banner').style.zIndex=0;
	}
}

function loadmap() {
	document.getElementById('map').innerHTML='\
	<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=Stillwater,+OK+74074+(Oklahoma+State+University:+Kerr-Drummond+Halls)&amp;daddr=N+Willis+St+and+S+McElroy+Rd+Stillwater,+OK&amp;hl=en&amp;geocode=CUEi1_OJVkomFc02JwIdF8U2-iGfMdfcstZ5IA%3B&amp;mra=pe&amp;mrcr=0&amp;sll=36.123005,-97.070689&amp;sspn=0.024508,0.055747&amp;ie=UTF8&amp;ll=36.127435,-97.0786&amp;spn=0.00597,0.00882&amp;t=h&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=Stillwater,+OK+74074+(Oklahoma+State+University:+Kerr-Drummond+Halls)&amp;daddr=N+Willis+St+and+S+McElroy+Rd+Stillwater,+OK&amp;hl=en&amp;geocode=CUEi1_OJVkomFc02JwIdF8U2-iGfMdfcstZ5IA%3B&amp;mra=pe&amp;mrcr=0&amp;sll=36.123005,-97.070689&amp;sspn=0.024508,0.055747&amp;ie=UTF8&amp;ll=36.127435,-97.0786&amp;spn=0.00597,0.00882&amp;t=h" style="color:#0000FF;text-align:left">View Larger Map</a></small>'
}
