function init()
{
//main menu
if (screen.width==800)
{
//code starts here
	menus[0] = new menu(179, "vertical", 168, 121, 0,2, "", "", "Verdana,Helvetica", 12, 
		"bold", "bold", "black", "#000000", 1, "", 2, "", false, true, true, false, 13, false, 2, 2, "black");
	menus[0].addItem("#", "",19, "left", "&nbsp;&nbsp;<a style='cursor:hand;' onmouseover='x()' onmouseout='y();'><img name='button1' src='images/home/product1.gif' alt='Products' border='0' id=menuTitle1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a/>", 1);
//about us section
	menus[1] = new menu(107, "vertical", 0, 0, 0, 0,"" , "", "Verdana,Helvetica", 7, "normal", 
		"normal", "black", "#ffffff", 0, "", 2, 12, false, true, false, true, 15, false, 0, 0, "");
	menus[1].addItem("products/api.htm", "", 19, "left","<a style='cursor:hand;' title='Active Pharmaceutical Ingredient'><img src='images/home/api.gif' alt='Active Pharmaceutical Ingredient' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
	menus[1].addItem("products/inter.htm", "", 19, "left","<a style='cursor:hand;' title='Intermediate'><img src='images/home/intermediates.gif' alt='Intermediate' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
}
if (screen.width==1024)
{
//code starts here
	menus[0] = new menu(179, "vertical", 280, 121, 0,2, "", "", "Verdana,Helvetica", 12, 
		"bold", "bold", "black", "#000000", 1, "", 2, "", false, true, true, false, 13, false, 2, 2, "black");
	menus[0].addItem("#", "",19, "left", "&nbsp;&nbsp;<a style='cursor:hand;' onmouseover='x()' onmouseout='y();'><img name='button1' src='images/home/product1.gif' alt='Products' border='0' id=menuTitle1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a/>", 1);
//about us section
	menus[1] = new menu(107, "vertical", 0, 0, 0, 0,"" , "", "Verdana,Helvetica", 7, "normal", 
		"normal", "black", "#ffffff", 0, "", 2, 12, false, true, false, true, 15, false, 0, 0, "");
	menus[1].addItem("products/api.htm", "", 19, "left","<a style='cursor:hand;' title='Active Pharmaceutical Ingredient'><img src='images/home/api.gif' alt='Active Pharmaceutical Ingredient' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
	menus[1].addItem("products/inter.htm", "", 19, "left","<a style='cursor:hand;' title='Intermediate'><img src='images/home/intermediates.gif' alt='Intermediate' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
}
if (screen.width==1152)
{
//code starts here
	menus[0] = new menu(179, "vertical", 344, 121, 0,2, "", "", "Verdana,Helvetica", 12, 
		"bold", "bold", "black", "#000000", 1, "", 2, "", false, true, true, false, 13, false, 2, 2, "black");
	menus[0].addItem("#", "",19, "left", "&nbsp;&nbsp;<a style='cursor:hand;' onmouseover='x()' onmouseout='y();'><img name='button1' src='images/home/product1.gif' alt='Products' border='0' id=menuTitle1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a/>", 1);
//about us section
	menus[1] = new menu(107, "vertical", 0, 0, 0, 0,"" , "", "Verdana,Helvetica", 7, "normal", 
		"normal", "black", "#ffffff", 0, "", 2, 12, false, true, false, true, 15, false, 0, 0, "");
	menus[1].addItem("products/api.htm", "", 19, "left","<a style='cursor:hand;' title='Active Pharmaceutical Ingredient'><img src='images/home/api.gif' alt='Active Pharmaceutical Ingredient' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
	menus[1].addItem("products/inter.htm", "", 19, "left","<a style='cursor:hand;' title='Intermediate'><img src='images/home/intermediates.gif' alt='Intermediate' border='0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>", 0);
}

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.visibility:hidden;
function movepic(img_name,img_src,cimg_name,cimg_src)
{
document[img_name].src=img_src;
document[cimg_name].src=cimg_src;
}
function x()
{
movepic('button1','images/home/product2.gif','chimg','images/home/products-img.jpg');
}
function y()
{
movepic('button1','images/home/product1.gif','chimg','images/home/mouseout-bg.jpg');
}
