//------ContactUs
 var Contactdelayhide;
 var PreviousDiv;
     function Contactdisplay_menu1() 
      {
            clearTimeout(Contactdelayhide);
            var menu_element = document.getElementById("Country");
              if (menu_element!=null)
           {
            menu_element.style.visibility ='';
            }
      }
      
     function Contactdelayhidemenu()
      {
           var menu_element=document.getElementById ("Country");
           if (menu_element!=null)
           {
           Contactdelayhide=setTimeout (function(){menu_element.style.visibility='hidden';},1000);
           }
      }
    function Address()
    {
   
        var menu_element=document.getElementById ("Country");
          if (menu_element!=null)
            {
                document.getElementById("Country").style.visibility ="visible";
             }
            if (document.getElementById("countrydisplay")!=null)
             {
                document.getElementById("countrydisplay").style.visibility ="hidden";
              }
             
    }

      function hidePrevious(parent)
        {
        
        var Linkednamed=parent;
          
            var menu_element = document.getElementById(Linkednamed);
            menu_element.style.display='none';
        }
    
  // var CountryName;
    function AddressDisplay(objParent)
    {
            var menu_element = document.getElementById("countrydisplay");
            menu_element.style.display ='';
            if (menu_element!="null")
            {
            var placement = findPos(objParent);
            CountryName =objParent.id ;
            var selectHgt;
            var selectTop;
            var selectLeft;
            var selectTop1;
            var selectLeft1;
            switch (CountryName)
	        {
	          
	                   case 'singapore':
	                   selectHgt=document .getElementById ("singapore").clientHeight*1;
	                   selectLeft= placement[0] -2;
                       selectTop = placement[1] -selectHgt+23;
                       selectLeft1= placement[0] -2;
                       selectTop1= placement[1] -selectHgt+5;
	                   break;
	                   case 'china':
	                   selectHgt=(document.getElementById ("china").clientHeight)*2;
	                    selectLeft= placement[0] -2;
                       selectTop = placement[1]-selectHgt+20;
                       selectLeft1= placement[2] -2;
                       selectTop1= placement[3] -selectHgt+5;
	                   break;
	                   case 'hongkong':
	                   selectHgt=(document .getElementById ("hongkong").clientHeight)*3;
	                    selectLeft= placement[0] -2;
                       selectTop = placement[1] -selectHgt+20;
                        selectLeft1= placement[2] -2;
                       selectTop1= placement[3] -selectHgt+5;
	                   break;
	                   case 'thailand':
	                   selectHgt=(document .getElementById ("thailand").clientHeight)*4;
	                    selectLeft= placement[0] -2;
                       selectTop = placement[1] -selectHgt+15;
                        selectLeft1= placement[2] -2;
                       selectTop1= placement[3] -selectHgt+5;
	                   break;
	                   case 'cambodia':
	                   selectHgt=(document.getElementById ("cambodia").clientHeight)*5;
	                   selectLeft= placement[0] -2;
                       selectTop = placement[1] -selectHgt+15;
                        selectLeft1= placement[2] -2;
                       selectTop1= placement[3] -selectHgt+5;
	                   break;
	         }
	    
if (/MSIE[\/\s](\d+\.\d+)/.test(navigator.userAgent))
{
    var IEversion=new Number(RegExp.$1) 
    if (IEversion>=8)
    {
    menu_element.style.left = selectLeft +"px";
    menu_element.style.top = selectTop +"px" ;
    }
    if(IEversion==7)
    {
    menu_element.style.left = placement[0] + 0 +"px";
    menu_element.style.top = placement[1]- selectHgt + 18 + "px";
    }
    if(IEversion<=6)
    {
    menu_element.style.left = selectLeft+"px";
    menu_element.style.top =selectTop+"px" ;
    }

}
else if (/Minefield[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
    var Minefieldversion = new Number(RegExp.$1);
    if (Minefieldversion == 3.6) 
    {
        menu_element.style.left = placement[0] + 0 + "px";
        menu_element.style.top = placement[1] - selectHgt + 10 + "px";
    }
    else if (Minefieldversion == 3.7)
     {
         menu_element.style.left = placement[0] + 0 + "px";
         menu_element.style.top = placement[1] - selectHgt + 10 + "px";
    }
}
else if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)) 
{
    var Safariversion = new Number(RegExp.$1)

    if (Safariversion == 525.21) {
        menu_element.style.left = placement[0] + 0 + "px";
        menu_element.style.top = placement[1] - selectHgt + 10 + "px";
    }
    else if (Safariversion == 530.17)
     {
    menu_element.style.left = placement[0] + 0 + "px";
    menu_element.style.top = placement[1] - selectHgt + 10 + "px";
    }
 else if (Safariversion == 531.9)
     {
    menu_element.style.left = placement[0] + 0 + "px";
    menu_element.style.top = placement[1] - selectHgt + 10 + "px";
    }
}
else if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent))
{
    menu_element.style.left = placement[0] + 0 + "px";
    menu_element.style.top = placement[1] - selectHgt + 10 + "px";

}
else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
 {
     menu_element.style.left = placement[0] + 0 + "px";
     menu_element.style.top = placement[1] - selectHgt + 10 + "px";
}
else
{
    menu_element.style.left = selectLeft1+"px";
    menu_element.style.top =selectTop1+"px" ;
// menu_element.style.left = placement[0] + 17 + "px";
//  menu_element.style.top = placement[1] - selectHgt +20 + "px";
}          
    }}

   
    
    function findPos(obj) 
{
	var curleft = curtop = 0;
	if (obj.offsetParent) 
	{
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent)
		{
			curleft += obj.offsetLeft 
			curtop += obj.offsetTop 
		}
	}
	return [curleft,curtop];
}
   
   function CountryAddress(CountryId)
    {
        document.getElementById ("Country").style.visibility ="hidden";
        CountryName =CountryId.id ;
        switch (CountryName)
	    {
	          
	                   case 'singapore':
	                    document.getElementById("countrydisplay").style.visibility ="visible";
	                    AddressDisplay(CountryId);
	                    document.getElementById("countrydisplay").innerHTML= "<p class='PageHeading'>UNZA Holdings Pte Ltd (Group Head Office)<br/>UNZA Indochina Pte Ltd (Indochina Head Office)<br/>UNZA Company Pte Ltd (Singapore Operations)</p><p class='ParaNormal'>163 Penang Road<br/>#04-01 Winsland House II<br/>Singapore 238463<br/>Tel:(65) 67325611<br/>Fax:(65) 67323230<br/>Email:<a href='mailto:info@unza.com'>info@unza.com</a></p>";
	                    break;
	                    case 'china':
	                   document.getElementById("countrydisplay").style.visibility ="visible";
	                   AddressDisplay(CountryId);
	                   document.getElementById("countrydisplay").innerHTML= "<p class='PageHeading'>Dongguan UNZA Consumer Products Ltd<br/>Shilong Road, Sangyuan<br/>Dongguan Science Park</p><p class ='ParaNormal '>Dongguan,PRC<br/>Tel: (86-769) 2253905<br/>Fax: (86-769) 2295901<br/>Email: <a href='mailto:china@unza.com' >china@unza.com</a></p>";
	                   break;
	                   case 'hongkong':
	                   document.getElementById("countrydisplay").style.visibility ="visible";
	                   AddressDisplay(CountryId);
	                   document.getElementById("countrydisplay").innerHTML= "<p class='PageHeading'>UNZA Cathay Ltd</p><p class='ParaNormal'>Unit 1006, 10/F,<br/>AXA Centre,<br/>151 Gloucester Road,<br/>Wanchai, Hong Kong<br/>Tel: (852) 25291191<br/>Fax: (852) 25278289<br/>Email: <a href='mailto:hk@unza.com'  >hk@unza.com</a></p>";
	                   break;

	                   case 'thailand':
	                   document.getElementById("countrydisplay").style.visibility ="visible";
	                   AddressDisplay(CountryId);
	                   document.getElementById("countrydisplay").innerHTML= "<p class='PageHeading'>UNZA (Thailand) Ltd</p><p class='ParaNormal'>5/F Pricha Building<br/>2533 Sukhumvit Road<br/>Kwaeng Bangchack Prakanong <br/> Bangkok 10260, Thailand<br/>Tel: (66-2) 3316405<br/> Fax: (66-2) 3316406<br/>Email:<a href='mailto:thailand@unza.com'  >thailand@unza.com</a></p>";
	                   break;
	                   case 'cambodia':
	                   document.getElementById("countrydisplay").style.visibility ="visible";
	                   AddressDisplay(CountryId);
	                   document.getElementById("countrydisplay").innerHTML= "<p class='PageHeading'>UNZA Cambodia</p><p class='ParaNormal'>3B06 Saigon Trade Centre<br/>37 Ton Duc Thang<br/>District 1<br/>Ho Chi Minh City, Vietnam<br/>Tel: (84-8) 9103831<br/>Fax: (84-8) 9103830<br/>Email: <a href='mailto:vietnam@unza.com'>vietnam@unza.com</a></p>";
	                   break;
	    }
    }
    function SelectCountry(CountryId)
    {
        Contactdisplay_menu1();
        document.getElementById("Country").style .visibility="visible";
        CountryName =CountryId.id;
        switch (CountryName)
	    {
	                   case 'singapore':
	                   document.getElementById("singapore").style .backgroundColor = "#ffffff";
	                   document.getElementById("china").style .backgroundColor = "";
	                   document.getElementById("hongkong").style .backgroundColor = "";
	                   document.getElementById("thailand").style .backgroundColor = "";
	                   document .getElementById("cambodia").style .backgroundColor ="";
	                   document.getElementById("china").style .border = "";
	                   document.getElementById("hongkong").style .border = "";
	                   document.getElementById("thailand").style .border = "";
	                   document.getElementById("cambodia").style .border = "";
	                   break;
	                   case 'china':
	                   
	                   document.getElementById("china").style .backgroundColor = "#ffffff";
	                   document.getElementById("singapore").style .backgroundColor = "";
	                   document.getElementById("hongkong").style .backgroundColor = "";
	                   document.getElementById("thailand").style .backgroundColor = "";
	                   document .getElementById("cambodia").style .backgroundColor ="";
	                   document.getElementById("singapore").style .border = "";
	                   document.getElementById("hongkong").style .border = "";
	                   document.getElementById("thailand").style .border = "";
	                   document.getElementById("cambodia").style .border = "";
	                   break;
	                   case 'hongkong':
	                  
	                   document.getElementById("hongkong").style .backgroundColor = "#ffffff";
	                   document.getElementById("thailand").style .backgroundColor = "";
	                   document .getElementById ("cambodia").style .backgroundColor ="";
	                   document.getElementById("singapore").style .backgroundColor ="";
	                   document.getElementById("china").style .backgroundColor = "";
	                   document.getElementById("china").style .border = "";
	                   document.getElementById("singapore").style .border = "";
	                   document.getElementById("thailand").style .border = "";
	                   document.getElementById("cambodia").style .border = "";
	                   break;
	                   case 'thailand':
	                   document.getElementById("thailand").style .backgroundColor = "#ffffff";
	                  
	                   document.getElementById("hongkong").style .backgroundColor ="";
	                   document .getElementById ("cambodia").style .backgroundColor ="";
	                   document.getElementById("singapore").style .backgroundColor ="";
	                   document.getElementById("china").style .backgroundColor ="";
	                   document.getElementById("china").style .border = "";
	                   document.getElementById("hongkong").style .border = "";
	                   document.getElementById("singapore").style .border = "";
	                   document.getElementById("cambodia").style .border = "";
	                   break;
	                   case 'cambodia':
	                   document.getElementById("cambodia").style .backgroundColor = "#ffffff";
                       
	                   document.getElementById("hongkong").style .backgroundColor ="";
	                   document.getElementById("thailand").style .backgroundColor ="";
	                   document.getElementById("singapore").style .backgroundColor ="";
	                   document.getElementById("china").style .backgroundColor ="";
	                   document.getElementById("china").style .border = "";
	                   document.getElementById("hongkong").style .border = "";
	                   document.getElementById("singapore").style .border = "";
	                   document.getElementById("thailand").style .border = "";
	                   break;
	                   
	    }
    }
   //End of ContactUs 
    
   //--------CompanyLocation

    var e;
    var divId;
    function Companycaller(e)
    {
        divId =e.id;
        switch (divId)
	    {
	           case 'A11':
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A41").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A5").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A6").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#E3EDF6";
	           document.getElementById("B1").src = "Dubai.html";
	           break;
	           case 'A21':
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A41").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A5").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A6").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "China.html";
		       break;
	           case 'A31':
	           document.getElementById("A41").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A5").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A6").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "HongKong.html";
		       break;
		       case 'A41':
		       document.getElementById("A5").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A6").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Thailand.html";
		       break;
		       case 'A5':
	           document.getElementById("A6").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A5").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Cambodia.html";
		       break;
		       case 'A6':
		       document.getElementById("A7").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A5").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A6").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Vietnam.html";
		       break;
		       case 'A7':
		       document.getElementById("A8").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A5").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A6").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A7").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Malaysia.html";
		       break;
		       case 'A8':
	           document.getElementById("A9").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A5").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A6").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A7").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A8").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Singapore.html";
		       break;
		       case 'A9':
		       document.getElementById("A11").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A21").style .backgroundColor ="#f6f7f9";
	           document.getElementById("A31").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A41").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A5").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A6").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A7").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A8").style .backgroundColor ="#f6f7f9";
		       document.getElementById("A9").style .backgroundColor ="#E3EDF6";
    	       document.getElementById("B1").src = "Indonesia.html";
		       break;
	    }
    }
    //*****End Of Contact Us Scripts
     function Display(e)
    {
    var lnkid=e.id;
    var windowStyle="status=no,toolbars=no,menubars=no,location=no,resizable=yes,scrollbars=yes,titlebar=no";
    var windowLink;
    var windowName;
    
    switch(lnkid)
    {
    
                case 'A4':
                    windowLink ="News3.html";
                    break;
                case 'A1':
                    windowLink ="News4.html";
                    break;
                case 'A2':
                    windowLink ="News5.html";
                     break;
                case 'A3':
                    windowLink ="News6.html";
                    break;
				 case 'Oct2008':
                    windowLink ="News1.html";
                    break;
                case 'Oct2009':
                    windowLink ="News7.html";
                    break;
                case 'Jan2009':
                    windowLink ="News2.html";
                     break;
                    }
                   window.open(windowLink,"",windowStyle,"");
              }