var isHorizontal=0;

var iconTopWidth  = 16;
var iconTopHeight = 16;
var subMenuAlign = "left";
var moveImage  = "images/movepic4.gif";
var moveWidth      = 12;
var moveHeight      = 18;

var blankImage="images/blank.gif";
var fontStyle="normal 8pt Arial";
var fontColor=["#275960","#669900"];
var fontDecoration=["none","none"];

var itemBackColor=["",""];
var itemBorderWidth=0;
var itemAlign="left";
var itemBorderColor=["",""];
var itemBorderStyle=["solid","solid"];
var itemBackImage=["",""];

var menuBackImage="";
var menuBackColor="";
var menuBorderColor="";
var menuBorderStyle="solid";
var menuBorderWidth=0;
var transparency=100;
var transition=10;
var transDuration=300;
var shadowColor="";
var shadowLen=0;
var menuWidth="";  // NEW (NN% or NNpx. Default - 0px)

var statusString="text";
var iconWidth=16;
var iconHeight=16;
var arrowImageMain=["images/arrow_r.gif","images/arrow_r.gif"];
var arrowImageSub=["images/arrow_r.gif","images/arrow_r.gif"]; // NEW
var arrowWidth=7;
var arrowHeight=6;
var itemSpacing=0;
var itemPadding=3;

var separatorImage="images/separ1.gif";
var separatorWidth="100%";
var separatorHeight="5";
var separatorAlignment="center";

var separatorVImage="images/separv1.gif";
var separatorVWidth="5";
var separatorVHeight="16";

var movable=0;
var absolutePos=0;
var posX=16;
var posY=250;

var itemCursor = "hand";
var itemTarget = "_self";
var moveCursor = "move";

var floatable=0;
var floatIterations=7;

var menuItems =
[   
["&nbsp; &nbsp;","","","",""],
["Introduction&nbsp;&nbsp;","about.php","images/new1-05.gif","images/new2-05.gif","",""],
//["Introduction &nbsp; &nbsp;   ","about.html","images/new1-05.gif","images/new2-05.gif","",""],
["News & Events","news.php","images/new1-05.gif","images/new2-05.gif",""],
//["Accomodation","accornodation.html","images/new1-05.gif","images/new2-05.gif",""],
["Accomodation","accornodation.php","images/new1-05.gif","images/new2-05.gif",""],
//["Foods & Beverages","restaurant.html","images/new1-05.gif","images/new2-05.gif",""],
["Food & Beverage","restaurant.php","images/new1-05.gif","images/new2-05.gif",""],
//["Recreation","recreation.html","images/new1-05.gif","images/new2-05.gif",""],
["Recreation","recreation.php","images/new1-05.gif","images/new2-05.gif",""],
//["Tours & Packages","tours.html","images/new1-05.gif","images/new2-05.gif"],
["Tours & Packages","tours.php","images/new1-05.gif","images/new2-05.gif"],
//["Reservation","booking.html","images/new1-05.gif","images/new2-05.gif",""],
["Reservation","booking.php","images/new1-05.gif","images/new2-05.gif",""],
//["Photos Galleries ","photos.html","images/new1-05.gif","images/new2-05.gif"],
["Photo Gallery ","photos.php","images/new1-05.gif","images/new2-05.gif"],
//["Career ","career.html","images/new1-05.gif","images/new2-05.gif"],
["Career ","career.php","images/new1-05.gif","images/new2-05.gif"],
//["Testimonial ","testimonial.html","images/new1-05.gif","images/new2-05.gif"],
["Testimonial ","testimonial.php","images/new1-05.gif","images/new2-05.gif"],
//["Contact Us","contact.html","images/new1-05.gif","images/new2-05.gif"],
["Contact Us","contact.php","images/new1-05.gif","images/new2-05.gif"],
];

//
apy_init();

// validate
function MM_validateForm() 
{ //v4.0
	var i, p, q, nm, test, alertName, num, min, max, errors='', tt_check='', e_check='', args=MM_validateForm.arguments;

	for (i=0; i<(args.length-2); i+=3) 
	{ 
		test=args[i+2];
		alertName=args[i+1];
		val=MM_findObj(args[i]);
		if (val) 
		{ 
			nm=val.name; 
			if ((val=val.value)!="") {
				if (test.indexOf('isEmail')!=-1) { 
					p=val.indexOf('@');
        			if (p<1 || p==(val.length-1)) 
						errors+='- '+alertName+' must contain an e-mail address.\n';
      			} else if (test!='R') {
        			if (isNaN(val)) 
						errors+='- '+alertName+' must contain a number.\n';
        			if (test.indexOf('inRange') != -1) { 
						p=test.indexOf(':');
          				min=test.substring(8,p); 
						max=test.substring(p+1);
          				if (val<min || max<val) 
							errors+='- '+alertName+' must contain a number between '+min+' and '+max+'.\n';
    				} 
				} 
			} else if (test.charAt(0) == 'R') 
				errors += '- '+alertName+' is required.\n'; 
		}
	}

	if (errors) {
		alert('The following error(s) occurred:\n' + errors);
		return false;
	}
	return true;
}

// find obj
function MM_findObj(n, d) 
{ //v4.0
	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 && document.getElementById) 
		x=document.getElementById(n); 
	
	return x;
}