﻿if (!window.navigation)
	window.navigation = {};

navigation.Page = function() 
{
}

navigation.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	this.control.content.findName("PointHome").Begin();;
	},
	
	// Sample event handler
	handleMouseDown: function(sender, eventArgs) 
	{
		// The following line of code shows how to find an element by name and call a method on it.
		// this.control.content.findName("Timeline1").Begin();
	}
}

function PointCompleted(sender, eventArgs)
{
sender.findName("BackLight").Opacity=0.27;

    if(sender.Name != "PointHome")
    {
        sender.findName("HomeInfo").Opacity=0;
    }
    
     if(sender.Name != "PointContact")
    {
        sender.findName("ContactInfo").Opacity=0;
    }
    
     if(sender.Name != "PointNews")
    {
        sender.findName("NewsInfo").Opacity=0;
    }
    
     if(sender.Name != "PointServices")
    {
        sender.findName("ServicesInfo").Opacity=0;
    }
    
     if(sender.Name != "PointCareers")
    {
        sender.findName("CareersInfo").Opacity=0;
    }
	
	  if(sender.Name != "PointClients")
    {
        sender.findName("ClientsInfo").Opacity=0;
    }
}

function Point2(sender, eventArgs)
{
    
    sender.findName("BackLight").Opacity=0;
    sender.findName("HomeInfo").Opacity=0;
    sender.findName("NewsInfo").Opacity=0;
	sender.findName("ServicesInfo").Opacity=0;
	sender.findName("ContactInfo").Opacity=0;
	sender.findName("CareersInfo").Opacity=0;
	sender.findName("ClientsInfo").Opacity=0;


	if(sender.Name == "Homelbl")
    {
        sender.findName("PointHome").Begin();
    }
    else if(sender.Name == "Serviceslbl")
    {
        sender.findName("PointServices").Begin();
    }
     else if(sender.Name == "Newslbl")
    {
        sender.findName("PointNews").Begin();
    }
     else if(sender.Name == "Careerslbl")
    {
        sender.findName("PointCareers").Begin();
    }
     else if(sender.Name == "Contactuslbl")
    {
        sender.findName("PointContact").Begin();
    }
	  else if(sender.Name == "Clientslbl")
    {
        sender.findName("PointClients").Begin();
    }
    
    //sender.Foreground = "#FF9900"
}

function Click2 (sender, eventArgs)
{
    if(sender.Name == "Homelbl")
    {
        window.location="/default.aspx";
    }
    else if(sender.Name == "Serviceslbl")
    {
        window.location="/default/solutions.aspx";
    }
     else if(sender.Name == "Newslbl")
    {
        window.location="/default/news.aspx";
    }
     else if(sender.Name == "Careerslbl")
    {
        window.location="/default/careers.aspx";
    }
     else if(sender.Name == "Contactuslbl")
    {
         window.location="/default/contactus.aspx";
    }
	  else if(sender.Name == "Clientslbl")
    {
         window.location="/default/clients.aspx";
    }
}
