
var new_win = null;
var h = 600;
var w = 550;
var img = null;
			
var strWinVars;

//	release form information text that will be written in the pop up html
var releasehelp;

releasehelp = "<div style='background-color:white;padding:5px;'>";
releasehelp = releasehelp + "<div align='center'><img src='images/rrr_top_nav_popup.jpg' border='0' alt='Red Rock Rendezvous 2009' /></div>";
releasehelp = releasehelp + "<h3>Release Form Information</h3>";
releasehelp = releasehelp + "<P>Remember that any participant under the age of 18 will "; 
releasehelp = releasehelp + "need to have the form signed by a parent or legal guardian at registration.</P>";

releasehelp = releasehelp + "<p>";
releasehelp = releasehelp + "If you have further questions, call us at 800.829.2009 or email us as at <a href=\"mailto:redrock@mountaingear.com?subject=Release Form Question\">redrock@mountaingear.com</a>.";
releasehelp = releasehelp + "</p>";
releasehelp = releasehelp + "</div>";

//	clinic information text that will be written in the pop up html
var clinichelp;

clinichelp = "<div style='background-color:white;padding:5px;'>";
clinichelp = clinichelp + "<div align='center'><img src='images/rrr_top_nav_popup.jpg' border='0' alt='Red Rock Rendezvous 2009' /></div>";
clinichelp = clinichelp + "<h3>Clinic Enrollment Help</h3>";
clinichelp = clinichelp + "Enrolling your participants in Red Rock Rendezvous clinics is easy. ";
clinichelp = clinichelp + "Just follow the instructions below and you will be enrolled in no time.</p>";
clinichelp = clinichelp + "<p>";
clinichelp = clinichelp + "<ol class='list1'>";
clinichelp = clinichelp + "<li>Start with your participant list and click on your name. This will take you to clinic enrollment.</li>";
clinichelp = clinichelp + "<li>On the enrollment page, click on the enroll link next to the clinic you would like to enroll in. This will take you to the clinic details page.</li>";
clinichelp = clinichelp + "<li>On the clinic details page, select a clinic date/time from the drop down box and click enroll. You will be returned to the enrollment page and your clinic enrollment details will be displayed at the top of the page.</li>";
clinichelp = clinichelp + "<li>Repeat steps 2 and 3 to enroll in your second clinic.</li>";
clinichelp = clinichelp + "<li>If you have more than one participant, click on one of the links to <i>your participant list</i> to choose clinics for the next participant.</li>";
clinichelp = clinichelp + "<li>When you are finished, all of your participants should have a check mark next to their name under <i>Saturday Clinic</i> and <i>Sunday Clinic.</i>";
clinichelp = clinichelp + "</ol>";
clinichelp = clinichelp + "</p>";

//clinichelp = clinichelp + "<p>Clinic enrollment will be available soon. Once clinic enrollment is available, you can click on the question mark icon to get detailed enrollment steps.</p>";

clinichelp = clinichelp + "<div align='center'><table width='80%' bgcolor='#fffff'><tr><td align='center' bgcolor='maroon'>Enrolled icon</td><td align='center' bgcolor='maroon'>Not enrolled icon</td></tr>";
clinichelp = clinichelp + "<tr><td align='center'><img src='img/1.gif' border='0' /></td><td align='center'><img src='img/0.gif' border='0' /></td></tr></table></div>";

clinichelp = clinichelp + "<p>";
clinichelp = clinichelp + "If you need further assistance enrolling in your clinics, call us at 800.829.2009 or email us at <a href=\"mailto:redrock@mountaingear.com?subject=Clinic Enrollment Assistance\">redrock@mountaingear.com</a>.";
clinichelp = clinichelp + "</p>";
clinichelp = clinichelp + "</div>";


//	camping information text that will be written in the pop up html
var campinghelp;

