//v1.0 23 aug 2002 chris bassett

if (window.event + "" == "undefined") {
	event = null;
}

function HM_f_PopUp() {
	return false;
}

function HM_f_PopDown() {
	return false;
}

popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 134;
HM_PG_FontFamily = "arial, helvetica, sans-serif;";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#8c3129";
HM_PG_FontColorOver = "#8c3129";
HM_PG_BGColor = "#ffefc6";
HM_PG_BGColorOver = "#ffffff";
HM_PG_ItemPadding = 2;
HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#8c3129";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#8c3129";
HM_PG_ImageSrc = "";
HM_PG_ImageSrcLeft = "HM_More_black_left.gif";
HM_PG_ImageSrcOver = "";
HM_PG_ImageSrcLeftOver = "HM_More_black_left.gif";
HM_PG_ImageSize = 6;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 3;
HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild = 0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;
HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

// Resets nav rollovers to off state. No return value.
// v2.0 13 aug 2002 chris bassett
// now without switch statement
function BI_reset(intCurrentMenu) { //as void
	
	if (intCurrentMenu > 0){
		
		if (Math.floor(intCurrentMenu) == Math.ceil(intCurrentMenu)){
			
			var strNav = 'nav' + (intCurrentMenu);
			var intOriginalImage = 2 * (intCurrentMenu - 1);
			
			document.images[strNav].src = menuImages[intOriginalImage];
			
		}
		
	}

}

//resets all images to default state
//v 1.0 13 august 2020 chris bassett

function BI_setAll(strNavPrefix, intNewMenu){ //as void
	
	
	
	for (i = 1; i <= (menuImages.length / 2); i ++){
		
		var strNavToCall = strNavPrefix + i;
		
		if (i == eval(intNewMenu)){
			
			var intImageSet = (2 * i) - 1;
			
		}else{
			
			var intImageSet = 2 * (i -1);
		
		}
		
		document.images[strNavToCall].src = menuImages[intImageSet];
	}
}

//handles the multiple calls for mouseout actions
// v 1.0 13 aug 2002 chris bassett
function BI_HM_out(intCurrentMenu, strMenuPrefix){ //as void
	
	var strMenuToCall = strMenuPrefix + intCurrentMenu;
	
	currentMenu = intCurrentMenu;
	popDown(strMenuToCall);
	
}

//handles the multiple calls for mouseover actions
//v 1.0 13 aug 2002 chris bassett
function BI_HM_over(intCurrentMenu, intNewMenu, strNavPrefix, strMenuPrefix, strPassThrough){ //as void
	
	var strMenuToCall = strMenuPrefix + intNewMenu;
	
	currentMenu = intCurrentMenu;
	popUp(strMenuToCall, strPassThrough);
	BI_setAll(strNavPrefix, intNewMenu);
	
}

//handles simple single rollovers
//v3.0 23 aug 2002 chris bassett
function BI_singleroll(strName, strImage, strPath){ //as void
	
	//set the default image directory if we didn't get one
	if (strPath == ''){
		strPath = 'images/';
	}
	
	var strMyImage = strPath + strImage;
	document.images[strName].src = strMyImage;
	
}

// these funtions handle the various popup windows located throughout the site

function propertyMapOld(page) {
	var w = window.screen.availWidth;
  var h = window.screen.availHeight;
	if (w >= 905) {
		w = 905;
	}
	if (h >= 550) {
		h = 550;
	}
	picWindow = window.open( page, 'propertyMapOld', 'screenX=0,screenY=0,left=0,top=0,width=' + w + ',height=' + h + ',resizable=1,status=no,menubar=1,toolbar=1,location=no,scrollbars=1')
}




function onlinebooking(page) {
	picWindow = window.open( page, 'onlinebooking',
'toolbar=yes,location=yes,scrollbars=yes,menubar=yes,resizable=yes,status=yes,width=1055,height=665')
}

function facebook(page) {
	picWindow = window.open( page, 'facebook',
'toolbar=yes,location=yes,scrollbars=yes,menubar=yes,resizable=yes,status=yes,width=1000,height=650')
}


function tripadvisor(page) {
	picWindow = window.open( page, 'tripadvisor',
'toolbar=yes,location=yes,scrollbars=yes,menubar=yes,resizable=yes,status=yes,width=1000,height=650')
}


