// Adit
// Variables:
var xVersion='3.10',xOp7=false,xOp5or6=false,xIE4Up=false,xNN4=false,xUA=navigator.userAgent.toLowerCase();
if(window.opera){
  xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
  if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1);
}
else if(document.layers) xNN4=true;
else {xIE4Up=document.all && xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}
// Appearance:
function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("inner-right");
  var lHeight = xHeight("inner-left");
  var rHeight = xHeight("sidebar1");

  // Find the maximum height
  var maxHeight =
    Math.max(cHeight, Math.max(lHeight, rHeight));

  // Assign maximum height to all columns
  xHeight("inner-right", maxHeight);
  xHeight("inner-left", maxHeight);
  xHeight("sidebar1", maxHeight);

  // Show the footer
  xShow("footer");
}


function xShow(e) {
  if(!(e=xGetElementById(e))) return;
  if(e.style && xDef(e.style.visibility)) e.style.visibility='inherit';
  else if(xDef(e.visibility)) e.visibility='show';
}
function xHide(e) {
  if(!(e=xGetElementById(e))) return;
  if(e.style && xDef(e.style.visibility)) e.style.visibility='hidden';
  else if(xDef(e.visibility)) e.visibility='hide';
}
function xZIndex(e,uZ) {
  if(!(e=xGetElementById(e))) return 0;
  if(e.style && xDef(e.style.zIndex)) {
    if(arguments.length>1) e.style.zIndex=uZ;
    else uZ=e.style.zIndex;
  }
  else if(xDef(e.zIndex)) {
    if(arguments.length>1) e.zIndex=uZ;
    else uZ=e.zIndex;
  }
  return uZ;
}
function xColor(e,sColor) {
  if(!(e=xGetElementById(e))) return "";
  var c="";
  if(e.style && xDef(e.style.color)) {
    if(arguments.length>1) e.style.color=sColor;
    c=e.style.color;
  }
  return c;
}
function xBackground(e,sColor,sImage) {
  if(!(e=xGetElementById(e))) return "";
  var bg="";
  if(e.style) {
    if(arguments.length>1) e.style.backgroundColor=sColor;
    if(arguments.length==3) e.style.backgroundImage=(sImage && sImage!="")? "url("+sImage+")" : null;
    bg=e.style.backgroundColor;
  }
  else if(xDef(e.bgColor)) {
    if(arguments.length>1) e.bgColor=sColor;
    bg=e.bgColor;
    if(arguments.length==3) e.background.src=sImage;
  }
  return bg;
}

// Position:
function xMoveTo(e,iX,iY) {
  xLeft(e,iX);
  xTop(e,iY);
}
function xLeft(e,iX) {
  if(!(e=xGetElementById(e))) return 0;
  var css=xDef(e.style);
  if (css && xDef(e.style.left) && typeof(e.style.left)=="string") {
    if(arguments.length>1) e.style.left=iX+"px";
    else {
      iX=parseInt(e.style.left);
      if(isNaN(iX)) iX=0;
    }
  }
  else if(css && xDef(e.style.pixelLeft)) {
    if(arguments.length>1) e.style.pixelLeft=iX;
    else iX=e.style.pixelLeft;
  }
  else if(xDef(e.left)) {
    if(arguments.length>1) e.left=iX;
    else iX=e.left;
  }
  return iX;
}
function xTop(e,iY) {
  if(!(e=xGetElementById(e))) return 0;
  var css=xDef(e.style);
  if(css && xDef(e.style.top) && typeof(e.style.top)=="string") {
    if(arguments.length>1) e.style.top=iY+"px";
    else {
      iY=parseInt(e.style.top);
      if(isNaN(iY)) iY=0;
    }
  }
  else if(css && xDef(e.style.pixelTop)) {
    if(arguments.length>1) e.style.pixelTop=iY;
    else iY=e.style.pixelTop;
  }
  else if(xDef(e.top)) {
    if(arguments.length>1) e.top=iY;
    else iY=e.top;
  }
  return iY;
}
function xPageX(e) {
  if (!(e=xGetElementById(e))) return 0;
  if (xDef(e.pageX)) return e.pageX;
  var x = 0;
  while (e) {
    if (xDef(e.offsetLeft)) x += e.offsetLeft;
    e = xParent(e);
  }
  return x;
}
function xPageY(e) {
  if (!(e=xGetElementById(e))) return 0;
  if (xDef(e.pageY)) return e.pageY;
  var y = 0;
  while (e) {
    if (xDef(e.offsetTop)) y += e.offsetTop;
    e = xParent(e);
  }
  return y;
}
function xSlideTo(e,x,y,uTime) {
  if (!(e=xGetElementById(e))) return;
  if (!e.timeout) e.timeout = 25;
  e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false;
  e.yA = e.yTarget - xTop(e); e.xA = e.xTarget - xLeft(e); // A = distance
  e.B = Math.PI / (2 * e.slideTime); // B = period
  e.yD = xTop(e); e.xD = xLeft(e); // D = initial position
  var d = new Date(); e.C = d.getTime();
  if (!e.moving) xSlide(e);
}
function xSlide(e) {
  if (!(e=xGetElementById(e))) return;
  var now, s, t, newY, newX;
  now = new Date();
  t = now.getTime() - e.C;
  if (e.stop) { e.moving = false; }
  else if (t < e.slideTime) {
    setTimeout("xSlide('"+e.id+"')", e.timeout);
    s = Math.sin(e.B * t);
    newX = Math.round(e.xA * s + e.xD);
    newY = Math.round(e.yA * s + e.yD);
    xMoveTo(e, newX, newY);
    e.moving = true;
  }  
  else {
    xMoveTo(e, e.xTarget, e.yTarget);
    e.moving = false;
  }  
}

