// JavaScript Document
var clients = {"bottle":"Internal Project","miele":"Miele, Germany","intel":"Intel","clorox":"Clorox","dreamdive":"Collano, Switzerland","jelly":"Internal Project","port":"Port of Portland","ikea":"Internal Project","solarpetals":"Veranda Solar","solarjewelry":"Internal Project with the participation of Sunpower Corporation","cupright":"Internal Project","sonicinema":"soniCinema, Capra's design consultancy"};
var projects = {"bottle":"droplet, collapsible 36 ounce water bottle","miele":"Miele Meals Organic Master Chef Program","intel":"Intel Inside Marketing Website, Intel Marketing Content Portal, Virtualization B2B Communication Piece, VIIV Campaign mini site","clorox":"Sanctuary: Sustainability Needfinding Initiative","dreamdive":"dreamdive: accessory for the urban nomad","jelly":"lamp","port":"Marine, Infrastructure, Lightrail and Airport project communications","ikea":"Sustainability Needfinding Initiative","solarpetals":"Solar Petals, scalable solar panel systems","solarjewelry":"Solar Jewelry, taking solar off the roof","cupright":"c(up)right, bike drink holder","sonicinema":"Logomation"};
var teams = {"bottle":"Capra J'neva","miele":"Capra J'neva","intel":"for ID Branding, Creative Media Development and Hanlon Brown","clorox":"Capra J'neva, Carissa Carter, Daisy Chung, Celeste Roschuni","dreamdive":"Capra J'neva, Anders Nielsen, Anna Jost, Mario Weiss, Joelle Abels, Luzia Kaelin, Marc Hangartner","jelly":"Capra J'neva","port":"Capra J'neva, Paul Campbell","ikea":"Capra J'neva, Jim Castellaz, Simon Weiss","solarpetals":"Capra J'neva, Emilie Fetscher","solarjewelry":"Capra J'neva, Emilie Fetscher","cupright":"Capra J'neva","dashboard":"Capra J'neva"};
var info = {"bottle":"This collapsing water bottle folds up so small, it can be always by your side.","miele":"Miele Meals help Americans with busy lifestyles create a gourmet organic dinner with only five minutes of prep time.","intel":"Identity transition and a new virtualization program animation.","clorox":"Clorox wanted to know if they were on track with their new sustainable product line.  What did customers really want from a sustainable cleanser?","dreamdive":"Our international team studied the needs of the mobile office.","jelly":"A lamp with interchangeable silicon gels, to change the mood of a room on the fly.","port":"Large-scale infrastructural development projects needed sensitive communication to inform and enroll multiple stakeholders.","ikea":"Our team looked at making Ikea greener than it already is through materials and design for recycling.","solarpetals":"Solar Petals usher in a new era of solar power for the masses with simple  installation and scalable plug-&-play inverters.","solarjewelry":"Solar Jewelry let's solar panel owners bring their commitment to the planet off their roof and out into the world with them as a status symbol.","cupright":"Hands-free stability for a cup of joe on the go.","sonicinema":"A sample logomation.  Also see <a href='/inspiration/' target=_blank>www.firebulb.com/inspiration/</a> an animation for children's software developer Inspiration."};
function FlashInstalled()
{
	result = false;
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	} else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)) {
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}
function FlashWrite(src)
{
	var flashBox = document.getElementById('flash').innerHTML;
	thisClient = clients[src];
	thisProject = projects[src];
	thisTeam = teams[src];
	thisInfo = info[src];
	document.getElementById('flash').innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11" WIDTH="607" HEIGHT="404" NAME=sw ID=sw>	<PARAM NAME=movie VALUE="images/' + src + '.swf"> <PARAM NAME=quality VALUE=high><PARAM NAME=Loop VALUE=true><PARAM NAME=play VALUE=true><EMBED src="images/' + src + '.swf" quality=high  swLiveConnect=FALSE WIDTH="607" HEIGHT="404" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>';
	document.getElementById('closer').innerHTML='<a href="" onMouseDown="closeFlash();"><img src="images/closer.jpg" width="10" height="10" alt="close window" border="0"></a>';
	document.getElementById('caption').innerHTML='<p>Client: '+thisClient+'<br>Project: '+thisProject+'<br>Team: '+thisTeam+'<br>'+thisInfo;
}
function play(src,type){
//alert('playing');
	if (type=='flash'){
		if (FlashInstalled()) FlashWrite(src);
		else document.write('<p class="col2">Flash is required to view this website. Please <A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download the Flash Player</p>');
	}
	else{
		thisClient = clients[src];
		thisProject = projects[src];
		thisTeam = teams[src];
		thisInfo = info[src];
		document.getElementById('flash').innerHTML='<img src="images/' + src + '.jpg" width=607 height=404 alt="' + src + '" border=0>';
		document.getElementById('closer').innerHTML='<a href="" onMouseDown="closeFlash();"><img src="images/closer.jpg" width="10" height="10" alt="close window" border="0"></a>';
		document.getElementById('caption').innerHTML='<p>Client: '+thisClient+'<br>Project: '+thisProject+'<br>Team: '+thisTeam+'<br>'+thisInfo;
	}
}
function closeFlash(){
	document.getElementById('flash').innerHTML='';
	document.getElementById('closer').innerHTML='';
	document.getElementById('caption').innerHTML='';
}