<!--
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function switchImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<switchImages.arguments.length; i+=2) {
			document[switchImages.arguments[i]].src = switchImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function loadIt() {
  if (document.images) {
    about_v2 = newImage("../i/about_v1.gif");
    about_v3 = newImage("../i/about_v2.gif");
    about_v4 = newImage("../i/about_v3.gif");
    svcs_v2 = newImage("../i/svcs_v1.gif");
    svcs_v3 = newImage("../i/svcs_v2.gif");
    svcs_v4 = newImage("../i/svcs_v3.gif");
    contact_v2 = newImage("../i/contact_v1.gif");
    contact_v3 = newImage("../i/contact_v2.gif");
    contact_v4 = newImage("../i/contact_v3.gif");
    project_v2 = newImage("../i/project_v1.gif");
    project_v3 = newImage("../i/project_v2.gif");
    project_v4 = newImage("../i/project_v3.gif");
    progress_v2 = newImage("../i/progress_v1.gif");
    progress_v3 = newImage("../i/progress_v2.gif");
    progress_v4 = newImage("../i/progress_v3.gif");
    code_v2 = newImage("../i/code_v1.gif");
    code_v3 = newImage("../i/code_v2.gif");
    code_v4 = newImage("../i/code_v3.gif");
    preloadFlag = true;
  }
}

function funkIt(nom,i) {
	switchImages(nom,i);
	return true;
}

var tipHonest = "We never mislead our clients with the notion that the impossible can be done. Our diverse experience and quick-action vision allow us to anticipate changes and complications in advance and provide immediate, alternative, feasible solutions that meet our clients\' design goals.";
var tipFunction = "As an at-risk contractor, we select only those trade affiliates that have compatible values to our own and we partner with owners, architects, contractors and suppliers to define a clear scope of work, determine construction feasibility, assist in design and materials selection and set schedules - all while maintaining open communications so that every project proceeds productively and successfully to plan.";
var tipCost = "At a time of escalating construction costs, we are committed to maintaining expenses at the lowest level possible. Therefore we provide non-union construction services using only pre-qualified subcontractors that keep costs to a minimum without sacrificing craftsmanship, safety and design expectations.";
var tipMove = "We provide innovative ideas that give our clients the edge they\'re looking for. We stay abreast of industry trends and consistently upgrade our technology and subcontractors to ensure the highest quality equipment and construction techniques to date with the utmost in flexibility to meet challenging project demands.";
var tipPro = "When our clients call, they never reach a long-winded, confusing or automated system response. No matter what the situation, our staff remains friendly and resourceful and makes sure every question is answered fully and every concern addressed completely in a timely, courteous manner.";
var tipKeep = "Our continued existence and success depends on our client\'s satisfaction. Therefore, we strive for 100% approval and acceptance at every project phase to achieve results nothing short of perfection.";

var content=new Array();
content[0]='<p class="q"><span>100% Satisfaction guaranteed</span>.';
content[1]='<p class="q"><span>Creative Solutions - Advanced Technology - Design Excellence</span>';
content[2]='<p class="q"><span>We say what we mean and do what we say. We deliver as promised</span>.';
content[3]='<p>&nbsp;</p>';

function generate(){
window.location.reload();
}
function generate2(){
if (document.layers){
appear();
setTimeout("window.onresize=generate",450);
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions;
cross_el.innerHTML=''+whichcontent+'';
}
else if (document.layers){
document.d1.document.d2.document.write(''+whichcontent+'');
document.d1.document.d2.document.close();
	}
}

function appear(){
document.d1.visibility='show';
}

function pop(nomen,wind) {
	window.open(nomen,wind,'height=429,width=550,scrollbars=no,resizable=no');
}

function pop_v1(nomen,wind) {
	window.open(nomen,wind,'height=550,width=700,scrollbars=yes,resizable=no');
}

function pop_v2(nomen,wind) {
	window.open(nomen,wind,'height=466,width=550,scrollbars=no,resizable=no');
}

function pop_v3(nomen,wind) {
	window.open(nomen,wind,'height=500,width=550,scrollbars=no,resizable=no');
}


/***********************************************
* Switch Content script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)

var contractsymbol='<img src="../i/triangle2.gif" alt="expanded">' //HTML for contract symbol. For image, use: <img src="whatever.gif">
var expandsymbol='<img src="../i/triangle.gif" alt="contracted">' //HTML for expand symbol.


if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}


function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(curobj, cid){
var spantags=curobj.getElementsByTagName("SPAN")
var showstateobj=getElementbyClass(spantags, "showstate")
if (ccollect.length>0){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ //if "showstate" span exists in header
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function revivestatus(){
var inc=0
while (statecollect[inc]){
if (ccollect[inc].style.display=="block")
statecollect[inc].innerHTML=contractsymbol
else
statecollect[inc].innerHTML=expandsymbol
inc++
}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
var alltags=document.all? document.all : document.getElementsByTagName("*")
ccollect=getElementbyClass(alltags, "switchcontent")
statecollect=getElementbyClass(alltags, "showstate")
if (enablepersist=="on" && ccollect.length>0){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
if (ccollect.length>0 && statecollect.length>0)
revivestatus()
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate

//-->