// Size:
function xResizeTo(e,uW,uH) {
  xWidth(e,uW);
  xHeight(e,uH);
}
function xWidth(e,uW) {
  if(!(e=xGetElementById(e)) || (uW && uW<0)) return 0;
  uW=Math.round(uW);
  var css=xDef(e.style);
  if(css && xDef(e.style.width,e.offsetWidth) && typeof(e.style.width)=="string") {
    if(arguments.length>1) xSetCW(e, uW);
    uW=e.offsetWidth;
  }
  else if(css && xDef(e.style.pixelWidth)) {
    if(arguments.length>1) e.style.pixelWidth=uW;
    uW=e.style.pixelWidth;
  }
  else if(xDef(e.clip) && xDef(e.clip.right)) {
    if(arguments.length>1) e.clip.right=uW;
    uW=e.clip.right;
  }
  return uW;
}
function xHeight(e,uH) {
  if(!(e=xGetElementById(e)) || (uH && uH<0)) return 0;
  uH=Math.round(uH);
  var css=xDef(e.style);
  if(css && xDef(e.style.height,e.offsetHeight) && typeof(e.style.height)=="string") {
    if(arguments.length>1) xSetCH(e, uH);
    uH=e.offsetHeight;
  }
  else if(css && xDef(e.style.pixelHeight)) {
    if(arguments.length>1) e.style.pixelHeight=uH;
    uH=e.style.pixelHeight;
  }
  else if(xDef(e.clip) && xDef(e.clip.bottom)) {
    if(arguments.length>1) e.clip.bottom=uH;
    uH=e.clip.bottom;
  }
  return uH;
}
// thank moz for the next 2000 bytes
function xGetCS(ele,sP){return parseInt(document.defaultView.getComputedStyle(ele,"").getPropertyValue(sP));}
function xSetCW(ele,uW){
  if(uW<0) return;
  var pl=0,pr=0,bl=0,br=0;
  if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){
    pl=xGetCS(ele,"padding-left");
    pr=xGetCS(ele,"padding-right");
    bl=xGetCS(ele,"border-left-width");
    br=xGetCS(ele,"border-right-width");
  }
  else if(xDef(ele.currentStyle,document.compatMode)){
    if(document.compatMode=="CSS1Compat"){
      pl=parseInt(ele.currentStyle.paddingLeft);
      pr=parseInt(ele.currentStyle.paddingRight);
      bl=parseInt(ele.currentStyle.borderLeftWidth);
      br=parseInt(ele.currentStyle.borderRightWidth);
    }
  }
  else if(xDef(ele.offsetWidth,ele.style.width)){
    ele.style.width=uW+"px";
    pl=ele.offsetWidth-uW;
  }
  if(isNaN(pl)) pl=0; if(isNaN(pr)) pr=0; if(isNaN(bl)) bl=0; if(isNaN(br)) br=0;
  var cssW=uW-(pl+pr+bl+br);
  if(isNaN(cssW)||cssW<0) return;
  else ele.style.width=cssW+"px";
}
function xSetCH(ele,uH){
  if(uH<0) return;
  var pt=0,pb=0,bt=0,bb=0;
  if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){
    pt=xGetCS(ele,"padding-top");
    pb=xGetCS(ele,"padding-bottom");
    bt=xGetCS(ele,"border-top-width");
    bb=xGetCS(ele,"border-bottom-width");
  }
  else if(xDef(ele.currentStyle,document.compatMode)){
    if(document.compatMode=="CSS1Compat"){
      pt=parseInt(ele.currentStyle.paddingTop);
      pb=parseInt(ele.currentStyle.paddingBottom);
      bt=parseInt(ele.currentStyle.borderTopWidth);
      bb=parseInt(ele.currentStyle.borderBottomWidth);
    }
  }
  else if(xDef(ele.offsetHeight,ele.style.height)){
    ele.style.height=uH+"px";
    pt=ele.offsetHeight-uH;
  }
  if(isNaN(pt)) pt=0; if(isNaN(pb)) pb=0; if(isNaN(bt)) bt=0; if(isNaN(bb)) bb=0;
  var cssH=uH-(pt+pb+bt+bb);
  if(isNaN(cssH)||cssH<0) return;
  else ele.style.height=cssH+"px";
}
function xClip(e,iTop,iRight,iBottom,iLeft) {
  if(!(e=xGetElementById(e))) return;
  if(e.style) {
    if (arguments.length == 5) e.style.clip="rect("+iTop+"px "+iRight+"px "+iBottom+"px "+iLeft+"px)";
    else e.style.clip="rect(0 "+parseInt(e.style.width)+"px "+parseInt(e.style.height)+"px 0)";
  }
  else if(e.clip) {
    if (arguments.length == 5) { e.clip.top=iTop; e.clip.right=iRight; e.clip.bottom=iBottom; e.clip.left=iLeft; }
    else { e.clip.top=0; e.clip.right=xWidth(e); e.clip.bottom=xHeight(e); e.clip.left=0; }
  }
}

