﻿// JScript File

        function SelectAll(id)
        {
            document.getElementById(id).focus();
            document.getElementById(id).select();
        }
        
        function embedClicked(){
            myLightWindow.activateWindow({href: 'Embedcopy.aspx', title: 'Animated Explanations', width:325, height:100 });
        }   
        
        function copyLinkClicked(){
            myLightWindow.activateWindow({href: 'Urlcopy.aspx', title: 'Animated Explanations', width:375, height:100  });
        }
        
        function hideInfoText(){
            document.getElementById('embedLayer').style.visibility = 'hidden';
            document.getElementById('copyLayer').style.visibility = 'hidden';
        }
        
        
        function handleQuestion(questionDivID){
        
            var questionDiv = document.getElementById(questionDivID);
            //alert(questionDiv.style.display);
            
            if(questionDiv.style.display == 'none' || questionDiv.style.display == ''){
                questionDiv.style.display = 'block';
            }
            else{
                questionDiv.style.display = 'none';
            }
            
        }
        
      function ToggleDisplay(id){
      
        var elem = document.getElementById('row-' + id);
        if (elem){
        
          if (elem.style.display != 'block'){
          
            elem.style.display = 'block';
            elem.style.visibility = 'visible';
            document.getElementById('image-' + id).src='./Images/arrowOpen.gif';
          } 
          else{
          
            elem.style.display = 'none';
            elem.style.visibility = 'hidden';
            document.getElementById('image-' + id).src='./Images/arrow.gif';
            
          }
        }
      }        

        function embedLink_In_Clicked(){
        myLightWindow.activateWindow({href: 'Embedcopy.aspx', title: 'Animated Explanations', width:325, height:100 });
        }   
        
        function copyLink_In_Clicked(){
          myLightWindow.activateWindow({href: 'Urlcopy.aspx', title: 'Animated Explanations', width:375, height:100  });
        }
        
       