var baseURL;

baseURL = "http://www.globalauto.in";


///////////////////////////////////////////////////////////////////

//Contents for Home
var HomeURL
HomeURL=baseURL + '/index.html'

//Contents for Contact Us
var ContactURL
FactoryURL=baseURL + '/factory.html'

//Contents for Sitemap
var SitemapURL
SitemapURL=baseURL + '/sitemap/index.html'

//Contents for The Group
var Corporate=new Array()
Corporate[0]='<a href="' + baseURL + '/overview.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Overview</font></a>'
Corporate[1]='<a href="' + baseURL + '/groupxenitis.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Group Xenitis</font></a>'
Corporate[2]='<a href="' + baseURL + '/tieups.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Tie-up</font></A>'


//Contents for Business
var Dealer=new Array()

Dealer[0]='<a href="' + baseURL + '/registration/dealerdetailspi.asp" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Dealership Enquiry</font></A>'
Dealer[1]='<a href="' + baseURL + '/dealerpolicy.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Dealer Policy</font></A>'
Dealer[2]='<a href="' + baseURL + '/dealer_six.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Dealer VI Showroom images</font></A>'
Dealer[3]='<a href="' + baseURL + '/dealer_list.asp" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Dealer Locator</font></A>'


//Contents for Business
var Products=new Array()

Products[0]='<a href="' + baseURL + '/specs2.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Specs</font></a>'
Products[1]='<a href="' + baseURL + '/prices.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Prices</font></a>'
Products[2]='<a href="' + baseURL + '/colours.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Colours</font></a>'

//Contents for CArriers

var Carriers=new Array()

Carriers[0]='<a href="' + baseURL + '/careerphilosophy.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">People Philosophy</font></a>'
Carriers[1]='<a href="' + baseURL + '/careeroppurtunity.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Career Oppurtunity</font></a>'

//Contents for Media Room

var PressRelease=new Array()

PressRelease[0]='<a href="' + baseURL + '/pressrelease_company.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Press Release by Company</font></a>'
PressRelease[1]='<a href="' + baseURL + '/pressclips/pressclippings.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Press Clippings</font></a>'


//Contents for Media Room

var Office=new Array()

Office[0]='<a href="' + baseURL + '/address.html" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Address</font></a>'


//Contents for Media Room

var Promotions=new Array()

Promotions[0]='<a href="' + baseURL + '/wallpapers.html?r='+ Math.random()+'" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Wallpapers</font></a>'
Promotions[1]='<a href="' + baseURL + '/AddGallery.html?r='+ Math.random()+'" target="_parent"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">AD Gallery</font></a>'

////////////////////////////////////////////////////////////////////














		
var menuwidth='165px' //default menu width
var menubgcolor='#F4F4F4'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

//No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+';"  onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(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;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6) 
dropmenuobj.style.left=dropmenuobj.style.top="-500px"

if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
//for background customization

document.all.backfrm.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
{
obj.visibility=visible
//for background customization

document.all.backfrm.style.display=''

}
else if (e.type=="click")
{
obj.visibility=hidden
//for background customization

document.all.backfrm.style.display='none'

}
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
//background customization soumen
document.all.backfrm.style.height=dropmenuobj.offsetHeight-2
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
//for background customization
document.all.backfrm.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
document.all.backfrm.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
//document.all.backfrm.style.height='400px'
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
//for background customization

document.all.backfrm.style.display='none'

}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}



function DrawMenu()
{
	document.write('<TABLE cellSpacing=0 cellPadding=0 width=100% align=left bordercolor="#000000" border=0 bordercolorlight="#000000" bordercolordark="#ffffff">')
	document.write('<TBODY>')
	document.write('<TR>')
	//document.write('<TD vAlign=top align=right width="7">')
	//document.write('<IMG height=26 src="images/top_left_corner.gif" width=7></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write('background=images/menu_slice.gif ><IMG height=4 src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write('class=menu_color ')
	document.write(' onmouseout=delayhidemenu() ')
	document.write(' href="'+ HomeURL +'"><font color="#FFFFFF">Home</font></A></TD>')
	document.write(' <TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write(' background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write('class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, Corporate, \'120px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Corporate</font></a></TD>')
	document.write('<TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write(' background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<a  style="text-decoration:none" class=menu_color href="'+ FactoryURL +'"><font color="#FFFFFF">Factory</font></a></TD>')
	document.write('<TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write('background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write(' class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, Products, \'100px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Products</font></A></TD>')
	document.write('<TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write('background=images/menu_slice.gif><IMG height=4 ')
	document.write('src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write(' class=menu_color ')
	document.write('onmouseover="dropdownmenu(this, event, Dealer, \'180px\')" ')
	document.write('onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Dealers</font></A></TD>')
	document.write('<TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write(' <TD align=middle width="13%" background=images/menu_slice.gif><IMG ')
	document.write('height=4 src="images/red_box.gif" width=4 ')
	document.write(' border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write(' class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, PressRelease, \'180px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Press Release</font></a></TD>')
	document.write('<TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write('<TD align=middle width="10%" ')
	document.write(' background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write('class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, Carriers, \'140px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Career</font></a></TD>')
	document.write(' <TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write(' <TD align=middle width="10%" ')
	document.write(' background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write(' class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, Office, \'80px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Offices</font></a></TD>')
	document.write(' <TD align=middle width="0%" background=images/menu_slice.gif><font color="#C2C2C2">|</font></TD>')
	document.write(' <TD align=middle width="10%" ')
	document.write(' background=images/menu_slice.gif><IMG height=4 ')
	document.write(' src="images/red_box.gif" width=4 border=0>&nbsp;&nbsp;<A style="text-decoration:none" ')
	document.write(' class=menu_color ')
	document.write(' onmouseover="dropdownmenu(this, event, Promotions, \'100px\')" ')
	document.write(' onclick="return clickreturnvalue()" onmouseout=delayhidemenu() ')
	document.write(' href="'+ baseURL +'/#"><font color="#FFFFFF">Promotion</font></a></TD>')
	//document.write('<TD vAlign=top align=right width="8"><IMG height=26 ')
	//document.write(' src="images/top_right_corner.gif" width=7></TD>')
	document.write('</TR></TBODY></TABLE>')




	document.write('<iframe id="backfrm" style="display:none; position:absolute;zindex:0 "></iframe>')
}


if (hidemenu_onclick=="yes")
document.onclick=hidemenu