// JavaScript Document


$(document).ready(function() {
    hu = window.location.search.substring(1);

    su = hu.split("&"); // This step is done since in some cases the URL contains more than one parameter.
    
    hu = su[0];

    if (hu == "" || hu == null) {
    }
    else if(hu == "aboutus")
    {
         $("#liaboutus").css({'background':'url(../images/nav_aboutus.gif) no-repeat bottom'});
    }
    
    else if(hu == "services")
    {
$("#liservice").css({'background':'url(../images/nav_service.gif) no-repeat bottom'});
    }
    else if(hu == "research")
    {
$("#liresearch").css({'background':'url(../images/nav_research.gif) no-repeat bottom'});
    }
    else if(hu == "market")
    {
$("#limarket").css({'background':'url(../images/nav_market.gif) no-repeat bottom'});
    }
    else if(hu == "online")
    {
$("#lionline").css({'background':'url(../images/nav_online.gif) no-repeat bottom'});
    }
    else if(hu == "media")
    {
$("#limedia").css({'background':'url(../images/nav_media.gif) no-repeat bottom'});
    }
    else if(hu == "contactus")
    {
$("#licontactus").css({'background':'url(../images/nav_contactus.gif) no-repeat bottom'});
    }
    
    
    
    
    

    

    $("#bsegraphtab").click(function() {
        $("#nsegraphtab").removeClass("colorblue");
        $("#bsegraphtab").addClass("colorblue");
        $("#nsevalue").fadeOut("slow");
        $("#nsegraph").fadeOut("slow", function() {
            $("#bsevalue").fadeIn("slow");
            $("#bsegraph").fadeIn("slow");
        });
    });

    $("#nsegraphtab").click(function() {
        $("#bsegraphtab").removeClass("colorblue");
        $("#nsegraphtab").addClass("colorblue");
        $("#bsevalue").fadeOut("slow");
        $("#bsegraph").fadeOut("slow", function() {
            $("#nsevalue").fadeIn("slow");
            $("#nsegraph").fadeIn("slow");
        });
    })







$(".drop1").hover(function()
{
$("#liaboutus").css({'background':'url(../images/nav_aboutus.gif) no-repeat bottom'});
},function()
{

if(hu == "aboutus")
{
 $("#liaboutus").css({'background':'url(../images/nav_aboutus.gif) no-repeat bottom'});
}
else
{
$("#liaboutus").css({'background':'url(../images/nav_aboutus.gif) no-repeat top'});
}
})

$(".drop2").hover(function()
{
$("#liservice").css({'background':'url(../images/nav_service.gif) no-repeat bottom'});
},function()
{

if (hu == "services")
{
$("#liservice").css({'background':'url(../images/nav_service.gif) no-repeat bottom'});
}
else
{
$("#liservice").css({'background':'url(../images/nav_service.gif) no-repeat top'});
}
})

$(".drop3").hover(function()
{
$("#liresearch").css({'background':'url(../images/nav_research.gif) no-repeat bottom'});
},function()
{

if (hu == "research")
{
$("#liresearch").css({'background':'url(../images/nav_research.gif) no-repeat bottom'});
}
else
{
$("#liresearch").css({'background':'url(../images/nav_research.gif) no-repeat top'});
}
})

$(".drop4").hover(function()
{
$("#limarket").css({'background':'url(../images/nav_market.gif) no-repeat bottom'});
},function()
{
if (hu == "market")
{
$("#limarket").css({'background':'url(../images/nav_market.gif) no-repeat bottom'});}
else
{
$("#limarket").css({'background':'url(../images/nav_market.gif) no-repeat top'});
}
})

$(".drop5").hover(function()
{
$("#lionline").css({'background':'url(../images/nav_online.gif) no-repeat bottom'});
},function()
{
if (hu == "online")
{
$("#lionline").css({'background':'url(../images/nav_online.gif) no-repeat bottom'});
}
else
{
$("#lionline").css({'background':'url(../images/nav_online.gif) no-repeat top'});
}
})
$(".drop6").hover(function()
{
$("#limedia").css({'background':'url(../images/nav_media.gif) no-repeat bottom'});
},function()
{
if (hu == "media")
{
$("#limedia").css({'background':'url(../images/nav_media.gif) no-repeat bottom'});
}
else
{
$("#limedia").css({'background':'url(../images/nav_media.gif) no-repeat top'});
}
})

$(".drop7").hover(function()
{
$("#licontactus").css({'background':'url(../images/nav_contactus.gif) no-repeat bottom'});
},function()
{
if (hu == "contactus")
{
$("#licontactus").css({'background':'url(../images/nav_contactus.gif) no-repeat bottom'});
}
else
{
$("#licontactus").css({'background':'url(../images/nav_contactus.gif) no-repeat top'});
}
})

$(".drop8").hover(function()
{
$("#lijobs").css({'background':'url(../images/nav_jobs.gif) no-repeat bottom'});
},function()
{
if (hu == "job")
{
$("#lijobs").css({'background':'url(../images/nav_jobs.gif) no-repeat bottom'});
}
else
{
$("#lijobs").css({'background':'url(../images/nav_jobs.gif) no-repeat top'});
}
})









});