var overimg = new Array(19)
overimg[0] = "building_layout_off.gif"
overimg[1] = "building_layout_on1.gif"
overimg[2] = "building_layout_on2.gif"
overimg[3] = "building_layout_on3.gif"
overimg[4] = "building_layout_on4.gif"
overimg[5] = "building_layout_on5.gif"
overimg[6] = "building_layout_on6.gif"
overimg[7] = "building_layout_on7.gif"
overimg[8] = "building_layout_on8.gif"
overimg[9] = "building_layout_on9.gif"
overimg[10] = "building_layout_on10.gif"
overimg[11] = "building_layout_on11.gif"
overimg[12] = "building_layout_on12.gif"
overimg[13] = "building_layout_on13.gif"
overimg[14] = "building_layout_on14.gif"
overimg[15] = "building_layout_on15.gif"
overimg[16] = "building_layout_on16.gif"
overimg[17] = "building_layout_on17.gif"
overimg[18] = "building_layout_on18.gif"

var galltitle = new Array(19)
galltitle[0] = "Outside AWE Tuning"
galltitle[1] = "Waiting Room Area"
galltitle[2] = "Sales Offices"
galltitle[3] = "Chip Lab and Tech Library"
galltitle[4] = "Kitchen Area"
galltitle[5] = "Engineering Lab"
galltitle[6] = "Warehouse Area"
galltitle[7] = "Install Area 1"
galltitle[8] = "Install Area 2"
galltitle[9] = "Chassis Dyno Cell"
galltitle[10] = "Prototype Welding Area"
galltitle[11] = "Manufacturing Warehouse"
galltitle[12] = "Prototyping and Mandrel Bending"
galltitle[13] = "Production Welding"
galltitle[14] = "Production Fabrication"
galltitle[15] = "Buffing Area"
galltitle[16] = "Cutting Area"
galltitle[17] = "CNC Machining Center"
galltitle[18] = "Shipping and Sales Office"


var gallimg = new Array (19)
for (i = 0; i < gallimg.length; i++) 
{
   gallimg[i] = new Array (6);
}

