// ###################################### Menu stuff done #########################################
/*****************************************************************************
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() //Making browsercheck object
	var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.

	oCMenu2=new makeCoolMenu("oCMenu2") //Making the menu object. Argument: menuname
	oCMenu2.useframes1=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
	oCMenu2.frame="topFrame" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"
	oCMenu2.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1
	oCMenu2.useNS4links=1  
	oCMenu2.NS4padding=2 
	oCMenu2.checkselect=0
        oCMenu2.offlineUrl="file:///d:/show/dummy/dummy1/" //Value: "path_to_menu_file_offline/"
	oCMenu2.onlineUrl="http://www.qualitymeter.com/dummy1/" //Value: "path_to_menu_file_online/"
	oCMenu2.pagecheck=0
	oCMenu2.checkscroll=0
	oCMenu2.resizecheck=1
	oCMenu2.wait=1000
	//Background bar properties
	oCMenu2.usebar=0
	oCMenu2.barcolor="#000000"  //"004646"
	oCMenu2.barwidth="300"
	oCMenu2.barheight="menu"
	oCMenu2.barx="menu"
	oCMenu2.bary="menu"
	oCMenu2.barinheritborder=0
	//Placement properties
	oCMenu2.rows=1
	oCMenu2.fromleft=0
	oCMenu2.fromtop=140
	oCMenu2.pxbetween=80

	xStart=0
	if(screen.width=='1024')
	{oCMenu2.menuplacement=new Array(xStart,xStart+167,xStart+410,xStart+590,xStart+720) }
	else if(screen.width=='1152')
	{oCMenu2.menuplacement=new Array(xStart,xStart+208,xStart+410,xStart+590,xStart+720) }
	else if(screen.width=='1280')
	{oCMenu2.menuplacement=new Array(xStart,xStart+208,xStart+410,xStart+590,xStart+720) }
	else
	{oCMenu2.menuplacement=new Array(xStart,xStart+166,xStart+410,xStart+590,xStart+720) }

	//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
	oCMenu2.level[0]=new Array()
	oCMenu2.level[0].width=60
	oCMenu2.level[0].height=18	//20
	oCMenu2.level[0].bgcoloroff="#4e8acc" //cccc00" //3366cc" //996633" //04646"
	oCMenu2.level[0].bgcoloron="#d7662a" //white" //#336699"//"#0d5f5f"
	oCMenu2.level[0].textcolor="white"
	oCMenu2.level[0].hovercolor="white" // Yellow"
	oCMenu2.level[0].style="padding:0px; font-family:'Book Antiqua'; font-size:15px;font-weight:bold"
	oCMenu2.level[0].border=0
	oCMenu2.level[0].bordercolor="#000001"
	oCMenu2.level[0].offsetX=200
	oCMenu2.level[0].offsetY=-20
	oCMenu2.level[0].NS4font="arial" //"tahoma,arial,helvetica"
	oCMenu2.level[0].NS4fontSize="2"
	oCMenu2.level[0].clip=1 
	oCMenu2.level[0].clippx=5
	oCMenu2.level[0].cliptim=1
	oCMenu2.level[0].filter=0 
	oCMenu2.level[0].align="bottom" 
	//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
	oCMenu2.level[1]=new Array()
	oCMenu2.level[1].width=oCMenu2.level[0].width-2 
	oCMenu2.level[1].height=15
	oCMenu2.level[1].style="padding:2px; font-family:verdana; font-size:11px;" // font-weight:bold" //11
	oCMenu2.level[1].align="left" 
	oCMenu2.level[1].offsetX=-(oCMenu2.level[0].width-2)/2+59 //45
	oCMenu2.level[1].offsetY=0
	oCMenu2.level[1].border=1
	oCMenu2.level[1].bordercolor="#000001" //"#006699"
	oCMenu2.level[2]=new Array()
	oCMenu2.level[2].width=oCMenu2.level[0].width-2
	oCMenu2.level[2].width=300
	oCMenu2.level[2].height=14
	oCMenu2.level[2].style="padding:2px; font-family: arial; font-size:9px; font-weight:bold"; //font-family:tahoma, arial,helvetica; 
	oCMenu2.level[2].align="right"
	oCMenu2.level[2].offsetX=-(oCMenu2.level[0].width-2)/2+59 //45
	oCMenu2.level[2].offsetY=0
	oCMenu2.level[2].border=1
	oCMenu2.level[2].bordercolor="#000001"

oCMenu2.makeMenu('mtop1','','<img src=images/enquiries.jpg>','','',196,17)	
	oCMenu2.makeMenu('sub1','mtop1','Dealership Enquiry','dealer.htm','',130)
	oCMenu2.makeMenu('sub2','mtop1','Product Inquiry','product_inquiry.htm','',130)
	oCMenu2.makeMenu('sub3','mtop1','Feedback','feedback.htm','',130)
	


//Leave these two lines! Making the styles and then constructing the menu
	
oCMenu2.makeStyle(); oCMenu2.construct()
	// ###################################### Menu stuff done #########################################