
function start() {    
    window.onbeforeunload = SLS.onPlayerPageBeforeUnload;
    SLS.logEntryFlow();
    SLS.showSilverlightApplication();
}

function showSilverlightApp() {
    document.getElementById("installX").style.display = "none";
    //document.getElementById("silverlightControlHost").style.display = "";
	//document.getElementById("ipl_score").style.display = "none";
}

function showInstallX() {
    document.getElementById("silverlightControlHost").style.display = "none";
    document.getElementById("installX").style.display = "block";
	document.getElementById("slminiscorecard").style.display = "none";
	document.getElementById("slchatapp").style.display = "none";
	//document.getElementById("fbminiscorecard").style.display = "block";

	var maskHeight = $(document).height();
	var maskWidth = $(window).width();
		
	$('#mask').css({'width':maskWidth,'height':maskHeight});
	$('#mask').css('position',  'absolute');

	var left = (maskWidth / 2) - 350;
	
	$('.installExp').css({'left': left});
}

function showHtml()
{
	document.getElementById("installX").style.display = "none";
    document.getElementById("silverlightControlHost").style.display = "none";
	//document.getElementById("ipl_score").style.display = "block";
}

function showEnhancedExp(){
	if(isSilverlightInstalled()){
		isToggleON = false;
		toggleDivs();
	}else{
		//document.getElementById("installX").style.display = "block";
		getSilverLightDownload();
	}
	
}
