/* Config */

var gallery = {
		'eifs' : [
			Array ( 'stucco-mansion'  , 'Stucco Mansion' , '' ),
			Array ( 'casa-John'       , 'John'           , '' ),
			Array ( 'stucco-mansion1' , 'Stucco Mansion' , '' ),
			Array ( 'garage-patio'    , 'Garage Patio'   , '' ),
			Array ( 'casa-John1'      , 'John'           , '' ),
			Array ( 'stucco-entrance' , 'Stucco Entrance', '' ),
			Array ( 'nhs07a'          , 'Booth at National Home Show' , ' ' ),
			Array ( 'mouldNHS'        , 'Decor-Stucco-elements' , ' ' ),
			Array ( 'nhs07'           , 'National Home Show 2007' , ' ' ),
			Array ( 'restorNHS'       , 'Restoration at National Home Show' , ' ' )
		],
		
		'art' : [
			Array ( 'art-stucco'  , 'Art Stucco' , '' ),
			Array ( 'art-stucco-boston-pizza', 'Boston Pizza'           , '' ),
			Array ( 'art-stucco-decor' , 'Decor' , '' ),
			Array ( 'art-stucco-detail', 'Detail'   , '' ),
			Array ( 'art-stucco-horses', 'Horses', '' ),
			Array ( 'art-stucco-landscaping', 'Landscaping', '' ),
			Array ( 'art-stucco-marine', 'Marine' , ' ' ),
			Array ( 'art-stucco-mural', 'Mural' , ' ' ),
			Array ( 'art-stucco-mural1', 'Mural 1' , ' ' ),
                        Array ( 'art-stucco-mural2', 'Mural 2' , ' ' ),
                        Array ( 'art-stucco-office', 'Office' , ' ' ),
                        Array ( 'art-stucco-panel', 'Panel' , ' ' ),
                        Array ( 'art-stucco-Venice', 'Venice' , ' ' ),
                        Array ( 'art-stucco-shapes', 'Shapes' , ' ' ),
                        Array ( 'art-stucco-window', 'Window' , ' ' )                        
		],

		'commercial' : [
			Array ( 'the-bay'  , 'The Bay' , '' ),
			Array ( 'la-z-boy' , 'LA-Z-BOY', '' ),
			Array ( 'beer-store' , 'The Beer Store' , '' ),
			Array ( 'romanian-church' , 'Romanian Church'    , '' ),
			Array ( 'chapters'        , 'Chapters'           , '' ),
			Array ( 'montessori'      , 'Montessori' , '' ),
			Array ( 'swiss-chalet'    , 'Swiss Chalet' , '' ),
			Array ( 'east-side-marios', 'East Side Marios'           , '' ),
			Array ( 'td-bank'         , 'TD Bank' , '' ),
			Array ( 'best-western'    , 'Best Western', '' ),
			Array ( 'work828'         , 'Riverside Condominiums', ' ' ),
			Array ( 'work053'         , 'Marks Work Wearhouse', ' ' ),
			Array ( 'work639'         , 'Olde Welland House', ' ' ),
			Array ( 'harveys' , 'Harveys'    , ' ' ),
			Array ( 'home-outfitters', 'Home Outfitters', '' )
		],

		'resid' : [
			Array ( 'stucco-mansion'  , 'Stucco Mansion' , '' ),
			Array ( 'casa-John'       , 'John'           , '' ),
			Array ( 'stucco-mansion1' , 'Stucco Mansion' , '' ),
			Array ( 'garage-patio'    , 'Garage Patio'   , '' ),
			Array ( 'casa-John1'      , 'John'           , '' ),
			Array ( 'stucco-entrance' , 'Stucco Entrance', '' ),
			Array ( 'thornhill-2006'  , 'Thornhill 2006' , '' ),
			Array ( 'bathust-2006'    , 'Bathust 2006'   , '' ),
			Array ( 'bradgate-2006'   , 'Bradgate 2006'  , '' ),
			Array ( 'Guelph-2004'     , 'Guelph 2004' , '' ),
			Array ( 'mansion'         , 'Mansion' , '' ),
			Array ( 'stucco-and-mouldings' , 'Stucco and Mouldings' , '' ),
			Array ( 'stucco-and-stone-2004' , 'Stucco and Stone 2004' , '' ),
			Array ( 'stucco-columns' , 'Stucco Columns' , '' ),
			Array ( 'stucco-and-stone' , 'Stucco and Stone' , '' )
		],

		'restoration' : [
			Array ( 'window-slab'         , 'Window-slab; exposed rebar','200 Lotherton Pathway' ),
			Array ( 'window-crack'        , 'Above window cement crack' ,'200 Lotherton Pathway' ),
			Array ( '122_2221_14_1'       , 'Balcony slab delamination South side','200 Lotherton Pathway' ),
			Array ( '122_2225_18_1'       , 'Balcony slab'              ,'200 Lotherton Pathway' ),
			Array ( '122_2258_3_1'        , 'Balcony slab after restoration ready to paint','200 Lotherton Pathway' ),
			Array ( 'balcony-rusted'      , 'Rusted balcony panel'      ,'200 Lotherton Pathway' ),
			Array ( 'balcony-slab'        , 'Delaminated balcony slab'  ,'200 Lotherton Pathway' ),
			Array ( 'balc-slab-fixed'     , 'Balcony slab after repair'      ,'200 Lotherton Pathway' ),
			Array ( 'balc-slab-rep'       , 'Balcony slab after repair'      ,'200 Lotherton Pathway' ),
			Array ( 'before-after-window' , 'Brick wall repaired and painted', '200 Lotherton Pathway' ),
			Array ( 'bldg-in-work'        , 'Sections of the building during repairs', '200 Lotherton Pathway' ),
			Array ( 'brick-repair'        , 'Detail on removed damaged bricks', '200 Lotherton Pathway' ),
			Array ( 'entire-bldg'         , 'Entire building during restoration', '200 Lotherton Pathway' ),
			Array ( 'entire-bldg-after'   , 'Entire building after restoration' , '200 Lotherton Pathway' ),
			Array ( 'entire-bldg-after2'  , 'Entire building after restoration', '200 Lotherton Pathway' )
		],
		
		'restoration2' : [
			Array ( 'entire-bldg-before'  , 'Entire building before restoration', '200 Lotherton Pathway' ),
			Array ( 'entire-bldg-before1' , 'Entire building before restoration', '200 Lotherton Pathway' ),
			Array ( 'ext-bldg-paint'      , 'Painting the building exterior', '200 Lotherton Pathway' ),
			Array ( 'finished-balc-slab'  , 'Finished balcony slab', '200 Lotherton Pathway' ),
			Array ( 'finished-bldg-detail', 'Detail of the finished work', '200 Lotherton Pathway' ),
			Array ( 'painting-ext'        , 'Painting the building exterior', '200 Lotherton Pathway' )
		]
	}

