\n' + ' \n' + ' \n' + ' \n' + ' \n' + '' ; }else{ s_innerHtml = '\n' } s_innerHtml += '' + (M_CON_SHOW_PROGRESS ? '0%' : '') ; document.write(s_innerHtml); m_jq_iframeMask = $("#iframeMask"); m_jq_loadProgress = $("#loadProgress"); m_jq_loadProgressPercent = $("#loadProgressPercent"); setTimeout( function() { hideMaskWhenEnter(); } , M_CON_DELAY_AUTO_HIDE_MASK ); if(M_CON_DEBUG) { var j = 0; for(var i = 0; i <= 100; i++) { setTimeout( function() { updateProgress(j++); } , 50 * i ); } } } else { var s_installerURL = "http://download.quest3d.com/webplugin/webviewerQ3D432.exe"; s_innerHtml = '' + ' \n' + '' + '\n' + ' \n' ; document.write(s_innerHtml); AutomaticReload(); } } function updateProgress(i_f_progress) { m_jq_loadProgress.css({ width: i_f_progress + "%" }); m_jq_loadProgressPercent.html(i_f_progress + "%"); if(100 === i_f_progress) { setTimeout( function() { hideMaskWhenEnter(); }, M_CON_DELAY_AFTER_PERCENT_100 ); } } function AutomaticReload () { navigator.plugins.refresh(); if (DetectQuest3DPlayer()) { window.location.reload(); } setTimeout('AutomaticReload()', 500) } function QSetValue(group, channelname, value){ GetQuest3DPlayer().SetChannelValue(group, channelname, value); } function QSetText(group, channelname, text){ GetQuest3DPlayer().SetChannelText(group, channelname, text); } function QGetValue(group, channelname, value){ return GetQuest3DPlayer().ChannelValue(group, channelname); } function QGetText(group, channelname, text){ return GetQuest3DPlayer().ChannelText(group, channelname); } var M_CON_BUTTON_BAR_HEIGHT = 0; // 40 var m_b_isIe; var m_obj_player; var m_jq_player; window.onhelp = function() { ___cugoHelp(); } document.onhelp = function() { ___cugoHelp(); } function pressF1() { ___cugoHelp(); } function ____rightMenu(i_element_document) { $(i_element_document).bind("contextmenu",function(i_event){ i_event.returnValue=false; return false; }) } var ___doNothing = function() { return false; } function ___keydown(i_element_document){ $(i_element_document) .keydown(function(i_event) { //alert("i_event.keyCode:" + i_event.keyCode); switch(i_event.keyCode) { case 27: if(___helpIsShowing) { __om.cugoFnHideHelpForm(); } i_event.returnValue = false; i_event.keyCode = 0; return false; break; //case 112: //F1 // i_event.preventDefault(); // __om.cugoFnHelp(); // break; case 116: // F5 i_event.returnValue = false; i_event.keyCode = 0; return false; break; default: //i_event.preventDefault(); //i_event.returnValue = false; //i_event.keyCode = 0; //return false; break; } if (((i_event.keyCode == 8) && //BackSpace ((i_event.srcElement.type != "text" && i_event.srcElement.type != "textarea" && i_event.srcElement.type != "password") || i_event.srcElement.readOnly == true)) || ((i_event.ctrlKey) && ((i_event.keyCode == 78) || (i_event.keyCode == 82)) ) || //CtrlN,CtrlR (i_event.keyCode == 116) ) { //F5 i_event.keyCode = 0; i_event.returnValue = false; } }); } window.onload = function() { //alert("window.onload()"); m_b_isIe = $.browser.msie; //alert("CON_PROJECT_NAME:" + CON_PROJECT_NAME); setQuest3DPlayer(); setPos(); ____rightMenu(document); ___keydown(document); }; window.onhelp = function() { window.pressF1(); return false; } function setPos(){ //alert("playerQ3d.setPos()"); var f_navigatorWidth = document.body.clientWidth; var f_navigatorHeight = document.body.clientHeight; //alert("f_navigatorWidth:" + f_navigatorWidth // + "\n" + "f_navigatorHeight:" + f_navigatorHeight //); m_jq_player.css({ width: f_navigatorWidth , height: f_navigatorHeight - M_CON_BUTTON_BAR_HEIGHT }); } function setQuest3DPlayer() { m_obj_player = document.getElementById("Quest3DObject"); m_jq_player = $(m_obj_player); } function setValueOfProduct(i_s_groupName, i_s_channelName, i_s_value) { m_obj_player.SetChannelValue(i_s_groupName, i_s_channelName, i_s_value); } function setTextOfProduct(i_s_groupName, i_s_channelName, i_s_text){ m_obj_player.SetChannelText(i_s_groupName, i_s_channelName, i_s_text); } function getValueOfProduct(i_s_groupName, i_s_channelName){ return m_obj_player.ChannelValue(i_s_groupName, i_s_channelName); } function getTextOfProduct(i_s_groupName, i_s_channelName){ return m_obj_player.ChannelText(i_s_groupName, i_s_channelName); } function setUserInfo(i_s_userNameOrEmail, i_s_password) { setTextOfProduct("main", "user", i_s_userNameOrEmail); } function callByJs(i_s_cmd, i_s_prm) { setTextOfProduct("main", "cmdin", i_s_cmd); setTextOfProduct("main", "prmin", i_s_prm); } window.onresize = setPos; function onEvent(){ //alert("onEvent()"); if(m_b_isIe) { try{ // Branch: IE var s_cmd = getTextOfProduct("main", "cmd"); var s_prm = getTextOfProduct("main", "prm") ; switch (s_cmd) { case "logon": break; case "register": break; case "order": break; case "enter": if(!__entered) { hideMaskWhenEnter(); } break; case "percent": updateProgress(s_prm); break; default: break; } } catch(e){ } } } //-->