// Event:
function xAddEventListener(e,eventType,eventListener,useCapture) {
  if(!(e=xGetElementById(e))) return;
  eventType=eventType.toLowerCase();
  if((!xIE4Up && !xOp7) && e==window) {
    if(eventType=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eventListener; xResizeEvent(); return; }
    if(eventType=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eventListener; xScrollEvent(); return; }
  }
  var eh="e.on"+eventType+"=eventListener";
  if(e.addEventListener) e.addEventListener(eventType,eventListener,useCapture);
  else if(e.attachEvent) e.attachEvent("on"+eventType,eventListener);
  else if(e.captureEvents) {
    if(useCapture||(eventType.indexOf('mousemove')!=-1)) { e.captureEvents(eval("Event."+eventType.toUpperCase())); }
    eval(eh);
  }
  else eval(eh);
}
function xRemoveEventListener(e,eventType,eventListener,useCapture) {
  if(!(e=xGetElementById(e))) return;
  eventType=eventType.toLowerCase();
  if((!xIE4Up && !xOp7) && e==window) {
    if(eventType=='resize') { window.xREL=null; return; }
    if(eventType=='scroll') { window.xSEL=null; return; }
  }
  var eh="e.on"+eventType+"=null";
  if(e.removeEventListener) e.removeEventListener(eventType,eventListener,useCapture);
  else if(e.detachEvent) e.detachEvent("on"+eventType,eventListener);
  else if(e.releaseEvents) {
    if(useCapture||(eventType.indexOf('mousemove')!=-1)) { e.releaseEvents(eval("Event."+eventType.toUpperCase())); }
    eval(eh);
  }
  else eval(eh);
}
function xEvent(evt) { // cross-browser event object prototype
  this.type = "";
  this.target = null;
  this.pageX = 0;
  this.pageY = 0;
  this.offsetX = 0;
  this.offsetY = 0;
  this.keyCode = 0;
  var e = evt ? evt : window.event;
  if(!e) return;
  // type
  if(e.type) this.type = e.type;
  // target
  if(xNN4) this.target = xLayerFromPoint(e.pageX, e.pageY);
  else if(e.target) this.target = e.target;
  else if(e.srcElement) this.target = e.srcElement;
  // pageX, pageY
  if(xOp5or6) { this.pageX = e.clientX; this.pageY = e.clientY; }
  else if(xDef(e.pageX,e.pageY)) { this.pageX = e.pageX; this.pageY = e.pageY; }
  else if(xDef(e.clientX,e.clientY)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); }
  // offsetX, offsetY
  if(xDef(e.layerX,e.layerY)) { this.offsetX = e.layerX; this.offsetY = e.layerY; }
  else if(xDef(e.offsetX,e.offsetY)) { this.offsetX = e.offsetX; this.offsetY = e.offsetY; }
  else { this.offsetX = this.pageX - xPageX(this.target); this.offsetY = this.pageY - xPageY(this.target); }
  // keycode
  if (xDef(e.keyCode)) { this.keyCode = e.keyCode; }
  else if (xDef(e.which)) { this.keyCode = e.which; }
}
function xResizeEvent() { // window resize event simulation
  if (window.xREL) setTimeout("xResizeEvent()", 250);
  var cw = xClientWidth(), ch = xClientHeight();
  if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); }
}
function xScrollEvent() { // window scroll event simulation
  if (window.xSEL) setTimeout("xScrollEvent()", 250);
  var sl = xScrollLeft(), st = xScrollTop();
  if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); }
}

// Object:
function xGetElementById(e) {
  if(typeof(e)!="string") return e;
  if(document.getElementById) e=document.getElementById(e);
  else if(document.all) e=document.all[e];
  else if(document.layers) e=xLayer(e);
  else e=null;
  return e;
}
function xLayer(id,root) { // only for nn4
  var i,layer,found=null;
  if (!root) root=window;
  for(i=0; i<root.document.layers.length; i++) {
    layer=root.document.layers[i];
    if(layer.id==id) return layer;
    if(layer.document.layers.length) found=xLayer(id,layer);
    if(found) return found;
  }
  return null;
}
function xLayerFromPoint(x,y,root) { // only for nn4
  var i, hn=null, hz=-1, cn;
  if (!root) root = window;
  for (i=0; i < root.document.layers.length; ++i) {
    cn = root.document.layers[i];
    if (cn.visibility != "hide" && x >= cn.pageX && x <= cn.pageX + cn.clip.right && y >= cn.pageY && y <= cn.pageY + cn.clip.bottom ) {
      if (cn.zIndex > hz) { hz = cn.zIndex; hn = cn; }
    }
  }
  if (hn) {
    cn = xLayerFromPoint(x,y,hn);
    if (cn) hn = cn;
  }
  return hn;
}
function xParent(e){
  if (!(e=xGetElementById(e))) return null;
  var p=null;
  if (e.parentLayer){if (e.parentLayer!=window) p=e.parentLayer;}
  else{
    if (e.offsetParent) p=e.offsetParent;
    else if (e.parentNode) p=e.parentNode;
    else if (e.parentElement) p=e.parentElement;
  }
  return p;
}
function xDef() {
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=="" || typeof(arguments[i])=="undefined") return false;}
  return true;
}

