<!--#include file="Lib/Config.asp"-->
<!--#include file="Lib/Func.asp"-->
<!--#include file="Lib/FileLib.asp"-->
<!--#include file="Lib/DBConn.asp"-->
<!--#include file="Lib/Header.asp"-->

<%
Dim HTMLSCRIPT
Dim JSCRIPT
Dim CODES,QUESTION
Dim ATT
Dim VARS,VAR
Dim PAGE,NPAGE
Dim IDKEY,RESTYPE,VC_ID
Dim SKINSTR,PARTSTR
Dim DELAYTIMES
Dim ST

VARS = ""

PARTSTR = ""
ST = "원활한 설문을 위해 귀하의 컴퓨터 환경을 테스트하겠습니다.<br>동영상을 자세히 보시기 바랍니다.<br>또한, 스피커의 볼륨을 적절하게 조정해 주시기 바랍니다"

If PARTSTR ="　" Then PARTSTR =""
If ST ="　" Then ST =""

Dim Rans
Rans = RandomNum(1,4)

If Rans = 1 Then
	HTMLSCRIPT = "<iframe allowfullscreen='' frameborder='0' height='281' mozallowfullscreen='' src='//player.vimeo.com/video/113572210?title=1&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;loop=0' webkitallowfullscreen='' width='100%'></iframe>"
ElseIf Rans = 2 Then
	HTMLSCRIPT = "<iframe allowfullscreen='' frameborder='0' height='281' mozallowfullscreen='' src='//player.vimeo.com/video/113572210?title=1&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;loop=0' webkitallowfullscreen='' width='100%'></iframe>"
ElseIf Rans = 3 Then
	HTMLSCRIPT = "<iframe allowfullscreen='' frameborder='0' height='281' mozallowfullscreen='' src='//player.vimeo.com/video/113572210?title=1&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;loop=0' webkitallowfullscreen='' width='100%'></iframe>"
Else
	HTMLSCRIPT = "<iframe allowfullscreen='' frameborder='0' height='281' mozallowfullscreen='' src='//player.vimeo.com/video/113572210?title=1&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;loop=0' webkitallowfullscreen='' width='100%'></iframe>"
End if

DELAYTIMES=4000

PAGE="TMovie"
'NPAGE="TRadio"

Dim STARTPAGE
Set PROJECT_DOM = new XMLClass
PROJECT_DOM.LoadHTTP("http://admin.surveymonster.kr/Project/NewProject/XML/" & PROJECTCODE & ".xml")
STARTPAGE = PROJECT_DOM.TAGTEXT("START_PAGE",0)
NPAGE=STARTPAGE

'VAR = Left(VAR,Len(VAR)-1)
%>
<script type="text/javascript" language="javascript">
<!--
<% Server.Execute("Lib/Prev.asp") %>

<% If SurveyStatus=0 Then %>
function prev()
{
	history.go(-2);
}
<% End If %>
function next()
{
<%
	Response.Write JSCRIPT
%>

	if (getRadioValue("Movies")==undefined)
	{
		alert("질문에 응답해 주십시오.");
		$("input[name=Movies]:eq(0)").focus();
		return;
	}

	var obj;

	document.Survey.submit();
}

function fadeCk()
{
	$(".btnC").hide();
	$(".btnC").delay(<%=DELAYTIMES%>).fadeIn(400);
}

$(document).ready(function(){

	tcount=<%=DELAYTIMES/1000%>;
	fadeCk();
	fc();

           $("#prev").click(function(){
                     prev();
           });

           $("#next").click(function(){
                     next();
           });
});

function MediaPop()
{
	var r_value;
	tmps_url="http://get.adobe.com/kr/flashplayer/";
	p_h = 700;
	p_w = 800;
	
	LeftPosition = (screen.width) ? (screen.width-p_w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-p_h)/2 : 0;
	
	opt = "dialogWidth:" + p_w + "px;dialogHeight:" + p_h + "px;dialogLeft:" + LeftPosition + ":dialogTop=" + TopPosition + ";scroll:yes;resizable=no";
	r_value=window.showModalDialog(tmps_url,self,opt);
}

//-->
</script>
<% 
	SKINSTR = LoadSkin("./SKIN/" & SKIN &"/Skin.asp")
	SKINSTR = Replace(SKINSTR,"##SURVEYTITLE##",SURVEYTITLE)
	SKINSTR = Replace(SKINSTR,"##CLIENTIMG##",CLIENTIMAGE)
	SKINSTR = Replace(SKINSTR,"##PROGRESS_COLOR##",PROGRESS_COLOR)
	SKINSTR = Replace(SKINSTR,"##PERCENT##",FORMATNUMBER(CDbl((CInt(Request.Form("PVALUE"))+1)/TOTALCOUNT)*100,0))
	SKINSTR = Replace(SKINSTR,"##PARTSTR##",PARTSTR)
	If PARTSTR<>"" Then
	SKINSTR = Replace(SKINSTR,"<!--","")
	SKINSTR = Replace(SKINSTR,"//-->","")
	End if
	Response.Write SKINSTR
%>
<div class="container">
<form name="Survey" onsubmit="return false;" method="post" action="Survey.asp">
<!--#include file="Lib/Variable.asp"-->
<input type="hidden" name="MovieRan" value="3" >
<!--#include file="Lib/CATI_INFO.asp"-->

	<% If Trim(ST)<>"" Then %>

	<div class="row">
		<div class="well">
		<%=ST%>
		</div>
	</div>
	<% End If%>

	<div class="row">
		<div class="col-md-12 col-xs-12">
			<div class='panel panel-default'>
				<div class='panel-heading'><h4><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> 지금 나오는 동영상과 소리를 선택해 주십시오.</h4></div>
				<div class='panel-body'>
				<div class="text-center">
				<%=HTMLSCRIPT%>
				</div><br>
				<table id='Radios_table' class='table table-hover' cellpadding='5' cellspacing='0' border='0'>
					<colgroup>
						<col width="100.00%"/>
					</colgroup>

					<tr>
						<td><label style='cursor:pointer;' id="LMovies_1"><input type="radio" name="Movies" class="radio1" value="1"/> 4858 - 벨소리</label></td>
					</tr>
					<tr>
						<td><label style='cursor:pointer;' id="LMovies_2"><input type="radio" name="Movies" class="radio1" value="2"/> 4857 - 종소리</label></td>
					</tr>
					<tr>
						<td><label style='cursor:pointer;' id="LMovies_3"><input type="radio" name="Movies" class="radio1" value="3"/> 4856 - 싸이렌소리</label></td>
					</tr>
					<tr>
						<td><label style='cursor:pointer;' id="LMovies_4"><input type="radio" name="Movies" class="radio1" value="4"/> 4856 - 닭소리</label></td>
					</tr>							

				</table>
				</div>
			</div>
		</div>			
	</div>

	<div class="row">
		<div class="col-md-12 col-xs-12 text-center">
		<div id="timerLabel"></div>
		<!--#include file="SKIN/BOOT/Bottom.asp"-->
		</div>
		<div class="col-md-12 col-xs-12 text-center">			
			<small><%=SurveyCpRight%></small>
		<div>
	</div>
</form>
</div>
</body>
</html>