gallimg[0][1] = "awe_default.jpg"
gallimg[0][2] = "awe_default_2.jpg"
gallimg[0][3] = "awe_default_3.jpg"
gallimg[0][4] = ""
gallimg[0][5] = ""
gallimg[1][1] = "awe_1.jpg"
gallimg[1][2] = "wait_2.jpg"
gallimg[1][3] = "wait_3.jpg"
gallimg[1][4] = "wait_4.jpg"
gallimg[1][5] = ""
gallimg[2][1] = "awe_2.jpg"
gallimg[2][2] = "front_2.jpg"
gallimg[2][3] = "front_3.jpg"
gallimg[2][4] = "satch.gif"
gallimg[2][5] = ""
gallimg[3][1] = "chips_1.jpg"
gallimg[3][2] = "chips_2.jpg"
gallimg[3][3] = ""
gallimg[3][4] = ""
gallimg[3][5] = ""
gallimg[4][1] = "awe_4.jpg"
gallimg[4][2] = "lunch_1.jpg"
gallimg[4][3] = "lunch_2.jpg"
gallimg[4][4] = ""
gallimg[4][5] = ""
gallimg[5][1] = "eng_1.jpg"
gallimg[5][2] = "eng_2.jpg"
gallimg[5][3] = "eng_3.jpg"
gallimg[5][4] = ""
gallimg[5][5] = ""
gallimg[6][1] = "ware_1.jpg"
gallimg[6][2] = "ware_2.jpg"
gallimg[6][3] = "ware_3.jpg"
gallimg[6][4] = "ware_4.jpg"
gallimg[6][5] = "ware_5.jpg"
gallimg[7][1] = "awe_7.jpg"
gallimg[7][2] = "awe_8.jpg"
gallimg[7][3] = "install_7.jpg"
gallimg[7][4] = "install_3.jpg"
gallimg[7][5] = ""
gallimg[8][1] = "install_6.jpg"
gallimg[8][2] = "install_5.jpg"
gallimg[8][3] = "install_4.jpg"
gallimg[8][4] = ""
gallimg[8][5] = ""
gallimg[9][1] = "dyno_1.jpg"
gallimg[9][2] = "awe_9.jpg"
gallimg[9][3] = "dyno_2.jpg"
gallimg[9][4] = "awe_25.jpg"
gallimg[9][5] = "dyno_3.jpg"
gallimg[10][1] = "awe_10.jpg"
gallimg[10][2] = "proto_3.jpg"
gallimg[10][3] = "proto_4.jpg"
gallimg[10][4] = ""
gallimg[10][5] = ""
gallimg[11][1] = "awe_11.jpg"
gallimg[11][2] = "fabware_2.jpg"
gallimg[11][3] = ""
gallimg[11][4] = ""
gallimg[11][5] = ""
gallimg[12][1] = "proto_2.jpg"
gallimg[12][2] = "awe_12.jpg"
gallimg[12][3] = ""
gallimg[12][4] = ""
gallimg[12][5] = ""
gallimg[13][1] = "awe_13.jpg"
gallimg[13][2] = "fab_2.jpg"
gallimg[13][3] = ""
gallimg[13][4] = ""
gallimg[13][5] = ""
gallimg[14][1] = "awe_14.jpg"
gallimg[14][2] = "fab_4.jpg"
gallimg[14][3] = "fab_3.jpg"
gallimg[14][4] = ""
gallimg[14][5] = ""
gallimg[15][1] = "buff_1.jpg"
gallimg[15][2] = "buff_2.jpg"
gallimg[15][3] = ""
gallimg[15][4] = ""
gallimg[15][5] = ""
gallimg[16][1] = "awe_16.jpg"
gallimg[16][2] = "awe_15.jpg"
gallimg[16][3] = ""
gallimg[16][4] = ""
gallimg[16][5] = ""
gallimg[17][1] = "awe_17.jpg"
gallimg[17][2] = "cnc_2.jpg"
gallimg[17][3] = "cnc_3.jpg"
gallimg[17][4] = ""
gallimg[17][5] = ""
gallimg[18][1] = "ship_1.jpg"
gallimg[18][2] = ""
gallimg[18][3] = ""
gallimg[18][4] = ""
gallimg[18][5] = ""


var galltxt = new Array (19)
for (i = 0; i < galltxt.length; i++) 
{
   galltxt[i] = new Array (6);
}

