var siteTransform = new Array();

siteTransform['hk_corp_nwa'] = new Array();

//siteTransform['hk_corp_nwa']['https://stage.siemens.com'] = 'https://stage.siemens.com/uk/corp_nwa';

//siteTransform['hk_corp_nwa']['http://www.siemens.co.uk']  = 'http://www.siemens.co.uk';

//siteTransform['hk_corp_nwa']['file://']  = 'http://www.employeasy.com/webdemo/siemens';

//siteTransform['hk_corp_nwa']['http://www.employeasy.com']  = 'http://www.employeasy.com/webdemo/siemens';

siteTransform['hk_corp_nwa'][currentSite]  = 'http://www.siemens.com.hk/en/';





// This file is auto generated. Do not edit.

// See cms/apps/SiteExplorer for further information

//var currentSite = window.location.protocol+'//'+window.location.host;



var sitetree = Class.create();

sitetree.prototype = {

    initialize: function()

    {

        SiteExplorer.getContent = function() {

            return '<ul>'

                       

                    +'<li class="collapsed">'

                    +'  <a href="javascript:void(0);">Press</a>'

                    +'  <ul>'

                    +'      <li>'                        

                    +'          <a class="page" rel="627" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/press/press_releases.htm">Press Releases</a>'                            

                    +'      </li>'     

						

                    +'      <li>'                        

                    +'          <a class="page" rel="627" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/press/press_materials.htm">Press Materials</a>'                            

                    +'      </li>'   



                    +'      <li>'                        

                    +'          <a class="page" rel="627" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/press/press_contact.htm">Press Contact</a>'                            

                    +'      </li>'                   

                

                    +'  </ul>'

                    +'</li>'

                



                    +'<li class="collapsed">'

                    +'  <a class="collapsed" href="javascript:void(0);">Jobs &amp; Careers'

                    +'  </a>'

                    +'  <ul>'

                    +'      <li>'                        

                    +'          <a class="page" rel="626" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/careers/looking_for.htm">We are looking for</a>'                            

                    +'      </li>'

                            

                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/careers/vacancies.htm">Vacancies</a>'

                    +'</li>'

                

                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/careers/how_to_apply.htm">How to apply</a>'

                    +'</li>'

                

                    +'  </ul>'

                    +'</li>'













                

                    +'<li class="collapsed">'

                    +'  <a class="collapsed" href="javascript:void(0);">Corporate Responsibility'

                    +'  </a>'

                    +'  <ul>'

                    +'      <li>'

                    +'          <a class="page" rel="625" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/compliance.htm">Compliance</a>'                            

                    +'      </li>'



				    +'      <li>'           

                    +'          <a class="page" rel="625" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/environmental_protection.htm">Environmental Protection</a>'                           

                    +'      </li>'

                            

		                    +'<li class="collapsed">'

					            +'  <a class="collapsed" href="javascript:void(0);">Corporate Citizenship'

								+'  </a>'



						+'  <ul>'

	                    +'      <li>'                        

		                +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/corporate_citizenship.htm">We are a Caring Company</a>'                            

			            +'      </li>'





						        +'<li class="collapsed">'

				                    +'  <a class="collapsed" href="javascript:void(0);">Siemens Generation21'

								    +'  </a>'





							    +'	<ul>'

						        +'      <li>'                        

						        +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/simatic.htm">SIMATIC Training Centre</a>'

							    +'      </li>'





			                    +'      <li>'                        

						        +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/student_project.htm">Student Projects</a>'

				                +'      </li>'



							    +'      <li>'                        

			                    +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/youth_prog.htm">Youth Program</a>'

						        +'      </li>'



								+'  </ul>'					

					

								+'</li>'



				





					          +'<li class="collapsed">'

									+'  <a class="collapsed" href="javascript:void(0);">Siemens Caring Hands'

				                    +'  </a>'





							  +'  <ul>'

			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/voluntee_team.htm">Siemens Volunteer Team</a>'

							  +'      </li>'





			                  +'      <li>'                        

					          +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/voluntee_social_welfare_act.htm">Social Welfare Activities</a>'

				              +'      </li>'



					          +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/responsibility/voluntee_partner.htm">Partnership</a>'

					          +'      </li>'



				              +'  </ul>'	

								  

				              +'</li>'

                

                         +'  </ul>'

                         +'</li>'

				

                         +'  </ul>'

                         +'</li>'

                

            







                    +'<li class="collapsed">'

                    +'  <a class="collapsed" href="javascript:void(0);">About Us'

                    +'  </a>'

                    +'  <ul>'

                    +'      <li>'                        

                    +'          <a class="page" rel="626" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/siemens_at_a_glance.htm">Siemens at a Glance</a>'                            

                    +'      </li>'



							

					          +'<li class="collapsed">'

									+'  <a class="collapsed" href="javascript:void(0);">Businesses'

				                    +'  </a>'





							  +'  <ul>'









					          +'<li class="collapsed">'

									+'  <a class="collapsed" href="javascript:void(0);">Industry Sector'	

									+'  </a>'





							  +'  <ul>'

			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/industry_automation_drive_technologies.htm">Industry Automation and Drive Technologies</a>'

							  +'      </li>'



			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/industry_solution.htm">Industry Solutions</a>'

				              +'      </li>'



					          +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/mobility.htm">Mobility</a>'

					          +'      </li>'



					          +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/building_technologies.htm">Building Technologies</a>'

					          +'      </li>'



					          +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/osram.htm">OSRAM</a>'

					          +'      </li>'





				              +'  </ul>'	

								  

				              +'</li>'













			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/energy.htm">Energy Sector</a>'

							  +'      </li>'



			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/health.htm">Healthcare Sector</a>'

							  +'      </li>'





					          +'<li class="collapsed">'

									+'  <a class="collapsed" href="javascript:void(0);">Other Operations '	

									+'  </a>'





							  +'  <ul>'

			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/industry_automation_drive_technologies.htm">Siemens Financial Services</a>'

							  +'      </li>'



			                  +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/siemens_home_appliances.htm">Siemens Home Appliances </a>'

				              +'      </li>'



					          +'      <li>'                        

						      +'          <a class="page" rel="993" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/siemens_enterprise_communications.htm">Siemens Enterprise Communications </a>'

					          +'      </li>'





				              +'  </ul>'	

								  

				              +'</li>'



				              +'  </ul>'	

								  

				              +'</li>'





















                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/values_vision.htm">Values & Vision</a>'

                    +'</li>'

                

                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/worldwide.htm">Siemens Worldwide Locations</a>'

                    +'</li>'



                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/about_us/history.htm">History</a>'

                    +'</li>'





                

                    +'  </ul>'

                    +'</li>'









                    +'<li class="collapsed">'

                    +'  <a class="collapsed" href="javascript:void(0);">Siemens Macau'

                    +'  </a>'

                    +'  <ul>'

                    +'      <li>'                        

                    +'          <a class="page" rel="626" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/macau/macau_energy.htm">Energy Sector</a>'                            

                    +'      </li>'

                            

                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/macau/macau_industry.htm">Industry Sector</a>'

                    +'</li>'

                

                    +'<li>'

                    +'  <a class="page" rel="815" href="'+siteTransform['hk_corp_nwa'][currentSite]+'/macau/macau_medical.htm">Healthcare Sector</a>'

                    +'</li>'

                

                    +'  </ul>'

                    +'</li>'











        }

    }

}



