var wini;  //for storing a window
// This is for the Top nav bar images
if(document.getElementById || document.all ) {
  meet1 = new Image();
	meet1.src = "/images/nav/lrcvb_2nd_nav_meetings_base.gif";
	meet2  = new Image();
	meet2.src = "/images/nav/lrcvb_2nd_nav_meetings.gif";
	
  tour1 = new Image()
	tour1.src = "/images/nav/lrcvb_2nd_nav_tours_base.gif";
	tour2  = new Image()
	tour2.src = "/images/nav/lrcvb_2nd_nav_tours.gif";
	
  reunion1 = new Image()
	reunion1.src = "/images/nav/lrcvb_2nd_nav_reunions_base.gif";
	reunion2  = new Image()
	reunion2.src = "/images/nav/lrcvb_2nd_nav_reunions.gif";
	
  media1 = new Image()
	media1.src = "/images/nav/lrcvb_2nd_nav_media_base.gif";
	media2  = new Image()
	media2.src = "/images/nav/lrcvb_2nd_nav_media.gif";
	
  contus1 = new Image()
	contus1.src = "/images/nav/lrcvb_2nd_nav_contact_base.gif";
	contus2  = new Image()
	contus2.src = "/images/nav/lrcvb_2nd_nav_contact.gif";
}
function Up(index) {
	if (document.images)
		document.images['nav' + index].src = navimg2[index].src
}

function Down(index) {
	if (document.images)
		document.images['nav' + index].src = navimg1[index].src
}

function hiLite(rep, name) {
 	if (document.images)
		document.images[name].src = eval(rep +'.src');
}

function popWin(type, value, gallery, name, id, width, height) {
	h = (height) ? height : 400;
	w = (width) ? width : 500;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =  'height='+ h +',width='+ w +',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';
	if (wini && !wini.closed) {
		wini.resizeTo(w, h);
	}
	wini = window.open('/popup.asp?type='+type+'&value='+value+'&gallery='+gallery+'&name='+name+'&id='+id,type,settings);
}

function showHide(num) { //Used by search pages with multiple tabs
	if (document.getElementById) {
		for (var i = 0; i < holder.length; i++)
			holder[i].style.display = 'none';
		holder[num].style.display = 'block';
	}
}

function init() {
// NOTE: do not add any arguments to this function.
// 	any new init code not found in functions outside of init should call init after finishing
// ex window.onload = myfunction
// function myfunction() { .... does stuff ....; init(); }
//	add initialization code here;
	return true;
}


// this should make the extunal links open in the same window

var browserName=navigator.appName; 


function detectBrowser()
{

var browserName=navigator.appName; 
if (browserName=="gb_SKUnavailable")
{ 
 target="self"
}



}