<!--



/***********************************************

* Required field(s) validation v1.10- By NavSurf

* Visit Nav Surf at http://navsurf.com

* Visit http://www.dynamicdrive.com/ for full source code

***********************************************/



function formCheck(formobj, formnum, hasPass){

	var fieldRequired;

	var fieldDescription;

	if (formnum==1) {

		// Enter name of mandatory fields

		fieldRequired = Array("clientPass", "verClientPass", "courseName", "address", "city", "postal", "phone", "website", "country", "province", "region", "area", "description", "greenFee", "holes", "typeCourse", "range", "lessons", "email", "contactName");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Password", "Retype Password", "Golf Course Name", "Address", "City", "Postal Code", "Phone Number", "Website Address", "Country", "Province/State", "Region", "Area", "Course Facility & Description", "Current Green Fee Rates", "No. Holes Offered", "Type of Course", "Driving Range", "Lessons", "Email Address", "Contact Name");

	}

	else if(formnum==2) {

		// Enter name of mandatory fields

		fieldRequired = Array("firstName", "lastName", "email");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("First Name", "Last Name", "Email Address");

	}

	else if(formnum==3) {

		// Enter name of mandatory fields

		fieldRequired = Array("specialTitle", "specialDescription","specialMonth", "specialDay", "specialYear");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Special Offer Title", "Description", "Effective Until (Month)", "Effective Until (Day)", "Effective Until (Year)");

	}

	else if(formnum==4) {

		// Enter name of mandatory fields

		fieldRequired = Array("packageTitle", "packageDescription", "packageMonth", "packageDay", "packageYear");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Package Offer Title", "Description", "Effective Until (Month)", "Effective Until (Day)", "Effective Until (Year)");

	}

	else if(formnum==5) {

		// Enter name of mandatory fields

		fieldRequired = Array("firstName", "lastName", "email", "comments", "method");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("First Name", "Last Name", "Email Address", "Questions or Comments", "Preferred Method of Contact");

	}

	else if(formnum==6) {

		// Enter name of mandatory fields

		fieldRequired = Array("clientPass", "verClientPass");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Password", "Retype Password");

	}

	else if(formnum==7) {

		// Enter name of mandatory fields

		fieldRequired = Array("clientPass", "verClientPass", "firstName", "lastName");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Password", "Retype Password", "First Name", "Last Name");

	}

	else if(formnum==8) {

		// Enter name of mandatory fields

		fieldRequired = Array("eventTitle", "eventMonth", "eventDay", "eventYear", "eventLocation", "eventContactName", "eventContactEmail");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Event Title", "Date (Month)", "Date (Day)", "Date (Year)", "Location", "Contact Name", "Contact Email");

	}

	else if(formnum==9) {

		// Enter name of mandatory fields

		fieldRequired = Array("uploadedfile", "display", "url", "typeImage");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("File to Upload", "Link Display", "Link URL", "Type of Image");

	}

	else if(formnum==10) {

		// Enter name of mandatory fields

		fieldRequired = Array("email");

		// Enter field description to appear in the dialog box

		fieldDescription = Array("Email Address");

	}

	// check the password

	if (hasPass==true && (formobj.elements[fieldRequired[0]].value != formobj.elements[fieldRequired[1]].value)) {

		// dialog message

		var alertMsg = "Password Mismatch. The retyped password does not match the initial password.";

		

		var l_Msg = alertMsg.length + 1;

		

	}else {

		// dialog message

		var alertMsg = "Please complete the following fields:\n";

		

		var l_Msg = alertMsg.length;

		

		for (var i = 0; i < fieldRequired.length; i++){

			var obj = formobj.elements[fieldRequired[i]];

			if (obj){

				switch(obj.type){



				case "select-one":								

					if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == "" || obj.options[obj.selectedIndex].value == "" || obj.options[obj.selectedIndex].value == -1){

						alertMsg += " - " + fieldDescription[i] + "\n";

					}

					break;

				case "select-multiple":

					if (obj.selectedIndex == -1){

						alertMsg += " - " + fieldDescription[i] + "\n";

					}

					break;

				case "text":

				case "file":

				case "textarea":

				case "password":

					if (obj.value == "" || obj.value == null){

						alertMsg += " - " + fieldDescription[i] + "\n";

					}

					break;

				default:

				}

				if (obj.type == undefined){

					var blnchecked = false;

					for (var j = 0; j < obj.length; j++){

						if (obj[j].checked){

							blnchecked = true;

						}

					}

					if (!blnchecked){

						alertMsg += " - " + fieldDescription[i] + "\n";

					}

				}

			}

		}

	}



	if (alertMsg.length == l_Msg){

		return true;

	}else{

		alert(alertMsg);

		return false;

	}

}