campinghelp = "<div style='background-color:white;padding:5px;'>";
campinghelp = campinghelp + "<div align='center'><img src='images/rrr_top_nav_popup.jpg' border='0' alt='Red Rock Rendezvous 2009' /></div>";
campinghelp = campinghelp + "<h3>Camping Information</h3>";
campinghelp = campinghelp + "<table bgcolor='white' border='0' cellpadding='5' cellspacing='1'>";
campinghelp = campinghelp + "<tr><td>";
//campinghelp = campinghelp + "<b>Group Campsite - FULL - SEE BELOW FOR ADDITIONAL CAMPING OPTIONS</b><br>";
campinghelp = campinghelp + "</td></tr>";
campinghelp = campinghelp + "<tr><td>";
campinghelp = campinghelp + "<p>";
campinghelp = campinghelp + "The $15 camping fee will include a spot at Bonnie Springs. The cost covers all nights during your stay (3/20/2009 - 3/22/2009). ";
//campinghelp = campinghelp + "In addition to the camping fee, you will be responsible for a parking fee that will be payable at the time of check-in.";
campinghelp = campinghelp + "</p>";
//campinghelp = campinghelp + "<p>Red Rock Canyon Campground is located two miles east of the visitor center on W. Charleston Blvd (State Route 159). The campground is located one mile south on Moenkopi ";
//campinghelp = campinghelp + "Road  from the junction with W. Charleston Blvd.";
//campinghelp = campinghelp + "</p>";
campinghelp = campinghelp + "<p>Bonnie Springs is located 16 miles west of Las Vegas on Charleston Blvd. in the Red Rock Canyon National Conservation Area.";
campinghelp = campinghelp + "</p>";
campinghelp = campinghelp + "<p>";
campinghelp = campinghelp + "<b>You are responsible for knowing and following campground rules and regulations:</b>";
campinghelp = campinghelp + "</p>";
campinghelp = campinghelp + "<ul>";
campinghelp = campinghelp + "<li>NO Pets</li>";
campinghelp = campinghelp + "<li>Obey all signs</li>";
campinghelp = campinghelp + "<li>Observe closed areas</li>";
campinghelp = campinghelp + "<li>Campground	speed limit: 10 mph</li>";
campinghelp = campinghelp + "<li>Quiet hours are from 10 pm until 6 am (the use of generators and radios ";
campinghelp = campinghelp + "prohibited during this time) </li>";
campinghelp = campinghelp + "<li>Please dispose of litter properly. Use the trash cans provided.</li>";
campinghelp = campinghelp + "</ul>";
campinghelp = campinghelp + "</td></tr>";
campinghelp = campinghelp + "</td></tr></table>";
campinghelp = campinghelp + "<br />";
campinghelp = campinghelp + "<table border='0' cellpadding='5' cellspacing='1' width='500px' ID='Table1' bgcolor='white'>";
campinghelp = campinghelp + "<tr><td colspan='2'>";
campinghelp = campinghelp + "<b>Additional Camping Options</b><br>";
campinghelp = campinghelp + "<tr>";
campinghelp = campinghelp + "<td width='50%' valign='top'>";
campinghelp = campinghelp + "Many campsites at Lake Mead:<br>";
campinghelp = campinghelp + "<a href='http://www.nps.gov/lame/lodging.html' target='_blank'>http://www.nps.gov/lame/lodging.html</a>";
campinghelp = campinghelp + "</td>";
campinghelp = campinghelp + "<td width='50%'>";
campinghelp = campinghelp + "Holiday Travel Park - RV Park<br>";
campinghelp = campinghelp + "3890 S. Nellis Blvd.<br>";
campinghelp = campinghelp + "Las Vegas, NV 89121<br>";
campinghelp = campinghelp + "(702) 451-8005<br>";
campinghelp = campinghelp + "<br>";
campinghelp = campinghelp + "</td>";
campinghelp = campinghelp + "</tr>";
campinghelp = campinghelp + "<tr>";
campinghelp = campinghelp + "<td>";
campinghelp = campinghelp + "Las Vegas KOA Kampground<br>";
campinghelp = campinghelp + "4315 Boulder Highway<br>";
campinghelp = campinghelp + "Las Vegas, NV 89121<br>";
campinghelp = campinghelp + "1-800-562-7782<br>";
campinghelp = campinghelp + "</td>";
campinghelp = campinghelp + "<td>";
campinghelp = campinghelp + "Oasis Las Vegas<br>";
campinghelp = campinghelp + "2711 W. Windmill Lane<br>";
campinghelp = campinghelp + "Las Vegas, NV 89123<br>";
campinghelp = campinghelp + "1-800-566-4707<br>";
campinghelp = campinghelp + "</td>";
campinghelp = campinghelp + "</tr>";
campinghelp = campinghelp + "<tr><td colspan='2'>";
campinghelp = campinghelp + "Alternative camping is alson available on the Lovell Canyon Rd in the Humbolt-Toiyabe ";
campinghelp = campinghelp + "National Forest. There are no developed campgrounds on the road, dispersed camping ";
campinghelp = campinghelp + "is permitted. Driving directions: Take SR 159 (W. Charleston Blvd) south past Blue ";
campinghelp = campinghelp + "Diamond. At the junction of SR 160 (about 10 miles) turn right heading west toward ";
campinghelp = campinghelp + "Pahrump. About 12 miles you will go over the Mountain Springs summit then come to ";
campinghelp = campinghelp + "the turnoff to Lovell Canyon on the right side (north side) of SR 160. The area is ";
campinghelp = campinghelp + "National Forest although there are a few parcels of private property.";
campinghelp = campinghelp + "</td></tr>";
campinghelp = campinghelp + "</table>";
campinghelp = campinghelp + "</div>";