// Window:
function xScrollLeft() {
  var offset=0;
  if(xDef(window.pageXOffset)) offset=window.pageXOffset;
  else if(document.documentElement && document.documentElement.scrollLeft) offset=document.documentElement.scrollLeft;
  else if(document.body && xDef(document.body.scrollLeft)) offset=document.body.scrollLeft;
  return offset;
}
function xScrollTop() {
  var offset=0;
  if(xDef(window.pageYOffset)) offset=window.pageYOffset;
  else if(document.documentElement && document.documentElement.scrollTop) offset=document.documentElement.scrollTop;
  else if(document.body && xDef(document.body.scrollTop)) offset=document.body.scrollTop;
  return offset;
}
function xClientWidth() {
  var w=0;
  if(xOp5or6) w=window.innerWidth;
  else if(xIE4Up && document.documentElement && document.documentElement.clientWidth)
    w=document.documentElement.clientWidth;
  else if(document.body && document.body.clientWidth)
    w=document.body.clientWidth;
  else if(xDef(window.innerWidth,window.innerHeight,document.height)) {
    w=window.innerWidth;
    if(document.height>window.innerHeight) w-=16;
  }
  return w;
}
function xClientHeight() {
  var h=0;
  if(xOp5or6) h=window.innerHeight;
  else if(xIE4Up && document.documentElement && document.documentElement.clientHeight)
    h=document.documentElement.clientHeight;
  else if(document.body && document.body.clientHeight)
    h=document.body.clientHeight;
  else if(xDef(window.innerWidth,window.innerHeight,document.width)) {
    h=window.innerHeight;
    if(document.width>window.innerWidth) h-=16;
  }
  return h;
}

// end adit

