﻿if (!window.nouvasysM)
	nouvasysM = {};

nouvasysM.Page = function() 
{
}

nouvasysM.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();
	}
}


function StartAnimation(sender, args) {

 sender.findName("LoadingAnimation").begin();
}
   


function ShowCanvas(sender, args) {
    if (sender.findName("imgLoad").DownloadProgress == 1) {
        sender.findName("LoadingAnimation").stop();
        sender.findName("cLoad").Visibility = "Collapsed";
document.getElementById("dLoad").style.display="none";
 document.getElementById("dnn_ctr470_ViewFlash_SilverlightControlHost").style.width = "925px";
        document.getElementById("dnn_ctr470_ViewFlash_SilverlightControlHost").style.height = "475px";
        
        
        
    }
}


var sName="";
function showDetails(sender, args) {
    //alert(sender.name);
    sender.findName("recBackground").Visibility = "Visible";
    if (sName != "") {
        sender.findName("rec" + sName).Visibility = "Collapsed";
        sender.findName(sName + "canvas").Visibility = "Collapsed";
    }
    sName = sender.name.toString();
    sName = sName.substring(3, 25);
    sender.findName("rec" + sName).Visibility = "Visible";
    sender.findName(sName + "canvas").Visibility = "Visible";
}

function HideDetails(sender, args) {
    sender.findName("recBackground").Visibility = "Collapsed";
    if (sName != "") {
        sender.findName("rec" + sName).Visibility = "Collapsed";
        sender.findName(sName + "canvas").Visibility = "Collapsed";
    }
}



function RedirectAviation(sender, args) {
    window.location = "/SOLUTIONS/Aviation/tabid/73/Default.aspx";
}
function RedirectTelecom(sender, args) {
    window.location = "/SOLUTIONS/Telecommunication/tabid/74/Default.aspx";
}

function RedirectBFSI(sender, args) {
    window.location = "/SOLUTIONS/BFSI/tabid/75/Default.aspx";
}

function RedirectShipLogic(sender, args) {
    window.location = "/SOLUTIONS/ShippingLogistics/tabid/76/Default.aspx";
}

function RedirectOilandGas(sender, args) {
    window.location = "/SOLUTIONS/OilGas/tabid/77/Default.aspx";
}

function RedirectTechnology(sender, args) {
    window.location = "/SOLUTIONS/Technology/tabid/78/Default.aspx";
}
function RedirectConstruction(sender, args) {
    window.location = "/SOLUTIONS/ConstructionRealEstate/tabid/79/Default.aspx";
}
function RedirectMineMore(sender, args) {
    window.location = "/SOLUTIONS/Mining/tabid/80/Default.aspx";
}
function RedirectHealthMore(sender, args) {
    window.location = "/SOLUTIONS/Healthcare/tabid/81/Default.aspx";
}
function RedirectManufactureMore(sender, args) {
    window.location = "/SOLUTIONS/Manufacturing/tabid/82/Default.aspx";
}
function RedirectGovMore(sender, args) {
    window.location = "/SOLUTIONS/Goverment/tabid/83/Default.aspx";
}
function RedirectRetailMore(sender, args) {
    window.location = "/SOLUTIONS/Retail/tabid/84/Default.aspx";
}