//	privacy help text that will be written in the pop up html
var privacyhelp;

privacyhelp = "<div style='background-color:white;padding:5px;'>";
privacyhelp = privacyhelp + "<div align='center'><img src='images/rrr_top_nav_popup.jpg' border='0' alt='Red Rock Rendezvous 2009' /></div>";
privacyhelp = privacyhelp + "<h3>Privacy Policy</h3>";
privacyhelp = privacyhelp + "<P>We do not sell, lease or rent your email address without your permission. ";
privacyhelp = privacyhelp + "We gather your email address only when you offer it to us, and use it only when we ";
privacyhelp = privacyhelp + "need to contact you regarding your Red Rock Rendezvous registration. </P>";

privacyhelp = privacyhelp  + "<p>";
privacyhelp = privacyhelp  + "If you have further questions, call us at 800.829.2009 or email us as at <a href=\"mailto:redrock@mountaingear.com?subject=Privacy Policy Question\">redrock@mountaingear.com</a>.";
privacyhelp = privacyhelp  + "</p>";
privacyhelp = privacyhelp + "</div>";

//	payment help text that will be written in the pop up html
var paymenthelp;

paymenthelp = "<div style='background-color:white;padding:5px;'>";
paymenthelp = paymenthelp + "<div align='center'><img src='images/rrr_top_nav_popup.jpg' border='0' alt='Red Rock Rendezvous 2009' /></div>";
paymenthelp = paymenthelp + "<h3>Payment Information</h3>";
paymenthelp = paymenthelp + "<p>";
paymenthelp = paymenthelp + "The credit card number you supply will be charged for the total cost of your ";
paymenthelp = paymenthelp + "registration within 48 hours after completion of online registration.</p>";
paymenthelp = paymenthelp + "<P>If you cancel with less than 48 hours notice prior to the start of the ";
paymenthelp = paymenthelp + "event, your registration fee will not be refunded. If you cancel with more than ";
paymenthelp = paymenthelp + "48 hours notice prior to the start of the event, all but a $10 administrative ";
paymenthelp = paymenthelp + "fee per cancelled entry will be refunded to the credit card charged initially ";
paymenthelp = paymenthelp + "for the registration.</P>";

paymenthelp = paymenthelp   + "<p>";
paymenthelp = paymenthelp   + "If you have further questions, call us at 800.829.2009 or email us as at <a href=\"mailto:redrock@mountaingear.com?subject=Red Rock Registration Payment Question\">redrock@mountaingear.com</a>.";
paymenthelp = paymenthelp   + "</p>";
paymenthelp = paymenthelp + "</div>";
			
// function that opens up a pop up window and displays the help text version that corresponds to 
// the helptext variable passed in