/* Code */

var cgallery = '';

function DoChangePicture( xgallery, pic ) {
	document.getElementById("c_photo").innerHTML = "<table cellpadding='3' cellspacing='0' border='0' style='border: 1px #f4f46e solid; background: #2185c0; background: #3c3522; margin-bottom: 10px; width: 404px'><tr><td style='color: #f4f46e' align='center'><b>"+gallery[xgallery][pic][1]+"</b></td></tr></table><img width='400' height='400' src='pictures/"+gallery[xgallery][pic][0]+".jpg' style='border: 2px solid #fff'><table cellpadding='0' cellspacing='0' border='0' style='margin-top: 10px; width: 404px'><tr><td style='color: #fff' align='left'><b>"+gallery[xgallery][pic][2]+"</b></td></tr></table>";
}

function ChangePicture( xgallery, pic ) {
	return setTimeout("DoChangePicture('"+xgallery+"', "+pic+")", 500);
}

function PhotoAlbum( album ) {
	var chtml = '';
	cgallery = album;
	
	chtml = "<table cellpadding='4' cellspacing='3' width='100%'>";
		
	for( pic in gallery[ album ] ) {
		if( ! (pic % 3) ) chtml += "<tr>";
		chtml += "<td class='thumb'><img width='120' height='90' onmouseover='t"+pic+"=ChangePicture(\""+album+"\","+pic+")' src='pictures/"+gallery[album][pic][0]+"_sm.jpg' onmouseout='clearTimeout(t"+pic+")' style='border: 1px solid #111'></td>";
		if( (pic % 3) == 2 ) chtml += "</tr>";
	}
		
	chtml += "</table>";
	document.write( chtml );
}