/*disables 2 textboxes in admin upload area*/

function disText() {

	document.frmAdmin.display.value = "N/A";

	document.frmAdmin.url.value = "N/A";

	document.frmAdmin.display.disabled = "disabled";

	document.frmAdmin.url.disabled = "disabled";

}



/*enables 2 textboxes in admin upload area*/

function enText() {

	document.frmAdmin.display.value = "";

	document.frmAdmin.url.value = "http://www.";

	document.frmAdmin.display.disabled = "";

	document.frmAdmin.url.disabled = "";

}



/*enables Link Area, disables Text Area*/

function selLink(prefix) {

	if (prefix=="wdr") {

		document.frmAdmin.wdr1.disabled = "";

		document.frmAdmin.wdr2.disabled = "";

		document.frmAdmin.wdr3.disabled = "";

		document.frmAdmin.wdr4.disabled = "";

		document.frmAdmin.wdr5.disabled = "disabled";

		document.frmAdmin.wdrurl1.disabled = "";

		document.frmAdmin.wdrurl2.disabled = "";

		document.frmAdmin.wdrurl3.disabled = "";

		document.frmAdmin.wdrurl4.disabled = "";

		document.frmAdmin.wdrurl5.disabled = "disabled";

		document.frmAdmin.wdrText.disabled = "disabled";

		document.frmAdmin.wdr1.className = "input2Selected";

		document.frmAdmin.wdr2.className = "input2Selected";

		document.frmAdmin.wdr3.className = "input2Selected";

		document.frmAdmin.wdr4.className = "input2Selected";

		document.frmAdmin.wdr5.className = "input2";

		document.frmAdmin.wdrurl1.className = "input2Selected";

		document.frmAdmin.wdrurl2.className = "input2Selected";

		document.frmAdmin.wdrurl3.className = "input2Selected";

		document.frmAdmin.wdrurl4.className = "input2Selected";

		document.frmAdmin.wdrurl5.className = "input2";

		document.frmAdmin.wdrText.className = "comments";

	}

	else if (prefix=="wls") {

		document.frmAdmin.wls1.disabled = "";

		document.frmAdmin.wls2.disabled = "";

		document.frmAdmin.wls3.disabled = "";

		document.frmAdmin.wls4.disabled = "";

		document.frmAdmin.wls5.disabled = "disabled";

		document.frmAdmin.wlsurl1.disabled = "";

		document.frmAdmin.wlsurl2.disabled = "";

		document.frmAdmin.wlsurl3.disabled = "";

		document.frmAdmin.wlsurl4.disabled = "";

		document.frmAdmin.wlsurl5.disabled = "disabled";

		document.frmAdmin.wlsText.disabled = "disabled";

		document.frmAdmin.wls1.className = "input2Selected";

		document.frmAdmin.wls2.className = "input2Selected";

		document.frmAdmin.wls3.className = "input2Selected";

		document.frmAdmin.wls4.className = "input2Selected";

		document.frmAdmin.wls5.className = "input2";

		document.frmAdmin.wlsurl1.className = "input2Selected";

		document.frmAdmin.wlsurl2.className = "input2Selected";

		document.frmAdmin.wlsurl3.className = "input2Selected";

		document.frmAdmin.wlsurl4.className = "input2Selected";

		document.frmAdmin.wlsurl5.className = "input2";

		document.frmAdmin.wlsText.className = "comments";

	}

	else if (prefix=="wol") {

		document.frmAdmin.wol1.disabled = "";

		document.frmAdmin.wol2.disabled = "";

		document.frmAdmin.wol3.disabled = "";

		document.frmAdmin.wol4.disabled = "";

		document.frmAdmin.wol5.disabled = "disabled";

		document.frmAdmin.wolurl1.disabled = "";

		document.frmAdmin.wolurl2.disabled = "";

		document.frmAdmin.wolurl3.disabled = "";

		document.frmAdmin.wolurl4.disabled = "";

		document.frmAdmin.wolurl5.disabled = "disabled";

		document.frmAdmin.wolText.disabled = "disabled";

		document.frmAdmin.wol1.className = "input2Selected";

		document.frmAdmin.wol2.className = "input2Selected";

		document.frmAdmin.wol3.className = "input2Selected";

		document.frmAdmin.wol4.className = "input2Selected";

		document.frmAdmin.wol5.className = "input2";

		document.frmAdmin.wolurl1.className = "input2Selected";

		document.frmAdmin.wolurl2.className = "input2Selected";

		document.frmAdmin.wolurl3.className = "input2Selected";

		document.frmAdmin.wolurl4.className = "input2Selected";

		document.frmAdmin.wolurl5.className = "input2";

		document.frmAdmin.wolText.className = "comments";

	}

	else if (prefix=="psr") {

		document.frmAdmin.psr1.disabled = "";

		document.frmAdmin.psr2.disabled = "";

		document.frmAdmin.psr3.disabled = "";

		document.frmAdmin.psr4.disabled = "";

		document.frmAdmin.psr5.disabled = "disabled";

		document.frmAdmin.psrurl1.disabled = "";

		document.frmAdmin.psrurl2.disabled = "";

		document.frmAdmin.psrurl3.disabled = "";

		document.frmAdmin.psrurl4.disabled = "";

		document.frmAdmin.psrurl5.disabled = "disabled";

		document.frmAdmin.psrText.disabled = "disabled";

		document.frmAdmin.psr1.className = "input2Selected";

		document.frmAdmin.psr2.className = "input2Selected";

		document.frmAdmin.psr3.className = "input2Selected";

		document.frmAdmin.psr4.className = "input2Selected";

		document.frmAdmin.psr5.className = "input2";

		document.frmAdmin.psrurl1.className = "input2Selected";

		document.frmAdmin.psrurl2.className = "input2Selected";

		document.frmAdmin.psrurl3.className = "input2Selected";

		document.frmAdmin.psrurl4.className = "input2Selected";

		document.frmAdmin.psrurl5.className = "input2";

		document.frmAdmin.psrText.className = "comments";

	}

	else if (prefix=="fgc") {

		document.frmAdmin.fgc1.disabled = "";

		document.frmAdmin.fgc2.disabled = "";

		document.frmAdmin.fgc3.disabled = "";

		document.frmAdmin.fgc4.disabled = "";

		document.frmAdmin.fgc5.disabled = "disabled";

		document.frmAdmin.fgcurl1.disabled = "";

		document.frmAdmin.fgcurl2.disabled = "";

		document.frmAdmin.fgcurl3.disabled = "";

		document.frmAdmin.fgcurl4.disabled = "";

		document.frmAdmin.fgcurl5.disabled = "disabled";

		document.frmAdmin.fgcText.disabled = "disabled";

		document.frmAdmin.fgc1.className = "input2Selected";

		document.frmAdmin.fgc2.className = "input2Selected";

		document.frmAdmin.fgc3.className = "input2Selected";

		document.frmAdmin.fgc4.className = "input2Selected";

		document.frmAdmin.fgc5.className = "input2";

		document.frmAdmin.fgcurl1.className = "input2Selected";

		document.frmAdmin.fgcurl2.className = "input2Selected";

		document.frmAdmin.fgcurl3.className = "input2Selected";

		document.frmAdmin.fgcurl4.className = "input2Selected";

		document.frmAdmin.fgcurl5.className = "input2";

		document.frmAdmin.fgcText.className = "comments";

	}

}



