// PRELOAD IMAGES
//nav1 = new Image();
//nav1.src = "images/pageElements/callout1_on.jpg";

swfobject.embedSWF("flash_header.swf", "flashHeader", "900", "394", "8.0", "expressInstall.swf");

function runSiteScripts() {
	//SIFR
	  var avantGarde = { src: 'avantGarde.swf' };
	  sIFR.activate(avantGarde) 
	  sIFR.replace(avantGarde, {
		selector: 'h1', 
		src: 'avantGarde.swf', 
		wmode: 'transparent',
		css: [ '.sIFR-root {color:#000000;}' ]
	  });
	  
	   var avantGarde = { src: 'avantGarde.swf' };
	  sIFR.activate(avantGarde) 
	  sIFR.replace(avantGarde, {
		selector: '.title h2', 
		src: 'avantGarde.swf', 
		wmode: 'transparent',
		css: [ '.sIFR-root {color:#53400f; text-align:center; margin:0;}' ]
	  });
	  
	    sIFR.replace(avantGarde, {
		selector: '#content h2', 
		src: 'avantGarde.swf', 
		wmode: 'transparent',
		css: [ '.sIFR-root {color:#53400f; text-align:left; margin:0;}' ]
	  });
}

function loadFeature(featureName, width, height, targetDiv) {

	var thisurl = location.href.substring(location.href.lastIndexOf("http://")+7, location.href.length); 
	var colorstxt = thisurl.substring(0, thisurl.lastIndexOf('/'))+"/colors.txt";
	
	var flashvars = { colorslocation: colorstxt};
	var params = { wmode: "transparent"};
	
	return swfobject.embedSWF("http://tools.televoxsites.com/features/"+ featureName +".swf", targetDiv, width, height, "6", "expressInstall.swf", flashvars, params);

}