var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;
var tabHome = [['Mission', 'We are a Beirut based firm specialized in stocktaking executed by independent inventory specialists. We pride ourselves to be the first firm independently specialized in stock count in the Arab world with more than 10 years of experience.<br/>We take time to visit, observe and study the needs of a firm before we submit any offers or final reports.<br/>No matter what the industry is, we always do the best to achieve our customers confidence and satisfaction. We never accept a challenge unless we know we can win it. '],
			 ['Process of Stocktaking', '&quot;Stocktaking&quot; and &quot;Inventory&quot; are terms that vary from company to company, country to country or count to count. Stocktaking or &quot;Jardah&quot; in Arabic is not the simple act of counting but it is the act of identifying the core of the warehouse operations along with their weaknesses and strength.'],
			 ['Clerks and Stocktaking', 'Our well experienced and university educated personnel (clerks) in the field of stocktaking and inventory management are always up-to-date and by using laptops, wireless bar code readers, best quality labels, and many inventory hardware and software we can produce the best results in any type of establishment.'],
			 ['Coverage', 'We work for any customer in the Arab world and the Middle East.<br/>We undertake work for autos and spare parts, medical equipment and consumables, pharmaceuticals, electronics, home appliances - in fact, any premises with inventory on hands.<br/>Wherever our services are needed and whatever the terms our customers use, we can adapt and alter our services to meet their needs.', 'If the services we list do not meet your requirements, please contact us with your specific needs and we will strive to meet them. Any of our services could be tailored according to any company&acute;s needs.'],
			 ['Welcome to TOCS home page, we run a service and not a business', 'Count on us so that we count your inventory']
			 ];

function DisplayNone(){
	var none="";
	none+="";
	document.getElementById('banner').innerHTML=none;
}

//open Home page
function Home() {
	DisplayNone();
	var tmp = " ";
	tmp += "<table width='650px' cellpadding='0' cellspacing='0' border='0'><tr><td width='476px' height='31px'>&nbsp;</td>";
	tmp += "<td width='38px' height='31px' valign='top'><a href='javascript:Home();'><img src='images/homebutton.png' border='0' alt=''/></a></td><td rpwspan='2' width='112px' height='73px'><img src='images/homebarcode.png' border='0' alt=''/></td><td width='24px'></td></tr>";
	tmp += "<tr><td width='476px' height='42px'>&nbsp;</td><td width='38px' heitght='42px'>&nbsp;</td><td width='24px'></td></tr></table>";
	
	tmp += "<table width='650px' cellpadding='0' cellspacing='0' border='0'>";
	tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='6' color='#211F12'><strong>" + tabHome[4][0] + "</strong></font></td><td width='24px'>&nbsp;</td></tr>";
	tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'></td><td align='center'><font size='5' color='#8E8E8E'>" + tabHome[4][1] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='20px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='4' color='#211F12'><strong>" + tabHome[0][0] + "</strong></font></td><td width='24px'>&nbsp;</td></tr>";
	tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='3' color='#8E8E8E'>" + tabHome[0][1] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";

tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='4' color='#211F12'><strong>" + tabHome[1][0] + "</strong></font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='3' color='#8E8E8E'>" + tabHome[1][1] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='4' color='#211F12'><strong>" + tabHome[2][0] + "</strong></font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='3' color='#8E8E8E'>" + tabHome[2][1] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='4' color='#211F12'><strong>" + tabHome[3][0] + "</strong></font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='2px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='3' color='#8E8E8E'>" + tabHome[3][1] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='20px' colspan='3'></td></tr>";
tmp += "<tr><td width='15px'>&nbsp;</td><td><font size='3' color='#8E8E8E'>" + tabHome[3][2] + "</font></td><td width='24px'>&nbsp;</td></tr>";
tmp += "<tr><td height='20px' colspan='3'></td></tr>";
tmp += "</table>";
	
	document.getElementById('testid').innerHTML=tmp;
	
}

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 

