﻿// Copyright Copyright Zerone Consulting Private Limited
//
// All rights are reserved. Reproduction or transmission in whole or in part, 
// in any form or by any means, electronic, mechanical or otherwise, is
// prohibited without the prior written consent of the copyright owner.
//
// Filename        : DefaultPage.js
// Purpose         : 
// Creation Date   : 24/9/2008
// Author          : Raji.R
//
// Change History  :
// Changed by      :              
// Date            : 
// Purpose         :
//

/**
* <Raji R>
* <24/9/2008>
* <function to change visibility>
**/

function showhide(id)
{ 
     if (document.getElementById)
     { 
        obj = document.getElementById(id); 
        
        if (obj.style.display == "none")
        { 
            obj.style.display = ""; 
        } 
        else 
        { 
            obj.style.display = "none"; 
        } 
        
     } 
} 

// Determine whether the specified Silverlight runtime version is installed.

var version = "2.0.31005";  //deliberate over-version, will fail
var isInstalled = Silverlight.isInstalled(version);
// (isInstalled) Create the plug-in if the specified Silverlight runtime version is installed.
if (isInstalled)
{
    //document.getElementById("dvInstallSilverLight").style.display = "none";
    showhide("simentHeader");
}
else
{
    //document.getElementById("dvInstallSilverLight").style.display = "";
    showhide("silverlightControlHost");
}
  