/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() 

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame=""
oCMenu.useclick=0 
oCMenu.useNS4links=1  
oCMenu.NS4padding=2 
oCMenu.checkselect=0
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" //Value: "path_to_menu_file_offline/"
oCMenu.onlineUrl="http://www.dhtmlcentral.com/coolmenus/examples/withframes/" //Value: "path_to_menu_file_online/"
oCMenu.pagecheck=1 
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=1000 

//Background bar properties
oCMenu.usebar=0 
oCMenu.barcolor="#003366" 
oCMenu.barwidth="100" 
oCMenu.barheight="21"
oCMenu.barx=0 
//oCMenu.bary="menu" 
oCMenu.bary="45" 
oCMenu.barinheritborder=0

//Placement properties
oCMenu.rows=1 
oCMenu.fromleft=0 
oCMenu.fromtop=45 
oCMenu.pxbetween="0" 

oCMenu.menuplacement=new Array('0','104','210','264','331','407')

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=105 
oCMenu.level[0].height=30 
oCMenu.level[0].bgcoloroff="silver" 
oCMenu.level[0].bgcoloron="#336699" 
oCMenu.level[0].textcolor="#336699" 
oCMenu.level[0].hovercolor="#FF9900" 
oCMenu.level[0].style="font-family:verdana,tahoma,arial,helvetica; font-size:10px; font-weight:regular" 
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="#333366"
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-8
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

oCMenu.level[0].clip=0 
oCMenu.level[0].clippx=15 
oCMenu.level[0].cliptim=50 
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //VALUE: 0 || "filter specs"
oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=175
oCMenu.level[1].height=15
oCMenu.level[1].bgcoloroff="#CCCCCC"
oCMenu.level[1].bgcoloron="#999999"
oCMenu.level[1].textcolor="#333333"
oCMenu.level[1].hovercolor="#FFFFFF"
oCMenu.level[1].style="padding:2px; font-family:verdana,tahoma,arial,helvetica; font-size:10px; font-weight:regular"
oCMenu.level[1].align="top" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#999999"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=15
oCMenu.level[2].bgcoloroff="#333366"
oCMenu.level[2].bgcoloron="#CCCCCC"
oCMenu.level[2].textcolor="33999999"
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="top" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"

oCMenu.makeMenu('Home','','','/default.php','','104','','/images/home1.gif','/images/home2.gif')
oCMenu.makeMenu('About','','','/corporate/philosophy.html','','106','','/images/aboutus1.gif','/images/aboutus2.gif')
	oCMenu.makeMenu('About1','About','&nbsp;Panorama general','/corporate/philosophy.html')
	oCMenu.makeMenu('About2','About','&nbsp;Locales','/locations/locations.html')
	oCMenu.makeMenu('About3','About','&nbsp;Historia ', '/corporate/history.html')
	oCMenu.makeMenu('About4','About','&nbsp;Nuestros clientes', '/corporate/customers.html')
	oCMenu.makeMenu('About5','About','&nbsp;Finanzas', '/corporate/Finance.html')
	oCMenu.makeMenu('About6','About','&nbsp;Premios y reconocimientos', '/corporate/awards.html')

oCMenu.makeMenu('Focus','','','/corporate/vision.html','','54','','/images/focus1.gif','/images/focus2.gif')
	oCMenu.makeMenu('Focus1','Focus','&nbsp;Visi&oacute;n 2015', '/corporate/vision.html')
	oCMenu.makeMenu('Focus2','Focus','&nbsp;Medio ambiente', '/corporate/environment.html')
	oCMenu.makeMenu('Focus3','Focus','&nbsp;Tecnolog&iacute;a avanzada ', '/corporate/advanced.html')
	oCMenu.makeMenu('Focus4','Focus','&nbsp;Investigaci&oacute;n y desarrollo', '/corporate/research.html')
	oCMenu.makeMenu('Focus5','Focus','&nbsp;Comunidad', '/corporate/community.html')
	oCMenu.makeMenu('Focus6','Focus','&nbsp;Manufactura', '/corporate/manufacturing.html')
	oCMenu.makeMenu('Focus7','Focus','&nbsp;Exposiciones de la industria', '/corporate/industry.php')
	oCMenu.makeMenu('Focus8','Focus','&nbsp;Motorsports', 'http://www.globaldenso.com/motorsports/index.html')

oCMenu.makeMenu('Tech','','','javascript:openAWindow("/finder/index.html","thewin","width=640,height=475,toolbar=no,scrollbar=no");','','67','','/images/technology1.gif','/images/technology2.gif')
	oCMenu.makeMenu('Tech1','Tech','&nbsp;Biblioteca de im&aacute;genes', '', '','','','','','','','','','javascript:openAWindow("/finder/index.html","thewin","width=640,height=475,toolbar=no,scrollbar=no");')
	oCMenu.makeMenu('Tech2','Tech','&nbsp;Relativos al motor', '', '','','','','','','','','','javascript:openAWindow("/finder/ovengine.html","thewin","width=640,height=475,toolbar=no,scrollbar=no");')
	oCMenu.makeMenu('Tech3','Tech','&nbsp;Electr&oacute;nica de carrocer&iacute;a', '', '','','','','','','','','','javascript:openAWindow("/finder/ovbody.html","thewin","height=475,width=640,toolbar=no,scrollbars=yes");')
	oCMenu.makeMenu('Tech4','Tech','&nbsp;Manejo y seguridad','','','','','','','','','','','javascript:openAWindow("/finder/ovdriving.html","thewin","height=475,width=640,toolbar=no,scrollbars=yes");')
	oCMenu.makeMenu('Tech5','Tech','&nbsp;CI/Sensores','','','','','','','','','','','javascript:openAWindow("/finder/ovic.html","thewin","height=475,width=640,toolbar=no,scrollbars=yes");')
	oCMenu.makeMenu('Tech7','Tech','&nbsp;Control clim&aacute;tico','','','','','','','','','','','javascript:openAWindow("/finder/ovclimate.html","thewin","height=475,width=640,toolbar=no,scrollbars=yes");')
	oCMenu.makeMenu('Tech9','Tech','&nbsp;Informaci&oacute;n y comunicaci&oacute;n','','','','','','','','','','','javascript:openAWindow("/finder/ovinfo.html","thewin","height=475,width=640,toolbar=no,scrollbars=yes");')
	oCMenu.makeMenu('Tech10','Tech','&nbsp;Postmercado', '/products/main_aftermarket.html','')

oCMenu.makeMenu('Contact','','','/contact/contact2.html','','76','','/images/contactus1.gif', '/images/contactus2.gif')
	oCMenu.makeMenu('Contact1','Contact','&nbsp;Informaci&oacute;n general', '/contact/contact2.html','')
	oCMenu.makeMenu('Contact2','Contact','&nbsp;Recursos humanos', '/contact/hr.html','')
	
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()	

oCMenu.m['About'].img3 = '/images/aboutus3.gif'
oCMenu.m['Focus'].img3 = '/images/focus3.gif'
oCMenu.m['Tech'].img3 = '/images/technology3.gif'
oCMenu.m['News'].img3 = '/images/news3.gif'
oCMenu.m['Careers'].img3 = '/images/careers3.gif'
oCMenu.m['Contact'].img3 = '/images/contacust3.gif'
oCMenu.m['Sitemap'].img3 = '/images/sitemap3.gif'

function openAWindow(URLtoOpen, windowName, windowFeatures) 
{
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
