﻿// JScript File

function setOverlay(displayHTML) {    
    var overlay = document.getElementById("ctl00_pnlOverlay");
    var overlay_background = document.getElementById("overlay_background");

    overlay.innerHTML += displayHTML;
    
    overlay.style.display = "block";
    overlay_background.style.display = "block";    
}

function cancelOverlay() {
    var overlay = document.getElementById("ctl00_pnlOverlay");
    var overlay_background = document.getElementById("overlay_background");

    overlay.style.display = "none";
    overlay_background.style.display = "none";
}

function toggleActiveControl(control,className) {
    if(className == "") {
        className = "input"; 
    } 

    var activeClassName = className + "_active";
            
    if(control.className != activeClassName) {
        control.className = activeClassName;    
    }
    else {
        control.className = className; 
    }
            
}
function LaunchMovie(chapterid, movieNum, sessionid)
	{
		var location = "movieplayer.aspx?&lngChapID=" +chapterid + "&movieNum=" + movieNum + "&lngSessID=" + sessionid;
		window.open(location, "movieplayer", 'height=694, width=1021, scrollbars=no, resizable=no, location=yes');
	}
	
	function startflash(video)
			{
				var location = video;
				var w = window.screen.availWidth;
				var h = window.screen.availHeight;

				window.open(location, "privacy", 'height='+h+', top=0,left=0, width='+w+', maximize=yes, scrollbars=yes, resizable=yes');
			}
	
	/*function startflash(video)
			{
			alert("hi");
				var location = video;
				var w = window.screen.availWidth;
				var h = window.screen.availHeight;

				window.open(location, "privacy", 'height=694, top=0,left=0, width=1021, maximize=yes, scrollbars=yes, resizable=yes');
			}*/
			
	function openwindow(videolink)
	{
	    alert("hio");
		//window.open(videolink,'name','height=700,width=850,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,status=yes');

		
		
	}
	function OnClick()
{
//document.getElementById('pnlCalendar').style.visibility = 'visible';

//  if( divCalendar.style.display == "none")
//   document.getElementById('pnlCalendar').style.visibility = 'visible';

    divCalendar.style.display = "";
//  else
//  
//    divCalendar.style.display = "none";
}