function open_win(helptext)
{
	//alert("opening window");
	
	if (helptext == "camping")
	{
		helptext = campinghelp;
		h = 600;
		w = 550;
	}
	if (helptext == "clinic")
	{
		helptext = clinichelp;
	}
	if (helptext == "release")
	{
		h = 460;
		w = 410;
		helptext = releasehelp;
	}
	if (helptext == "privacy")
	{
		h = 560;
		w = 410;
		helptext = privacyhelp;
	}
	if (helptext == "payment")
	{
		h = 560;
		w = 410;
		helptext = paymenthelp;		
	}
				
	if ( new_win == null)
	{																			
			
		strWinVars = "toolbar=no, location=no, scrollbars=yes, resizable=no, height=" + h + ", width=" + w + ", leftpos=100, top=10";

		new_win = window.open("", "rrr", strWinVars);
		new_win.document.write("<html><head><title>Red Rock Rendezvous Clinic Enrollment Help</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='maroon'><br />" + helptext + "<br /><div align='center'><input type='button' value='close' onClick='window.close();' /></div><br /><br /></body></html>");
		
	}
				
	else
	{
		new_win.close();

		strWinVars = "toolbar=no, location=no, scrollbars=yes, resizable=no, height=" + h + ", width=" + w + ", leftpos=100, top=10";

		new_win = window.open("", "rrr", strWinVars);
		new_win.document.write("<html><head><title>Red Rock Rendezvous Clinic Enrollment Help</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='maroon'><br />" + helptext + "<br /><div align='center'><input type='button' value='close' onClick='window.close();' /></div><br /><br /></body></html>");

	}
}

//	open image window function given the name of the image (imageloc) that is 
//	in the img/event directory

function open_win_image(imageloc)
{
	var img = new Image();
	img.src = "img/event/" + imageloc;
	
	w = img.width + 50;
	h = img.height + 250;
	
	//alert("w: " + w + "   h: " + h);
	
	if ( new_win == null)
	{																			
			
		strWinVars = "toolbar=no, location=no, scrollbars=no, resizable=yes, height=" + h + ", width=" + w + ", leftpos=100, top=10";
		new_win = window.open("", "rrr", strWinVars);
		new_win.document.write("<html><head><title>Red Rock Rendezvous 2009 Image</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='maroon'><br /><div align='center'><img src=" + img.src + " border=0 alt='' onload='rs()' /><br /><br /><input type='button' value='close' onClick='window.close();' /></div><br /><br /><script language='javascript'>function rs(){window.resizeTo(document.images[0].width + 50, document.images[0].height + 150);}</script></body></html>");
		
	}
				
	else
	{
		new_win.close();

		strWinVars = "toolbar=no, location=no, scrollbars=no, resizable=yes, height=" + h + ", width=" + w + ", leftpos=100, top=10";

		new_win = window.open("", "rrr", strWinVars);
		new_win.document.write("<html><head><title>Red Rock Rendezvous 2009 Image</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='maroon'><br /><div align='center'><img src=" + img.src + " border=0 alt='' onload='rs()' /><br /><br /><input type='button' value='close' onClick='window.close();' /></div><br /><br /><script language='javascript'>function rs(){window.resizeTo(document.images[0].width + 50, document.images[0].height + 150);}</script></body></html>");

	}

}

//	button rollover function

if (document.images) {
  var buttonOn = new Image();
  buttonOn.src = "img/homepage/button-on.jpg";
  var buttonOff = new Image();
  buttonOff.src = "img/homepage/button-off.jpg";  
  var enrollbuttonOn = new Image();
  enrollbuttonOn.src = "img/OnlineEnrollment-on.jpg";
  var enrollbuttonOff = new Image();
  enrollbuttonOff.src = "img/OnlineEnrollment-off.jpg";
}


// function for mouseover event of buttons
function act(buttonnumber) 
{
  if (document.images)
  {
	if(buttonnumber == 1)
	{
		document.images.button.src = buttonOn.src;
	}
	if(buttonnumber == 2)
	{
		document.images.button2.src = buttonOn.src;
	}
	if(buttonnumber == 3)
	{
		document.images.enrollbutton.src = enrollbuttonOn.src;
	}
  }
}

// function for mouseout event of buttons
function inact(buttonnumber) 
{
  if (document.images)
  {
	if(buttonnumber == 1)
	{
		document.images.button.src = buttonOff.src;
	}
	if(buttonnumber == 2)
	{
		document.images.button2.src = buttonOff.src;
	}
		if(buttonnumber == 3)
	{
		document.images.enrollbutton.src = enrollbuttonOff.src;
	}
  }
}
