

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='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='ColdSmoke Rendezvous 2006' /></div>";
releasehelp = releasehelp + "<h3>Release Form Information</h3>";
releasehelp = releasehelp + "<P>Be sure to print and sign the release form to save time during the check-in "; 
releasehelp = releasehelp + "process in White Water Resort. Remember that any participant under the age of 18 will "; 
releasehelp = releasehelp + "need to have the form signed by a parent or legal guardian.</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:coldsmoke@mgear.com?subject=Release Form Question\">coldsmoke@mgear.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='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='ColdSmoke Rendezvous 2006' /></div>";
clinichelp = clinichelp + "<h3>Clinic Enrollment Help</h3>";
clinichelp = clinichelp + "Enrolling your participants in ColdSmoke 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='#15498d'>Enrolled icon</td><td align='center' bgcolor='#15498d'>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:coldsmoke@mgear.com?subject=Clinic Enrollment Assistance\">coldsmoke@mgear.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='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='ColdSmoke Rendezvous 2006' /></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 Spring Mountain Campground. The cost covers all nights during your stay (3/24/2006 - 3/26/2006). ";
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>ColdSmoke 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>Spring Mountain Ranch is located 15 miles west of White Water Resort on Charleston Blvd. in the ColdSmoke 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 + "White Water Resort, 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 + "White Water Resort KOA Kampground<br>";
campinghelp = campinghelp + "4315 Boulder Highway<br>";
campinghelp = campinghelp + "White Water Resort, NV 89121<br>";
campinghelp = campinghelp + "1-800-562-7782<br>";
campinghelp = campinghelp + "</td>";
campinghelp = campinghelp + "<td>";
campinghelp = campinghelp + "Oasis White Water Resort<br>";
campinghelp = campinghelp + "2711 W. Windmill Lane<br>";
campinghelp = campinghelp + "White Water Resort, 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>";

//	ability text that will be written in the pop up html
var abilityhelp;

abilityhelp = "<div style='background-color:white;padding:5px;'>";
abilityhelp = abilityhelp + "<div align='center'><img src='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='ColdSmoke Rendezvous 2006' /></div>";
abilityhelp = abilityhelp + "<h3>Ski Ability</h3>";
campinghelp = abilityhelp + "<table bgcolor='white' border='0' cellpadding='5' cellspacing='1'>";
abilityhelp = abilityhelp + "<tr><td>Please read through this carefully to determine your ability. There is some room for adjustment on the hill but your accuracy here will make the courses run smoother and ";
abilityhelp = abilityhelp + "</td></tr>";
abilityhelp = abilityhelp + "<tr><td>";
abilityhelp = abilityhelp + "<p><b>Beginner</b> (Green circle)<br>";
abilityhelp = abilityhelp + "I can make turns on green circle (beginner) runs at ski areas.<br>";
abilityhelp = abilityhelp + "I have little or no downhill experience.<br>";
abilityhelp = abilityhelp + "I have cross country skied but have little downhill experience.<br>";
abilityhelp = abilityhelp + "I can turn in one direction but have trouble turning comfortably both ways.";

abilityhelp = abilityhelp + "<p><b>Intermediate</b> (Blue Square)<br>";
abilityhelp = abilityhelp + "I can link turns on blue square (intermediate) runs in most conditions.<br>";
abilityhelp = abilityhelp + "I can link turns on low angle terrain in backcountry (ungroomed snow) in most conditions.<br>";
abilityhelp = abilityhelp + "I can ski open terrain but have difficulty skiing in trees.<br>";
abilityhelp = abilityhelp + "I am uncomfortable on black diamond runs in many conditions.";

abilityhelp = abilityhelp + "<p><b>Advanced</b> (Black Diamond)<br>";
abilityhelp = abilityhelp + "I can link turns on black diamond (advanced) runs in most conditions. <br>";
abilityhelp = abilityhelp + "I am comfortable skiing/boarding in deep snow.<br>";
abilityhelp = abilityhelp + "I am comfortable skiing/boarding trees in moderate terrain in most conditions.<br>";
abilityhelp = abilityhelp + "I can link turns on moderate to steep slopes in the backcountry in most conditions.";

abilityhelp = abilityhelp + "</p>";
abilityhelp = abilityhelp + "<h3>Backcountry Experience</h3>";
abilityhelp = abilityhelp + "The Backcountry courses are ability rated too. The rating is based primarily on your ski ability but also on your backcountry experience.  Your fitness level should also be considered, as all courses are full days. Advanced courses will generally require greater fitness as well as advanced skiing skills.";
abilityhelp = abilityhelp + "<p>";

abilityhelp = abilityhelp + "<p><b>Beginner</b><br>";
abilityhelp = abilityhelp + "I have rarely/never backcountry skied/boarded. <br>";
abilityhelp = abilityhelp + "I have toured in the backcountry on cross country skis but never used climbing skins or avalanche gear.";

