| 
 
   
 
				 
				    
				<script
				language="JavaScript"
				src="/js/Kribi3DPlayer.js"
				type="text/javascript"></script> 
    
<script
language="JavaScript"
src="/js/gFunct.js"
type="text/javascript"></script> 
    
 
    
<script
language="JavaScript"
type="text/javascript"> 
  
       
var loadok = 
false; 
       
var opening = 
false; 
  
       
/* 
------------------------------------------------------------ */ 
       
/* This function is invoked when the page is 
loaded. 
       
*Allows the loading of plugins*/ 
       
window.onload = function() { 
       
loadok = true; 
       
} 
  
       
/* 
------------------------------------------------------------ */ 
       
/* This function is invoked every time the 
player sends a message to the 
       
* browser, we use it to intercept the Ready event which is sent when 
       
* the player is ready to accept commands and the ModelOpened event which 
is 
       
* sent when the model has been loaded. */ 
       
function KribiPlayer_Tell(msg) { 
           
var player = document.getElementById("KribiPlayer"); 
           
if (loadok) { 
               
if (msg == "ModelOpened") 
{ 
                   
// initialize the camera. 
                   
DefaultView_init(); 
               
} else if 
(msg == "Refresh") { 
                   
if (!opening) { 
                       
// Wait for all the controls to be opened, make 
sure that this will run only once. 
                       
opening = true; 
                       
player.Do("Model OpenAsync '" + 
FullModelsPath() + "BathRoomV05_OP.kmo'"); 
                   
} 
               
} 
           
} 
       
} 
  
       
/* 
------------------------------------------------------------ */ 
       
// Set default 
       
function DefaultView_init() { 
           
var player = document.getElementById("KribiPlayer"); 
           
// Set the camera to its initial position. 
                 
player.Do("Camera Position 
1584.91,-1373,303.204"); 
                 
player.Do("Camera Orientation 
355.925,16.3293,0"); 
                 
player.Do("Camera FieldOfView 71.00"); 
           
// Enable realistic rendering. 
                 
player.Do("Renderer Shading Realistic"); 
                 
// Set tool 
           
CameraLookAt() 
        
} 
  
       
/* 
------------------------------------------------------------ */ 
       
// Tools 
       
function CameraLookAt() { 
           
// Set tool CameraLookAt 
           
var player = document.getElementById("KribiPlayer"); 
           
player.Do("Tool SetCurrent 'CameraLookAt'"); 
       
} 
       
/* 
------------------------------------------------------------ */ 
       
function CameraRoll() { 
            // 
Set Tool CameraRoll 
           
var player = document.getElementById("KribiPlayer"); 
           
player.Do("Tool SetCurrent 'CameraRoll'"); 
       
} 
  
				 |