<!--
//JavaScript for this site carefully hand-coded by absoluteTHINKING.com

//define global var for selected main portfolio section
var portfolioSelectionClicked = "empty"

//portfolio main section rollover funtion
function portfolioMainSectionRollover() {
	if ((document.images) && (preloadsComplete  == true)) {
   		//get selected section
		var portfolioSelection = portfolioMainSectionRollover.arguments[0]
		//get dotted down arrow src
		var portfolioSelectionDownArrowSource = document.images[portfolioSelection + "_dotted_down_arrow"].src
		
		//now see if the dotted down arrow src is set to the on state - if so, don't activate rollover - if not, do
		if (portfolioSelectionDownArrowSource.indexOf("dotted_down_arrow.gif") < 0){
			for (var i=0; i<portfolioMainSectionRollover.arguments.length; i+=2) {
      				document[portfolioMainSectionRollover.arguments[i]].src = eval(portfolioMainSectionRollover.arguments[i+1] + ".src");
    			}
		}
  	}
}


//portfolio subsection rollover function
function portfolioSubSectionRollover() {
	if ((document.images) && (preloadsComplete  == true)) {
		//get portfolio sub section and check for "empty"
		var portfolioSubSection = portfolioSubSectionRollover.arguments[1]
		
		if (portfolioSubSection.indexOf("empty") < 0){
			for (var i=0; i<portfolioSubSectionRollover.arguments.length; i+=3) {
    				//selection rollover
				document[portfolioSubSectionRollover.arguments[i]].src = eval(portfolioSubSectionRollover.arguments[i+1] + ".src");
				//lead image rollover
				document["lead_image_rollover"].src = eval(portfolioSubSectionRollover.arguments[i+2] + ".src");
    			}
		}
	}
}

//-->