// Menu for the root folder ....
function check()
{
	document.getElementById("chromemenu").innerHTML="<ul><li><a href=# rel=dropmenu1>International Holidays</a></li><li><a href=# rel=dropmenu2>Domestic Holidays</a></li><li><a href=e-learning.html rel=dropmenu3>Adventure and Offbeat Holidays</a></li></ul></div><div id=dropmenu1 class=dropmenudiv><a href='../int_tours/grand_europe.html'>Grand Europe</a><a href='../int_tours/switzerland_magic_with_paris_and_amsterdam.html'>Switzerland Magic with Paris and Amsterdam</a><a href='../int_tours/best_of_switzerland.html'>Best of Switzerland</a><a href='../int_tours/switzerland_with_paris.html'>Switzerland with Paris</a>	<a href='../int_tours/british_panorama.html'>British Panorama</a><a href='../int_tours/greece_with_turkey.html'>Greece with Turkey</a><a href='../int_tours/spain_with_portugal.html'>Spain with Portugal</a><a href='../int_tours/discover_south_east_asia.html'>Discover South East Asia</a><a href='../int_tours/jewels_of_asia.html'>Jewels of Asia</a><a href='../int_tours/singapore_with_bali.html'>Singapore with Bali</a><a href='../int_tours/thailand_with_cambodia.html'>Thailand with Cambodia</a><a href='../int_tours/wonders_of_china.html'>Wonders of China</a><a href='../int_tours/china_with_hong_kong.html'>China with Hong-Kong</a><a href='../int_tours/australian_wonders.html'>Australian Wonders</a><a href='../int_tours/new_nealand_scenic_splendors.html'>New Zealand Scenic Splendors</a><a href='../int_tours/discover_australia_with_new_zealand.html'>Discover Australia with New Zealand</a><a href='../int_tours/USA_east_coast.html'>USA East Coast</a><a href='../int_tours/USA_west_coast.html'>USA West Coast</a><a href='../int_tours/nepal_panorama.html'>Nepal Panorama</a><a href='../int_tours/sri_lanka.html'>Sri Lanka</a><a href='../int_tours/egyptian_wonders.html'>Egyptian Wonders</a><a href='../int_tours/spectacular_south_africa.html'>Spectacular South Africa</a><a href='../int_tours/kenya.html'>Kenya</a><a href='../int_tours/dubai.html'>Dubai</a><a href='../int_tours/mauritius.html'>Mauritius</a><a href='../int_tours/best_of_japan.html'>Best of Japan</a></div><div id=dropmenu2 class=dropmenudiv><a href='../ind_tours/paradise_on_earth.html'>Paradise on Earth</a><a href='../ind_tours/best_of_kashmir.html'>Best of Kashmir</a><a href='../ind_tours/romantic_himalayas.html'>Romantic Himalayas</a><a href='../ind_tours/himalayan_romance.html'>Himalayan Romance</a><a href='../ind_tours/kumaoni_retreat.html'>A Kumaoni Retreat</a><a href='../ind_tours/eastern_feast.html'>Eastern Feast</a><a href='../ind_tours/chardham.html'>Chardham</a><a href='../ind_tours/sunny_south.html'>Sunny South</a><a href='../ind_tours/kerala_carnival.html'>Kerala Carnival</a><a href='../ind_tours/honeymooners_paradise.html'>Honeymooner’s Paradise</a><a href='../ind_tours/pearl_city_hyderabad.html'>The Pearl City-Hyderabad</a><a href='../ind_tours/andaman_special.html'>Andaman</a><a href='../ind_tours/desert_pageantry.html'>Desert Pageantry</a><a href='../ind_tours/sampoorna_rajasthan.html'>Sampoorna Rajasthan</a><a href='../ind_tours/golden_triangle.html'>Golden Triangle</a><a href='../ind_tours/saurashtra_darshan.html'>Saurashtra Darshan</a><a href='../ind_tours/coastal_karnataka.html'>Coastal Karnataka</a><a href='../ind_tours/kokan_darshan.html'>Konkan Darshan</a><a href='../ind_tours/madhya_pradesh.html'>Magical Madhya Pradesh</a><a href='../ind_tours/sacred_madhya_pradesh.html'>Sacred Madhya Pradesh</a><a href='../ind_tours/spiritual_uttar_pradesh.html'>Spiritual Uttar Pradesh</a><a href='../ind_tours/amazing_orissa.html'>Amazing Orissa</a><a href='../ind_tours/eastern_meadows.html'>The Eastern Meadows</a><a href='../ind_tours/enchanting_kingdom_bhutan.html'>Enchanting Kingdom-Bhutan</a></div><div id=dropmenu3 class=dropmenudiv><a href='../adv_tours/kenya_adventure.html'>Kenya Adventure</a><a href='../adv_tours/snowy_desert.html'>Leh - the snowy desert</a><a href='../adv_tours/manali_leh_srinagar.html'>Manali, Leh and Srinagar</a><a href='../adv_tours/everest_base_camp.html'>Everest Base Camp</a><a href='../adv_tours/bharatpur_with_ranathambore.html'>Bharatpur with Ranathambore</a><a href='../adv_tours/bandhavgarh_kanha_jabalpur.html'>Bandhavgarh, Kanha and Jabalpur</a><a href=../adv_tours/resplendent_sikkim.html>Resplendent Sikkim</a><a href='../adv_tours/trek_to_khaliya.html'>Trek to Khaliya</a><a href='../adv_tours/sangla_spiti.html'>Sangla and Spiti</a><a href='../adv_tours/sangla_via_shimla.html'>Sangla via Shimla</a><a href='../adv_tours/kailash_mansarovar.html'>Mt. Kailash and Mansarovar</a><a href='../adv_tours/lhasa_with_nepal.html'>Lhasa with Nepal</a><a href='../adv_tours/valley_of_flowers.html'>Valley of Flowers</a><a href='../adv_tours/visit_arunachal.html'>Visit Arunachal</a><a href='../adv_tours/bhutan.html'>Bhutan</a><a href='../adv_tours/seven_sisters.html'>Seven Sisters</a></div>";

}


