/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck new for ie7 (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.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0; 
this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0; 
this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8 
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.ns7=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
this.ns4=(document.layers && !this.dom)?1:0; 
this.bw=(this.ie8 || this.ie7 || 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 wid = window.screen.width

var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.

oCMenu=new makeCoolMenu("oCMenu") //Making the menu object. Argument: menuname
oCMenu.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCMenu.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

oCMenu.useNS4links=1  

//After adding the "hover effect" for netscape as well, all styles are lost. But if you want padding add it here.
oCMenu.NS4padding=0 

oCMenu.checkselect=0

function loc()
{
var strdoc= new String(document.location)
var strpath= strdoc.substring(0,strdoc.lastIndexOf("/"))
return strpath;
}

//oCMenu.offlineUrl="file:///C|/inetpub/wwwroot/sucheta/infobricks/www/" //Value: "path_to_menu_file_offline/"
oCMenu.offlineUrl=loc() //Value: "path_to_menu_file_offline/"
oCMenu.onlineUrl="http://www.seruminstitute.com/" //Value: "path_to_menu_file_online/"

oCMenu.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCMenu.checkscroll=0 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCMenu.resizecheck=1 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCMenu.wait=600 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Background bar properties
oCMenu.usebar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCMenu.barcolor="Navy" //The color of the background bar - Value: "color"
oCMenu.barwidth="100%" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barheight="menu" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barx=0 //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCMenu.bary=0 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCMenu.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCMenu.rows=1 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
//oCMenu.fromleft=0 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.fromtop=58 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"

if (wid == 800) {
    oCMenu.fromleft=108 //in pixel or %
} else if (wid == 1024) {
	oCMenu.fromleft=108 //in pixel or %
} else if (wid == 1280) {
	oCMenu.fromleft=108 //in pixel or %
}

oCMenu.pxbetween=0 //How much space you want between each of the top items. - Value: px || "%"

//oCMenu.menuplacement=new Array(69,217,340,411,514,596)
//oCMenu.menuplacement=new Array('2%','20%','36%','57%','70%','80%') 
oCMenu.menuplacement=0

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() //Add this for each new level
oCMenu.level[0].width=104 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCMenu.level[0].height=22 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCMenu.level[0].bgcoloroff="#a9a9a4" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCMenu.level[0].bgcoloron="#848080" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCMenu.level[0].textcolor="White" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
//oCMenu.level[0].hovercolor="Yellow" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCMenu.level[0].style="padding:0px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold" //The style for all level[0] (top) items. - Value: "style_settings"
oCMenu.level[0].border=0 //The border size for all level[0] (top) items. - Value: px
oCMenu.level[0].bordercolor="#bab6b6" //The border color for all level[0] (top) items. - Value: "color"
oCMenu.level[0].offsetX=0 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].offsetY=-1 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=0 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=0 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCMenu.level[0].cliptim=0 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the supported browsers
oCMenu.level[0].filter=0 //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= 135 //oCMenu.level[0].width-2
oCMenu.level[1].height=18
oCMenu.level[1].style="padding:1px; font-family:arial,helvetica; font-size:8pt"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=(oCMenu.level[0].width)/2 - 53 
oCMenu.level[1].offsetY=-1
oCMenu.level[1].border=1 
oCMenu.level[1].align="right" 
oCMenu.level[1].bordercolor="#6f7c90"
oCMenu.level[1].NS4fontSize="1"
oCMenu.level[1].bgcoloroff="#939dab"
oCMenu.level[1].bgcoloron="#6f7c90"

//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=135
oCMenu.level[2].height=18
oCMenu.level[2].bgcoloroff="#6f7c90"
oCMenu.level[2].bgcoloron="#939dab"
oCMenu.level[2].style="padding:0px; font-family:arial,helvetica; font-size:8pt"
oCMenu.level[2].align="top" 
oCMenu.level[2].offsetX=(oCMenu.level[1].width)+500
//oCMenu.level[2].offsetX=(oCMenu.level[1].width)+300
oCMenu.level[2].offsetY=200
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#939dab"
oCMenu.level[2].NS4font="arial,helvetica"
oCMenu.level[2].NS4fontSize="1"


oCMenu.makeMenu('top0','','','../content/about_us.htm','',66,23,'../images/topnav0.gif','../images/topnav0a.gif')
	oCMenu.makeMenu('sub00','top0','&nbsp;&nbsp;Introduction','../content/about_us.htm','',130,18)
	oCMenu.makeMenu('sub01','top0','&nbsp;&nbsp;Global Reach','../content/globalreach.htm','',130,18)
	oCMenu.makeMenu('sub02','top0','&nbsp;&nbsp;Production','../content/about_prod.htm','',130,18)
	oCMenu.makeMenu('sub03','top0','&nbsp;&nbsp;Quality Assurance','../content/about_quality.htm','',130,18)
	oCMenu.makeMenu('sub04','top0','&nbsp;&nbsp;Poonawalla Group','http://www.poonawallagroup.com','_blank',130,18)
	
oCMenu.makeMenu('top1','','','../content/products/product_list.htm','',64,23,'../images/topnav1.gif','../images/topnav1a.gif')
	oCMenu.makeMenu('sub10','top1','&nbsp;&nbsp;Manufactured Products','','',131,18)
	oCMenu.makeMenu('sub11','top1','&nbsp;&nbsp;Marketed Products','','',131,18)
	oCMenu.makeMenu('sub12','top1','&nbsp;&nbsp;Exported Products','','',131,18)	
	oCMenu.makeMenu('sub13','top1','&nbsp;&nbsp;Product List','../content/products/product_list.htm','',131,18)
		oCMenu.makeMenu('sub100','sub10','&nbsp;&nbsp;Vaccines','../content/products/product_vac.htm','',100,18)
		oCMenu.makeMenu('sub101','sub10','&nbsp;&nbsp;Anti-Sera, Plasma &nbsp;&nbsp;& Hormonal','../content/products/product_antivenom.htm','',100,36)
		oCMenu.makeMenu('sub102','sub10','&nbsp;&nbsp;Anti-cancer','../content/products/product_anticancer.htm','',100,18)		
		
		oCMenu.makeMenu('sub111','sub11','&nbsp;&nbsp;Hormonal Products','../content/products/product_hormones.htm','',100,18)
		oCMenu.makeMenu('sub112','sub11','&nbsp;&nbsp;Other Pharma &nbsp;&nbsp;Products','../content/products/product_pharma.htm','',100,36)
				
        oCMenu.makeMenu('sub120','sub12','&nbsp;&nbsp;Vaccines','../content/products/product_vac_exp.htm','',100,18)
		oCMenu.makeMenu('sub121','sub12','&nbsp;&nbsp;Anti-sera','../content/products/product_antisera_exp.htm','',100,18)
		oCMenu.makeMenu('sub122','sub12','&nbsp;&nbsp;Anti-cancer','../content/products/product_anticancer_exp.htm','',100,18)
	oCMenu.makeMenu('sub14','top1','&nbsp;&nbsp;Product Pipeline','../content/prod_pipe.htm','',131,18)

		
oCMenu.makeMenu('top2','','','../content/research.htm','',48,23,'../images/topnav2.gif','../images/topnav2a.gif')
		oCMenu.makeMenu('sub20','top2','&nbsp;&nbsp;R&D ','research.htm','',90,18)
		oCMenu.makeMenu('sub21','top2','&nbsp;&nbsp;Product Pipeline ','prod_pipe2.htm','',90,18)

oCMenu.makeMenu('top3','','','../content/faq.htm','',74,23,'../images/topnav8.gif','../images/topnav8a.gif')
		oCMenu.makeMenu('sub30','top3','&nbsp;&nbsp;Measles ','../content/faq_measles.htm','',73,18)
		oCMenu.makeMenu('sub31','top3','&nbsp;&nbsp;Mumps ','../content/faq_mumps.htm','',73,18)
		oCMenu.makeMenu('sub32','top3','&nbsp;&nbsp;Rubella ','../content/faq_rubella.htm','',73,18)
		oCMenu.makeMenu('sub33','top3','&nbsp;&nbsp;DTP ','../content/faq_dtp.htm','',73,18)
		oCMenu.makeMenu('sub34','top3','&nbsp;&nbsp;Hepatitis ','../content/faq_hepatitis.htm','',73,18)


oCMenu.makeMenu('top4','','','../content/news_mile.htm','',74,23,'../images/topnav3.gif','../images/topnav3a.gif')
		oCMenu.makeMenu('sub40','top4','&nbsp;&nbsp;Achievements','../content/news_achieve.htm','',82,18)
		oCMenu.makeMenu('sub41','top4','&nbsp;&nbsp;Milestones','../content/news_mile.htm','',82,18)

oCMenu.makeMenu('top9','','','../content/news.htm','',48,23,'../images/topnav10.gif','../images/topnav10a.gif')
		
oCMenu.makeMenu('top5','','','../content/contact_loc.htm','',74,23,'../images/topnav5.gif','../images/topnav5a.gif')
	oCMenu.makeMenu('sub50','top5','&nbsp;&nbsp;Contact Info','../content/contact_loc.htm','',120,18)
	oCMenu.makeMenu('sub51','top5','&nbsp;&nbsp;Branch Offices','../content/contact_loc1.htm','',120,18)
	oCMenu.makeMenu('sub52','top5','&nbsp;&nbsp;International Marketing','../content/contact_loc.htm#intl','',120,18)
	oCMenu.makeMenu('sub53','top5','&nbsp;&nbsp;Inquiry Form','../content/inquiry.htm','',120,18)
	
oCMenu.makeMenu('top6','','','../content/sitemap.htm','',62,23,'../images/topnav6.gif','../images/topnav6a.gif')
oCMenu.makeMenu('top7','','','../search.htm','',51,23,'../images/topnav9.gif','../images/topnav9a.gif')
oCMenu.makeMenu('top8','','','../index.html','',55,23,'../images/topnav7.gif','../images/topnav7a.gif')

//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()
