<!--
function mOverNav(navTD, caption){if (!navTD.contains(event.fromElement)) {navTD.style.backgroundColor='#99CCFF';window.status=caption;}}
function mOutNav(navTD, caption){if (!navTD.contains(event.toElement)) {navTD.style.backgroundColor='#336799';window.status=caption;}}
//-->

<!----

if (document.images) // makes sure browser supports document.images
{
  var inactive_image_var = new Image(); // the inactive image
  inactive_image_var.src = "/images/spacers/pixel.gif";
  var active_image_var = new Image(); // the active image
  active_image_var.src = "/images/nav/left_nav/arrow_light.gif";
 
}

function active(image_name)  // define active script
{

	if (document.images)
		{document[image_name].src = active_image_var.src;}
}

function inactive(image_name)   // define inactive script
{
	if (document.images)
		{document[image_name].src = inactive_image_var.src;}
}
//  ------>

<!-- keep out old browsers
function showWindow(e,content) {
    var x=y=0;
	// get the mouse coordinates
    if (e != '') { 
        x = e.screenX;
        y = e.screenY;
    }
	// move a little away from the mouse for better UI
	x = (x + 10);
	y = (y + 20);
	// now account for where the mouse is and place the box always on the inside of the screen
	if ((y >= 200) && (y <= 349)){ y = (y - 175); }
	if (y >= 350){ y = (y - 375); }
	if (x >= 550){ x = (x - 400); }
	// now open the window and put in the content - 
	myWindow=window.open("",'windowName',
        'resizable=no,scrollbars=yes,width=400,height=300,screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y);
	// this code auto renders a close this window link at the top and bottom of every pop-up spawned
	myWindow.document.open("text/html", "replace");
	myWindow.document.write("<html><head><title>Vendio</title></head><link rel=stylesheet href=http://www.vendio.com/style.css><body BGCOLOR=#FFFFFF LINK=433DAE ALINK=#FF0000 VLINK=#551A8B topmargin=5 leftmargin=5 marginwidth=3 marginheight=3></head><body><center><br><a href=javascript:window.close() class=textLink>Close This Window</a></center><br><table width=100% cellpadding=3 cellspacing=0 border=0><tr><td class=text>");
	// this adds the users' content
	myWindow.document.write(content);
	// finally add the bottom close this window link and close the HTML
	myWindow.document.write("</tr><td>&nbsp;</td></tr><tr><td align=center><a href=javascript:window.close() class=textLink>Close This Window</a></td></tr><tr><td>&nbsp;</td></tr></table></center></body></html>");
	myWindow.document.close();
}
//--> end keep old browsers out

<!-- keep out old browsers
function showWindowURL(e,url,width,height) {
    var x=y=0;
	// get the mouse coordinates
    if (e != '') { 
        x = e.screenX;
        y = e.screenY;
    }
	// sets the max size of the box - necessary to prevent bad UI on 800*600
	//if (height > 400){ height = 400; }
	//if (width > 400){ width = 400; }
	// move a little away from the mouse for better UI
	x = (x + 10); 
	y = (y + 20); 
	// now account for where the mouse is and place the box always on the inside of the screen
	if ((y >= 200) && (y <= 349)){ y = (y - 175); } 
	if (y >= 350){ y = (y - (height + 50)); } 
	if (x >= 550){ x = (x - 400); } 
	// now that you have all variables, open the pop-up 
	myWindow=window.open(url,'windowName',
        'resizable=no,scrollbars=yes,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y);
}
//--> end keep old browsers out



<!-- keep out old browsers

//////////////////// PANEL SCRIPTS ////////////////////

var openPanel = false;
var ignore = 0;

function togglePanel(element) {
	source = document.getElementById(element);
	target = document.getElementById(element + "_panel");
	iframeRef = document.getElementById('iframeTrick');
	if (target.style.display == "none") {
		if (openPanel != false) {
			var panTmp = document.getElementById(openPanel + "_panel");
			if ((typeof(panTmp) != "undefined")&&(panTmp))
				panTmp.style.display = "none";
		}
		target.style.display = "block";
		target.style.left = source.offsetLeft;
		target.style.top = source.offsetHeight;
		if (document.all) {		
			iframeRef.style.width = target.offsetWidth;
			iframeRef.style.height = target.offsetHeight;
			iframeRef.style.top = target.style.top;
			iframeRef.style.left = target.style.left;
			iframeRef.style.zIndex = target.style.zIndex - 1;
			iframeRef.style.display = "block";
		}
		openPanel = element;
	} else {
		target.style.display = "none";
		openPanel = false;
		if (document.all) {
			iframeRef.style.display = "none";
		}
	}	
}	

function overTab(element) {
	if (openPanel == 'search' || openPanel == 'view') {
		if (openPanel != element) {
			togglePanel(element);
		}
	}
}

function toggleButton(element, position) {
	toggleIgnore();
	source = document.getElementById(element);
	target = document.getElementById(element + "_panel");
	if (target.style.display == "none") {
		target.style.display = "block";
		target.style.left = source.offsetLeft + 1;
		if (position == 'top') {
			target.style.top = source.offsetHeight + 4;
		} else {
			target.style.top = 4 - target.offsetHeight;
		}
		if (openPanel != false) {
			togglePanel(openPanel);
		}
		openPanel = element;
	} else {
		target.style.display = "none";
		openPanel = false;
	}
	return true;
}	

function toggleIgnore() {
	ignore = 1;
}

function bodyclick() {
	if (openPanel != false && ignore == 0) {
		togglePanel(openPanel);
	}
	ignore = 0;
}



//////////////////// NAV LOGIN SCRIPT ////////////////////

function submitenter(myfield,e) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	if (keycode == 13) {
		myfield.form.submit();
		return false;
	} else {
		return true;
	}
}


//////////////////// JUMP TO NAV SCRIPT ////////////////////

function jumpTo(loc) {
	if (loc == 'top') {
		top.location.href = document.jumpto.jumper.options[document.jumpto.jumper.selectedIndex].value;
	}
}


var INC_VARIOUS = 1;

//--> end keep old browsers out


