// JavaScript Document

function oModule(){

 //fallout3 screens
    this.FALLOUT3_PATH = "../../images/art/fallout3screens/";
    this.FALLOUT3_PREFIX = "screen";
    this.FALLOUT3_BIG_SUFFIX = "B.jpg";
    this.FALLOUT3_TOTAL = 58;

 //fallout3 concept
    this.CONCEPT_PATH = "../../images/art/fallout3concept/";
    this.CONCEPT_PREFIX = "concept";
    this.CONCEPT_BIG_SUFFIX = "B.jpg";
    this.CONCEPT_TOTAL = 26;
	
	 //operation anchorage screens
    this.OPANC_PATH = "../../images/art/opanc/";
    this.OPANC_PREFIX = "screen";
    this.OPANC_BIG_SUFFIX = "B.jpg";
    this.OPANC_TOTAL = 12;
	
	 //the pitt screens
    this.PITT_PATH = "../../images/art/thepitt/";
    this.PITT_PREFIX = "thepittscreen_";
    this.PITT_BIG_SUFFIX = "B.jpg";
    this.PITT_TOTAL = 9;
	
	 //broken steel screens
    this.STEEL_PATH = "../../images/art/brokensteel/";
    this.STEEL_PREFIX = "brokensteelscreen_";
    this.STEEL_BIG_SUFFIX = "B.jpg";
    this.STEEL_TOTAL = 12;
	
	//point lookout screens
    this.PL_PATH = "../../images/art/pointlookout/";
    this.PL_PREFIX = "pl_";
    this.PL_BIG_SUFFIX = "B.jpg";
    this.PL_TOTAL = 9;

	//mothership zeta screens
    this.MZ_PATH = "../../images/art/zeta/";
    this.MZ_PREFIX = "mz_";
    this.MZ_BIG_SUFFIX = "B.jpg";
    this.MZ_TOTAL = 9;
    

//variable properties
  this.randArray = new Array();
  //this.currentShot;
  //this.conceptType;

  //public methods
  //this.drawScreenShots = oModule_drawScreenShots;
  this.showConcepts = oModule_showConcepts;
  this.openWindow = oModule_openWindow;

  //private methods
  //this.init = oModule_init;
  //this.init();
}

function oModule_openWindow(arg_theUrl, arg_name, arg_width, arg_heigth, arg_scroll){
  window.open(arg_theUrl,arg_name,'width=' + arg_width + ',height=' + arg_heigth + ',leftmargin="10",topmargin="10",marginwidth="0",marginheight="0",scrollbars='+ arg_scroll +',menubar=no,status=no,resizable=yes')
}

/*
function oModule_drawScreenShots(){
  var randNumber;
  var randImage;
  var theString = "";

  for(var i=1;i<=this.SSHOTS_IN_PAGE;i++){

    randNumber = Math.round(Math.random() * (this.randArray.length - 1));
    randImage = parseInt(this.randArray.splice(randNumber,1));

    theString += '<tr>';
    //theString += '<td align="center"><a href="javascript:module.showScreenShot(\''+ randImage + '\')"><img src="' + this.SSHOTS_PATH + this.SSHOTS_PREFIX + ((randImage < 10) ? "0" + randImage : randImage) + this.SSHOTS_SUFIX + '" width="137" height="137" border="0"></td>';
    theString += '</tr>'

    theString += '<tr> ';
    theString += '<td><img src="../images/other/pxl_transparent.gif" width="1" height="5"></td>';
    theString += '</tr>';

  }

  document.open();
  document.write(theString);
  document.close();

}
*/
function oModule_showConcepts(arg_type, arg_shot){
  this.conceptType = arg_type;
  this.currentShot = arg_shot;

  if ((screen.width < 1085) || (screen.height < 750))
	 this.openWindow("../art/popup_screenshots.html", "screenshot", screen.width, screen.height, "yes")
	 else this.openWindow("../art/popup_screenshots.html", "screenshot", 1085, 750, "yes")
}
/*
function oModule_init(){
  //construct array
  for(var i=1;i<=this.SSHOTS_TOTAL;i++){
    this.randArray[i-1] = i;
  }
}
*/
var module = new oModule();