//document.write(objMenu);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//This function sets the initial position of the menu contents according to the position of the respective images////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function create()
{
i1 = getMImage("menuitem1");
t1 = getImagePageTop(i1)+18; //  TOP POSITION
l1 =  getImagePageLeft(i1); //  LEFT POSITION

i2 = getMImage("menuitem2");
t2 = getImagePageTop(i2)+18; //  TOP POSITION
l2 =  getImagePageLeft(i2); //  LEFT POSITION

//i3 = getMImage("menuitem3");
//t3 = getImagePageTop(i3)+18; //  TOP POSITION
//l3 =  getImagePageLeft(i3)-85; //  LEFT POSITION

i4 = getMImage("menuitem4");
t4 = getImagePageTop(i4)+18; //  TOP POSITION
l4 =  getImagePageLeft(i4)-125; //  LEFT POSITION

i5 = getMImage("menuitem5");
t5 = getImagePageTop(i5)+18; //  TOP POSITION
l5 =  getImagePageLeft(i5)-350; //  LEFT POSITION

}
create();


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//This function is called on resize, which reassigns the i* and t* variables and assigns these vals to the menu items////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function recreate()
{
	i1 = getMImage("menuitem1");
	t1 = getImagePageTop(i1)+18; //  TOP POSITION
	l1 =  getImagePageLeft(i1); //  LEFT POSITION
	
	i2 = getMImage("menuitem2");
	t2 = getImagePageTop(i2)+18; //  TOP POSITION
	l2 =  getImagePageLeft(i2); //  LEFT POSITION
	
	//i3 = getMImage("menuitem3");
	//t3 = getImagePageTop(i3)+18; //  TOP POSITION
	//l3 =  getImagePageLeft(i3)-85; //  LEFT POSITION
	
	i4 = getMImage("menuitem4");
	t4 = getImagePageTop(i4)+18; //  TOP POSITION
	l4 =  getImagePageLeft(i4)-125; //  LEFT POSITION

	i5 = getMImage("menuitem5");
	t5 = getImagePageTop(i5)+5; //  TOP POSITION
	l5 =  getImagePageLeft(i5)-350; //  LEFT POSITION
	
	if(document.layers){
	location.reload();
	}

	if(document.getElementById){

	document.getElementById('abouttaj').style.top=t1;
	document.getElementById('abouttaj').style.left=l1;
	
	document.getElementById('pressroom').style.top=t2;
	document.getElementById('pressroom').style.left=l2;
	
	//document.getElementById('traveladvice').style.top=t3;
	//document.getElementById('traveladvice').style.left=l3;
	
	document.getElementById('contactus').style.top=t4;
	document.getElementById('contactus').style.left=l4;

	document.getElementById('difference').style.top=t5;
	document.getElementById('difference').style.left=l5;

	}
	else if(document.all){

	document.all('abouttaj').style.top=t1;
	document.all('abouttaj').style.left=l1;
	
	document.all('pressroom').style.top=t2;
	document.all('pressroom').style.left=l2;
	
	//document.all('traveladvice').style.top=t3;
	//document.all('traveladvice').style.left=l3;
	
	document.all('contactus').style.top=t4;
	document.all('contactus').style.left=l4;

	document.all('difference').style.top=t5;
	document.all('difference').style.left=l5;

	}
	else{}
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//ALL THE MENU CONTENT HAS BEEN CREATED HERE
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(br=="N") {if (document.layers){
							//Our World
							objFMenu  = "<layer id=abouttaj LEFT="+ l1 +" TOP="+ t1 +" VISIBILITY=HIDE onmouseover=\"showDDNav('','document.layers[\\'abouttaj\\']');MM_swapImage(\'menuitem1\',\'\',\'"+ address +"/abouttajo.gif\',1);\" onmouseout=\"hideDDNav('','document.layers[\\'abouttaj\\']');MM_swapImgRestore();\"><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=360 border=0 cellpadding=0 cellspacing=0 align=left><tr>";
							objFMenu += "<td align=left width=120><img src="+ address +"/line.gif width=50></td><td align=left width=120><img src="+ address +"/linem.gif></td><td align=left width=120><img src="+ address +"/lineend.gif border=0></td><td align=left width=120><img src="+ address +"/space.gif border=0></td></tr>";
							objFMenu += "<tr><td nowrap><a href="+ laddress +"/AboutTaj/CompanyInformation/default.htm class=nmenu>A Glimpse</a></td><td><a href="+ laddress +"/AboutTaj/InvestorRelations/default.htm class=nmenu>Vision</a></td><td><a href="+ laddress +"/AboutTaj/Careers/default.htm class=nmenu>Philosophy</a></td><td><img src="+ address +"/space.gif border=0></td></tr>";	
							objFMenu += "<tr><td nowrap valign=top><a href="+ laddress + "/AboutTaj/AwardsAndAccolades/AwardsAndAccolades.htm class=nmenu>Awards & Affiliations</a></td><td><a href="+ laddress + "/AboutTaj/HotelDirectory/city.asp class=nmenu>News Archive</a></td><img src="+ address +"/space.gif border=0></a></td></tr></table></td></tr></table></layer>";
							
							//Admissions
							objFMenu += "<layer id=pressroom LEFT="+ l2 +" TOP="+ t2 +" VISIBILITY=HIDE onmouseover=\"showDDNav('','document.layers[\\'pressroom\\']');MM_swapImage(\'menuitem2\',\'\',\'"+ address +"/pressroomo.gif\',1);\" onmouseout=\"hideDDNav('','document.layers[\\'pressroom\\']');MM_swapImgRestore();\"><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=240 border=0 cellpadding=0 cellspacing=0 align=left><tr>";
							objFMenu += "<td align=left width=120><img src="+ address +"/line.gif></td><td align=left width=120><img src="+ address +"/lineend.gif></td></tr>";
							objFMenu += "<tr><td class=nmenu  nowrap><a href="+ laddress +"/PressRoom/PressReleases/default.htm class=nmenu>Admission Procedure</a></td><td class=nmenu ><a href="+ laddress +"/PressRoom/PressContacts/default.htm class=nmenu>Application Form</a></td></tr></table></td></tr></table></layer>";
							
							objFMenu += "<tr><td class=nmenu  nowrap><a href=\"http://www.leonardo.com/tajhotels\" target=\"_blank\" class=menu >Private Digital Library</a></td></tr></table></td></tr></table></layer>";

							//Academics
							objFMenu += "<layer id=contactus LEFT="+ l4 +" TOP="+ t4 +" VISIBILITY=HIDE onmouseover=\"showDDNav('','document.layers[\\'contactus\\']');MM_swapImage(\'menuitem4\',\'\',\'"+ address +"/contactuso.gif\',1);\" onmouseout=\"hideDDNav('','document.layers[\\'contactus\\']');MM_swapImgRestore();\"><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=360 border=0 cellpadding=0 cellspacing=0 align=left><tr>";
							objFMenu += "<td align=left width=120><img src="+ address +"/space.gif border=0></td><td align=left width=120><img src="+ address +"/line.gif></td><td align=left width=120><img src="+ address +"/lineend.gif></td></tr>";
							objFMenu += "<tr><td class=nmenu  nowrap><img src="+ address +"/space.gif border=0></td><td class=nmenu valign=middle><a href="+ laddress +"/ContactUs/ContactInformation/trn.htm class=nmenu>Curriculum</a></td><td class=nmenu><a href="+laddress+"/contactus/feedback/default.htm class=nmenu>Learning Spaces </a></td><td class=nmenu><a href="+laddress+"/contactus/feedback/default.htm class=nmenu>College Placements</a></td></tr>";
							objFMenu += "<tr><td class=nmenu nowrap><img src="+ address +"/space.gif border=0></td><td class=nmenu nowrap><a href="+laddress+"/ContactUs/hotelComments/default.asp class=nmenu>Hotel Comments</a></td><td><img src="+ address +"/space.gif border=0></td></tr></table></td></tr></table></layer>";
}
}
else if(br=="IE" && add !="OP"){
							//Our World
							objFMenu  = "<div id=abouttaj style=\"visibility:hidden;position:absolute;left:"+ l1 +";top:"+ t1 +";\" onMouseover=\"showDDNav('abouttaj');MM_swapImage(\'menuitem1\',\'\',\'"+ address +"/abouttajo.gif\',1)\"  onMouseout=\"this.style.visibility='hidden';MM_swapImgRestore()\"><table border=0 cellpadding=0 cellspacing=0 width=300><tr><td valign=top><img src="+ address +"/space.gif width=35></td><td valign=top>";
							objFMenu += "<table width=355 border=0 cellpadding=0 cellspacing=0 align=left>";
							objFMenu += "<tr><td align=left><img src="+ address +"/1line.gif border=0></td><td align=left><img src="+ address +"/1linem.gif border=0></td><td align=left><img src="+ address +"/1linem.gif border=0></td><td align=left><img src="+ address +"/1linem.gif border=0 height=9 width=110></td><td align=left><img src="+ address +"/lineend.gif border=0></td><td align=left><img src="+ address +"/space.gif height=1 border=0></td></tr>";
							objFMenu += "<tr><td class=menu valign=top nowrap width=50><a href=World_Glimpse.htm target=_parent class=menu>A Glimpse</a></td><td valign=top class=menu width=45><a href=World_Vision.htm target=_parent class=menu>Vision</a></td><td class=menu valign=top width=50><a href=World_Philosophy.htm target=_parent class=menu>Philosophy </a></td><td valign=top class=menu><a href=World_Awards.htm target=_parent class=menu>Awards & Affiliations</a></td><td valign=top class=menu><a href=World_news.htm target=_parent class=menu>News Archive</a></td><td valign=top class=menu>&nbsp;</td></tr></table></td></tr></table></div>";	

							
							//Admissions
							objFMenu += "<div id=pressroom style=\"visibility:hidden;position:absolute;left:" +l2+ ";top:" +t2+ ";\" onMouseover=\"showDDNav('pressroom')\"  onMouseout=\"this.style.visibility='hidden'\"><table border=0 cellpadding=0 cellspacing=0 onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem2\',\'\',\'"+ address +"/pressroomo.gif\',1)\"><tr><td valign=top><img src="+ address +"/space.gif width=35></td><td valign=top>";
							objFMenu += "<table width=240 border=0 cellpadding=0 cellspacing=0 align=left>";
							objFMenu += "<tr><td align=left><img src="+ address +"/line.gif></td><td align=left><img src="+ address +"/lineend.gif></td></tr>";
							objFMenu += "<tr><td class=menu  nowrap><a href=Admis_Procedure.htm target=_parent class=menu>Admission Procedure</a></td><td class=menu ><a href=Admis_ApplForm.htm target=_parent class=menu>Application Form</a></td></tr></table></td></tr></table></div>";
							

							//Academics
							objFMenu += "<div id=contactus style=\"visibility:hidden;position:absolute;left:" +l4+ ";top:" +t4+ ";\" onMouseover=\"showDDNav('contactus')\"  onMouseout=\"this.style.visibility='hidden'\"><table border=0 cellpadding=0 cellspacing=0 onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem4\',\'\',\'"+ address +"/contactuso.gif\',1)\"><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=370 border=0 cellpadding=0 cellspacing=0 align=left onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem4\',\'\',\'"+ address +"/contactuso.gif\',1)\">";
							objFMenu += "<tr><td align=left><img src="+ address +"/1line.gif></td><td align=left><img src="+ address +"/1linem.gif border=0 width=100 height=9></td><td align=left valign=top><img src="+ address +"/1linem.gif border=0 width=120 height=9></td><td align=left ><img src="+ address +"/lineend.gif><td><td><img src="+ address +"/space.gif height=1 border=0></td></tr>";
							objFMenu += "<tr><td class=menu  nowrap width=50><a href=Acad_Curriculum.htm target=_parent class=menu>Curriculum</a></td><td class=menu width=100><a href=Acad_Learning.htm target=_parent class=menu>Learning Spaces</a></td><td class=menu width=120><a href=Acad_College.htm target=_parent class=menu>College Placements</a></td><td class=menu ><a href=Acad_Testimonials.htm target=_parent class=menu>Testimonials</a></td><td valign=top class=menu>&nbsp;</td></tr></table></td></tr></table></div>";


							//Our Difference
							objFMenu += "<div id=difference style=\"visibility:hidden;position:absolute;left:" +l5+ ";top:" +t5+ ";\" onMouseover=\"showDDNav('difference')\"  onMouseout=\"this.style.visibility='hidden'\"><table border=0 cellpadding=0 cellspacing=0 onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem5\',\'\',\'"+ address +"/hoteldirecteryo.gif\',1)\"><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=450 border=0 cellpadding=0 cellspacing=0 align=left onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem5\',\'\',\'"+ address +"/contactuso.gif\',1)\">";
							objFMenu += "<tr><td align=left><img src="+ address +"/1line.gif></td><td align=left><img src="+ address +"/1linem.gif border=0 width=100 height=9></td><td align=left valign=top><img src="+ address +"/1linem.gif border=0></td><td align=left valign=top><img src="+ address +"/1linem.gif border=0 width=105 height=9></td><td align=left valign=top><img src="+ address +"/1linem.gif border=0 width=70 height=9></td><td align=left><img src="+ address +"/lineend.gif><img src="+ address +"/space.gif height=1 border=0></td></tr>";
							objFMenu += "<tr><td class=menu nowrap><a href=Diff_Identity.htm target=_parent class=menu>Aditi Identity</a></td><td class=menu ><a href=Diff_School.htm target=_parent class=menu>The School Speaks</a></td><td class=menu><a href=Diff_Teachers.htm target=_parent class=menu>Teachers</a></td><td class=menu><a href=Diff_Beyond.htm target=_parent class=menu>Beyond Academics</a></td><td class=menu ><a href=Diff_learning.htm target=_parent class=menu>Learning Lab</a></td><td class=menu ><a href=Diff_Counselling.htm target=_parent class=menu>Counselling Services</a></td><td valign=top class=menu>&nbsp;</td></tr></table></td></tr></table></div>";
							objFMenu += "<tr><td class=menu  nowrap>&nbsp;</td><td class=menu>&nbsp;</td></tr></table></div>";



}
else if(add=="OP"){

							//Our World
							objFMenu  = "<div id=abouttaj style=\"visibility:hidden;position:absolute;left:"+ l1 +";top:"+ t1 +";\" onMouseover=\"showDDNav('abouttaj');MM_swapImage(\'menuitem1\',\'\',\'"+ address +"/abouttajo.gif\',1)\"  onMouseout=\"this.style.visibility='hidden';MM_swapImgRestore()\"><table border=0 cellpadding=0 cellspacing=0><tr><td valign=top><img src="+ address +"/space.gif width=35></td><td valign=top>";
							objFMenu += "<table width=420 border=0 cellpadding=0 cellspacing=0 align=left><tr>";
							objFMenu += "<td align=left width=120 valign=top ><img src="+ address +"/line.gif border=0></td><td align=left width=120 valign=top><img src="+ address +"/linem.gif border=0></td><td align=left width=120 valign=top><img src="+ address +"/lineend.gif border=0></td><td align=left width=120 valign=top><img src="+ address +"/space.gif height=1 border=0></td></tr>";
							objFMenu += "<tr><td class=menu valign=top nowrap><a href="+ laddress +"/AboutTaj/CompanyInformation/default.htm class=menu>A Glimpse</a></td><td valign=top class=menu><a href="+ laddress +"/AboutTaj/InvestorRelations/default.htm class=menu>Vision</a></td><td class=menu valign=top><a href="+ laddress +"/AboutTaj/Careers/default.htm class=menu>Philosophy </a></td><td valign=top class=menu>&nbsp;</td></tr>";	
							objFMenu += "<tr><td valign=top class=menu nowrap><a href="+ laddress +"/AboutTaj/AwardsAndAccolades/AwardsAndAccolades.htm class=menu>Awards & Affiliations</a></td><td valign=top class=menu><a href="+ laddress + "/AboutTaj/HotelDirectory/city.asp class=menu>News Archive </a></td><td valign=top class=menu>&nbsp;</td></tr></table></td></tr></table></div>";
							
							//Admissions
							objFMenu += "<div id=pressroom style=\"visibility:hidden;position:absolute;left:" +l2+ ";top:" +t2+ ";\" onMouseover=\"showDDNav('pressroom')\"  onMouseout=\"this.style.visibility='hidden'\"><table border=0 cellpadding=0 cellspacing=0 onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem2\',\'\',\'"+ address +"/pressroomo.gif\',1)\"><tr><td valign=top><img src="+ address +"/space.gif width=35></td><td valign=top>";
							objFMenu += "<table width=240 border=0 cellpadding=0 cellspacing=0 align=left><tr>";
							objFMenu += "<td align=left width=120><img src="+ address +"/line.gif></td><td align=left width=120><img src="+ address +"/lineend.gif></td></tr>";
							objFMenu += "<tr><td class=menu  nowrap><a href="+ laddress +"/PressRoom/PressReleases/default.htm class=menu>Admission Procedure</a></td><td class=menu ><a href="+ laddress +"/PressRoom/PressContacts/default.htm class=menu>Application Form</a></td></tr></table></td></tr></table></div>";
							
							
							//Academics
							objFMenu += "<div id=contactus style=\"visibility:hidden;position:absolute;left:" +l4+ ";top:" +t4+ ";\" onMouseover=\"showDDNav('contactus')\"  onMouseout=\"this.style.visibility='hidden'\"><table border=0 cellpadding=0 cellspacing=0 onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem4\',\'\',\'"+ address +"/contactuso.gif\',1)\"><tr><td><img src="+ address +"/space.gif width=35></td><td>";
							objFMenu += "<table width=360 border=0 cellpadding=0 cellspacing=0 align=left onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'menuitem4\',\'\',\'"+ address +"/contactuso.gif\',1)\"><tr>";
							objFMenu += "<td align=left width=120><img src="+ address +"/space.gif height=1 border=0></td><td align=left width=120><img src="+ address +"/line.gif></td><td align=left width=120><img src="+ address +"/lineend.gif><img src="+ address +"/space.gif height=1 border=0></td></tr>";
							objFMenu += "<tr><td class=menu  nowrap><!--a href="+ laddress +"/ContactUs/ContactInformation/trn.htm class=menu>Contact Information</a-->&nbsp;</td><td class=menu ><a href="+ laddress +"/ContactUs/ContactInformation/default.htm class=menu>Curriculum</a><!--a href=# class=menu>Reservation Help</a--></td><td class=menu ><a href="+laddress+"/contactus/feedback/default.htm class=menu>Learning Spaces </a></td><td class=nmenu><a href="+laddress+"/contactus/feedback/default.htm class=nmenu>College Placements</a></td></tr>";
							objFMenu += "<tr><td class=menu  nowrap>&nbsp;</td><td class=menu ><a href="+laddress+"/ContactUs/hotelComments/default.asp class=menu>Hotel Comments</a></td><td class=menu>&nbsp;</td></tr></table></div>";
}
else{}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//This function was used when the global menu was made to work onClick. This would hide all visible menus onClick of any nav.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hideall()
{
		if (document.layers){
			//
		}
		else if(document.all){
			document.all('abouttaj').style.visibility='hidden';
			document.all('pressroom').style.visibility='hidden';
			//document.all('traveladvice').style.visibility='hidden';
			document.all('contactus').style.visibility='hidden';
			document.all('difference').style.visibility='hidden';

		}
		else if(document.getElementById){
		
			document.getElementById('abouttaj').style.visibility='hidden';
			document.getElementById('pressroom').style.visibility='hidden';
			//document.getElementById('traveladvice').style.visibility='hidden';
			document.getElementById('contactus').style.visibility='hidden';
			document.getElementById('difference').style.visibility='hidden';		
		}
		else{}
}


document.write (objFMenu);
loadcheck=1;

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////This is a special add on function to overcome the pre-load-mouseover error of the global menu//////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function tryLoad()
{
	if (document.all)
	{
		document.all.overall.style.visibility='visible';
	}

	if (document.getElementById && !document.all)
	{
		document.getElementById('overall').style.visibility='visible';
	}	
}
tryLoad();


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////This function is to open the page on click of the " CALL CENTER" link //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function getCC(e)
{
	if (e==1){
		window.open('../cc_res.htm','_blank',"resizeable=no,scrollbar=no,width=532,innerWidth=532,height=230,innerHeight=230")
	}
	else{
		window.open('cc.htm','_blank',"resizeable=no,scrollbar=no,width=532,innerWidth=532,height=230,innerHeight=230")
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////EXTERNAL FUNCTION! FOR COOKIE SETTING OF ROI//////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function setIsIndiaOption(Obji,Objd)
			{
			//alert('hai');
				if(Obji==null)
				{
					return;
				}
				//alert(Obji);
				if((Obji.checked==false)&&(Objd.checked==false))
				{
					var isI = getCookie("isIndia");

					if (isI!=null)
					{				
						if (isI=="1")
						{
							Obji.checked=true;
							Objd.checked=false;
						}
					else
						{
							Obji.checked=false;
							Objd.checked=true;
						}
					}
				}
			}

////EXTERNAL FUNCTION ENDS HERE!//////////////////////

function SetCookie (name, value) {  

	var argv = SetCookie.arguments;  

	var argc = SetCookie.arguments.length;  

	var expires = (argc > 2) ? argv[2] : null;  

	var path = (argc > 3) ? argv[3] : null;  

	var domain = (argc > 4) ? argv[4] : null;  

	var secure = (argc > 5) ? argv[5] : false;  

	document.cookie = name + "=" + escape (value) + 

	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 

	((path == null) ? "" : ("; path=" + path)) +  

	((domain == null) ? "" : ("; domain=" + domain)) +    

	((secure == true) ? "; secure" : "");
	alert(document.cookie);

}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//This function is for the tryParse.asp page which I am trying///////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function opene(e,f)
{	
	steps="../../"
	if (f==3 || f==4)
		{
		steps="../../../";
		}
	if (f==0)
		{
		steps="../"
		}
/*	if (f==4)
		{
		steps="../../../";
		}*/
	//alert (steps)
	var laddressh;
	laddressh=laddress.toLowerCase();
	e=e.toLowerCase();
	e=e.replace(laddressh+'/',"");
	e=e.toLowerCase();
	e=e.replace("&","amp;")
	e=e.replace("+","%2B")
	e=e.replace("?","%3F")
	e=e.replace("=","%3D")
	window.open (""+steps+"tryParse.asp?val="+e+"&from="+f+"","_blank","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=10,height=10,top=10000,left=10000")
	//window.open (""+steps+"tryParse.asp?val="+e+"&from="+f+"","_blank","toolbar=no,location=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=700,height=600,top=10,left=10")
	self.focus();
}