/*disables Link Area, enables Text Area*/

function selText(prefix) {

	if (prefix=="wdr") {

		document.frmAdmin.wdr1.disabled = "disabled";

		document.frmAdmin.wdr2.disabled = "disabled";

		document.frmAdmin.wdr3.disabled = "disabled";

		document.frmAdmin.wdr4.disabled = "disabled";

		document.frmAdmin.wdr5.disabled = "";

		document.frmAdmin.wdrurl1.disabled = "disabled";

		document.frmAdmin.wdrurl2.disabled = "disabled";

		document.frmAdmin.wdrurl3.disabled = "disabled";

		document.frmAdmin.wdrurl4.disabled = "disabled";

		document.frmAdmin.wdrurl5.disabled = "";

		document.frmAdmin.wdrText.disabled = "";

		document.frmAdmin.wdr1.className = "input2";

		document.frmAdmin.wdr2.className = "input2";

		document.frmAdmin.wdr3.className = "input2";

		document.frmAdmin.wdr4.className = "input2";

		document.frmAdmin.wdr5.className = "input2Selected";

		document.frmAdmin.wdrurl1.className = "input2";

		document.frmAdmin.wdrurl2.className = "input2";

		document.frmAdmin.wdrurl3.className = "input2";

		document.frmAdmin.wdrurl4.className = "input2";

		document.frmAdmin.wdrurl5.className = "input2Selected";

		document.frmAdmin.wdrText.className = "commentsSelected";

	}

	else if (prefix=="wls") {

		document.frmAdmin.wls1.disabled = "disabled";

		document.frmAdmin.wls2.disabled = "disabled";

		document.frmAdmin.wls3.disabled = "disabled";

		document.frmAdmin.wls4.disabled = "disabled";

		document.frmAdmin.wls5.disabled = "";

		document.frmAdmin.wlsurl1.disabled = "disabled";

		document.frmAdmin.wlsurl2.disabled = "disabled";

		document.frmAdmin.wlsurl3.disabled = "disabled";

		document.frmAdmin.wlsurl4.disabled = "disabled";

		document.frmAdmin.wlsurl5.disabled = "";

		document.frmAdmin.wlsText.disabled = "";

		document.frmAdmin.wls1.className = "input2";

		document.frmAdmin.wls2.className = "input2";

		document.frmAdmin.wls3.className = "input2";

		document.frmAdmin.wls4.className = "input2";

		document.frmAdmin.wls5.className = "input2Selected";

		document.frmAdmin.wlsurl1.className = "input2";

		document.frmAdmin.wlsurl2.className = "input2";

		document.frmAdmin.wlsurl3.className = "input2";

		document.frmAdmin.wlsurl4.className = "input2";

		document.frmAdmin.wlsurl5.className = "input2Selected";

		document.frmAdmin.wlsText.className = "commentsSelected";

	}

	else if (prefix=="wol") {

		document.frmAdmin.wol1.disabled = "disabled";

		document.frmAdmin.wol2.disabled = "disabled";

		document.frmAdmin.wol3.disabled = "disabled";

		document.frmAdmin.wol4.disabled = "disabled";

		document.frmAdmin.wol5.disabled = "";

		document.frmAdmin.wolurl1.disabled = "disabled";

		document.frmAdmin.wolurl2.disabled = "disabled";

		document.frmAdmin.wolurl3.disabled = "disabled";

		document.frmAdmin.wolurl4.disabled = "disabled";

		document.frmAdmin.wolurl5.disabled = "";

		document.frmAdmin.wolText.disabled = "";

		document.frmAdmin.wol1.className = "input2";

		document.frmAdmin.wol2.className = "input2";

		document.frmAdmin.wol3.className = "input2";

		document.frmAdmin.wol4.className = "input2";

		document.frmAdmin.wol5.className = "input2Selected";

		document.frmAdmin.wolurl1.className = "input2";

		document.frmAdmin.wolurl2.className = "input2";

		document.frmAdmin.wolurl3.className = "input2";

		document.frmAdmin.wolurl4.className = "input2";

		document.frmAdmin.wolurl5.className = "input2Selected";

		document.frmAdmin.wolText.className = "commentsSelected";

	}

	else if (prefix=="psr") {

		document.frmAdmin.psr1.disabled = "disabled";

		document.frmAdmin.psr2.disabled = "disabled";

		document.frmAdmin.psr3.disabled = "disabled";

		document.frmAdmin.psr4.disabled = "disabled";

		document.frmAdmin.psr5.disabled = "";

		document.frmAdmin.psrurl1.disabled = "disabled";

		document.frmAdmin.psrurl2.disabled = "disabled";

		document.frmAdmin.psrurl3.disabled = "disabled";

		document.frmAdmin.psrurl4.disabled = "disabled";

		document.frmAdmin.psrurl5.disabled = "";

		document.frmAdmin.psrText.disabled = "";

		document.frmAdmin.psr1.className = "input2";

		document.frmAdmin.psr2.className = "input2";

		document.frmAdmin.psr3.className = "input2";

		document.frmAdmin.psr4.className = "input2";

		document.frmAdmin.psr5.className = "input2Selected";

		document.frmAdmin.psrurl1.className = "input2";

		document.frmAdmin.psrurl2.className = "input2";

		document.frmAdmin.psrurl3.className = "input2";

		document.frmAdmin.psrurl4.className = "input2";

		document.frmAdmin.psrurl5.className = "input2Selected";

		document.frmAdmin.psrText.className = "commentsSelected";

	}

	else if (prefix=="fgc") {

		document.frmAdmin.fgc1.disabled = "disabled";

		document.frmAdmin.fgc2.disabled = "disabled";

		document.frmAdmin.fgc3.disabled = "disabled";

		document.frmAdmin.fgc4.disabled = "disabled";

		document.frmAdmin.fgc5.disabled = "";

		document.frmAdmin.fgcurl1.disabled = "disabled";

		document.frmAdmin.fgcurl2.disabled = "disabled";

		document.frmAdmin.fgcurl3.disabled = "disabled";

		document.frmAdmin.fgcurl4.disabled = "disabled";

		document.frmAdmin.fgcurl5.disabled = "";

		document.frmAdmin.fgcText.disabled = "";

		document.frmAdmin.fgc1.className = "input2";

		document.frmAdmin.fgc2.className = "input2";

		document.frmAdmin.fgc3.className = "input2";

		document.frmAdmin.fgc4.className = "input2";

		document.frmAdmin.fgc5.className = "input2Selected";

		document.frmAdmin.fgcurl1.className = "input2";

		document.frmAdmin.fgcurl2.className = "input2";

		document.frmAdmin.fgcurl3.className = "input2";

		document.frmAdmin.fgcurl4.className = "input2";

		document.frmAdmin.fgcurl5.className = "input2Selected";

		document.frmAdmin.fgcText.className = "commentsSelected";

	}

}



