


document.write('<APPLET archive="http://www.vrwebdesign.co.uk/wordpressPlayerPro.jar" code="PurePlayerPro" name="AppletDemo" width="500" height="400" >');
document.write('<param name="panorama" value="http://www.vrwebdesign.co.uk/skogafoss1.xml">');
document.write('<param name="gui" value="http://www.vrwebdesign.co.uk/agui10.xml">');
document.write('<param name="singlepanorama" value="true">');
document.write('<param name="optimizememory" value="true">');
document.write('<param name="transition" value="TransBlend">');
document.write('</APPLET>'); 



flip=false;off="Start";on="Stop" // global to save state
flip=false;on="Stop";off="Start"; // global to save state
function toggle(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execpano("set(\"sfxRai\",\"visible\",false)")

  }else{
  //insert starting code action here
  document.AppletDemo.execpano("set(\"sfxRai\",\"visible\",true)")
 
  }
  flip=!flip; // toggle th state of button
}
  
  
// global to save state
function toggle2(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execpano("set(\"sfxSno\",\"visible\",false)")
 }else{
  //insert starting code action here
  document.AppletDemo.execpano("set(\"sfxSno\",\"visible\",true)")
  }
  flip=!flip; // toggle th state of button
}




function toggle3(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execgui("hideTB();")
 }else{
  //insert starting code action here
document.AppletDemo.execgui("showTB();")
  }
  flip=!flip; // toggle th state of button
}

function toggle4(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execpano("set(\"hotspots\",\"display\",false)")
 }else{
  //insert starting code action here
  document.AppletDemo.execpano("set(\"hotspots\",\"display\",true)")
  }
  flip=!flip; // toggle th state of button
}

function toggle5(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execgui("hidemap();")
 }else{
  //insert starting code action here
  document.AppletDemo.execgui("showmap();")
  }
  flip=!flip; // toggle th state of button
}

function toggle6(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
 document.AppletDemo.execgui("stopmusic();")
 }else{
  //insert starting code action here
document.AppletDemo.execgui("music();")
  }
  flip=!flip; // toggle th state of button
}

function toggle7(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
  document.AppletDemo.execgui("hideinfo();")
 }else{
  //insert starting code action here
  document.AppletDemo.execgui("showinfo();")
  }
  flip=!flip; // toggle th state of button
}

function toggle8(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
document.AppletDemo.execgui("stoptour();")
 }else{
  //insert starting code action here
  document.AppletDemo.execgui("playtour();")
  }
  flip=!flip; // toggle th state of button
}

  
  function toggle9(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
document.AppletDemo.execgui("fullscreenPressed();")
 }else{
  //insert starting code action here
  document.AppletDemo.execgui("set(\"applet\",\"fullscreen\",false);")
  }
  flip=!flip; // toggle th state of button
}

function toggle10(pn){
p=parseInt(pn,10); // make sure its a number
if(flip){
  //insert stopping code action here
 document.AppletDemo.execpano("set(\"lights\",\"visible\",true)")
 }else{
  //insert starting code action here
 document.AppletDemo.execpano("set(\"lights\",\"visible\",false)")
  }
  flip=!flip; // toggle th state of button
}



