var mmenus1    = new Array();
var misShow1   = new Boolean(); 
misShow1=false;
var misdown1   = new Boolean();
misdown1=false;
var musestatus1=false;
var mpopTimer1 = 0;
mmenucolor1='#FFFFFF';mfontcolor1='#3366CC';mmenuoutcolor1='#F97F00';mmenuincolor1='#F97F00';mmenuoutbordercolor1='#F97F00';mmenuinbordercolor1='#F97F00';mmidoutcolor1='#FDD4AA';mmidincolor1='#FDD4AA';mmenuovercolor1='#fff';mitemedge1='0';msubedge1='0';mmenuunitwidth1=132;mmenuitemwidth1=160;mmenuheight1=17;mmenuwidth1='152';mmenuadjust1=0;mmenuadjustV1=0;mfonts1='font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #3366CC;';mcursor1='hand';
var fadeSteps1 = 5;
var fademsec1 = 20;
var fadeArray1 = new Array();
function fade1(el1, fadeIn1, steps1, msec12) {
	if (steps1 == null) steps1 = fadeSteps1;
	if (msec12 == null) msec12 = fademsec1;
	if (el1.fadeIndex2 == null)
		el1.fadeIndex2 = fadeArray1.length;
	fadeArray1[el1.fadeIndex2] = el1;
	if (el1.fadeStepNumber2 == null) {
		if (el1.style.visibility == "hidden")
			el1.fadeStepNumber2 = 0;
		else
			el1.fadeStepNumber2 = steps1;
		if (fadeIn1)
			el1.style.filter = "Alpha(Opacity=0)";
		else
			el1.style.filter = "Alpha(Opacity=100)";
	}
	window.setTimeout("repeatFade1(" + fadeIn1 + "," + el1.fadeIndex2 + "," + steps1 + "," + msec12 + ")", msec12);
}
function repeatFade1(fadeIn1, index2, steps1, msec12) {	
	el1 = fadeArray1[index2];
	
	c2 = el1.fadeStepNumber2;
	if (el1.fadeTimer2 != null)
		window.clearTimeout(el1.fadeTimer2);
	if ((c2 == 0) && (!fadeIn1)) {
		el1.style.visibility = "hidden";
		return;
	}
	else if ((c2==steps1) && (fadeIn1)) {
		el1.style.filter = "";
		el1.style.visibility = "visible";
		return;
	}
	else {
		(fadeIn1) ? 	c2++ : c2--;
		el1.style.visibility = "visible";
		el1.style.filter = "Alpha(Opacity=" + 100*c2/steps1 + ")";
		el1.fadeStepNumber2 = c2;
		el1.fadeTimer2 = window.setTimeout("repeatFade1(" + fadeIn1 + "," + index2 + "," + steps1 + "," + msec12 + ")", msec12);
	}
}

function stoperror1(){
return true;
}
window.onerror=stoperror1;
function mpopOut2() {
mpopTimer1 = setTimeout('mallhide1()', 500);
}
function getReal1(el1, type2, value2) {
	temp2 = el1;
	while ((temp2 != null) && (temp2.tagName != "BODY")) {
		if (eval("temp2." + type2) == value2) {
			el1 = temp2;
			return el1;
		}
		temp2 = temp2.parentElement;
	}
	return el1;
}


function mMenuRegister1(menu2) 
{
  mmenus1[mmenus1.length] = menu2
  return (mmenus1.length - 1)
}
function mMenuItem1(caption2,command2,target2,isline2,statustxt2,img2,sizex2,sizey2,pos2){
	this.caption2=caption2;
	this.command2=command2;
	this.target2=target2;
	this.isline2=isline2;
	this.statustxt2=statustxt2;
	this.img2=img2;
	this.sizex2=sizex2;
	this.sizey2=sizey2;
	this.pos2=pos2;
}
function m_Menu2(caption2,command2,target2,img2,sizex2,sizey2,pos2){
	this.items2 = new Array();
	this.caption2=caption2;
	this.command2=command2;
	this.target2=target2;
	this.img2=img2;
	this.sizex2=sizex2;
	this.sizey2=sizey2;
	this.pos2=pos2;
	this.id=mMenuRegister1(this);
}
function mMenuAddItem1(item)
{
  this.items2[this.items2.length] = item
  item.parent2 = this.id;
  this.children2=true;
}