/* Verifies whether the user wants to delete a special */

function confirmRemoval()

{

	var box = confirm("Are you sure you want to remove this special?");

  	return box;

}



/* Submit a Form with Course Name. */

function submitForm(course)

{

	document.frmCourse.hdCourse.value = course;

	var win = window.open("popCourse.php","form_popup","width=550,height=600,menubar=yes,scrollbars=yes,toolbar=no,location=no,status=no,resizable=yes");

	win.focus();

	document.frmCourse.submit();

}



function submitForm2(course, email)

{

	document.frmData.hdName.value = course;

	document.frmData.hdEmail.value = email;

	document.frmData.submit();

}



function submitForm3(id)

{

	document.frmSpecial.hdID.value = id;

	document.frmSpecial.submit();

}



function submitForm4(id)

{

	document.frmPackage.hdID.value = id;

	document.frmPackage.submit();

}



function submitForm5(id)

{

	var con = confirmRemoval();

	if (con == true) {

		document.frmRemoval.hdID.value = id;

		document.frmRemoval.submit();

	}

}



function loadForm(course, email, formnum)

{

	if (formnum==1) {

		document.frmSpecial.hdName.value = course;

		document.frmSpecial.hdEmail.value = email;

	}

	else if (formnum==2) {

		document.frmPackage.hdName.value = course;

		document.frmPackage.hdEmail.value = email;

	}

	else if (formnum==3) {

		document.frmEvent.hdName.value = course;

		document.frmEvent.hdEmail.value = email;

	}

}



