/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/

var oldwin=null;
var oldwinfirst = null;
var newwin=null;
var picwin=null;
var vanilla=',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
var vanillas=',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

function ShowOldMap(mypage){

if ( oldwin != null && oldwin.closed ){ oldwin = null; }
if ( oldwin == null )
{
oldwinfirst=mypage;
LeftPosition=(screen.width)?0:100;TopPosition=(screen.height)?(screen.height-570):100;
settings='width=670,height=510,top='+TopPosition+',left='+LeftPosition+vanilla;
oldwin=window.open("../oldMap.htm",'oldmaps',settings);
}
else { oldwin.mainFrame.location=mypage; }
oldwin.focus();
}

function ShowNewMap(mypage){
	
LeftPosition=(screen.width)?(screen.width-620):300;TopPosition=(screen.height)?(screen.height-680):100;
settings='width=620,height=580,top='+TopPosition+',left='+LeftPosition+vanilla;

newwin=window.open(mypage,'newmaps',settings);
newwin.focus();
}
function ShowPicMap(mypage){
	
LeftPosition=(screen.width)?(screen.width-720)/2:300;TopPosition=(screen.height)?(screen.height-780):100;
settings='width=720,height=680,top='+TopPosition+',left='+LeftPosition+vanillas;

picwin=window.open(mypage,'Photos',settings);
picwin.focus();
}