m_Menu2.prototype.addItem2 = mMenuAddItem1;
function mtoout1(src2){

src2.style.borderLeftColor=mmenuoutbordercolor1;
src2.style.borderRightColor=mmenuinbordercolor1;
src2.style.borderTopColor=mmenuoutbordercolor1;
src2.style.borderBottomColor=mmenuinbordercolor1;
src2.style.backgroundColor=mmenuoutcolor1;
src2.style.color=mmenuovercolor1;
}
function mtoin1(src2){

src2.style.borderLeftColor=mmenuinbordercolor1;
src2.style.borderRightColor=mmenuoutbordercolor1;
src2.style.borderTopColor=mmenuinbordercolor1;
src2.style.borderBottomColor=mmenuoutbordercolor1;
src2.style.backgroundColor=mmenuincolor1;
src2.style.color=mmenuovercolor1;
}
function mnochange1(src2){
src2.style.borderLeftColor=mmenucolor1;
src2.style.borderRightColor=mmenucolor1;
src2.style.borderTopColor=mmenucolor1;
src2.style.borderBottomColor=mmenucolor1;
src2.style.backgroundColor='';
src2.style.color=mfontcolor1;

}
function mallhide1(){
	for(var nummenu2=0;nummenu2<mmenus1.length;nummenu2++){
		var themenu2=document.all['m_Menu2'+nummenu2]
		var themenudiv2=document.all['mmenu_div'+nummenu2]
                mnochange1(themenu2);
                mmenuhide1(themenudiv2);
                }
}
function mmenuhide1(menuid2){

fade1(menuid2,false,2);
misShow1=false;
}
function mmenushow1(menuid2,pid2){

menuid2.style.left=mposflag2.offsetLeft+mmenuadjust1+parseInt(mmenuwidth1);menuid2.style.top=mposflag2.offsetTop+pid2.offsetTop+mmenuadjustV1;
if(mmenuitemwidth1+parseInt(menuid2.style.left)>document.body.clientWidth+document.body.scrollLeft)
menuid2.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth1;
fade1(menuid2,true,2);
misShow1=true;
}
function mmenu_over1(menuid2,x2){
toel = getReal1(window.event.toElement, "className", "coolButton");
fromel = getReal1(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if(x2==3){
  misShow1 = false;
  mallhide1();
  mtoout1(eval("m_Menu2"+x2));
}else{

  mallhide1();
  mtoin1(eval("m_Menu2"+x2));
  mmenushow1(menuid2,eval("m_Menu2"+x2));

}
clearTimeout(mpopTimer1);
}
function mmenu_out1(x2){
toel = getReal1(window.event.toElement, "className", "coolButton");
fromel = getReal1(window.event.fromElement, "className", "coolButton");
if (toel == fromel) return;
if (misShow1){
mtoin1(eval("m_Menu2"+x2));
}else{
mnochange1(eval("m_Menu2"+x2));
}
mpopOut2()
}
function mmenu_down1(menuid2,x2){
  if(misShow1){
  mmenuhide1(menuid2);
  mtoout1(eval("m_Menu2"+x2));
  }
  else{
  mtoin1(eval("m_Menu2"+x2));
  mmenushow1(menuid2,eval("m_Menu2"+x2));
  misdown1=true;
  }
}
function mmenu_up1(){
  misdown1=false;
}
function mmenuitem_over1(x2,i){
srcel2 = getReal1(window.event.srcElement, "className", "coolButton");
if(misdown1){
	mtoin1(srcel2);
}
else{
mtoout1(srcel2);
}
mthestatus2 = mmenus1[x2].items2[i].statustxt2;
if(mthestatus2!=""){
	musestatus1=true;
	window.status=mthestatus2;
}
clearTimeout(mpopTimer1);
}
function mmenuitem_out1(){
srcel2 = getReal1(window.event.srcElement, "className", "coolButton");
mnochange1(srcel2);
if(musestatus1)window.status="";
mpopOut2()
}
function mmenuitem_down1(){
srcel2 = getReal1(window.event.srcElement, "className", "coolButton");
mtoin1(srcel2)
misdown1=true;
}
function mmenuitem_up1(){
srcel2 = getReal1(window.event.srcElement, "className", "coolButton");
mtoout1(srcel2)
misdown1=false;
}
function mexec21(x2){
var cmd2;
if(mmenus1[x2].target2=="blank"){
  cmd2 = "window.open('"+mmenus1[x2].command2+"')";
}else{
  cmd2 = mmenus1[x2].target2+".location=\""+mmenus1[x2].command2+"\"";
}
eval(cmd2);
}
function mexec1(x2,i){
var cmd2;
if(mmenus1[x2].items2[i].target2=="blank"){
  cmd2 = "window.open('"+mmenus1[x2].items2[i].command2+"')";
}else{
  cmd2 = mmenus1[x2].items2[i].target2+".location=\""+mmenus1[x2].items2[i].command2+"\"";
}
eval(cmd2);
}
function mbody_click1(){

if (misShow1){
	srcel2 = getReal1(window.event.srcElement, "className", "coolButton");
	for(var x2=0;x2<=mmenus1.length;x2++){
		if(srcel2.id=="m_Menu2"+x2)
		return;
	}
	mallhide1();
}
}
document.onclick=mbody_click1;
function mwritetodocument2(){
      var mwb2=1;
                     var stringx2='<div id="mposflag2" style="position:absolute;"></div><table id=mmenutable2 border=0 cellpadding=3 cellspacing=2 width='+mmenuwidth1+' height='+mmenuheight1+' bgcolor='+mmenucolor1+
                     ' onselectstart="event.returnValue=false"'+
                     ' style="cursor:'+mcursor1+';'+mfonts1+
                     '; padding:0px;"><tr>'
                     for(var x2=0;x2<mmenus1.length;x2++){
                     	var thismenu2=mmenus1[x2];
                     	var imgsize2="";
                     	if(thismenu2.sizex2!="0"||thismenu2.sizey2!="0")imgsize2=" width="+thismenu2.sizex2+" height="+thismenu2.sizey2;
                     	var ifspace="";
                     	if(thismenu2.caption2!="")ifspace="&nbsp;";
                     	stringx2 += "<td nowrap class=coolButton id=m_Menu2"+x2+" style='border: "+mitemedge1+"px solid "+mmenucolor1+
                     	"' width="+mmenuunitwidth1+"px onmouseover=mmenu_over1(mmenu_div"+x2+
                     	","+x2+") onmouseout=mmenu_out1("+x2+
                     	") onmousedown=mmenu_down1(mmenu_div"+x2+","+x2+")";
                     	      if(thismenu2.command2!=""){
                     	          stringx2 += " onmouseup=mmenu_up1();mexec21("+x2+");";
                     	      }else{
                     	      	  stringx2 += " onmouseup=mmenu_up1()";
                     	      }
                     	      if(thismenu2.pos2=="0"){
                     	          stringx2 += " align=left><img2 align=absmiddle src2='"+thismenu2.img2+"'"+imgsize2+">"+ifspace+thismenu2.caption2+"</td>";	
                     	      }else if(thismenu2.pos2=="1"){
                     	          stringx2 += " align=left>"+thismenu2.caption2+ifspace+"<img2 align=absmiddle src2='"+thismenu2.img2+"'"+imgsize2+"></td>";	
                     	      }else if(thismenu2.pos2=="2"){
                     	          stringx2 += " align=left background='"+thismenu2.img2+"'>&nbsp;"+thismenu2.caption2+"&nbsp;</td>";	
                     	      }else{
                     	          stringx2 += " align=left><span style='float: left;'>"+thismenu2.caption2+"</span><span style='font-family: Webdings; font-size: 6pt; float: right;padding:0 0 0 0;margin:0 0 0 0'>4</span></td>";
                     	      }
                     	stringx2 += "</tr><tr>";
                     }
                     stringx2+="</tr></table>";
                     
                     
                     for(var x2=0;x2<mmenus1.length;x2++){
                     	thismenu2=mmenus1[x2];
                        if(x2==3){
                        stringx2+='<div id=mmenu_div'+x2+' style="visiable:none"></div>';
                        }else{
                        stringx2+='<div id=mmenu_div'+x2+
                        ' style="cursor:'+mcursor1+';position:absolute;'+
                        'width:'+mmenuitemwidth1+'px; z-index2:'+(x2+100);
                        if(mmenuinbordercolor1!=mmenuoutbordercolor1&&msubedge1=="0"){
                        stringx2+=';border-left: 1px solid '+mmidoutcolor1+
                        ';border-top: 1px solid '+mmidoutcolor1;}
                        stringx2+=';border-right: 1px solid '+mmenuinbordercolor1+
                        ';border-bottom: 1px solid '+mmenuinbordercolor1+';visibility:hidden" onselectstart="event.returnValue=false">\n'+
                     	'<table  width="100%" border="0" height="100%" align="center" cellpadding="0" cellspacing="2" '+
                     	'style="'+mfonts1+' border-left: 1px solid '+mmenuoutbordercolor1;
                        if(mmenuinbordercolor1!=mmenuoutbordercolor1&&msubedge1=="0"){
                     	stringx2+=';border-right: 1px solid '+mmidincolor1+
                     	';border-bottom: 1px solid '+mmidincolor1;}
                     	stringx2+=';border-top: 1px solid '+mmenuoutbordercolor1+
                     	';padding: 4px" bgcolor='+mmenucolor1+'>\n'
                     	for(var i=0;i<thismenu2.items2.length;i++){
                     		var thismenuitem2=thismenu2.items2[i];
                     		var imgsize2="";
                     	        if(thismenuitem2.sizex2!="0"||thismenuitem2.sizey2!="0")imgsize2=" width="+thismenuitem2.sizex2+" height="+thismenuitem2.sizey2;
                     	        var ifspace="";
                     	        if(thismenu2.caption2!="")ifspace="&nbsp;";
                     		if(!thismenuitem2.isline2){
                     		stringx2 += "<tr><td class=coolButton style='border: "+mitemedge1+"px solid "+mmenucolor1+
                     		"' width=100% height=15px onmouseover=\"mmenuitem_over1("+x2+","+i+
                     		");\" onmouseout=mmenuitem_out1() onmousedown=mmenuitem_down1() onmouseup=";
 				stringx2 += "mmenuitem_up1();mexec1("+x2+","+i+"); ";
 				if(thismenuitem2.pos2=="0"){
                     	            stringx2 += "><img2 align=absmiddle src2='"+thismenuitem2.img2+"'"+imgsize2+">"+ifspace+thismenuitem2.caption2+"</td></tr>";	
                     	          }else if(thismenuitem2.pos2=="1"){
                     	            stringx2 += ">"+thismenuitem2.caption2+ifspace+"<img2 align=absmiddle src2='"+thismenuitem2.img2+"'"+imgsize2+"></td></tr>";	
                     	          }else if(thismenuitem2.pos2=="2"){
                     	            stringx2 += "background='"+thismenuitem2.img2+"'>"+thismenuitem2.caption2+"</td></tr>";	
                     	          }else{
                     	            stringx2 += ">"+thismenuitem2.caption2+"</td></tr>";
                     	          }
 				}else{
                     		stringx2+='<tr><td height="1" background="hr.gif" onmousemove="clearTimeout(mpopTimer1);"><img2 height="1" width="1" src2="none.gif" border="0"></td></tr>\n';
                     		}
                     	}stringx2+='</table>\n</div>'
                     	}
                     	
                }
                
                     document.write("<div align='left'>"+stringx2+"</div>");
}


mp_menu1=new m_Menu2('India','mdd_all.asp?div=2&guojiaid=66','self','','','','');
mp_menu1.addItem2(new mMenuItem1('Packages & Offers','gjz_tjcp.asp?div=2&guojiaid=66&fenleiid=3','self',false,'','','','',''));
mp_menu1.addItem2(new mMenuItem1('Booking&nbsp;Conditions','booking.asp?div=2&guojiaid=66','self',false,'','','','',''));
mp_menu2=new m_Menu2('Sri&nbsp;Lanka','mdd_all.asp?div=2&guojiaid=67','self','','','','');
mp_menu2.addItem2(new mMenuItem1('Packages & offers','gjz_tjcp.asp?div=2&guojiaid=67&fenleiid=3','self',false,'','','','',''));
mp_menu2.addItem2(new mMenuItem1('Hotels','gjz_tjcp.asp?div=2&guojiaid=67&fenleiid=4','self',false,'','','','',''));
mp_menu2.addItem2(new mMenuItem1('Booking&nbsp;Conditions','booking.asp?div=2&guojiaid=67','self',false,'','','','',''));
mp_menu3=new m_Menu2('Maldives','mdd_all.asp?div=2&guojiaid=68','self','','','','');
mp_menu3.addItem2(new mMenuItem1('Packages & Offers','gjz_tjcp.asp?div=2&guojiaid=68&fenleiid=3','self',false,'','','','',''));
mp_menu3.addItem2(new mMenuItem1('Hotels','gjz_tjcp.asp?div=2&guojiaid=68&fenleiid=4','self',false,'','','','',''));
mp_menu3.addItem2(new mMenuItem1('FAQ','faq_ydtj.asp?div=2&guojiaid=68&fenleiid=1','self',false,'','','','',''));
mp_menu3.addItem2(new mMenuItem1('Booking&nbsp;Conditions','booking.asp?div=2&guojiaid=68','self',false,'','','','',''));
mwritetodocument2();