// This file contains some of the inline javascript from the TBWA\Play-made prototype + functions to get data from the autogenerated array of theme images (themeIndex)

//Variables used by lavlod.js

//start at the step2 in the logic
var lodstep=2;
			
//To keep track of themes
var current_theme="";
var last_theme="";
var printclicked=0;
		
function askclear(step){
  //if user havent printed, ask user if sure
  if (printclicked==0){
    alert("entered printclicked 0");
    if (confirm("Du har endnu ikke printet din lodseddel, er du sikker på du vil slette indholdet?")){
      createstep(step);
    }

  } else{
    createstep(step);
  }
}


//"Enum" to themepictures
function themePictureSize(name) {
    this._name = name;
}

themePictureSize.prototype.toString = function () {
    return this._name;
};

themePictureSize.Normal = 0;
themePictureSize.Medium = 1;
themePictureSize.Small = 2;

function getThemeImage(themeIndex,sizeIndex) {
  return themePictures[themeIndex][sizeIndex];
}