/* Checks that a region was selected */

function validSelect(frmobj)

{

	if (frmobj.elements[0].value == -1 || frmobj.elements[0].selectedIndex == -1) {		

		alert('To begin your search, please select a country');

		return false; }

	else

		return true;

}



/* Navigation Rollover. */



function swap(id, newSrc) {

    var theImage = FWFindImage(document, id, 0);

    if (theImage) {

        theImage.src = newSrc;

    }

}



/* Rollover states. */



function FWFindImage(doc, name, j) {

    var theImage = false;

    if (doc.images) {

        theImage = doc.images[name];

    }

    if (theImage) {

        return theImage;

    }

    if (doc.layers) {

        for (j = 0; j < doc.layers.length; j++) {

            theImage = FWFindImage(doc.layers[j].document, name, 0);

            if (theImage) {

                return (theImage);

            }

        }

    }

    return (false);

}



function popup(source){

	newView = window.open(source,'popup','width=530,height=650 resizable=no,scrollbars=yes,toolbar=no')

	newView.focus();

}





function dropdown(mySel)

{

var myWin, myVal;

myVal = mySel.options[mySel.selectedIndex].value;

if(myVal)

   {

   if(mySel.form.target)myWin = parent[mySel.form.target];

   else myWin = window;

   if (! myWin) return true;

   myWin.location = myVal;

   }

return false;

}