galltxt[0][1] = 'The AWE Tuning 10,000 sqft facility is within 1 mile of Exit 343 of the Pennsylvania Turnpike in Willow Grove, Pa.'
galltxt[0][2] = 'AWE Tuning at night.'
galltxt[0][3] = 'AWE Tuning truck and trailer:  2004 GMC Sierra 3500 Duramax Turbo Diesel V8 with Allison transmission, and 40ft Pace Shadow GT trailer with full workshop facility.'
galltxt[0][4] = ''
galltxt[0][5] = ''
galltxt[1][1] = 'Our waiting room area is equipped with plasma monitor, wireless internet, PC Webstation, X-Box, Playstation, DVD, VCR, and hundreds of automotive related magazines and videos.'
galltxt[1][2] = 'Plasma monitor and entertainment center.'
galltxt[1][3] = 'PC Webstation.'
galltxt[1][4] = 'Nespresso Romeo automatic coffee maker.'
galltxt[1][5] = ''
galltxt[2][1] = 'Our sales offices are open M-F 9am to 6pm EST.'
galltxt[2][2] = 'We have staff on hand to answer technical questions and provide industry leading customer service.'
galltxt[2][3] = 'Our retail and wholesale divisions are staffed by the best in the industry.'
galltxt[2][4] = 'Our shop mascot Satchel, an English Bulldog, keeps us all in line.'
galltxt[2][5] = ''
galltxt[3][1] = 'Our Chip Lab and Tech Library for solder work, bench top flashing of vehicle ECUs, and repair manual access.'
galltxt[3][2] = 'PCs loaded with latest full VW, Audi, and Porsche electronic repair manuals.'
galltxt[3][3] = ''
galltxt[3][4] = ''
galltxt[3][5] = ''
galltxt[4][1] = 'Our kitchen area with stainless steel cabinets, microwave, coffee maker, water cooler, refrigerator.  Fueling the troops!'
galltxt[4][2] = 'Everyone should eat this healthy.'
galltxt[4][3] = 'Obligatory open fridge shot.'
galltxt[4][4] = ''
galltxt[4][5] = ''
galltxt[5][1] = 'Our Engineering Lab features a Microscribe for digitizing hard parts, SolidWorks CAD and SolidCAM CAM software suites, capable of 3D design and production.'
galltxt[5][2] = 'Microscribe digitizer.'
galltxt[5][3] = 'SolidCAM software for CNC machining instructions.'
galltxt[5][4] = ''
galltxt[5][5] = ''
galltxt[6][1] = 'We have over 3000sq ft of dedicated warehouse space for product stocking.  When we say it is in stock, we mean it!  We ship domestically and internationally via UPS, Fedex, and DHL, and we use a SealedAir Instapak foam packing system to ensure that items arrive damage-free.'
galltxt[6][2] = 'Warehouse Area 1.'
galltxt[6][3] = 'Warehouse Area 2.'
galltxt[6][4] = 'Under mezzanine.'
galltxt[6][5] = 'The pinnacle of Porsche design: Carrera GT and 996 GT2'
galltxt[7][1] = 'We have technicians on staff to install any of the parts we manufacture or distribute.'
galltxt[7][2] = 'For service work and to position vehicles on our Tru-Line alignment system, we use some of the finest automotive lifts available, from Werther International. Our Hi-9 9000lbs rated lifts are also used exclusively by the Ferrari factory. The Hi-9 features integrated rubber arm pads to eliminate any chance of marring vehicle undercarriages and hydraulic lift rams instead of failure prone cables.'
galltxt[7][3] = 'Another busy day in our installation area.'
galltxt[7][4] = 'Hydraulic press, wall mounted spring compressor, solvent parts washer.'
galltxt[7][5] = ''
galltxt[8][1] = 'Due to the large number of extreme low profile tires and very expensive wheels that we encounter and install daily, AWE Tuning uses a Hunter 3250 Tire Changer featuring a plastic mount head and articulated arm that makes it impossible to scratch a wheel and greatly eases our ability to deal with tire profiles as low as a 25 aspect ratio. Combined with our Hunter DSP9600 Wheel Balancer, we are able to successfully mount and balance up to 24 inch diameter wheel and tire combinations. Using the Split Spoke technology of this balancer, we can also hide wheel weights behind wheel spokes if the customer desires. Hunter tire changers and wheel balancers are used exclusively by the Porsche and BMW factories due to their technological superiority.'
galltxt[8][2] = 'We are pleased to offer comprehensive alignment services utilizing the <a href="http://www.tru-line.net" target="_new">Tru-Line Laser Alignment System</a>. This three laser system allows us to customize toe, camber, and caster angles to within 1/64 of an inch, as well as establishing the centerline of the vehicle to ensure truly straight tracking down the road or racetrack.'
galltxt[8][3] = 'Engineering prototype area, with fuel injector test stand and turbo calibration jig.  Every turbo we sell is checked for proper wastegate calibration to ensure intended results once installed in the vehicle.'
galltxt[8][4] = ''
galltxt[8][5] = ''
galltxt[9][1] = 'In 2002, we installed an All Wheel Drive (AWD) Mustang chassis dynamometer, <a href="http://mustangdyne.com/MDAWD500SE.htm" target="_new">model MD-AWD-500-SE</a>, to enhance our testing and tuning abilities.'
galltxt[9][2] = 'Since nearly 75% of the vehicles we were tuning at that time came equipped with all wheel drive, our former Two Wheel Drive (2WD) Mustang MD250 chassis dyno had become limited in its usage. However, due to its cost, an AWD chassis dyno is still a unique and rare tool amongst even leading tuning houses. Not only did we see the absolute need to install such a piece of equipment on site, but we also recognized that a proper test cell would be required to ensure valid test results.'
galltxt[9][3] = 'Our test cell is able to be fully closed off from the rest of our facility, with a dedicated exhaust evacuation system to ensure pure air to the engine. We also integrated several data aquisition channels to the dyno PC, including a MoTeC wideband air fuel meter, dual Omega Instruments temperature meters, and boost signal. We have several anemometer tested cooling fans with associated stands that permit us to provide appropriate spot cooling to ensure valid test results.'
galltxt[9][4] = 'A battery of laptops running various scan tools with logging capabilites allows us to monitor literally dozens of engine parameters right through the factory diagnostic ports. Our dyno is available for power pull tests as well as rental by the hour and club days. Contact us for a price schedule.'
galltxt[9][5] = 'Chip and exhaust tuning on a GrandAm Cup GS Class Porsche 997.'
galltxt[10][1] = 'All the welding machines in our manufacturing facility are made by <a href="http://www.millerwelds.com" target="_new">Miller Welding</a>.  We have two Syncrowave 250DX TIG, a Syncrowave 200 TIG, and a Syncrowave 300 TIG for product production welding, and a Millermatic 210 MIG for jig building.  Miller makes the best welding machines in the business.  The control and power that their machines provide allows us to tackle the most delicate stainless steel collector welds to the toughest aluminum intercooler endtank welds.'
galltxt[10][2] = 'Welding of Porsche exhaust headers.'
galltxt[10][3] = 'Welding of header collectors.'
galltxt[10][4] = ''
galltxt[10][5] = ''
galltxt[11][1] = 'All our completed manufactured products are stocked on site for quick shipment.  Even though our products are all hand built to the highest of standards, we build them in production runs to ensure timely delivery.  Our investment in inventory stock means short wait times when ordering.'
galltxt[11][2] = 'Porsche mufflers in stock, ready to ship.'
galltxt[11][3] = ''
galltxt[11][4] = ''
galltxt[11][5] = ''
galltxt[12][1] = 'Our Transfluid mandrel tube bender allows us to produce crimp free tubing bends on site.  Our machine is CNC controlled, allowing us to store up to 100 different bend programs.  We have the tooling for 2.00, 2.25, 2.50, and 3.00 inch diameter tubing with mandrels for both stainless steel and aluminum.  A mandrel bender differs from a generic tube bender in its ability to support the tube internally while the bend is being created.  This prevents the tube from crimping or collapsing at the bend, ensuring a consistent diameter of the tube all the way around the bend which is critical for optimum air flow.  Mandrel benders are a very rare piece equipment employed in house only by the top exhaust manufacturers in the automotive aftermarket industry.'
galltxt[12][2] = 'Our dedicated four post protoyping lift allows us to create new exhaust systems right at the vehicle, as well as ensuring that suspension members are at the same positions as when the car is sitting on the ground.  This ensures our products fit correctly the first time with no rubbing or other interference issues with the vehicle.'
galltxt[12][3] = ''
galltxt[12][4] = ''
galltxt[12][5] = ''
galltxt[13][1] = 'All the welding machines in our manufacturing facility are made by <a href="http://www.millerwelds.com" target="_new">Miller Welding</a>.  We have two Syncrowave 250DX TIG, a Syncrowave 200 TIG, and a Syncrowave 300 TIG for product production welding, and a Millermatic 210 MIG for jig building.  Miller makes the best welding machines in the business.  The control and power that their machines provide allows us to tackle the most delicate stainless steel collector welds to the toughest aluminum intercooler endtank welds.'
galltxt[13][2] = 'Our manufacturing jigs are designed to allow multiple part production.  We are able to precisely shape all individual components of our products to allow quick and accurate placement in our jigs for a high level of repeatability in the final product.  This ensures correct fitment on the vehicle, no matter if the product is the first one in a production run or the last.'
galltxt[13][3] = ''
galltxt[13][4] = ''
galltxt[13][5] = ''
galltxt[14][1] = 'Our fabrication stations are where raw materials are shaped after being cut down to pieces.'
galltxt[14][2] = 'Our fabrication stations are also where our welds are ground down smooth on the inside of all our products to ensure optimum air flow.  We use precision fiberglass templates, made in house, to achieve repeatability in preparation.  We use slip rolls, bead rollers, and sheet metal brakes to create mechanical shapes, and belt, disc, and drum sanding units, as well as handheld die grinders to smooth and shape the metals of our products.'
galltxt[14][3] = 'We use a 40 metric ton AC Hydraulics electro-hydraulic H frame press to create various shapes in tube ends, from cone or ball interfaces, to profiles to mate up to odd shaped turbo outlets.  The tooling to produce these shapes is produced in house.'
galltxt[14][4] = ''
galltxt[14][5] = ''
galltxt[15][1] = 'Our 7.5hp, 1 meter diameter <a href="http://buffingandpolishing.com" target="_new">TecPul buffing wheel machine</a> makes quick and efficient work of polishing our finished products to a mirror shine.  The large wheel size allows long stints at the machine with little fatigue to the user, due to the slower speeds at which this machine can be run.  A variable speed control allows us to adjust wheel rotation to suit the job at hand.  Each of our products is built as if it were to be worn as jewelry.'
galltxt[15][2] = 'A 3hp, 2000cfm AAF dust collector keeps our manufacturing area air clean to breathe.'
galltxt[15][3] = ''
galltxt[15][4] = ''
galltxt[15][5] = ''
galltxt[16][1] = 'Precision cutting of raw material is essential to minimize the amount of hand finishing labor required to prepare the piece for welding.  A <a href="http://www.bii1.com" target="_new">Baleigh Industries</a> cold saw and a variety of 12-14 inch size saw blades allows us to cut from 0 to 90 degree cuts in round and square tube or bar stock.  A Pexto electro-hydraulic shear allows us to quickly and cleanly cut sheet metal stock, such as used in our muffler skins.'
galltxt[16][2] = 'A manual lathe is onsite for quick turning requirements, and a Powermatic vertical band saw is used to create non-linear cuts in sheet or tubing.'
galltxt[16][3] = ''
galltxt[16][4] = ''
galltxt[16][5] = ''
galltxt[17][1] = 'Our Fadal 3016 CNC Vertical Machining Center is equipped with boxway construction, 4th axis, and the latest in Windows based digital control.  The boxway construction is heartier than more common linearway, and permits us to machine both soft aluminum and various alloys of steel.  4th axis control allows the machine to rotate a part during the machining process, minimizing human interface.  The 104/D machine control has the ability to look ahead up to 10,000 steps to ensure the epitome in smooth tool transitions, as well as a Gibbs 2.0 CAM package built right into the control head for quick program writing.'
galltxt[17][2] = 'A variety of Kurt workholding devices are used to allow multiple piece production runs.  The work piece can be held either directly in the table vises or in specialty fixtures designed and built in house.  Machining centers are still a very rare piece of equipment to find in the arsenal of any aftermarket tuner.'
galltxt[17][3] = 'Fadal 104/D control head.'
galltxt[17][4] = ''
galltxt[17][5] = ''
galltxt[18][1] = 'Our shipping and sales offices.  We use integrated UPS and Fedex package shipment programs to automatically e-mail customers order shipping status notices.'
galltxt[18][2] = ''
galltxt[18][3] = ''
galltxt[18][4] = ''
galltxt[18][5] = ''

