<!-- 

// menu system
//Contents for menu 1
var menu1=new Array()
/*
menu1[0]='<a href="products-outdoor.html" style="color:#EEBF49;">Outdoor</a>'
menu1[1]='<a href="products-indoor.html" style="color:#EEBF49;">Indoor</a>'
menu1[2]='<a href="products-mininglighting.html" style="color:#EEBF49;">Mining Lighting</a>'
menu1[3]='<a href="products-airfield.html" style="color:#EEBF49;">Airfield &amp; Obstruction Lighting - Solar powered</a>'
menu1[4]='<a href="products-military.html" style="color:#EEBF49;">Military, Police, Emergency and Defence</a>'
menu1[5]='<a href="products-petrol.html" style="color:#EEBF49;">Petrol Stations</a>'
*/

menu1[0]='<a href="products-outdoor.html" style="color:#EEBF49;"><b>Outdoor</b></a>'
menu1[1]='<a href="products-outdoor-street.html" style="color:#ffffff;">Street, Highway, Parking and Area Lighting</a>'
menu1[2]='<a href="products-outdoor-tunnel.html" style="color:#ffffff;">Tunnel and Underpass Lights</a>'
menu1[3]='<a href="products-outdoor-signage.html" style="color:#ffffff;">LED Signage Lighting</a>'
menu1[4]='<a href="products-outdoor-traffic.html" style="color:#ffffff;">LED Traffic Light Solutions (Road and Rail Solutions)</a>'
menu1[5]='<a href="products-indoor.html" style="color:#EEBF49;"><b>Indoor<b></a>'
menu1[6]='<a href="products-indoor-ceilingluminaire.html" style="color:#ffffff;">Office or Retail Ceiling Luminaire LK-LR24 series</a>'
menu1[7]='<a href="products-indoor-downlighter.html" style="color:#ffffff;">LED Downlighters LK-LRX series</a>'
menu1[8]='<a href="products-indoor-trackluminaire.html" style="color:#ffffff;">Track Mount LED Luminaires LK series</a>'
menu1[9]='<a href="products-indoor-refrigeration.html" style="color:#ffffff;">LED Refrigeration Display Lighting (RDL)</a>'
menu1[10]='<a href="products-indoor-remotecontrol.html" style="color:#ffffff;">Remote Controlled Lighting</a>'
menu1[11]='<a href="products-daylighting.html" style="color:#EEBF49;"><b>Daylighting</b></a>'
menu1[12]='<a href="products-daylighting-parans.html" style="color:#ffffff;">Parans - Sunlight in a Cable</a>'
menu1[13]='<a href="products-daylighting-sunoptics.html" style="color:#ffffff;">SUNOPTICS Advanced Prismatic Dome Skylights</a>'
menu1[14]='<a href="products-airfield.html" style="color:#EEBF49;"><b>Airfield &amp; Obstruction Lighting</b></a>'
menu1[15]='<a href="products-airfield-avlite.html" style="color:#ffffff;">AC, DC and Integrated Solar powered LED Warning Beacons</a>'
menu1[16]='<a href="products-petroleum.html" style="color:#EEBF49;"><b>Petroleum Lighting</b></a>'
menu1[17]='<a href="products-petroleum-station.html" style="color:#ffffff;">Petrol Station Lighting</a>'
menu1[18]='<a href="products-hazchem.html" style="color:#EEBF49;"><b>Hazardous Location and Industrial Lighting</b></a>'
menu1[19]='<a href="products-hazchem-solutions.html" style="color:#ffffff;">Standard and Explosion-proof Solutions</a>'
menu1[20]='<a href="products-renewable.html" style="color:#EEBF49;"><b>Renewable Energy</b></a>'
menu1[21]='<a href="products-renewable-solar.html" style="color:#ffffff;">Solar and Wind</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="#" style="color:#EEBF49;" ><b>Architectual Lighting</b></a>'
menu2[1]='<a href="#" style="color:#EEBF49;">Product 1</a>'
menu2[2]='<a href="#" style="color:#EEBF49;">Product 2</a>'
menu2[3]='<a href="#" style="color:#EEBF49;">Product 3</a>'

menu2[4]='<a href="#" style="color:#EEBF49;"><b>Emergency Power, Safety Lighting &nbsp; Safety Signage</b></a>'
menu2[5]='<a href="#" style="color:#EEBF49;">Product 1</a>'
menu2[6]='<a href="#" style="color:#EEBF49;">Product 2</a>'
menu2[7]='<a href="#" style="color:#EEBF49;">Product 3</a>'


menu2[8]='<a href="#" style="color:#EEBF49;"><b>Commercial Lighting, Retail Store Lighting</b></a>'
menu2[9]='<a href="#" style="color:#EEBF49;">Product 1</a>'
menu2[10]='<a href="#" style="color:#EEBF49;">Product 2</a>'
menu2[11]='<a href="#" style="color:#EEBF49;">Product 3</a>'

menu2[12]='<a href="#" style="color:#EEBF49;"><b>Industrial Lighting, Entertainment Lighting</b></a>'
menu2[13]='<a href="#" style="color:#EEBF49;">Product 1</a>'
menu2[14]='<a href="#" style="color:#EEBF49;">Product 2</a>'
menu2[15]='<a href="#" style="color:#EEBF49;">Product 3</a>'

menu2[16]='<a href="#" style="color:#EEBF49;"><b>Govement, Municipal / Airports / Ports / Solar Infrastructure</b></a>'
menu2[17]='<a href="#" style="color:#EEBF49;">Product 1</a>'
menu2[18]='<a href="#" style="color:#EEBF49;">Product 2</a>'
menu2[19]='<a href="#" style="color:#EEBF49;">Product 3</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor='#333232'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu



// form validation

function formCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("Name", "ContactNumber", "Email");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Contact Number", "Email Address");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null || obj.value == "Your Name" || obj.value == "Your Contact Number" || obj.value == "Your Email"){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}

// randomizer - for product highlights
function RandomHTMLLong(args,delim)
{
/* si: start index 
** i: current index
** ei: end index
** cc: current count
*/
 htmlSet = new Array();
 si = 0; 
 cc=0;
 ei = args.length;
  for (i=1;i<ei;i++) {
    if (args.charAt(i) == delim) {
      htmlSet[cc] = args.substring(si,i);
      cc++;
      si=i+1;
      }
    }
  ind = Math.floor(Math.random() *cc);

  document.write(htmlSet[ind]);
}

function RandomHTML(args)
{
  RandomHTMLLong(args,',');
}

-->