function yelp(page) {
	picWindow = window.open( page, 'yelp',
'toolbar=yes,location=yes,scrollbars=yes,menubar=yes,resizable=yes,status=yes,width=1000,height=650')
}



function evergreenupdates(page) {
	picWindow = window.open( page, 'evergreenupdates', 'toolbar=no,location=no,scrollbars=no,width=483,height=505')
}

function newWindowForm() {
	var popUp = window.open ('','popUp','toolbar=no,location=no,scrollbars=no,width=483,height=505');
	document.sForm.target = 'popUp';
}





function packagewindow(page) {
	picWindow = window.open( page, 'packagewindow',
'toolbar=no,location=no,scrollbars=yes,width=590,height=620')
}

function pdfwindow(page) {
	picWindow = window.open( page, 'pdfwindow',
'toolbar=no,location=no,scrollbars=yes,width=700,height=550')
}





function cabinfloorplan(page) {
	picWindow = window.open( page, 'floorplantraditionalcabins', 'toolbar=no,location=no,scrollbars=no,width=300,height=625')
}

function cabinfloorplanwide(page) {
	picWindow = window.open( page, 'floorplantraditionalcabins', 'toolbar=no,location=no,scrollbars=no,width=380,height=625')
}


function tuolumnehallfloorplan(page) {
	picWindow = window.open( page, 'tuolumnehallfloorplan', 'toolbar=no,location=no,scrollbars=no,width=416,height=699')
}

function cedarroomfloorplan(page) {
	picWindow = window.open( page, 'cedarroomfloorplan', 'toolbar=no,location=no,scrollbars=no,width=300,height=551')
}




function photogallery(page) {
	picWindow = window.open( page, 'photogallery',
'toolbar=no,location=no,scrollbars=no,menubar=no,resizable=no,status=yes,width=870,height=650')
}


function cabinphotogallery(page) {
	picWindow = window.open( page, 'photogallery',
'toolbar=no,location=no,scrollbars=no,menubar=no,resizable=no,status=yes,width=710,height=650')
}




function mediaphotoshorz3x4(page) {
	picWindow = window.open( page, 'mediaphotos',
'toolbar=yes,location=yes,scrollbars=no,menubar=yes,resizable=yes,status=yes,width=900,height=675')
}

function mediaphotoshorz4x6(page) {
	picWindow = window.open( page, 'mediaphotos',
'toolbar=yes,location=yes,scrollbars=no,menubar=yes,resizable=yes,status=yes,width=900,height=600')
}

function mediaphotosvert3x4(page) {
	picWindow = window.open( page, 'mediaphotos',
'toolbar=yes,location=yes,scrollbars=no,menubar=yes,resizable=yes,status=yes,width=450,height=600')
}

function mediaphotosvert4x6(page) {
	picWindow = window.open( page, 'mediaphotos',
'toolbar=yes,location=yes,scrollbars=no,menubar=yes,resizable=yes,status=yes,width=400,height=600')
}

function locationphotoshorz(page) {picWindow = window.open( page, 'photos', 'toolbar=no,location=no,scrollbars=no,width=432,height=310')
}

function locationphotosvert(page) {picWindow = window.open( page, 'photosVertical', 'toolbar=no,location=no,scrollbars=no,width=288,height=454')
}





function recreationcalendar(page) {
	picWindow = window.open( page, 'recreationcalendar',
'toolbar=no,location=no,scrollbars=yes,width=800,height=550')
}



function offSite(page) {
	picWindow = window.open( page, 'offSite', 'toolbar=yes,location=yes,scrollbars=yes,width=725,height=525')
}

function offSite2(page) {
	picWindow = window.open( page, 'offSite', 'toolbar=yes,location=yes,scrollbars=yes,width=800,height=525')
}

function jumaventures(page) {
	picWindow = window.open( page, 'jumaventures',
'toolbar=yes,location=no,scrollbars=yes,width=875,height=565')
}

function pacificcommunityventures(page) {
	picWindow = window.open( page, 'pacificcommunityventures',
'toolbar=yes,location=no,scrollbars=yes,width=875,height=565')
}

