﻿if (!window.Animation_Sample)
Animation_Sample = {};

Animation_Sample.Page = function()
{
}

Animation_Sample.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement)
	{
		this.control = control;
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	// 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("Storyboard1").Begin();
	}
}


//-----------------------------------------------------
  
// Core Infrastucture Btn mouse events
function sampleMouseEnter1(sender,args)
{
    sender.findName("coreBtn").opacity = .75;
    sender.findName("coreBtn").cursor = "hand";
    document.getElementById("textDiv").innerHTML = "<strong>Core Infrastructure</strong><ul><li>Foundational Services</li><li>Unified Communications</li><li>Identity and Access Management</li><li>Security</li><li>Management and Monitoring</li></ul>";
}

function sampleMouseLeave1(sender,args)
{
    sender.findName("coreBtn").opacity = 1;
    
    // Conditional to work with IE and Firefox
    if(document.all)
    {
        document.getElementById("textDiv").innerText = "";
    } 
    else
    {
        document.getElementById("textDiv").textContent = "";
    }
}

// Core Infrastructure Btn mouse click
function sampleMouseLeftButtonDown1 (sender, args)
{
    location.href="http://www.idea-ms.com/microsoft-solutions/core-infrastructure/";
}

//---------------------------------------------------------

  
  // Information Security Btn mouse events
function sampleMouseEnter2(sender,args)
{
    sender.findName("informationBtn").opacity = .75;
    sender.findName("informationBtn").cursor = "hand";
    document.getElementById("textDiv").innerHTML = "<strong>Information Security</strong><ul><li>Enterprise Security Assessment</li><li>Security Policy</li><li>Implementation Review</li><li>Information Security Governance</li><li>Application Security</li><li>Disaster Recovery Planning</li></ul>";
}

function sampleMouseLeave2(sender,args)
{
    sender.findName("informationBtn").opacity = 1;
    
    // Conditional to work with IE and Firefox
    if(document.all)
    {
        document.getElementById("textDiv").innerText = "";
    } 
    else
    {
        document.getElementById("textDiv").textContent = ""; 
    }
}

// Information Security Btn mouse click
function sampleMouseLeftButtonDown2 (sender, args)
{
    location.href="http://www.idea-ms.com/microsoft-solutions/information-security/";
}
  
  //------------------------------------------------------------------------------
 


// Business Intelligence Btn mouse events
function sampleMouseEnter3(sender,args)
{
    sender.findName("businessBtn").opacity = .75;
    sender.findName("businessBtn").cursor = "hand";
    document.getElementById("textDiv").innerHTML = "<strong>Business Intelligence</strong><ul><li>BI Readiness Assessment</li><li>BI Tool Evaluation</li><li>Data Quality Management</li><li>SQL Database Administration</li><li>Virtual Earth</li><li>Enterprise Reporting</li></ul>";
}

function sampleMouseLeave3(sender,args)
{
    sender.findName("businessBtn").opacity = 1;
    
    // Conditional to work with IE and Firefox
    if(document.all)
    {
        document.getElementById("textDiv").innerText = "";
    } 
    else
    {
        document.getElementById("textDiv").textContent = ""; 
    }
}

// Business Intelligence Btn mouse click
function sampleMouseLeftButtonDown3 (sender, args)
{
    location.href="http://www.idea-ms.com/microsoft-solutions/business-intelligence/";
}
  
  //------------------------------------------------------------------------------
  
  
  
// .Net Development Btn mouse events
function sampleMouseEnter4(sender,args)
{
    sender.findName("NET_DevBtn").opacity = .75;
    sender.findName("NET_DevBtn").cursor = "hand";
    document.getElementById("textDiv").innerHTML = "<strong>NET Development</strong><ul><li>Business Analysis</li><li>Technology Strategy</li><li>Application Design And Development</li></ul>";
}

function sampleMouseLeave4(sender,args)
{
    sender.findName("NET_DevBtn").opacity = 1;
    
    // Conditional to work with IE and Firefox
    if(document.all)
    {
        document.getElementById("textDiv").innerText = "";
    } 
    else
    {
        document.getElementById("textDiv").textContent = ""; 
    }
}

// .Net Development Btn mouse click
function sampleMouseLeftButtonDown4 (sender, args)
{
    location.href="http://www.idea-ms.com/microsoft-solutions/net-development/";
}
  
  //------------------------------------------------------------------------------
  
  
// Enterprise Solutions Btn mouse events
function sampleMouseEnter5(sender,args)
{
    sender.findName("enterpriseBtn").opacity = .75;
    sender.findName("enterpriseBtn").cursor = "hand";
    document.getElementById("textDiv").innerHTML = "<strong>Enterprise Solutions</strong><ul><li>Collaboration and Portals</li><li>Business Process</li><li>Management (BPM)</li></ul>";
}

function sampleMouseLeave5(sender,args)
{
    sender.findName("enterpriseBtn").opacity = 1;
    
    // Conditional to work with IE and Firefox
    if(document.all)
    {
        document.getElementById("textDiv").innerText = "";
    } 
    else
    {
        document.getElementById("textDiv").textContent = ""; 
    }
}

// Enterprise Solutions Btn mouse click
function sampleMouseLeftButtonDown5 (sender, args)
{
    location.href="http://www.idea-ms.com/microsoft-solutions/enterprise-solutions/";
}