SiteExplorer.expandSubtree = function(linkNode) {

    linkNode.addClassName("expanded");

    linkNode.up().removeClassName("collapsed");

    linkNode.up().addClassName("expanded");

    SiteExplorer.layer.afterOpen();

}



SiteExplorer.collapseSubtree = function(linkNode) {

    linkNode.removeClassName("expanded");

    linkNode.up().addClassName("collapsed");

    linkNode.up().removeClassName("expanded");

    SiteExplorer.layer.afterOpen();

}



SiteExplorer.followLink = function(linkNode) {

    if (linkNode.innerHTML != "Home") {

        //alert("clicked link: " + linkNode.innerHTML + "\nThe Site Explorer will be closed.");

        Layer.closeCurrent();

    }

}



SiteExplorer.openTree = function(page_key) {

    $$('#site-explorer-layer a[rel="'+page_key+'"]').each(function(a) {

        l = a.up();

        l.addClassName("active").update('<span class="active">'+a.innerHTML+'</span>');



        while (l.tagName != 'DIV')

        {

            l = l.up();

            if(l.tagName == 'LI')

            {

                l.removeClassName("collapsed");

                l.addClassName("expanded");

                l.firstDescendant().removeClassName("collapsed");

                l.firstDescendant().addClassName("expanded");

            }

        }



    });

}

/* 

 * explicitly overwrite SiteExplorerLayer.getContent from script.js to call 

 * SiteExplorer.openTree(siteExplorerActivePage);

 * avoids modifying script.js

*/





/* START: site explorer layer                                       */

var SiteExplorerLayer = Class.create();



SiteExplorerLayer.prototype = Object.extend(new Layer, {



    initialize: function(node, trigger) {

        this.initSuper(node, trigger);



        var closeButton = Helper.getCloseButton(this.node);



        closeButton.observe("click",

            function() {

                this.close();

            }.bindAsEventListener(this)

        );



        this.content     = null;

        this.contentNode = $(document.createElement("div"));

		this.contentNode.setAttribute('id', 'site-explorer-layer-tree');

        this.node.appendChild(this.contentNode);

    },



    afterClose: function(newLayer) {

        if (!Layer.toggle) {

            HeaderAnimation.augment();

        }

    },



    afterOpen: function() {

        if (Info.browser.isIE) { // correct float bug in all IE versions

            Helper.getCloseButton(this.node).setStyle(

                {

                    position: "absolute",

					float: "left",

                    left: (this.contentNode.getDimensions().width - 22) + "px"

                }

            );

        }

        HeaderAnimation.diminish();

    },



    beforeClose: function() {

        HeaderAnimation.unregisterLayer();

        return true;

    },



    beforeOpen: function() {

        this.getContent();

        HeaderAnimation.registerLayer(this);

        return true;

    },



    hide: function() {

        $("site-explorer").removeClassName("active");

    },



    show: function() {

        $("site-explorer").addClassName("active");

        this.trigger.addClassName("clicked"); // avoids hover effect (only for the first time)

        this.trigger.observe("mouseout",

            function(e) {

                this.trigger.removeClassName("clicked");

                this.trigger.stopObserving("mouseout");

            }.bindAsEventListener(this)

        );

    },

    getContent: function() {

        if (!this.content) {

            this.content = SiteExplorer.getContent();

            this.contentNode.innerHTML = this.content;

            SiteExplorer.registerEvents(this.contentNode);

            SiteExplorer.openTree(siteExplorerActivePage);

        }

    }



});



/* END: site explorer layer                                         */



var siteExplorerActivePage = 0;

Event.onDOMReady(function()

{

    var metaNames = $A(document.getElementsByTagName('meta'));

    metaNames.each(function(metaitem) {

        if(metaitem.name == 'DC.Identifier') {

            var content = metaitem.content;

            var i = content.lastIndexOf('/');

            siteExplorerActivePage = parseInt(content.substring(i+1),10);

        }

    });

    $('site-explorer').setStyle({display: 'block'});

    new sitetree();

});

    