function vrbo(page) {
	picWindow = window.open( page, 'vrbo',
'toolbar=yes,location=no,scrollbars=yes,width=925,height=565')
}

function bcorporation(page) {
	picWindow = window.open( page, 'bcorporation',
'toolbar=yes,location=no,scrollbars=yes,width=1000,height=565')
}

function scientificartstudios(page) {
	picWindow = window.open( page, 'scientificartstudios',
'toolbar=yes,location=no,scrollbars=yes,width=1000,height=565')
}

function robbhirsch(page) {
	picWindow = window.open( page, 'robbhirsch',
'toolbar=yes,location=no,scrollbars=yes,width=1000,height=650')
}

function jeffreydavis(page) {
	picWindow = window.open( page, 'jeffreydavis',
'toolbar=yes,location=no,scrollbars=yes,width=1000,height=650')
}

function robertankrum(page) {
	picWindow = window.open( page, 'robertankrum',
'toolbar=yes,location=no,scrollbars=yes,width=1000,height=650')
}

function msnbc(page) {
	picWindow = window.open( page, 'msnbc', 'toolbar=yes,location=yes,scrollbars=yes,width=320,height=485')
}

function bayareabackroads(page) {
	picWindow = window.open( page, 'bayareabackroads',
'toolbar=no,location=no,scrollbars=yes,width=800,height=550')
}

function staynearyosemite(page) {
	picWindow = window.open( page, 'offSite', 'toolbar=yes,location=yes,scrollbars=yes,width=900,height=525')
}

function lastortugas(page) {
	picWindow = window.open( page, 'lastortugas',
'toolbar=yes,location=no,scrollbars=yes,width=875,height=565')
}


function campmather(page) {
	picWindow = window.open( page, 'campmather',
'toolbar=yes,location=no,scrollbars=yes,width=850,height=565')
}






function yosemitevalleyview(page) {
	picWindow = window.open( page, 'yosemitevalleyview',
'toolbar=no,location=no,scrollbars=yes,width=660,height=565')
}

function halfdomeview1(page) {
	picWindow = window.open( page, 'halfdomeview',
'toolbar=no,location=no,scrollbars=yes,width=660,height=565')
}

function halfdomeview2(page) {
	picWindow = window.open( page, 'yosemitevalleyview',
'toolbar=no,location=no,scrollbars=yes,width=800,height=600')
}

function weatherforecast(page) {
	picWindow = window.open( page, 'weatherforecast',
'toolbar=yes,location=no,scrollbars=yes,width=900,height=565')
}

function evergreendirections(page) {
	picWindow = window.open( page, 'evergreendirections',
'toolbar=yes,location=no,scrollbars=yes,width=800,height=565')
}

function yosemitevalleyweather(page) {
	picWindow = window.open( page, 'yosemitevalleyweather', 'toolbar=no,location=no,scrollbars=no,width=408,height=420')
}

function addons(page) {
	picWindow = window.open( page, 'addons', 'toolbar=no,location=no,scrollbars=no,width=675,height=275')
}



function mapArea(page) {picWindow = window.open( page, 'mapArea', 'toolbar=no,location=no,scrollbars=no,width=417,height=364')
}

function mapDirectional(page) {picWindow = window.open( page, 'mapDirectional', 'toolbar=no,location=no,scrollbars=no,width=791,height=530')
}

function propertymap(page) {
	picWindow = window.open( page, 'propertymap', 'toolbar=no,location=no,scrollbars=no,width=870,height=750')
}

function campgroundmap(page) {
	picWindow = window.open( page, 'campgroundmap', 'toolbar=no,location=no,scrollbars=no,width=870,height=650')
}

function swimmingpoolmap(page) {
	picWindow = window.open( page, 'swimmingpoolmap', 'toolbar=no,location=no,scrollbars=no,width=1000,height=725')
}

function tuolumneRiver(page) {
	picWindow = window.open( page, 'tuolumneRiver', 'toolbar=no,location=no,scrollbars=no,width=408,height=308')
}

function mercedRiver(page) {
	picWindow = window.open( page, 'mercedRiver', 'toolbar=no,location=no,scrollbars=no,width=408,height=308')
}

function testimonials(page) {
	picWindow = window.open( page, 'testimonials', 'toolbar=no,location=no,scrollbars=no,width=750,height=600')
}































