﻿// JScript File

 function contactMeth360()
    {
        var ContactUsurl='../ContactMeth360.aspx';
       window.open( ContactUsurl, 'popupWindow', 'status,resizable,scrollbars,width=' + 526 + ',height=' + 526 + ',left=' + screen.availLeft + ',top=' + screen.availTop + '', true ); 
    }
    
    function downloadTranscript()
    {
    
        window.open( '../Downloads/Mentor_VO_Video_and_PSA_Script.pdf', 'popupWindow', 'status,resizable,scrollbars,width=' + 526 + ',height=' + 526 + ',left=' + screen.availLeft + ',top=' + screen.availTop + '', true ); 
        
    }
    
    //Open Online Course Getty image credits
    function gettyImageCredits()
    {
        
        window.open( '../ImageCredits.aspx', 'popupWindow', 'status,resizable,scrollbars,width=' + 526 + ',height=' + 526 + ',left=' + screen.availLeft + ',top=' + screen.availTop + '', true ); 
    }
    
    function DetectFlashVersion()
    {
      
    }
    
    
    /**
     * Check the flash version
     */
    function isFlashCapable()
    {  
      
	    if(flashinstalled != FLASH_INSTALLED || flashversion < FLASH_9)
	    {
		    return false;
		  
	    }
    	
	    return true;
    }
    
    //Show flash movies.
    function ShowFlash(IsMainPage, flashFile, Width, Height)
    {
         
        if (IsMainPage=='True')
        {
           
           //See if required version of Flash is installed on the home page only.
           if(isFlashCapable())
           {
                 var so = new SWFObject(flashFile, "HOME_flash", Width, Height, "9", "#FFFFFF");
                 so.addParam("wmode", "transparent");
                 so.write("flashcontent");
                
           }else
           {
           
            //Show No Flash image with download flash button.
             var flashcontent=document.getElementById('flashcontent');
              var divNolash=document.getElementById('divNoFlash');
        
		       if (flashcontent!=null && divNolash!=null)
		       {
		        flashcontent.style.display="none";
                divNolash.style.display="block";
	         }
	         else
	         {
	                alert('Error while finding the flashcontent object.');
	         }
	       }
        }
        else /* Display flash on the rest of the pages. */
        { 
            var so = new SWFObject(flashFile, "HOME_flash", Width, Height, "9", "#FFFFFF");
             so.addParam("wmode", "transparent");
             so.write("flashcontent");
        }
        
    }