﻿Event.observe(window, "load", window_onLoad);

function window_onLoad()
{
    var sPath = window.location.pathname;

    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    switch(sPage)
    {
		case "netflow.aspx":
			$("linetTech").className = "active";
			$("linetTechTextTop").className = "activeTop";
			$("linetTechTextBottom").className = "activeBottom";
		break;
		case "managing_cisco_networks.aspx":
			$("limanCiscoNet").className = "active";
			$("limanCiscoNetTextTop").className = "activeTop";
			$("limanCiscoNetTextBottom").className = "activeBottom";    
        break;
        case "energywise.aspx":
			$("lienerTech").className = "active";
			$("lienerTechTextTop").className = "activeTop";
			$("lienerTechTextBottom").className = "activeBottom";    
        break;
        case "ipsla.aspx":
			$("liipslaTech").className = "active";
			$("liipslaTechTextTop").className = "activeTop";
			$("liipslaTechTextBottom").className = "activeBottom";    
        break;
        case "nexus1000v.aspx":
			$("linexV").className = "active";
			$("linexVTextTop").className = "activeTop";
			$("linexVTextBottom").className = "activeBottom";    
        break;
        case "isrg2.aspx":
			$("liisrg").className = "active";
			$("liisrgTextTop").className = "activeTop";
			$("liisrgTextBottom").className = "activeBottom";    
        break;
        default:
        	$("lisvCisco").className = "active";
			$("lisvCiscoTextTop").className = "activeTop";
			$("lisvCiscoTextBottom").className = "activeBottom";
			break;
    }
    /* Do not remove that lines! 
       Fix for TT#1294 and TT#1393.
       Sets the container to visible after finishing rendering the content.
    */
    $("container").style.display = "block";
    $("wrapper").style.display = "block";
}
