var vHREF = window.location.href.split('/');
	vHREF = vHREF[vHREF.length-1].toLowerCase();

var vMenu = [
				[
					['Home', 'Home', 'index.htm']
				],
				[
					['About Us', 'About Us', 'about.htm']
				],
				[
					['Products', 'Products', '#', 250],
					[
						['WARTAPE&trade; Underground Warning Tape', 'WARTAPE&trade; Underground Warning Tape', 'warningtape.htm'],
						['ZIGMA Tape', 'ZIGMA Tape', 'zigma.htm'],
						['Underground Warning Mat', 'Underground Warning Mat', 'warningmat.htm'],
						['Promotional Tape', 'Promotional Tape', 'promtionaltape.htm'],
						['Warning Board', 'Warning Board', 'warningboard.htm'],
						['Underground Warning Mesh', 'Underground Warning Mesh', 'warningmesh.htm'],
						['Aluminium Strip Detectable Tape', 'Aluminium Strip Detectable Tape', 'aluminiumstrip.htm'],
						['Aluminium Foil Detectable Tape', 'Aluminium Foil Detectable Tape', 'aluminiumfoil.htm'],
						['Anti Corrosive SS Wires Detectable Tape', 'Anti Corrosive SS Wires Detectable Tape', 'detectabletape.htm'],
						['Cable Protection Cover', 'Cable Protection Cover', 'protectioncover.htm'],
						['Tape Tile', 'Tape Tile', 'tapetile.htm'],
						['Warshield', 'Warshield', 'warshield.htm'],
						['Barrier Tape / Caution Tape', 'Barrier Tape / Caution Tape', 'barriertape.htm'],
						['Applications', 'Applications', 'applications.htm', 'special']
					]
				],
				[
					['New Launch', 'New Launch!', '#', 180],
					[
						['NTR&trade; Warning Mate / Tape', 'NTR&trade; Warning Mat / Tape', 'ntrwarningtape.htm'],
						['Rodresist Tape', 'Rodresist Tape', 'rodresisttape.htm'],
						['Termiresist Tape', 'Termiresist Tape', 'termiresisttape.htm'],
						['WARSIGN&trade; Scaffolding Tag', 'WARSIGN&trade; Scaffolding Tag', 'scaffoldingtag.htm'],
						['Warning Marker', 'Warning Marker', 'warningmarker.htm']
					]
				],
				[
					['Exhibition', 'Exhibition', 'exhibition.htm']
				],
				[
					['Quality', 'Quality', 'quality.htm']
				],
				[
					['Overseas Presence', 'Overseas Presence', 'presence.htm']
				],
				[
					['Career', 'Career', 'career.htm']
				],
				[
					['Inquiry', 'Inquiry', 'inquiry.asp']
				],
				[
					['Contact Us', 'Contact Us', 'contact.htm']
				],
				[
					['Sitemap', 'Sitemap', 'sitemap.htm', 'last']
				]
			];

function initialize()
{
	rendermenu();
	if(!(vHREF=='' || vHREF=='index.htm')) renderbottommenu();
}

function rendermenu()
{
	var i, j;
	var vTemp = '';
	var IsFound = false;
	
	var obj = document.getElementById('menu'); if(!obj) return;
	
	var vHTML = '<ul>';
	
	for(i=0; i<vMenu.length; i++)
	{
		vTemp = '';
		IsFound = false;
		
		IsFound	= (vHREF==vMenu[i][0][2].toLowerCase());

		if(vMenu[i].length>1)
		{
			vTemp = '<ul style="width:' + vMenu[i][0][3] + '">';

			for(j=0; j<vMenu[i][1].length; j++)
			{
				if(!IsFound && vHREF==vMenu[i][1][j][2].toLowerCase()) IsFound = true;
				vTemp += '<li><a ' + (vMenu[i][1][j].length==4 ? 'class="' + vMenu[i][1][j][3] + '" ' : '') + ' title="' + vMenu[i][1][j][0] + '" href="' + vMenu[i][1][j][2] + '">' + vMenu[i][1][j][1] + '</a></li>';
			}
			
			vTemp += '</ul>';
		}

		vHTML += '<li ' + (IsFound ? 'class="over" ' : '') + 'onmouseover="' + (!IsFound ? 'this.className=\'over\'; ' : '' ) + 'if(this.childNodes.length>1) this.childNodes[1].style.visibility=\'visible\';" onmouseout="' + (!IsFound ? 'this.className=\'\'; ' : '' ) + 'if(this.childNodes.length>1) this.childNodes[1].style.visibility=\'hidden\';"><a ' + ((vMenu[i][0].length==4) ? 'class="' + vMenu[i][0][3] + '" ' : '') + 'title="' + vMenu[i][0][0] + '" href="' + vMenu[i][0][2] + '">' + vMenu[i][0][1] + '</a>' + vTemp + '</li>';
	}

	vHTML += '</ul>';

	obj.innerHTML = vHTML;
}

function renderbottommenu()
{
	var i, j, classname, vHTML = '';
	var obj = document.getElementById('bottommenu'); if(!obj) return;

	for(i=0; i<4; i++)
	{
		if(i==0) classname = 'first'; else if(i==1) classname = 'second'; else if(i==2) classname = 'third'; else if(i==3) classname = 'fourth';

		vHTML += '<ul class="' + classname + '">';
		for(j=i*Math.ceil((vMenu[2][1].length)/4); j<(i*Math.ceil((vMenu[2][1].length)/4)) + Math.ceil((vMenu[2][1].length-1)/4); j++)
		{
			if(j>vMenu[2][1].length-1) break;
			vHTML += '<li><a title="' + vMenu[2][1][j][0] + '" href="' + vMenu[2][1][j][2] + '">» ' + vMenu[2][1][j][1] + '</a></li>';
		}
		vHTML += '</ul>\n';
	}

	obj.innerHTML = vHTML;
}

function showhidefeatures()
{
	var objTitle = document.getElementById('featurestitle');
	var objFeatures = document.getElementById('features');
	var vFeatures = '<p onclick="showhidefeatures();">Close</p><div><ul><li>Premium & economy grades available</li><li>Material - high quality LDPE, HDPE, HM-HDPE, SPVC</li><li>High tensile strength</li><li>High impact resistance</li><li>Various thicknesses of material available</li><li>Non-deletable, scratch proof and UV resistant printing available</li><li>Special material available any colour, size or language</li></ul></div>';
	
	if(objFeatures.className=='hidden')
	{
		objTitle.className = 'open';
		objFeatures.className = 'visible';
		objFeatures.innerHTML = vFeatures;
		objTitle.innerHTML = '<b>Product Features</b>';
	}
	else
	{
		objTitle.className = 'close';
		objFeatures.className = 'hidden';
		objTitle.innerHTML = 'View <b>Product Features</b>';
	}
}

if(window.attachEvent) window.attachEvent('onload', initialize);
else window.addEventListener('load', initialize, false);
