function changeContent(content,nav){
//Start Aurora Page content
 if(content=="Intuitive"){
 	newcontent= "<h3>Who wants to spend time learning how to use software? </h3><p>With Aurora, there's virtually no learning curve. You'll go from download to expert in a matter of minutes. Aurora's ergonomic controls simplify the complex process of editing photos down to 9 easy controls; and organizing, sharing and storing is just as easy. <a href=\"aurora-overview-welcome\"  class=\"lbOnNew\">learn more ></a></p>";
 	before="swf_images/_MG_0891_before.jpg";
	after="swf_images/_MG_0891_after.jpg";
 }
 if(content=="Visual" ){
 	newcontent= "<h3>What you see, is what you get.</h3><p>Aurora's pop-up image selector lets you see your photos edited in a range of different ways; lighter to darker; softer to crisper; cooler to warmer—you get the picture—and lets you pick exactly the way you want your photo to look. <a href=\"aurora-visual-editing\"  class=\"lbOnNew\">learn more ></a></p>";
 		before="swf_images/0606D2x_0826_before.jpg";
	after="swf_images/0606D2x_0826_after.jpg";
 }
 if(content=="Powerful"){
 	newcontent= "<h3>Powerfully Simple.</h3><p>We use all sorts of sophisticated algorithms, and spent years studying how the human eye sees things—all to make Aurora work to reflect what you saw in real life when you took that photo. But despite all of Aurora's powerful capabilities, we've made it incredibly easy and intuitive for you to use. <a href=\"aurora-overview-welcome\"  class=\"lbOnNew\">learn more ></a></p>";
 	before="swf_images/IMG_1867_before.jpg";
after="swf_images/IMG_1867_after.jpg";
 }
 if(content=="Results"){
 	newcontent= "<h3>Your photos—the way you want them.</h3><p>It took a lot of work to simplify the complexities of editing, organizing, sharing and storing digital photos. But we were happy to do it. Aurora believes your photos should look great, and that getting them to look that way should be simple. <a href=\"aurora-overview-welcome\"  class=\"lbOnNew\">learn more ></a></p>";
 
 before="swf_images/IMG_4742_before.jpg";
	after="swf_images/IMG_4742_after.jpg";
 }
 //End Aurora Page
 
 //Start Homepage
 if(content=="Intuitive1"){
 	newcontent= "<h3>Who wants to spend time learning how to use software? </h3><p>With Aurora, there's virtually no learning curve. You'll go from download to expert in a matter of minutes. Aurora's ergonomic controls simplify the complex process of editing photos down to 9 easy controls; and organizing, sharing and storing is just as easy. <a href=\"aurora\">learn more ></a></p>";
 	before="swf_images/IMG_1995_before.jpg";
	after="swf_images/IMG_1995_after.jpg";
 }
 if(content=="Visual1"){
 	newcontent= "<h3>What you see, is what you get.</h3><p>Aurora's pop-up image selector lets you see your photos edited in a range of different ways; lighter to darker; softer to crisper; cooler to warmer—you get the picture—and lets you pick exactly the way you want your photo to look. <a href=\"aurora\">learn more ></a></p>";
 		before="swf_images/IMG_4658_before.jpg";
	after="swf_images/IMG_4658_after.jpg";
 }
 if(content=="Powerful1"){
 	newcontent= "<h3>Powerfully Simple.</h3><p>We use all sorts of sophisticated algorithms, and spent years studying how the human eye sees things—all to make Aurora work to reflect what you saw in real life when you took that photo. But despite all of Aurora's powerful capabilities, we've made it incredibly easy and intuitive for you to use. <a href=\"aurora\">learn more ></a></p>";
 	before="swf_images/CRW_8261_before.jpg";
	after="swf_images/CRW_8261_after.jpg";
 }
 if(content=="Results1"){
 	newcontent= "<h3>Your photos—the way you want them.</h3><p>It took a lot of work to simplify the complexities of editing, organizing, sharing and storing digital photos. But we were happy to do it. Aurora believes your photos should look great, and that getting them to look that way should be simple. <a href=\"aurora\" >learn more ></a></p>";
  before="swf_images/IMG_8382_before.jpg";
	after="swf_images/IMG_8382_after.jpg";
 }
 //END Homepage
for(i=1;i<5;i++){
	if(nav==i){
	document.getElementById("f"+i).setAttribute("class",'on');
	document.getElementById("f"+i).className = 'on';
	}else{
	document.getElementById("f"+i).setAttribute("class",'');
	document.getElementById("f"+i).className = '';
	}
}
before="http://www.lightcrafts.com/wp-content/themes/lightcrafts/"+before;
after="http://www.lightcrafts.com/wp-content/themes/lightcrafts/"+after;

document.getElementById('feature_message').innerHTML =newcontent;

//initialize();
//lbox = document.getElementsByClassName('lbOnNew');
lbox = document.getElementsByClassName('lbOnNew');
	for(i = 0; i < lbox.length; i++) {
		
		valid = new lightbox(lbox[i]);//this.activate.
	}
	if(document.getElementById('lbContent')){
		document.getElementById('lbContent').innerHTML ="";
	}


var playerVersion = swfobject.getFlashPlayerVersion(); 
// returns a JavaScript object
			var majorVersion = playerVersion.major;
			var flashvars = {};
					flashvars.beforeImage = before;
					flashvars.afterImage = after;
 					var params = {};
					var attributes = {
  						id: "aurora",
  						name: "aurora"
					};
				if (majorVersion<10) {
					
					swfobject.embedSWF("http://www.lightcrafts.com/wp-content/themes/lightcrafts/aurora.swf", "aurora", "924", "260", "9.0.0", false, flashvars, params, attributes);
				}else{
					window.status='10';
					swfobject.embedSWF("http://www.lightcrafts.com/wp-content/themes/lightcrafts/aurora_v2.swf", "aurora", "924", "260", "10.0.0", false, flashvars, params, attributes);
				}


}
