// rollover buttons
bName = navigator.appName; 
bVer = parseInt(navigator.appVersion);	
	if ((bName == "Netscape" && bVer >= 3) || 		
	    (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3";
    else br = "n2"
	
if (br== "n3") {

	// header olb button
	var olbon = new Image();
	olbon.src = "images/header-olb_on.jpg";
	var olboff = new Image();
	olboff.src = "images/header-olb_off.jpg";
	
	// prop olb button
	var propolbon = new Image();
	propolbon.src = "images/prop-olb_on.jpg";
	var propolboff = new Image();
	propolboff.src = "images/prop-olb_off.jpg";
	
	// featured next button
	var featuredon = new Image();
	featuredon.src = "images/featured-arrow_on.gif";
	var featuredoff = new Image();
	featuredoff.src = "images/featured-arrow_off.jpg";
	
	// home button
	var btnhomeon = new Image();
	btnhomeon.src = "http://www.mtn-resorts.com/images/button-home_on.gif";
	var btnhomeoff = new Image();
	btnhomeoff.src = "http://www.mtn-resorts.com/images/button-home_off.gif";
	
	// special below button
	var specialBon = new Image();
	specialBon.src = "images/specialBelow_on.gif";
	var specialBoff = new Image();
	specialBoff.src = "images/specialBelow_off.gif";
	
	// special current 
	var specialCon = new Image();
	specialCon.src = "images/specialCurrent_on.gif";
	var specialCoff = new Image();
	specialCoff.src = "images/specialCurrent_off.gif";

}
// end rollover buttons



// pop an image
function popimage(imagesrc,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Image Window: Click to Close</title><body topmargin=0 rightmargin=0 leftmargin=0 marginheight=0 marginwidth=0><A HREF=\"javascript:window.close()\"><img src="'+imagesrc+'" width='+winwidth+' height='+winheight+' alt=\"Please wait for image to download...Click to Close\" border=0></a></body>')
popwin.document.close()
}


// Pop Property Print Window
function openPrintProp(URL) {
aWindow = window.open(URL,"Window","scrollbars=yes,resizable=no,width=665,height=750");
}


//javascript to pop Photos and Floorplans
function openImage(URL,winwidth,winheight) {
var look='width='+winwidth+',height='+winheight+','
aWindow = window.open(URL,"",look);
}

// Pop Air
function openAir(URL) {
aWindow = window.open(URL,"Window","scrollbars=yes,resizable=no,width=750,height=600");
}

function showToolTip(e,text){
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	var leftPos = e.clientX - 100;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -1 + st + 'px';
}	

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}
 
function openCalendar(URL) {
aWindow = window.open(URL,"calendarPopUp","scrollbars=no,resizable=yes,width=270,height=235");
}
window.name = 'dateFormWindow';
	
	

function hideReveal(tid) {
if(document.getElementById(tid).style.display == "none") {
	document.getElementById(tid).style.display = "";
	}
else {
	document.getElementById(tid).style.display = "none";
	}
}

//frame breaker
if (window != top) top.location.href = location.href;



// Pop policies
function openPolicies(URL) {
aWindow = window.open(URL,"Window","scrollbars=yes,resizable=no,width=450,height=525");
}

// Pop Seasonal Rates
function openSeasonalRates(URL) {
aWindow = window.open(URL,"Window","scrollbars=yes,resizable=no,width=650,height=550");
}

// Pop Push to talk window
function openPushToTalk(URL) {
aWindow = window.open(URL,"Window","scrollbars=yes,resizable=no,width=620,height=450");
}

