function oModule(){
  
 //oblivion cover
    this.OBLIVCVR_PATH = "../images/oblivcvr/";
    this.OBLIVCVR_PREFIX = "oblivcvr";
    this.OBLIVCVR_BIG_SUFFIX = "B.jpg";
    this.OBLIVCVR_TOTAL = 1;

    //racemaps
    this.RACEMAP_PATH = "../images/codex/racemaps/";
    this.RACEMAP_PREFIX = "racemap";
    this.RACEMAP_BIG_SUFFIX = "B.jpg";
    this.RACEMAP_TOTAL = 9;

    //Shivering Isles
    this.SIS_PATH = "../images/art/si/";
    this.SIS_PREFIX = "si_";
    this.SIS_BIG_SUFFIX = "B.jpg";
    this.SIS_TOTAL = 18;
	
	//Shivering Isles Concepts
    this.SIC_PATH = "../images/art/si_concept/";
    this.SIC_PREFIX = "siconcept";
    this.SIC_BIG_SUFFIX = "B.jpg";
    this.SIC_TOTAL = 3;

//oblivion ps3
    this.OBPS3_PATH = "../images/art/ob_ps3/";
    this.OBPS3_PREFIX = "obps3";
    this.OBPS3_BIG_SUFFIX = "B.jpg";
    this.OBPS3_TOTAL = 41;

    //oblivion xbox360
    this.OBX_PATH = "../images/art/ob_xbox360/";
    this.OBX_PREFIX = "obx";
    this.OBX_BIG_SUFFIX = "B.jpg";
    this.OBX_TOTAL = 33;

    //oblivion pc
    this.OBLIV_PATH = "../images/art/ob_pc/";
    this.OBLIV_PREFIX = "obliv";
    this.OBLIV_BIG_SUFFIX = "B.jpg";
    this.OBLIV_TOTAL = 32;
	
   //oblivion concept art
    this.OBC_PATH = "../images/art/ob_concept/";
    this.OBC_PREFIX = "ob_concept";
    this.OBC_BIG_SUFFIX = "B.jpg";
    this.OBC_TOTAL = 12;
	
    //shadowkey
    this.SHDW_PATH = "../images/shadowkey/";
    this.SHDW_PREFIX = "shdw_scrn";
    this.SHDW_BIG_SUFFIX = "B.jpg";
    this.SHDW_TOTAL = 7;

	//obliv-new
    this.OBM_PATH = "../images/oblivmobile/";
    this.OBM_PREFIX = "oblivm";
    this.OBM_BIG_SUFFIX = "B.gif";
    this.OBM_TOTAL = 9;
	
    //tenth anniv - arena
    this.ANNIVAR_PATH = "../images/tenth_anniv/screens/";
    this.ANNIVAR_PREFIX = "annivar_scrn";
    this.ANNIVAR_BIG_SUFFIX = "B.jpg";
    this.ANNIVAR_TOTAL = 3;
	
	//tenth anniv - daggerfall
    this.ANNIVDF_PATH = "../images/tenth_anniv/screens/";
    this.ANNIVDF_PREFIX = "annivdf_scrn";
    this.ANNIVDF_BIG_SUFFIX = "B.jpg";
    this.ANNIVDF_TOTAL = 6;
	
	//tenth anniv - redguard
    this.ANNIVRG_PATH = "../images/tenth_anniv/screens/";
    this.ANNIVRG_PREFIX = "annivrg_scrn";
    this.ANNIVRG_BIG_SUFFIX = "B.jpg";
    this.ANNIVRG_TOTAL = 8;
	
	//tenth anniv - bspire
    this.ANNIVBS_PATH = "../images/tenth_anniv/screens/";
    this.ANNIVBS_PREFIX = "annivbs_scrn";
    this.ANNIVBS_BIG_SUFFIX = "B.jpg";
    this.ANNIVBS_TOTAL = 4;
  
     //tenth anniv - morrowind
    this.ANNIVMW_PATH = "../images/tenth_anniv/screens/";
    this.ANNIVMW_PREFIX = "annivmw_scrn";
    this.ANNIVMW_BIG_SUFFIX = "B.jpg";
    this.ANNIVMW_TOTAL = 8; 
 
   //morrowind pc
    this.MWPC_PATH = "../images/art/mwpc/";
    this.MWPC_PREFIX = "mwind_web";
    this.MWPC_BIG_SUFFIX = "B.jpg";
    this.MWPC_TOTAL = 82;
  
    //morrowind xbox
    this.MWXBOX_PATH = "../images/art/mwxbox/";
    this.MWXBOX_PREFIX = "mwind_web";
    this.MWXBOX_BIG_SUFFIX = "B.jpg";
    this.MWXBOX_TOTAL = 18;

    //tribunal
    this.TRIB_PATH = "../images/art/trib/";
    this.TRIB_PREFIX = "trib_web";
    this.TRIB_BIG_SUFFIX = "B.jpg";
    this.TRIB_TOTAL = 7;
	
	//bloodmoon
    this.BM_PATH = "../images/art/bloodmoon/";
    this.BM_PREFIX = "bm_web";
    this.BM_BIG_SUFFIX = "B.jpg";
    this.BM_TOTAL = 15;

	//morrowind goty
    this.MWGOTY_PATH = "../images/art/mwgoty/";
    this.MWGOTY_PREFIX = "goty_web";
    this.MWGOTY_BIG_SUFFIX = "B.jpg";
    this.MWGOTY_TOTAL = 9;
  
  //world
    this.WORLD_PATH = "../images/world/";
    this.WORLD_PREFIX = "mw_";
    this.WORLD_BIG_SUFFIX = "WB.jpg";
    this.WORLD_TOTAL = 8;
  
  //characters
    this.CHARACTERS_PATH = "../images/characters/";
    this.CHARACTERS_PREFIX = "mw_";
    this.CHARACTERS_BIG_SUFFIX = "CB.jpg";
    this.CHARACTERS_TOTAL = 6;      
  
  //creatures
    this.CREATURES_PATH = "../images/creatures/";
    this.CREATURES_PREFIX = "mw_";
    this.CREATURES_BIG_SUFFIX = "CRB.jpg";
    this.CREATURES_TOTAL = 5;

  //items
    this.ITEMS_PATH = "../images/items/";
    this.ITEMS_PREFIX = "mw_";
    this.ITEMS_BIG_SUFFIX = "IB.jpg";
    this.ITEMS_TOTAL = 5;
    
  //tes
    this.TES_PATH = "../images/tes_construction/";
    this.TES_PREFIX = "mw_";
    this.TES_BIG_SUFFIX = "TB.jpg";
    this.TES_TOTAL = 9;
	
 //tesl
    this.TESL_PATH = "../images/tes_construction/landscape/";
    this.TESL_PREFIX = "mw_";
    this.TESL_BIG_SUFFIX = "TB.jpg";
    this.TESL_TOTAL = 9;

  //team
    this.TEAM_PATH = "../images/codex/";
    this.TEAM_PREFIX = "team_e3_";
    this.TEAM_BIG_SUFFIX = "B.jpg";
    this.TEAM_TOTAL = 5;
	
  //collectors edition
    this.CE_PATH = "../images/team/collectors_ed/";
    this.CE_PREFIX = "mw_";
    this.CE_BIG_SUFFIX = "B.jpg";
    this.CE_TOTAL = 4;	

  //industrial magic n light
    this.IML_PATH = "../images/team/magicnlight/";
    this.IML_PREFIX = "mw_";
    this.IML_BIG_SUFFIX = "B.jpg";
    this.IML_TOTAL = 11;
    
  //comic book
    this.COMIC_PATH = "../images/comic_book/";
    this.COMIC_PREFIX = "";
    this.COMIC_BIG_SUFFIX = "B.jpg";
    this.COMIC_TOTAL = 30;
    
  //weapons
    this.WEAPONS_PATH = "../images/items/weapons/";
    this.WEAPONS_PREFIX = "mw_";
    this.WEAPONS_BIG_SUFFIX = "B.jpg";
    this.WEAPONS_TOTAL = 9;
        
  //armor
    this.ARMOR_PATH = "../images/items/armor/";
    this.ARMOR_PREFIX = "mw_";
    this.ARMOR_BIG_SUFFIX = "B.jpg";
    this.ARMOR_TOTAL = 10;

  //xbox love
    this.XBXLV_PATH = "../images/team/xboxlove/";
    this.XBXLV_PREFIX = "mw_";
    this.XBXLV_BIG_SUFFIX = "B.jpg";
    this.XBXLV_TOTAL = 2;
	
  //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 < 865))
	 this.openWindow("../art/popup_concepts.htm", "screenshot", screen.width, screen.height, "yes")
	 else this.openWindow("../art/popup_concepts.htm", "screenshot", 1085, 865, "yes") 
}

function oModule_init(){
  //construct array
  for(var i=1;i<=this.SSHOTS_TOTAL;i++){
    this.randArray[i-1] = i;
  }
}

var module = new oModule();