// voiceinthewild javascript

//---setting some variables for content change functions---

//---changing content functions
function writeDiv (name){
	
	if (name == 'buttons'){
		var stuff = document.getElementById('about')
		document.getElementById('about').innerHTML = "These buttons were designed to match the theme of completely redesigned webpage.  Pictures of the artists work showed some pieces hanging in windows to take advantage of the light.  <div id='flashexample'> Buttony things  </div>  <a href='javascript:deleteStuff()'>Close </a>this sample."
		loadFlash('button');
	}
	else if (name == 'logo'){
		var stuff = document.getElementById('about')
		
		document.getElementById('about').innerHTML = "This client requested that their orginal logo be animated as part of the web page opening.  This required rebuilding the entire horse from eight seperate graphics and building the animation in a timeline. <div id='flashexample'> Horsey stuff </div> <a href='javascript:deleteStuff()'>Close </a>this sample."																																																																																												  		 
		/**/	
		loadFlash('logo');
	}
}

function deleteStuff (){
	var stuff = document.getElementById('about')
	stuff.innerHTML = "Use the links above to view a variety of Flash work designed by Voice in the Wild. These samples were all contracted by clients to increase the impacts of their websites. <div id='flashexample'> (You will need Flash player installed to view these samples.) </div>"
	
	}
//---end of changing content functions

function loadFlash(example){
	if (example == 'button'){
		var so = new SWFObject('flash/swinging_sample.swf', 'mymovie', '360', '59', '6', '#FFFFFF');
		so.write('flashexample');
	}
	else if (example == 'logo'){
		var so = new SWFObject('flash/horseTitle_blank.swf', 'mymovie', '570', '174', '6', '#FFFFFF');
   		so.write('flashexample');
	}
}

//---> Code to set the progress bar of the quiz page
function updateProgress(){
	var section = document.getElementById('progress')
	alert (section)
	
}