//-->







//  MENU ITEMS //

// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///   

var Menu1 = new Array ()

var subMenu1 = new Array ()



	Menu1[0] = new Array("&bull;&nbsp;&nbsp;Home&nbsp;&nbsp;", "index.php","_top", "left")

     	subMenu1[0] = new Array()

		

	Menu1[1] = new Array("&bull;&nbsp;&nbsp;New Member Sign up&nbsp;&nbsp;", "signupEntry.php","_top", "left")

     	subMenu1[1] = new Array()

		

   	Menu1[2] = new Array("&bull;&nbsp;&nbsp;List Your Course Free&nbsp;&nbsp;", "courseSignupEntry.php","_top", "left")

    	subMenu1[2] = new Array()



function setMenus(style) {

	

	if (style=="members") {

		

		Menu1[0] = new Array("&bull;&nbsp;&nbsp;Home&nbsp;&nbsp;", "index.php","_top", "left")

     		subMenu1[0] = new Array()

			

		Menu1[1] = new Array("&bull;&nbsp;&nbsp;My Profile&nbsp;&nbsp;", "profile.php","_top", "left")

     		subMenu1[1] = new Array()

		

		Menu1[2] = new Array("&bull;&nbsp;&nbsp;List Your Course Free&nbsp;&nbsp;", "courseSignupEntry.php","_top", "left")

    		subMenu1[2] = new Array()

		

		Menu1[3] = new Array("&bull;&nbsp;&nbsp;Course Information&nbsp;&nbsp;", "#","_top", "left")

			subMenu1[3] = new Array()

			subMenu1[3][0] = new Array ("Course List", "courses.php","_top")

			subMenu1[3][1] = new Array ("Golf Specials", "specials.php","_top")

			subMenu1[3][2] = new Array ("Package Deals", "packages.php", "_top")

			subMenu1[3][3] = new Array ("Driving Ranges", "ranges.php","_top")

			subMenu1[3][4] = new Array ("Lessons", "lessons.php","_top")

			subMenu1[3][5] = new Array ("Special Events", "events.php", "_top")

			

		Menu1[4] = new Array("&bull;&nbsp;&nbsp;Destinations&nbsp;&nbsp;", "destinations.php","_top", "left")

			subMenu1[4] = new Array()

		

	}

	else if (style=="courses") {

		

		Menu1[0] = new Array("&bull;&nbsp;&nbsp;Home&nbsp;&nbsp;", "index.php","_top", "left")

     		subMenu1[0] = new Array()

		

		Menu1[1] = new Array("&bull;&nbsp;&nbsp;Course Profile&nbsp;&nbsp;", "courseProfile.php","_top", "left")

     		subMenu1[1] = new Array()

		

		Menu1[2] = new Array("&bull;&nbsp;&nbsp;My Specials&nbsp;&nbsp;", "#","_top", "left")

			subMenu1[2] = new Array()

			subMenu1[2][0] = new Array ("Add Specials", "addSpecials.php","_top")

			subMenu1[2][1] = new Array ("Edit/Remove Specials", "editSpecials.php","_top")

	

		Menu1[3] = new Array("&bull;&nbsp;&nbsp;My Packages&nbsp;&nbsp;", "#","_top", "left")

			subMenu1[3] = new Array()

			subMenu1[3][0] = new Array ("Add Packages", "addPackages.php","_top")

			subMenu1[3][1] = new Array ("Edit/Remove Packages", "editPackages.php","_top")

			

		Menu1[4] = new Array("&bull;&nbsp;&nbsp;List Special Event&nbsp;&nbsp;", "listEvent.php","_top", "left")

     		subMenu1[4] = new Array()

	}

	else if (style=="admin") {

		

		Menu1[0] = new Array("&bull;&nbsp;&nbsp;Admin Home&nbsp;&nbsp;", "adminHome.php","_top", "left")

     		subMenu1[0] = new Array()

		

		Menu1[1] = new Array("&bull;&nbsp;&nbsp;Update Area&nbsp;&nbsp;", "adminUpdateArea.php","_top", "left")

     		subMenu1[1] = new Array()

		

		Menu1[2] = new Array("&bull;&nbsp;&nbsp;Upload Area&nbsp;&nbsp;", "adminUploadArea.php","_top", "left")

			subMenu1[2] = new Array()

	}

}



