// master javascript file for Storm Shelters of TN - by Bryan Dease @ sodiumhalogen.com

// root locations of images
var imageRoot = '_images/_slideshow/';

// create an array to hold the images
var groundPics = new Array();
var roomPics = new Array();
var expoPics = new Array();

// list of the ground images + captions
groundPics.push(new Array(imageRoot+'tornado_shelter_in-ground_1.jpg','The installation process for your new tornado shelter is normally completed in one day.'));
groundPics.push(new Array(imageRoot+'tornado_shelter_in-ground_2.jpg','The section of concrete is cut and removed and the hole dug to the proper depth.'));
groundPics.push(new Array(imageRoot+'tornado_shelter_in-ground_3.jpg','The shelter is lowered into place and leveled.'));
groundPics.push(new Array(imageRoot+'tornado_shelter_in-ground_4.jpg','Concrete is 100% backfilled around the shelter.'));
groundPics.push(new Array(imageRoot+'tornado_shelter_in-ground_5.jpg','Your new tornado shelter is professionally installed and ready.'));
groundPics.push(new Array(imageRoot+'car_in_garage.jpg','Room to enter the shelter even with the car in the garage.'));
groundPics.push(new Array(imageRoot+'family_safe_in_tornado_shelter.jpg','Safe and sound. Underground.'));
groundPics.push(new Array(imageRoot+'tornado_shelter-new_construction_10.jpg','Tornado shelters can be installed in new construction as well as an existing structure.'));
groundPics.push(new Array(imageRoot+'tornado_shelter-new_construction_11.jpg','Shelter hole is measured and dug to proper depth.'));
groundPics.push(new Array(imageRoot+'tornado_shelter-new_construction_12.jpg','Concrete is 100% backfilled around the shelter.'));
groundPics.push(new Array(imageRoot+'tornado_shelter-new_construction_13.jpg','The installation process for your new tornado shelter is normally completed in one day on new construction as well.'));

// list of the room images + captions
roomPics.push(new Array(imageRoot+'tornado_safe_room_1.jpg','Our tornado saferooms are built of all steel construction.'));
roomPics.push(new Array(imageRoot+'tornado_safe_room_2.jpg','Tornado safe rooms can be installed in new construction or in an existing structure.'));
roomPics.push(new Array(imageRoot+'tornado_safe_room_3.jpg','The tornado safe room arrives on the site and is moved into place.'));
roomPics.push(new Array(imageRoot+'tornado_safe_room_4.jpg','Tornado safe room is firmly affixed to your concrete pad with bolts.'));
roomPics.push(new Array(imageRoot+'tornado_safe_room_5.jpg','The installation process for your new tornado safe room is normally completed in one day.'));

// list of the expo images + captions
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_01.jpg','Our tornado saferooms are built of all steel construction.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_02.jpg','Tornado safe rooms can be installed in new construction or in an existing structure.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_03.jpg','The tornado safe room arrives on the site and is moved into place.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_04.jpg','Tornado safe room is firmly affixed to your concrete pad with bolts.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_05.jpg','The installation process for your new tornado safe room is normally completed in one day.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_06.jpg','The installation process for your new tornado safe room is normally completed in one day.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_07.jpg','The installation process for your new tornado safe room is normally completed in one day.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_08.jpg','The installation process for your new tornado safe room is normally completed in one day.'));
expoPics.push(new Array(imageRoot+'tornado_shelter_expo_09.jpg','The installation process for your new tornado safe room is normally completed in one day.'));


$(document).ready(function() {

if ( $('#map-box').length ) {
// image fader on front page
$('#map-box').cycle({
    	fx:      'fade',
    	delay:   -3000,
    	timeout: 6000,
    	speed: 1700
    	//pause: true,
	});
}

if ( $('#ground').length ) {
// put all the elements together to make our slideshow
$('#ground').click(function() {
		$.slimbox(groundPics, 0, {loop: false});
		return false;
	});

$('#room').click(function() {
		$.slimbox(roomPics, 0, {loop: false});
		return false;
	});
	
$('#expo').click(function() {
		$.slimbox(expoPics, 0, {loop: false});
		return false;
	});
}		
		
});