/*
 * this function dertemines which browser is being used
 * and whether it is possible to use DHTML
 *
 */

var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;
function DHTML_init() {
 if (window.opera) {
     OP = 1;
 }
 if(document.getElementById) {
   DHTML = 1;
   DOM = 1;
 }
 if(document.all && !OP) {
   DHTML = 1;
   MS = 1;
 }
if(document.layers && !OP) {
   DHTML = 1;
   NS = 1;
 }
}
DHTML_init();


/*
 * officebase.nl functions
 */

var prices = new Array("&nbsp","270,00 euro","900,00 euro","1950,00 euro","3750,00 euro","&nbsp", "250,00 euro");
function UpdateOrderValue(orderID){
  /*  document.getElementById("OrderValue").innerHTML = prices[orderID];*/
}

function SetAmount(){
   var orderedItem;
   orderedID = 0;
   for (i=0;i<document.order.product.length;i++){
      if (document.order.product[i].checked==true){
         orderedID=i+1;
      }
   }
   UpdateOrderValue(orderedID);
}

function DownloadOfficeBase(){
   location.href = "/download/setup.exe";
   return false;
}

function SwitchLayer(){
  if(document.getElementById('screenshot').style.visibility=="visible")
    document.getElementById('screenshot').style.visibility="hidden";
  else
    document.getElementById('screenshot').style.visibility="visible";
}

function ChangeScreenshot(picID){
    document.getElementById("screenshot_area").innerHTML = SSpictures[picID];
    document.getElementById("screenshot_explanation").innerHTML = SStext[picID];
    document.getElementById("screenshot_links").innerHTML = SSlinks[picID];
}