/// FORMAT MENU  ///

menuStyle = "flat"                                  // Menu Style (flat, 3d)

cellPadding = "3"                                   // Cell Padding

cellBorder = 1                                      // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS

verticalOffset = "6"                                // Vertical offset of Sub Menu. 

horizontalOffset = "-1"                              // Horizontal offset of Sub Menu. 

subMenuDelay = 1                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS

subIndicate = 0                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS

indicator = "::" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)

                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 

                                                    // e.g.      indicator = ">"

// Main Menu Items

menuWidth = "0"                  // Width of menu item.  Use 0 for default

borderColor = "#EDEAEA"            // Border Colour (flat mode only)

borderHighlight = "#97BBD3"      // Border Highlight Colour (3d mode only)

borderShadow = "#31556D"         // Border Shadow Colour (3d mode only)

menuBackground = "#EDEAEA"       // Cell Background Colour

menuHoverBackground = "EDEAEA"    // Cell Background Colour on mouse rollover

fontFace = "tahoma"               // Font Face

fontColour = "#034F29"           // Font Colour

fontHoverColour = "#FF9600"      // Font Colour on mouse rollover

fontSize = "12px"                 // Font Size

fontDecoration = "none"          // Style of the link text (none, underline, overline, line-through)

fontWeight = "normal"            // Font Weight (normal, bold)



// Sub Menu Items

smenuWidth = "150"                 // Width of sub menu item.  Use 0 for default

sborderColor = "#FF9600"           // Border Colour (flat mode only)

sborderHighlight = "#E9E9E2"     // Border Highlight Colour (3d mode only)

sborderShadow = "#83837C"        // Border Shadow Colour (3d mode only)

smenuBackground = "EDEAEA"        // Cell Background Colour

smenuHoverBackground = "#D1D0D0" // Cell Background Colour on mouse rolloverr

sfontFace = "tahoma"              // Font Face

sfontColour = "#034F29"          // Font Colour

sfontHoverColour = "#034F29"     // Font Colour on mouse rollover

sfontSize = "12px"                // Font Size

sfontDecoration = "none"         // Style of the link text (none, underline, overline, line-through)

sfontWeight = "normal"           // Font Weight (normal, bold)



quantity = 1

/// END FORMAT MENU  ////



/// DO NOT EDIT BELOW THIS LINE  ///

// Browser Sniffer

var isIE = (document.getElementById && document.all)?true:false;

var isNS4 = (document.layers)?true:false;

var isNS6 = (document.getElementById && !document.all)?true:false;

var timer;

var obj = (isIE)?"document.all":"document.getElementById"

// Menu Styles

function createStyles(quant){

styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 

  document.writeln ('<style>');

  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');

  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');

  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');

  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');

  document.writeln ('</style>');

}

// Build and show the main menu items

function showMenus(quant,definedOrientation)

{

  createStyles(quant);

  if(definedOrientation!=""){orientation=definedOrientation}

  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'">')}

  else{document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'"><tr>')}  

  for (x=0; x<eval("Menu"+quant).length; x++)

  {

    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')

    document.writeln ('<td width="'+menuWidth+'" onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')

    if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';"');}        

    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr><td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap>');

    document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');

      document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+indicator+'</a></td>');}

    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')

  }

  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}

  else{document.writeln ('</tr></table>');}   

// Build the sub menu items

  for (x=0; x<eval("Menu"+quant).length; x++)

  { 

    if (eval("subMenu"+quant)[x].length > 0)

    {     

      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');

      document.writeln ('<table width="'+smenuWidth.split(",")[quant-1]+'" border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="'+styleBorder+'" bgColor="'+sborderColor.split(",")[quant-1]+'">');

      for (y=0; y<eval("subMenu"+quant)[x].length; y++)

      {

        document.writeln ('<tr>');

        if (eval("subMenu"+quant)[x][y][1].indexOf("#") != -1)

        {

          document.writeln ('<td bgColor="'+eval("subMenu"+quant)[x][y][2]+'" id="'+quant+'subMenu'+x+y+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" nowrap')

          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}

          document.writeln ('><p style="font-family:'+sfontFace.split(",")[quant-1]+'; font-size:'+sfontSize.split(",")[quant-1]+'; color:'+eval("subMenu"+quant)[x][y][1]+'"id="'+quant+'subLink'+x+y+'">'+eval("subMenu"+quant)[x][y][0]+'</p></td></tr>');

        }

        else

        {

          document.writeln ('<td id="'+quant+'subMenu'+x+y+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+');" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')

          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}

          document.writeln ('><a id="'+quant+'subLink'+x+y+'" href="'+eval("subMenu"+quant)[x][y][1]+'" target="'+eval("subMenu"+quant)[x][y][2]+'" class="rcSubMenuStatic'+quant+'">'+eval("subMenu"+quant)[x][y][0]+'</a></td></tr>');

        }

      }

      document.writeln ('</table></div>');

    }

  }

} 

