origdefaulttravel = 1 // how many pixels at a time the panorma images moves (tradeoff:speed vs. smoothness)
origdefaulttimeout = 1 // how many milliseconds between moves
ScrollMargin = 200;
scrollSpeedFactor = 25
//Default Scroll/Pan Values
scrollMargin = 200
panHeight = 150
panImgWidth = 2765

lastCursorY = 0
lastCursorX = 0

//where the menu popins appear in relation to the cursor (pixels)
menuOffsetLeft = 55
menuOffsetTop = 12

//Browser testing




//pixels to add to the ScreenOffsetY when positioning the top nav bar
navlayerOffset = 5
	
origItemTop = 0
xoffset = 0;
yoffset = 0;
scrollFreeze = false;
openPopInns = 0;
defaulttravel = origdefaulttravel;
defaulttimeout = origdefaulttimeout;
initialized = false;
loaded = false;
var prevOnLoadPan = null;
var prevOnResizePan = null;
if (window.onload != null) {
  prevOnLoadPan = window.onload;
}
if (window.onresize != null) {
  prevOnResizePan = window.onresize;
}
var vstate = false;
var startx = 0;
var starty = 0;

// When starting, the x- and y-positions should be zero, just to make sure
var xpos = 0;
var ypos = 0;

// The initial level is also zero (no layers are open)
level = 0;

// Set t to false. t is used for timeouts on the mouseovers, -outs
t = false;

MENU_WIDTH = 150

//Event Handlers

xAddEventListener(window, 'load', initPage, false)
xAddEventListener(window, 'resize', initPage, false)


//////Pan