// ------------------------------------------------------------------------------
/*

jonTroth.com Ltd. ----- www.jontroth.com ----- info@jontroth.com
P: (905) 528.7081      C: (905) 971.3976
73 Ferguson Ave. North, Hamilton, Ontario, Canada L8R 1L3

Menu setup - October 08 2004 

*/
// ------------------------------------------------------------------------------

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function mmLoadMenus() {
  if (window.mm_menu_0924220938_0) return;
  window.mm_menu_0924220938_0 = new Menu("root",200,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#3d9347","#307438","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_0.addMenuItem("Studio","window.open('"+PATH+"'+'rooms_rates_studio.html', '_self');");
  mm_menu_0924220938_0.addMenuItem("1 Bedroom Suite","window.open('"+PATH+"'+'rooms_rates_bed_1.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("2 Bedroom Suite","window.open('"+PATH+"'+'rooms_rates_bed_2.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("3 Bedroom Suite","window.open('"+PATH+"'+'rooms_rates_bed_3.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("3 Bedroom Trailside Townhomes","window.open('"+PATH+"'+'rooms_rates_townhomes.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("2-4 Bedroom Explorer Cabins","window.open('"+PATH+"'+'rooms_rates_cabin.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("All Accommodations","window.open('"+PATH+"'+'rooms_rates_all_rooms.html', '_parent');");
  mm_menu_0924220938_0.addMenuItem("Photo Gallery","window.open('"+PATH+"'+'gallery.html', '_parent');");    
  mm_menu_0924220938_0.hideOnMouseOut=true;
  mm_menu_0924220938_0.menuBorder=1;
  mm_menu_0924220938_0.menuLiteBgColor='#6ac175';
  mm_menu_0924220938_0.menuBorderBgColor='#235629';
  mm_menu_0924220938_0.bgColor='#235629';

  window.mm_menu_0924220938_1 = new Menu("root",200,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#0F62A2","#303874","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_1.addMenuItem("What is 'Club Sundance'?","window.open('"+PATH+"'+'club_index.html', '_self');");
  mm_menu_0924220938_1.addMenuItem("Waterslide, Pool & Hot Tubs","window.open('"+PATH+"'+'club_winter_water.html', '_self');");
  mm_menu_0924220938_1.addMenuItem("Sundance Theatre","window.open('"+PATH+"'+'club_theatre.html', '_parent');");
  mm_menu_0924220938_1.addMenuItem("Kids' Club","window.open('"+PATH+"'+'club_fun_room.html', '_parent');");
  mm_menu_0924220938_1.addMenuItem("Fireside Lounge","window.open('"+PATH+"'+'club_lounge.html', '_parent');");    
  mm_menu_0924220938_1.addMenuItem("Fitness Centre","window.open('"+PATH+"'+'club_fitness.html', '_parent');");
  mm_menu_0924220938_1.addMenuItem("Sundance Resort Video","window.open('"+PATH+"'+'sundance_video.html', '_parent');");  
  mm_menu_0924220938_1.addMenuItem("Photo Gallery","window.open('"+PATH+"'+'gallery.html', '_parent');");
  mm_menu_0924220938_1.hideOnMouseOut=true;
  mm_menu_0924220938_1.menuBorder=1;
  mm_menu_0924220938_1.menuLiteBgColor='#6A7AC1';
  mm_menu_0924220938_1.menuBorderBgColor='#272356';
  mm_menu_0924220938_1.bgColor='#272356';

  window.mm_menu_0924220938_2 = new Menu("root",200,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#E5702C","#9F4D1C","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_2.addMenuItem("About Sundance Resort","window.open('"+PATH+"'+'story_index.html', '_self');")    
  mm_menu_0924220938_2.addMenuItem("Our Vision, Your Vacation","window.open('"+PATH+"'+'story_our_vision.html', '_self');");;
  mm_menu_0924220938_2.addMenuItem("Sundance Resort Video","window.open('"+PATH+"'+'sundance_video.html', '_parent');");
  mm_menu_0924220938_2.addMenuItem("Photo Gallery","window.open('"+PATH+"'+'gallery.html', '_parent');");
  mm_menu_0924220938_2.addMenuItem("Enviro Friendly","window.open('"+PATH+"'+'story_enviro_friendly.html', '_parent');");
  mm_menu_0924220938_2.addMenuItem("What Our Past Guests Say","window.open('"+PATH+"'+'testimonials.html', '_parent');");       mm_menu_0924220938_2.addMenuItem("Partners & Friends","window.open('"+PATH+"'+'sundance_partners.html', '_parent');");  
  mm_menu_0924220938_2.addMenuItem("FAQs","window.open('"+PATH+"'+'faqs.html', '_parent');");
  mm_menu_0924220938_2.addMenuItem("Your Privacy","window.open('"+PATH+"'+'story_privacy.html', '_parent');");
	mm_menu_0924220938_2.addMenuItem("Club Sundance E-Newsletter","window.open('"+PATH+"'+'story_newsletter.html', '_parent');");
	mm_menu_0924220938_2.hideOnMouseOut=true;
  mm_menu_0924220938_2.menuBorder=1;
  mm_menu_0924220938_2.menuLiteBgColor='#6A7AC1';
  mm_menu_0924220938_2.menuBorderBgColor='#9F4D1C';
  mm_menu_0924220938_2.bgColor='#9F4D1C';

  window.mm_menu_0924220938_3 = new Menu("root",120,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#ADAF00","#727309","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_3.addMenuItem("The Stats","window.open('"+PATH+"'+'specials_stats.html', '_self');");
  mm_menu_0924220938_3.hideOnMouseOut=true;
  mm_menu_0924220938_3.menuBorder=1;
  mm_menu_0924220938_3.menuLiteBgColor='#6A7AC1';
  mm_menu_0924220938_3.menuBorderBgColor='#727309';
  mm_menu_0924220938_3.bgColor='#727309';

  window.mm_menu_0924220938_4 = new Menu("root",170,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#31A8F2","#14669A","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_4.addMenuItem("Own at Sundance Resort","window.open('"+PATH+"'+'../own_at_sundance.html', '_self');");
  mm_menu_0924220938_4.hideOnMouseOut=true;
  mm_menu_0924220938_4.menuBorder=1;
  mm_menu_0924220938_4.menuLiteBgColor='#6A7AC1';
  mm_menu_0924220938_4.menuBorderBgColor='#14669A';
  mm_menu_0924220938_4.bgColor='#14669A';

  window.mm_menu_0924220938_5 = new Menu("root",120,19,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#E08B39","#B47336","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0924220938_5.addMenuItem("Contact Info","window.open('"+PATH+"'+'contact_index.html', '_self');");
  mm_menu_0924220938_5.addMenuItem("Maps &amp; Directions","window.open('"+PATH+"'+'contact_maps.html', '_self');"); 
  mm_menu_0924220938_5.addMenuItem("Work With Us","window.open('"+PATH+"'+'story_work_with_us.html', '_parent');");
  mm_menu_0924220938_5.hideOnMouseOut=true;
  mm_menu_0924220938_5.menuBorder=1;
  mm_menu_0924220938_5.menuLiteBgColor='#C77F3B';
  mm_menu_0924220938_5.menuBorderBgColor='#96602C';
  mm_menu_0924220938_5.bgColor='#C77F3B';

  mm_menu_0924220938_5.writeMenus();
} // mmLoadMenus()
<!--
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->