// Change colour or menu and submenu items when the mouse hovers over.  

function highlightMenu(element,mainMenu,dropMenu,state,quant)

{

  hoverMenu();

  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant

  if (element == "sub")

  {

    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)

    {

      if (eval("subMenu"+quant)[mainMenu][x][1].indexOf("#") == -1){

        eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')

        eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')

      }

    } 

    if (eval("subMenu"+quant)[mainMenu][dropMenu][1].indexOf("#") == -1)  {

      eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')

      eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')

    }

  }

  else

  {

    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')

    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')

    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)

    {

      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')

      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')

    }

  }

}

// Find positioning for sub menus

function getOffset(obj, dim) 

{

  if(dim=="left") 

  {     

    oLeft = obj.offsetLeft;    

    while(obj.offsetParent!=null) 

    {    

      oParent = obj.offsetParent     

      oLeft += oParent.offsetLeft 

      obj = oParent 	

    }

    return oLeft

  }

  else if(dim=="top")

  {

    oTop = obj.offsetTop;

    while(obj.offsetParent!=null) 

    {

      oParent = obj.offsetParent

      oTop += oParent.offsetTop

      obj = oParent 	

    }

    return oTop

  }

  else if(dim=="width")

  {

    oWidth = obj.offsetWidth

    return oWidth

  }  

  else if(dim=="height")

  {

    oHeight = obj.offsetHeight

    return oHeight

  }    

  else

  {

    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")

    return false;

  }

}

// Show sub menus

function popDown(quant, param, id, orientation)

{

  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)

  var browserAdjustment = (isNS6)?cellBorder:0

  var menu;

  var button;



  if (id)

  {    

    getOffset(eval(obj+'(id)'),'left');

    getOffset(eval(obj+'(id)'),'top');    

    getOffset(eval(obj+'(id)'),'width');  

    getOffset(eval(obj+'(id)'),'height');

    

    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 

    { 

      oLeft=oLeft  

      oLeft=oLeft+oWidth; 

      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');

      oLeft=oLeft-oWidth ;

      alignAdjustment = cellBorder*2 + 1

    }

    else 

    {

      alignAdjustment = 0

      oLeft=oLeft

    }    

  }  



  

  n = 0;    

  while (n < eval("Menu"+quant).length)

  {          

    menu = quant+"MENU"+n

    if (param == n)

    {



      theObj = eval(obj+'(menu)');

      if (theObj)

      {

         theObj.style.visibility = "visible"

          if (orientation.toLowerCase()=="vertical"){

            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]);

            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment}

          else{

            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;

            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}

        }

      

       highlightMenu('main',n,'','hover',quant)

       if (eval("subMenu"+quant)[param].length > 0)

       {

         for (x=0; x<eval("subMenu"+quant)[param].length; x++)

         {

           if(eval("subMenu"+quant)[param][x][1].indexOf("#") == -1){

             eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')

             eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')  

           }       

         }

       }

    }

    else 

    {  

      for (x=1; x<quantity+1; x++)

      {       

        menu = x+"MENU"+n   

        //alert(menu)     

        if (eval(obj+'(menu)'))

        {

          eval(obj+'(menu).style.visibility = "hidden"')            

        }

        highlightMenu ('main',n,'','static',quant)

      }

    }



    n++

  }  

}

// Re-set timer for sub menus

function hoverMenu()

{

  if(timer)

  clearTimeout(timer)

}

// Set timer for sub menus

function clearMenu(quant,menu)

{

  setDelay = subMenuDelay*1000

  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1

  

  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)

}

// when you click the box, perform the same function as if the user had clicked the hyperlink

function tdMouseClick(theElement)

{

  eval(obj+'(theElement).click()')

}

//-->


