﻿var i;
i = 0;
var topbanarr = new Array("img/slidem.jpg","img/slideo.jpg","img/slidem.jpg","img/slidea.jpg","img/slideb.jpg");

function topbanslide()
{

   document.getElementById('banslide').src=topbanarr[i];
    i++;
    
    if(i > 4)
    i = 0;
    
  setTimeout("topbanslide()",7000);
}






function show_top_menu()
{

    document.getElementById('topmenu').innerHTML="<table border ='0' cellpadding ='0' cellspacing ='0' width ='100%'>" +
"<tr valign ='middle'>" +
"<td style ='width:60px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='index.htm'>Home</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='companyprofile.htm'>Company Profile</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='management.htm'>Management</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='quality.htm'>Quality Control</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:100px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='products.htm'>Products</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:100px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='enquiry.aspx'>Enquiry</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:180px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='Associates.htm'>Associated Companies</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:80px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='contactus.htm'>Contact Us</a>" +
"</td>" +
"</tr>" +
"</table>";

}


function show_bot_menu()
{

document.getElementById("botmenu").innerHTML="<table border ='0' cellpadding ='0' cellspacing ='0' width ='100%'>" +
"<tr valign ='top'>" +
"<td style ='width:150px;height:20px;' align ='center'>" +
"</td>" +
"<td style ='width:100px;height:20px;' align ='center' class='bottommenu'>" +
"<a href='index.htm'>Home</a>" +
"</td>" +
"<td style ='width:190px;height:20px;' align ='center' class='bottommenu'>" +
"<a href='companyprofile.htm'>Company Profile</a>" +
"</td>" +
"<td style ='width:100px;height:20px;' align ='center' class='bottommenu'>" +
"<a href='products.htm'>Products</a>" +
"</td>" +
"<td style ='width:140px;height:20px;' align ='center' class='bottommenu'>" +
"<a href='enquiry.aspx'>Enquiry</a>" + 
"</td>" +
"<td style ='width:200px;height:20px;' align ='center' class='bottommenu'>" +
"<a href='contactus.htm'>Contact Us</a>" +
"</td>" +
"<td style ='width:150px;height:20px;' align ='center'>" +
"</td>" +
"</tr>" +
"</table>";

}



function show_Adm_menu()
{

    document.getElementById('topmenu').innerHTML="<table border ='0' cellpadding ='0' cellspacing ='0' width ='100%'>" +
"<tr valign ='middle'>" +
"<td style ='width:60px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='adminhome.aspx'>Home</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='changepwd.aspx'>Change Password</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='viewenquiry.aspx'>View Enquiry</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:130px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='delenquiry.aspx'>Delete Enquiry</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:100px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='products.htm'>Products</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:100px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='enquiry.aspx'>Enquiry</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:180px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='Associates.htm'>Associated Companies</a>" +
"</td><td style ='width:10px;height:30px;' align ='center' class='topmenu'><img src='img/bar.jpg' alt='menu' align='middle' /></td>" +
"<td style ='width:80px;height:30px;' align ='center' class='topmenu'>" +
"<a href ='contactus.htm'>Contact Us</a>" +
"</td>" +
"</tr>" +
"</table>";

}


