﻿function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function changeProjectPhoto(thumbnailName)
{
    document.getElementById('IMG1').style.display = 'inline';
    changeImages('ProjectPhoto', thumbnailName.substr(0, thumbnailName.length - 4) + '_full.jpg');
}

function adjustPictureSelectionHeight()
{
    var divHeight = document.body.clientHeight - 655;
    
    if(divHeight < 100)
    {
        divHeight = 100;
    }
    
    PictureSelectionDiv.style.height= divHeight + 'px';
}

function DisplayProject(id, storyBoardText)
{
    storyBoard.innerHTML = storyBoardText;
    
    var thumbnailDiv = document.getElementById("PictureSelectionDiv");
    var children = thumbnailDiv.childNodes;
    
    for(var i=0; i < children.length; i++)
    {
        if(children[i].className == "ThumbnailPreview")
            children[i].style.display = "none";
    }
		
	if (document.getElementById(id))
		document.getElementById(id).style.display = "inline";
	
	if (document.getElementById("IMG1"))
        document.getElementById("IMG1").style.display = "none";
} 


var storyBoard1 =   "Description of Kirkwood project.";

var storyBoard2 =   "<b>Reynolds House</b><br><br>" +
                    "New Construction – Installed Ludowici Spanish Tile on new residential construction.  " +
                    "All hip, ridge and flashing tiles are mortared in place.  Custom copper valleys, " +
                    "gutters and downspouts were fabricated from 16 ounce bright copper.";

var storyBoard3 =   "<b>St. Bartholomew Catholic Church, Columbus, Indiana</b><br><br>" +
                    "New Construction – Installed Atas Castle-Top Copper shingles as well as 16 ounce " +
                    "copper sheet metal fabrications on steeple.  Castle-Top shingle installation on " +
                    "several vertical wall applications as well.  Fabricated 16 ounce copper gutters, " +
                    "scuppers and downspouts to match roof system.";

var storyBoard4 =   "<b>Indiana University McCalla Hall, Bloomington Campus</b><br><br>" +
                    "Complete tear off of existing roof tile and replace with new Ludowici French Tile.  " +
                    "All areas of deteriorated decking were replaced.  We replaced the badly damaged metal " +
                    "cornice with new 16 ounce lead-coated copper fabrications that exactly match the original " +
                    "construction.  Lead-coated copper cornice was painted once installed to match the original " +
                    "look of the building.   New interior gutters were fabricated from 20 ounce lead-coated " +
                    "copper and all joints were soldered after installation.  All low slope roof areas were " +
                    "re-roofed with a .090 Firestone EPDM 30 year roof system after a complete tear off of " +
                    "the existing roofing and inspection of the decking.";