abilityhelp = abilityhelp + "<p><b>Intermediate</b><br>";
abilityhelp = abilityhelp + "I have backcountry skied/boarded with skins but only on lower angle terrain.<br>";
abilityhelp = abilityhelp + "I have little experience backcountry skiing/boarding in avalanche terrain. <br>";
abilityhelp = abilityhelp + "I have some experience with skins and avy gear.";

abilityhelp = abilityhelp + "<p><b>Advanced</b><br>";
abilityhelp = abilityhelp + "I have backcountry skied/boarded in avalanche terrain quite a bit and have taken a basic avalanche course.<br>";
abilityhelp = abilityhelp + "Am very experienced in the backcountry and have taken advanced avalanche training.";

abilityhelp = abilityhelp + "</p>";
abilityhelp = abilityhelp + "<h3>Fitness</h3>";
abilityhelp = abilityhelp + "Moderate fitness –I can climb and ski/board at a slow pace for the day (vertical ascent under 2000 feet).<br>";
abilityhelp = abilityhelp + "Good Fitness – I can ski tour at a moderate pace for the day (vertical ascent under 3000 feet).<br>";
abilityhelp = abilityhelp + "Excellent fitness – I can climb and ski/board hard for the whole day.";
abilityhelp = abilityhelp + "<p>";

abilityhelp = abilityhelp + "</p>";
abilityhelp = abilityhelp + "<h3>All out of bounds clinics and tours require</h3>";
abilityhelp = abilityhelp + " - Avalanche Transceiver<br>";
abilityhelp = abilityhelp + " - Shoved<br>";
abilityhelp = abilityhelp + " - Probe<br>";
abilityhelp = abilityhelp + " - Climbing Skins<br>";
abilityhelp = abilityhelp + "There will be gear available to demo from the demo area but we cannot guarantee that mandatory equipment will be available to meet your scheduled clinic.<br>";
abilityhelp = abilityhelp + "</td></tr>";
abilityhelp = abilityhelp + "</table>";
abilityhelp = abilityhelp + "</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='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='Cold Smoke 2008' /></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 Cold Smoke 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:coldsmoke@mgear.com?subject=Privacy Policy Question\">coldsmoke@mgear.com</a>.";
privacyhelp = privacyhelp  + "</p>";
privacyhelp = privacyhelp + "</div>";

//	privacy help text that will be written in the pop up html
var cellphonehelp;

cellphonehelp = "<div style='background-color:white;padding:5px;'>";
cellphonehelp = cellphonehelp + "<div align='center'><img src='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='Cold Smoke 2008' /></div>";
cellphonehelp = cellphonehelp + "<h3>Privacy Policy</h3>";
cellphonehelp = cellphonehelp + "<P>We do not sell, lease or rent your phone number without your permission. ";
cellphonehelp = cellphonehelp + "We gather your phone number only when you offer it to us, and use it only when we ";
cellphonehelp = cellphonehelp + "need to contact you regarding your Cold Smoke registration. </P>";

cellphonehelp = cellphonehelp  + "<p>";
cellphonehelp = cellphonehelp  + "If you have further questions, call us at 800.829.2009 or email us as at <a href=\"mailto:coldsmoke@mgear.com?subject=Privacy Policy Question\">coldsmoke@mgear.com</a>.";
cellphonehelp = cellphonehelp  + "</p>";
cellphonehelp = cellphonehelp + "</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='http://www.mountaingear.com/coldsmoke/images/173x30.jpg' border='0' alt='Cold Smoke 2008' /></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:coldsmoke@mgear.com?subject=Cold Smoke Registration Payment Question\">coldsmoke@mgear.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 " + helptext);
	
	if (helptext == "Ability")
	{
		helptext = abilityhelp;
		h = 600;
		w = 800;
	}
	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 = 460;
		w = 410;
		helptext = privacyhelp;
	}
	if (helptext == "cellphone")
	{
		h = 460;
		w = 410;
		helptext = cellphonehelp;
	}
	if (helptext == "payment")
	{
		h = 460;
		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>Cold Smoke Clinic Enrollment Help</title><link rel='stylesheet' href='http://www.mountaingear.com/coldsmoke/includes/ccstyles2.css'></head><body bgcolor='#15498d'><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>Cold Smoke Clinic Enrollment Help</title><link rel='stylesheet' href='http://www.mountaingear.com/coldsmoke/includes/ccstyles2.css'></head><body bgcolor='#15498d'><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>ColdSmoke Rendezvous 2006 Image</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='#15498d'><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>ColdSmoke Rendezvous 2006 Image</title><link rel='stylesheet' href='includes/rr.css'></head><body bgcolor='#15498d'><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 = "images/body/button-on.jpg";
  var buttonOff = new Image();
  buttonOff.src = "images/body/button-off.jpg";  
  var enrollbuttonOn = new Image();
  enrollbuttonOn.src = "images/body/OnlineEnrollment-on.jpg";
  var enrollbuttonOff = new Image();
  enrollbuttonOff.src = "images/body/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;
	}
  }
}
