//find the X position of an object
	function findPosX(obj)
	{
		var curleft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curleft += obj.x;
		return curleft;
	}
//find the y position of an object
	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}

	function showmenu(elmnt,elmnt1)
	{ 
	//set the x and y position of submenu
		if (elmnt=='vSolutions')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+255;
		}else if (elmnt=='itSolutions')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+166;
		
		}else if (elmnt=='testimonial')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+570;
		}
		
	//show the submenu
		document.all('vSolutions').style.visibility="hidden";
		document.all('itSolutions').style.visibility="hidden";
		document.all('testimonial').style.visibility="hidden";
		document.all(elmnt).style.visibility="visible";
		 
	}

	function hideAllMenu()
	{
	//hide All the submenu
		document.all('vSolutions').style.visibility="hidden";
		document.all('itSolutions').style.visibility="hidden";
		document.all('testimonial').style.visibility="hidden";
	}

	function hidemenu(elmnt)
	{
	//hide the submenu
		document.all(elmnt).style.visibility="hidden"
	}

	function continueShowmenu(elmnt,elmnt1)
	{
	//set the x and y position of submenu

		if (elmnt=='vSolutions')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+255;
		}else if (elmnt=='itSolutions')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+166;
		
		}else if (elmnt=='testimonial')
		{
			document.all(elmnt).style.top=findPosY(elmnt1)+80;
			document.all(elmnt).style.left=findPosX(elmnt1)+570;
		}


	//show the submenu
		document.all(elmnt).style.visibility="visible";
	}


document.write("<table border='0' cellspacing='0' cellpadding='0' id='menu'>")
	document.write("<tr>")
		document.write("<td rowspan='2' width='186'><img src='images/logo1.jpg'></td>")
		document.write("<td rowspan='2' width='62'><a href='index.html'><img src='images/home.jpg' border='0' onMouseOver=hideAllMenu()></a></td>")
		document.write("<td><img src='images/top_line.jpg'></td>")
	document.write("</tr>")		
	document.write("<tr>")
		document.write("<td bgcolor='#040233'>")
			document.write("<table border='0' cellspacing='0' cellpadding='0'>")	
			document.write("<tr>")
				document.write("<td><a href='about_us.html'><img src='images/about.jpg' border='0' onMouseOver=hideAllMenu()></a></td>")		
				document.write("<td><img src='images/voice.jpg' onMouseOver=showmenu('vSolutions',menu)></td>")
				document.write("<td><img src='images/it.jpg' onMouseOver=showmenu('itSolutions',menu)></td>")
				document.write("<td><img src='images/testimonial.jpg' onMouseOver=showmenu('testimonial',menu)></td>")
				document.write("<td><a href='contact_us.html'><img src='images/contact.jpg' border='0' onMouseOver=hideAllMenu()></a></td>")	
			document.write("</tr>")
			document.write("</table>")
		document.write("</td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td colspan='4'height='5'>")

			document.write("<table border=0 id='vSolutions' class='submenu'onmouseover=continueShowmenu('vSolutions',menu) >")
				document.write("<tr>")
					document.write("<td><a href='idd.html' class='m_link'>IDD</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='bluconference.html' class='m_link'>BluConference</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='bwc.html' class='m_link'>BWC</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='i-voice.html' class='m_link'>i-Voice</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='ip_voice_network.html' class='m_link'>IP-Voice Network</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='faq_voice.html' class='m_link'>Voice FAQ</a></td>")
				document.write("</tr>")
			document.write("</table>")

			document.write("<table border=0 id='itSolutions' class='submenu'onmouseover=continueShowmenu('itSolutions',menu)>")
				document.write("<tr>")
					document.write("<td><a href='web_hosting.html' class='m_link'>Web Hosting</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='web_design.html' class='m_link'>Web Design</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='web_design_showcase.html' class='m_link'>Web Design Showcase</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='web_development.html' class='m_link'>Web Development</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='software_development.html' class='m_link'>Software Development</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='faq_it.html' class='m_link'>IT FAQ</a></td>")
				document.write("</tr>")
			document.write("</table>")

			document.write("<table border=0 id='testimonial' class='submenu'onmouseover=continueShowmenu('testimonial',menu)>")
				document.write("<tr>")
					document.write("<td><a href='testimonials_voice.html' class='m_link'>Voice Solutions</a></td>")
					document.write("<td><b>&nbsp;|&nbsp;</b></td>")
					document.write("<td><a href='testimonials_it.html' class='m_link'>IT Solutions</a></td>")
				document.write("</tr>")
			document.write("</table>")
			
		document.write("</td>")
	document.write("</tr>")	
document.write("</table>")


