// JavaScript Document

<!--
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}

function toggleDiv(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
   obj.position = document.layers ? (iState ? "relative" : "absolute") :
   (iState ? "relative" : "absolute");
}

function setClickColor(obj) {
   obj.style.color = '#ffa800';
}


function show(name,src,thumb) {
    if (document.images)
        document.images[name].src = src;
		
		//remove/highlight border
		//var i=1;
		//for (i=1;i<=6;i++) {
		//document.images["picPortfolioTh_"+i].style.border = "1px solid #262626";
		//}
		
		//document.images["picPortfolioTh_"+thumb].style.border = "1px solid #836e31";
}


//copyright and footer
var copyright = "&copy; 2010 RSS Architecture, Inc.";

//portfolio menus
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var url = location.href.substring(dir.length,location.href.length+1);


//mini services pages dropdown redirection
function go(what) {
    value = what.options[what.selectedIndex].value;
    top.location.href = value;	
}

function select(what) {
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    document.getElementById(what).value = sPage;
}

var serv_byline = "<p>Visit <a href=\"http://www.rssarchitecture.com\">www.rssarchitecture.com</a> or call us at (650) 802-6865.</p>"
		

// -->