var state = 0

function redrawThumbBar(index,subindex)
{

    if (!gallimg[index][1])
    {
       document.getElementById("shop_thumb1").border=0
       document.getElementById("shop_thumb1").src="blank.jpg"
       document.getElementById("shop_thumb1").style.cursor="default"
    }
    else
    {
       document.getElementById("shop_thumb1").border=1
       document.getElementById("shop_thumb1").style.cursor="hand"
       
       if (subindex == 1) 
       {

         document.getElementById("shop_thumb1").src='th_off_' + gallimg[index][1]
       }
       else 
       {
         document.getElementById("shop_thumb1").src='th_on_' + gallimg[index][1]
       }
    }

    if (!gallimg[index][2])
    {
       document.getElementById("shop_thumb2").border=0
       document.getElementById("shop_thumb2").src="blank.jpg"
       document.getElementById("shop_thumb2").style.cursor="default" 
    }
    else
    {
       document.getElementById("shop_thumb2").border=1
       document.getElementById("shop_thumb2").style.cursor="hand"
       if (subindex == 2) 
       {
         document.getElementById("shop_thumb2").src='th_off_' + gallimg[index][2]
       }
       else 
       {
         document.getElementById("shop_thumb2").src='th_on_' + gallimg[index][2] 
       }
    }

    if (!gallimg[index][3])
    {
       document.getElementById("shop_thumb3").border=0
       document.getElementById("shop_thumb3").src="blank.jpg"
       document.getElementById("shop_thumb3").style.cursor="default"
    }
    else
    {
       document.getElementById("shop_thumb3").border=1
       document.getElementById("shop_thumb3").style.cursor="hand"
       if (subindex == 3) 
       {

         document.getElementById("shop_thumb3").src='th_off_' + gallimg[index][3]

       }
       else 
       {
         document.getElementById("shop_thumb3").src='th_on_' + gallimg[index][3] 
       }
    }

    if (!gallimg[index][4])
    {
       document.getElementById("shop_thumb4").border=0
       document.getElementById("shop_thumb4").src="blank.jpg"
       document.getElementById("shop_thumb4").style.cursor="default"
    }
    else
    {
       document.getElementById("shop_thumb4").border=1
       document.getElementById("shop_thumb4").style.cursor="hand"
       if (subindex == 4) 
       {
         document.getElementById("shop_thumb4").src='th_off_' + gallimg[index][4]
       }
       else 
       {
         document.getElementById("shop_thumb4").src='th_on_' + gallimg[index][4] 
       }
    }

    if (!gallimg[index][5])
    {
       document.getElementById("shop_thumb5").border=0
       document.getElementById("shop_thumb5").src="blank.jpg"
       document.getElementById("shop_thumb5").style.cursor="default"
    }
    else
    {
       document.getElementById("shop_thumb5").border=1
       document.getElementById("shop_thumb5").style.cursor="hand"
       if (subindex == 5) 
       {
         document.getElementById("shop_thumb5").src='th_off_' + gallimg[state][5]

       }
       else 
       {
         document.getElementById("shop_thumb5").src='th_on_' + gallimg[state][5] 
       }
    }
}

function changeView(index)
{
  state = index

  document.getElementById("shop_overhead").src=overimg[index]
  document.getElementById("shop_photo").src=gallimg[index][1] 
  document.getElementById("shop_header").innerHTML=galltitle[index]
  document.getElementById("shop_caption").innerHTML=galltxt[index][1] 
  redrawThumbBar(index,'1')

}

function changeOverhead(index)
{
    document.getElementById("shop_overhead").style.cursor="hand"
}

function changePic(subindex) 
{
  var mycel
  var mytxt

  if (gallimg[state][subindex]) {
     document.getElementById("shop_photo").src=gallimg[state][subindex]
     document.getElementById("shop_caption").innerHTML=galltxt[state][subindex]
     redrawThumbBar(state,subindex)

  }
}

function overheadHandOff() 
{
  document.getElementById("shop_overhead").style.cursor="default"
}