//   *****************************************************
//   ***           web icon begin            ***
//   *****************************************************
document.write("<link rel='shortcut icon' href='/favicon.ico' type='image/ico'>")
//   web icon end 

function switchImg(img) {

var newString = img.substring(0, (img.length - 4)) + "_" + img.substring((img.length - 4), img.length);
//alert(newString)
//this.src = newString
alert(this.src)
}

var show_it = "visible"
var hide_it = "hidden"

function toggleLayer(id) {
	if(document.all) {var obj = document.all(id).style}
	if(document.getElementById){var obj = document.getElementById(id).style}
	if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
	if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
	if(obj.visibility == hide_it){obj.visibility = show_it}
	else {obj.visibility = hide_it}	
}

function showLayer(id) {
	if(document.all) {var obj = document.all(id).style}
	if(document.getElementById){var obj = document.getElementById(id).style}
	if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
	if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
	obj.visibility = show_it
}

function hideLayer(id) {
	if(document.all) {var obj = document.all(id).style}
	if(document.getElementById){var obj = document.getElementById(id).style}
	if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
	if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
	obj.visibility = hide_it
}

function hideAboutSeries(id) {
if (keep_showing != id && keep_showing != ""){
	hideLayer(id)
	showLayer (keep_showing)
	}
if (keep_showing == "") {hideLayer(id);hideLayer('aboutOutline');}
document.getElementById("bodycopy").innerHTML = "<p></p>"
}


function showAboutSeries(id) {
	if (keep_showing != ""){hideLayer(keep_showing)}
	showLayer(id)
	showLayer('aboutOutline');
	if (id == "imgPhilosophy"){document.getElementById("bodycopy").innerHTML = philosophy_text}
	if (id == "imgHistory"){document.getElementById("bodycopy").innerHTML = history_text}
	if (id == "imgServices"){document.getElementById("bodycopy").innerHTML = services_text}
}



function showProjectSeries(id) {
	var mImages = new Array("miArtsCenter","miCalla","miSnell","miCharles","miStraub", "miSignature", "mi475", "miSeybold");

	for (i = 0; i < mImages.length; i++){
		hideLayer(mImages[i]);
	}

	showLayer(id);
	showLayer('projectOutline');
}

function hideProjectSeries(id) {
	hideLayer(id)
	hideLayer('projectOutline');
}


function mainGray (id2){
// make other buttons gray
if (id2 != "mainAbout") {document.getElementById("mainAbout").src="images/build/main_about__.gif"}
if (id2 != "mainProjects") {document.getElementById("mainProjects").src="images/build/main_projects__.gif"}
if (id2 != "mainContact") {document.getElementById("mainContact").src="images/build/main_contact__.gif"}

// stroke highlighted button
if (id2 == "mainAbout") {document.getElementById("mainAbout").src="images/build/main_about_.gif"}
if (id2 == "mainProjects") {document.getElementById("mainProjects").src="images/build/main_projects_.gif"}
if (id2 == "mainContact") {document.getElementById("mainContact").src="images/build/main_contact_.gif"}

}

function mainUngray (){

document.getElementById("mainAbout").src="images/build/main_about__.gif";
document.getElementById("mainProjects").src="images/build/main_projects__.gif";
document.getElementById("mainContact").src="images/build/main_contact__.gif";

}



var timer
var timer2
var time_count = 300

function closeCounter(id){
	last2 = id; // so it will know which one to hide
	var timerbox = "hideLayer('"+id+"');mainUngray()"
	timer = setTimeout (timerbox, time_count)
}

function closeCounter2(id){
	var timerbox = "hideLayer('"+id+"'); "
	timer2 = setTimeout (timerbox, time_count)
}

var philosophy_text = "<p style='text-align: justify'>The architectural and urban design work of Clemmons Architecture consistently strives to meet two main goals with each project.  First, we attempt to understand and resolve the particular problem of the project. This can be creating an urban housing community that complements contemporary lifestyles or envisioning an enlarged venue for a local arts organization that successfully projects its image. </p><p style='text-align: justify'>Our second goal is to explore the potential of each project for its ability to promote a sense of community within its local environment. It is our belief that just as successful human organizations are composed of purposeful individuals who share common principles, successful communities are composed of singular architectural projects that together create a larger whole. So with each house we attempt to reinforce the local neighborhood, and with each commercial project to enhance the local public life.</p><p style='text-align: justify'>Consistent with our goals, most of the firm&rsquo;s work consists of urban infill projects and renovations of and additions to existing buildings and urban infill projects. The renovation projects have ranged in scale from modest single-family homes to large-scale commercial buildings, and have included both strict historic preservation projects as well as contemporary remodels. The infill projects vary from townhouses to private schools.</p>"

var history_text = "<p style='text-align: justify'>Clemmons Architecture is organized so that Tim Clemmons is principal-in-charge of each project and he remains intimately involved with the project from conception to completion. We know that clients need daily contact with the person who is able to make decisions for that project. Each project also has an architect or graduate architect as project manager whose role is to ensure the project meets its quality, cost and time goals.</p><p style='text-align: justify'>Finally, our organization and philosophy encourages community involvement of ourselves and our employees, and individually we have served on the boards of neighborhood associations, arts organizations, charitable groups and civic initiatives among others.</p>"

var services_text ="<p style='text-align: justify'>Clemmons Architecture specializes in urban architecture and design. Its work includes historic preservation of antique buildings and houses, renovation of older structures, and design of modern residences and businesses.</p><p>Our scope of services include:</p><p style='text-align: justify'>Architecture<br>Renovation<br>Master Planning</p>"


// horizontal scroller for thumbnails
var scroll_box_timer_horiz
k=0
var offset_amount = 621
function countTimeHoriz(direction){
//alert(direction)
	//document.form1.input.value = j
	document.getElementById("thumbs_inner").style.left = "-" + k + "px"
	if(direction == "right"){
		if(k < document.getElementById("thumbs_inner").offsetWidth - offset_amount){k = k + 2}}
	else{if(k > 0){k = k - 2}}
	scroll_box_timer_horiz = setTimeout("countTimeHoriz(\""+direction+"\")", 10)
}
