function writeEmail(link)
{
	document.write('<a href="mailto:' + link + '@prisminvestments.com">' + link + '@PRISMinvestments.com</a>' )
}


var balzac = '<a href="/opportunities/balzac/balzac.htm"><img src="/images/property-balzac.gif" alt="Feature Property: Balzac Commercial Campus" border="0"></a>'
var prism_place = '<a href="/opportunities/prism_place/prism_place.htm"><img src="/images/property-prism-place.gif" alt="Feature Property: PRISM PLACE" border="0"></a>'var heritage_hills = '<a href="/opportunities/heritage-hills/heritage-hills.htm"><img src="/images/property-heritage-hills.gif" alt="Feature Property: Heritage Hills Plaza" border="0"></a>'projects=new Array('balzac','prism_place','heritage_hills')





function insertFooterBanner(target)
{
var so = new SWFObject("/images/footer-middle.png", "featureBanner", 463, 139, "6", "#ffffff"); // SWFmovie, id, width, height, version, background

if(window.featureProperty)
	{
		so.addVariable("featureProperty", window.featureProperty);
	}
so.useExpressInstall('/library/expressinstall.swf');
so.write(target);
}

function insertProjectImage()
{
		num = Math.random() * projects.length
		num = Math.floor(num);
		if(projects[num] == window.featureProperty)
			{
			num++
				if(num == projects.length)
					{
					num = 0	
					} 	
			}
		document.write(eval(projects[num]))
}



function insertH1Flash()
{
	if(document.getElementById)
		{
			target =document.getElementById('h1Flash')
			var headerText =target.innerHTML
			target.className = "h1Flash"
			var so = new SWFObject("/swf/h1.swf", "h1Banner", 600, 27, "8", "#ffffff"); // SWFmovie, id, width, height, version, background
			so.addVariable("headerText", headerText)
			so.useExpressInstall('/library/expressinstall.swf');
			so.write('h1Flash');
			
		}
}

function insertBanner(link)
{
		var so = new SWFObject("/swf/" + link + ".swf", "h1Banner", 600, 254, "8", "#ffffff"); // SWFmovie, id, width, height, version, background
		so.useExpressInstall('/library/expressinstall.swf');
		so.write('h1Flash');
}


