/* DETECT,SIZE AND MOVE WINDOWS - 500HEIGHT */
function define(width,height,window)
{
this.width=window.width;
this.height=window.height;
this.window=width,height;
}
function findSize(width,height)
{
if (this.width==(document.body.clientwidth) && this.height==(document.body.clientheight))
{
return ("width","height");
}
}
function Move()
{
if (this.window === 1680,1050)
{
window.moveTo(455,200);
}
else if (this.window == 1024,768)
{
window.moveTo(165,100);
}
else (this.window <= 800,600)
{
return(null);
}
}
/* DETECT,SIZE AND MOVE WINDOWS - 800HEIGHT */
function define(width,height,window)
{
this.width=window.width;
this.height=window.height;
this.window=width,height;
}
function findSize(width,height)
{
if (this.width==(document.body.clientwidth) && this.height==(document.body.clientheight))
{
return ("width","height");
}
}
function moveLong()
{
if (this.window === 1680,1050)
{
window.moveTo(365,200);
}
else if (this.window == 1024,768)
{
window.moveTo(150,50);
}
else (this.window <= 800,600)
{
return(null);
}
}
/*HISTORY SLIDESHOW */
function openVirtual(url,newW,newH)
{
var newW = 700;
var newH = 625;
var menubar = "no";
var titlebar = "no";
var left = (screen.width-newW)/2;
var top = (screen.height-newH)/2;
var url=("http://www.oakland-lana.org/sub_level/slideshows/history/tour_history.htm");
var virtual = window.open(url, 'name', 'menubar', 'titlebar', 'width='+newW+',height='+newH+',left='+left+',top='+top);
virtual.resizeTo(newW, newH);
virtual.moveTo(left, top);
virtual.focus();
return true;
}
/* SLIDESHOW */
var i = 0;
function rotate(num)
{
i=num%document.slideForm.slide.length;
if(i < 0)
{
i=document.slideForm.slide.length-1;
}
document.images.show.src=document.slideForm.slide.options[i].value;
document.slideForm.slide.selectedIndex=i;
}