var cssdropdown={
disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout
dropdownindicator: '<img src="trans.gif" border="0" height="0" width="0" style="display:none;" />', //specify full HTML to add to end of each menu item with a drop down menu
enablereveal: [true, 5], //enable swipe effect? [true/false, steps (Number of animation steps. Integer between 1-20. Smaller=faster)]
enableiframeshim: 1, //enable "iframe shim" in IE5.5 to IE7? (1=yes, 0=no)

//No need to edit beyond here////////////////////////

dropmenuobj: null, asscmenuitem: null, domsupport: document.all || document.getElementById, standardbody: null, iframeshimadded: false, revealtimers: {},

getposOffset:function(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
},

css:function(el, targetclass, action){
	var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
	if (action=="check")
		return needle.test(el.className)
	else if (action=="remove")
		el.className=el.className.replace(needle, "")
	else if (action=="add" && !needle.test(el.className))
		el.className+=" "+targetclass
},

showmenu:function(dropmenu, e){
	if (this.enablereveal[0]){
		if (!dropmenu._trueheight || dropmenu._trueheight<10)
			dropmenu._trueheight=dropmenu.offsetHeight
		clearTimeout(this.revealtimers[dropmenu.id])
		dropmenu.style.height=dropmenu._curheight=0
		dropmenu.style.overflow="hidden"
		dropmenu.style.visibility="visible"
		this.revealtimers[dropmenu.id]=setInterval(function(){cssdropdown.revealmenu(dropmenu)}, 10)
	}
	else{
		dropmenu.style.visibility="visible"
	}
	this.css(this.asscmenuitem, "selected", "add")
},

revealmenu:function(dropmenu, dir){
	var curH=dropmenu._curheight, maxH=dropmenu._trueheight, steps=this.enablereveal[1]
	if (curH<maxH){
		var newH=Math.min(curH, maxH)
		dropmenu.style.height=newH+"px"
		dropmenu._curheight= newH + Math.round((maxH-newH)/steps) + 1
	}
	else{ //if done revealing menu
		dropmenu.style.height="auto"
		dropmenu.style.overflow="hidden"
		clearInterval(this.revealtimers[dropmenu.id])
	}
},

clearbrowseredge:function(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
		var windowedge=document.all && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15
		var dropmenuW=this.dropmenuobj.offsetWidth
		if (windowedge-this.dropmenuobj.x < dropmenuW)  //move menu to the left?
			edgeoffset=dropmenuW-obj.offsetWidth
	}
	else{
		var topedge=document.all && !window.opera? this.standardbody.scrollTop : window.pageYOffset
		var windowedge=document.all && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18
		var dropmenuH=this.dropmenuobj._trueheight
		if (windowedge-this.dropmenuobj.y < dropmenuH){ //move up?
			edgeoffset=dropmenuH+obj.offsetHeight
			if ((this.dropmenuobj.y-topedge)<dropmenuH) //up no good either?
				edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
},

dropit:function(obj, e, dropmenuID){
	if (this.dropmenuobj!=null) //hide previous menu
		this.hidemenu() //hide menu
	this.clearhidemenu()
	this.dropmenuobj=document.getElementById(dropmenuID) //reference drop down menu
	this.asscmenuitem=obj //reference associated menu item
	this.showmenu(this.dropmenuobj, e)
	this.dropmenuobj.x=this.getposOffset(obj, "left")
	this.dropmenuobj.y=this.getposOffset(obj, "top")
	this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
	this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
	this.positionshim() //call iframe shim function
},

positionshim:function(){ //display iframe shim function
	if (this.iframeshimadded){
		if (this.dropmenuobj.style.visibility=="visible"){
			this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
			this.shimobject.style.height=this.dropmenuobj._trueheight+"px"
			this.shimobject.style.left=parseInt(this.dropmenuobj.style.left)+"px"
			this.shimobject.style.top=parseInt(this.dropmenuobj.style.top)+"px"
			this.shimobject.style.display="block"
		}
	}
},

hideshim:function(){
	if (this.iframeshimadded)
		this.shimobject.style.display='none'
},

isContained:function(m, e){
	var e=window.event || e
	var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
	while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
	if (c==m)
		return true
	else
		return false
},

dynamichide:function(m, e){
	if (!this.isContained(m, e)){
		this.delayhidemenu()
	}
},

delayhidemenu:function(){
	this.delayhide=setTimeout("cssdropdown.hidemenu()", this.disappeardelay) //hide menu
},

hidemenu:function(){
	this.css(this.asscmenuitem, "selected", "remove")
	this.dropmenuobj.style.visibility='hidden'
	this.dropmenuobj.style.left=this.dropmenuobj.style.top="-1000px"
	this.hideshim()
},

clearhidemenu:function(){
	if (this.delayhide!="undefined")
		clearTimeout(this.delayhide)
},

addEvent:function(target, functionref, tasktype){
	
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false);
	else if (target.attachEvent)
		target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
},

startchrome:function(){
	if (!this.domsupport)
		return
	this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
	for (var ids=0; ids<arguments.length; ids++){
		var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
		for (var i=0; i<menuitems.length; i++){
			if (menuitems[i].getAttribute("rel")){
				var relvalue=menuitems[i].getAttribute("rel")
				var asscdropdownmenu=document.getElementById(relvalue)
				this.addEvent(asscdropdownmenu, function(){cssdropdown.clearhidemenu()}, "mouseover")
				this.addEvent(asscdropdownmenu, function(e){cssdropdown.dynamichide(this, e)}, "mouseout")
				this.addEvent(asscdropdownmenu, function(){cssdropdown.delayhidemenu()}, "click")
				try{
					menuitems[i].innerHTML=menuitems[i].innerHTML+" "+this.dropdownindicator
				}catch(e){}
				this.addEvent(menuitems[i], function(e){ //show drop down menu when main menu items are mouse over-ed
					if (!cssdropdown.isContained(this, e)){
						var evtobj=window.event || e
						cssdropdown.dropit(this, evtobj, this.getAttribute("rel"))
					}
				}, "mouseover")
				this.addEvent(menuitems[i], function(e){cssdropdown.dynamichide(this, e)}, "mouseout") //hide drop down menu when main menu items are mouse out
				this.addEvent(menuitems[i], function(){cssdropdown.delayhidemenu()}, "click") //hide drop down menu when main menu items are clicked on
			}
		} //end inner for
	} //end outer for
	if (this.enableiframeshim && document.all && !window.XDomainRequest && !this.iframeshimadded){ //enable iframe shim in IE5.5 thru IE7?
		document.write('<IFRAME id="iframeshim" src="about:blank" frameBorder="0" scrolling="no" style="left:0; top:0; position:absolute; display:none;z-index:90; background: transparent;"></IFRAME>')
		this.shimobject=document.getElementById("iframeshim") //reference iframe object
		this.shimobject.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'
		this.iframeshimadded=true
	}
} //end startchrome

}