
smallSizes = new Array(50,50);
mediumSizes = new Array(273,170);
pageName = 'stairs.htm';
scriptName = 'stairs.js';
countX = 3;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Sonorastone','images/treads/small/','images/treads/big/','images/treads/popup/',
    new Array(
      new Array('','Stairtreads-Merced-Lib048.jpg',533,400,'images/profile/treads/Modern-Profile.gif','Long-Span Steptread, Modern Profile','Merced Library, Northern CA','Welded onto Steel Stringers','','','Almond','Broom'),
      new Array('','Stairtreads-Merced-Lib042.jpg',300,400),

      new Array('','88-07-20-Print-H.jpg',572,400,'images/profile/treads/Classic-Profile.gif','Closed Riser Steptread, Classic Profile','North Peninsula Jewish Campus, Foster City, CA','Welded onto Steel Stringers','','','Granada White with Black Stripe','Broom with Stripe'),
      new Array('','DSC_0020cFINAL.jpg',598,400,'images/profile/treads/Modern-Profile.gif','Long-Span Steptread, Modern Profile','Performing Arts Center, Irvine Valley College, CA','Welded onto Steel Stringers','','','French Gray with White Stripe','Broom with Stripe'),
      new Array('','DSC_0004c.jpg',598,400,'images/profile/treads/Classic-Profile.gif','Long-Span Steptread, Classic Profile','Product Photograph','Weld onto Steel Stringers','','Spans 48" - 96"','Granada White','Broom with Stripe'),
      new Array('','Stepstone Liberty Grill Final Cropped.jpg',282,400),
      new Array('','Treads El Dorado Hills 068.jpg',534,400),
      new Array('','Stairtreads Merced Library 064.jpg',534,400),

      new Array('','pp01.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads and Landing','Parking Structure in Palo Alto, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Granada White with Black Contrasting Stripe','Broom Finish','Stepstone Closed Riser Steptreads in the Classic Profile offer excellence in quality and design that will last for many years. Stepstone offers visual continuity to the project by providing landings with a similar look to the steptreads'),
      new Array('','pp02-03.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads and Landing','Parking Structure in Palo Alto, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Granada White with Black Contrasting Stripe','Broom Finish','A closer view of Stepstone&lsquo;s Closed Riser Steptreads and segmented landing components. They are designed to work together to create a complete stair system'),
      new Array('','pp04-05.jpg',273,170,'images/profile/treads/p16-17.gif','Closed-Riser Steptreads and Landing','Parking Structure in Palo Alto, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Granada White with Black Contrasting Stripe','Broom Finish','A top to bottom view showing Stepstone&lsquo;s Closed Riser Steptreads used in conjunction with the segmented landing components.   Both are designed to be aesthetically and symmetrically proportioned for an eye-pleasing appeal'),
      new Array('','pp08-09.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads and Landings','Multi-Family Complex in Irvine, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Almond with Brown Contrasting Stripe','Broom Finish','Stepstone Steptreads and modular landing components combine commercial grade strength with elegant style. They are designed to work together to create a complete stair system and bring simplicity to the designers&lsquo; task'),
      new Array('','pp10-11.jpg',273,170,'images/profile/treads/p16-17.gif','Closed-Riser Steptreads and Landings','Multi-Family Complex in Irvine, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Almond with Brown Contrasting Stripe','Broom Finish','Stepstone Steptreads and modular landing components combine commercial grade strength with elegant style. They are also designed to work together to create a complete stair system and bring simplicity to the designers&lsquo; task'),
      new Array('','pp12-13.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads and Landings','Multi-Family Complex in Irvine, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','Granada White with Black Contrasting Stripe','Broom Finish','Stepstone Steptreads and modular landing components combine commercial grade strength with elegant style. They are also designed to work together to create a complete stair system and bring simplicity to the designers task'),
      new Array('','pp16-17.jpg',273,170,'images/profile/treads/p14-15.gif','Closed-Riser Steptreads','Stanford University in Palo Alto, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with Black Contrasting Stripe','Broom Finish','A closer view of this stair system reveals the aesthetically clean lines achieved, whether the Steptreads are combined with Stepstone Narrow Modular pavers or with Stepstone landing components'),
      new Array('','pp17.jpg',273,170,'images/profile/treads/p14-15.gif','Closed-Riser Steptreads','Stanford University in Palo Alto, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with Black Contrasting Stripe','Broom Finish','A closer view of this stair system reveals the aesthetically clean lines achieved, whether the Steptreads are combined with Stepstone Narrow Modular pavers or Stepstone landing components'),
      new Array('','pp18-19.jpg',273,170,'images/profile/treads/p16-17.gif','Closed-Riser Steptreads','International Freight Terminal in Long Beach, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with White Contrasting Stripe','Broom Finish','This illustrates how the Stepstone Steptread system is designed for ease of installation, even in a major commercial project'),
      new Array('','pp19.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads','International Freight Terminal in Long Beach, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions ','French Gray with White Contrasting Stripe','Broom Finish','A closer view of Stepstone&lsquo;s Steptread system under construction further illustrates it&lsquo;s design for efficiency and ease of installation'),
	  
      new Array('','pp20-21.jpg',273,170,'images/profile/treads/p66.gif','Closed-Riser Steptreads','International Freight Terminal in Long Beach, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with White Contrasting Stripe','Broom Finish','A closer view of Stepstone&lsquo;s Steptread system illustrating the design for efficiency and installation ease'),
      new Array('','pp22.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads','International Freight Terminal in Long Beach, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with White Contrasting Stripe','Broom Finish','Stepstone&lsquo;s Steptread system is used in heavy commercial applications because of it&lsquo;s trusted strength and durability, as well as ease of installation'),
      new Array('','pp23.jpg',273,170,'images/profile/treads/p67.gif','Closed-Riser Steptreads','International Freight Terminal in Long Beach, Ca','Bolt-On to Steel Stringers','','Custom Made to Field Conditions','French Gray with White Contrasting Stripe','Broom Finish','Stepstone&lsquo;s Steptread system is used in heavy commercial applications because of it&lsquo;s trusted strength and durability'),
      new Array('','pp24.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads','Multi-Family Condos in Hawaii, Ca','Bolt-On to Wood Stringers','','Custom Made to Field Conditions','Almond','Broom Finish','Stepstone&lsquo;s Steptreads have been selected as the stairway system of choice in Hawaii, replacing the short lived traditional wooden steps. The Steptreads popularity is due to their trusted durability as well as their aesthetically pleasing appeal'),
      new Array('','DSCF0147.jpg',534,400),
      new Array('','San Diego pictures Dec 2004 Stair tread and Deck 007edited.jpg',252,400),
      new Array('','San Diego pictures Dec 2004 Stair tread and Deck 029.jpg',300,400),
      new Array('','San Diego pictures Dec 2004 Stair tread and Deck 146.jpg',300,400),
      new Array('','stairs ept 004.jpg',300,400),
      new Array('','stairs ept 013.jpg',534,400),
      new Array('','stairs ept 015.jpg',534,400),

      new Array('','pp06.jpg',273,170,'images/profile/treads/p12-13.gif','Closed-Riser Steptreads and Drydeck','Corporate Apartments in Santa Monica, CA','Bolt-On to Steel Stringers','','Custom Made to Field Conditions, 24" x 24" x 2&frac12;"','Almond with Brown Contrasting Stripe and Caf&eacute; Brown','Broom Finish and Fine Grain Stipple Finish','Stepstone Closed Risers Steptreads combined with Stepstone Drydeck Integral Pedestal pavers creates a smooth transition from floor to floor'),
      new Array('','pp14.jpg',273,170,'images/profile/treads/p24-25.gif','Closed-Riser Steptreads','Retirement Community in Dallas, Tx','Bolt-On to Wood Stringers','','Custom Made to Field Conditions','Granada White','Broom Finish','This interior Steptread application highlights our capability to cast the steptreads per designer specifications, i.e. with or without the contrasting stripe, weld-on or bolt-on applications. Stepstone Steptreads are designed to be ADA compliant')

    )
  )
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length))
  ind = 0; 

var arPreloadImages = new Array();
function preload() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length);i++) {
      arPreloadImages[i] = new Image(mediumSizes[0],mediumSizes[1]);
      arPreloadImages[i].src = arImages[section][2]+arImages[section][4][i][1];
    }
  }
}
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showProfileNew(ind) {
  width = arImages[section][4][ind][2]+300;
  height = arImages[section][4][ind][3]+150;
  if (height<500) height = 500;
  win = window.open('profile_popup.htm?script='+scriptName+'&section='+section
	+'&ind='+ind,'_blank','width='+width+',height='
	+height+',left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no');
  win.focus();
}