﻿// JScript File

//Following Directions
function popDemoFD1(popUpPath) {popDemoFD('Task1PreLoad', 800, 600, popUpPath);}
function popDemoFD2(popUpPath) {popDemoFD('Task2PreLoad', 800, 600, popUpPath);}
function popDemoFD3(popUpPath) {popDemoFD('Task3PreLoad', 800, 600, popUpPath);}
function popDemoFD4(popUpPath) {popDemoFD('Task4PreLoad', 800, 600, popUpPath);}
function popDemoFD5(popUpPath) {popDemoFD('Task5PreLoad', 800, 600, popUpPath);}
function popDemoFD6(popUpPath) {popDemoFD('TutorialForDemo', 1024, 768, popUpPath);}

//Phonological Awareness
function popDemoPA1(popUpPath) {popDemoPA('game1preload', 800, 600, popUpPath);}
function popDemoPA2(popUpPath) {popDemoPA('game2preload', 800, 600, popUpPath);}
function popDemoPA3(popUpPath) {popDemoPA('game3preload', 800, 600, popUpPath);}
function popDemoPA4(popUpPath) {popDemoPA('game4preload', 800, 600, popUpPath);}
function popDemoPA5(popUpPath) {popDemoPA('game5preload', 800, 600, popUpPath);}
function popDemoPA6(popUpPath) {popDemoPA('game6preload', 800, 600, popUpPath);}
function popDemoPA7(popUpPath) {popDemoPA('game7preload', 800, 600, popUpPath);}
function popDemoPA8(popUpPath) {popDemoPA('game8preload', 800, 600, popUpPath);}
function popDemoPA9(popUpPath) {popDemoPA('game9preload', 800, 600, popUpPath);}

//Sequencing
function popDemoSQ1(popUpPath) {popDemoSQ('demo1preload', 800, 600, popUpPath);}

//Auditory Memory
function popDemoAM1(popUpPath) { popDemoAM('AMGame0', 800, 600, popUpPath); }
function popDemoAM2(popUpPath) { popDemoAM('AMGame1', 800, 600, popUpPath); }
function popDemoAM3(popUpPath) { popDemoAM('AMGame2', 800, 600, popUpPath); }
function popDemoAM4(popUpPath) { popDemoAM('AMGame3', 800, 600, popUpPath); }
function popDemoAM5(popUpPath) { popDemoAM('AMGame4', 800, 600, popUpPath); }
function popDemoAM6(popUpPath) { popDemoAM('AMGame5', 800, 600, popUpPath); }

//Following Directions    
function popDemoFD(demoid, width, height, popUpPath) {
    if (!popUpPath) {popUpPath='/followingDirections/demo/demo.aspx'}
    window.open(popUpPath+'?demoid=' + demoid, 'demo', 'width=' + width + ',height=' + height + ',left=100,top=100');
}

//Sequencing    
function popDemoSQ(demoid, width, height, popUpPath) {
    if (!popUpPath) {popUpPath='/Sequencing/demo/demo.aspx'}
    window.open(popUpPath+'?demoid=' + demoid, 'demo', 'width=' + width + ',height=' + height + ',left=100,top=100');
}

//Phonological Awareness 
function popDemoPA(demoid, width, height, popUpPath) {
    if (!popUpPath) {popUpPath='/phonologicalAwareness/demo/demo.aspx'}
    window.open(popUpPath+'?demoid=' + demoid, 'demo', 'width=' + width + ',height=' + height + ',left=100,top=100');
}

//Auditory Memory
function popDemoAM(demoid, width, height, popUpPath) {
    if (!popUpPath) { popUpPath = '/auditoryMemory/demo/demo.aspx' }
    window.open(popUpPath + '?demoid=' + demoid, 'demo', 'width=' + width + ',height=' + height + ',left=100,top=100');
}

//Smart Board Video	
function popSMARTBoard() {
    window.open('/hearBuilder/smartBoardVideo.aspx' , 'SBV' , 'width=445, height=355');
}
function popSMARTBoardSeq() {
    window.open('/sequencing/SMARTBoardSeq.aspx' , 'SBVSEQ' , 'width=425, height=350');
}

//Show Me How Videos
function popHBPASMHV() {
    window.open('/phonologicalAwareness/showMeHow.aspx' , 'PASMHV' , 'width=425, height=350');
}
function popHBFDSMHV() {
    window.open('/followingDirections/showMeHow.aspx' , 'FDSMHV' , 'width=425, height=350');
}
function popHBSQSMHV() {
    window.open('/sequencing/showMeHow.aspx' , 'SQSMHV' , 'width=425, height=350');
}
function popHBAMSMHV() {
    window.open('/auditoryMemory/showMeHow.aspx', 'AMSMHV', 'width=425, height=350');
}
