////////////////////////////////////////////////
// JavaScript Functions for the MePSS Webtool //
// Written by: Nathan Waelkens (imigo.nl)     //
////////////////////////////////////////////////


/////////////////////////////////////
//   

var object='dn1';
var color='#f0f0ff';



/////////////////////////////////////
//   Replaces HTML on the fly

function replaceHtml(boxId, replaceWith) 
  {
	document.getElementById(boxId).innerHTML = replaceWith;
	return true;
  }

/////////////////////////////////////
//   Change a HTML Property on the fly

function replaceBgColor(id, value) 
  {
	document.getElementById(id).bgColor=value;
	return true;
  }

/////////////////////////////////////
//   Content Description box 1_phases
var contextLinkText = "Read more...";
var contextLink = new Array(14);
contextLink[0] = "";
contextLink[1] = "handbook_part2/PHASE%201.%20STRATEGIC%20ANALYSIS/index.html";
contextLink[2] = "handbook_part2/PHASE%202.%20EXPLORING%20OPPORTUNITIES/index.html";
contextLink[3] = "handbook_part2/PHASE%203%20.%20PSS%20IDEA%20DEVELOPMENT/index.html";
contextLink[4] = "handbook_part2/PHASE%204.%20PSS%20DEVELOPMENT/index.html";
contextLink[5] = "handbook_part2/PHASE%205.%20%20PREPARING%20FOR%20IMPLEMENTATION/index.html";
contextLink[6] = "";
contextLink[7] = "";
contextLink[8] = "";
contextLink[9] = "handbook_part2/DECISION%20NODE%202/index.html";
contextLink[10] = "handbook_part2/DECISION%20NODE%203/index.html";
contextLink[11] = "handbook_part2/DECISION%20NODE%204/index.html";
contextLink[12] = "handbook_part2/DECISION%20NODE%205/index.html";
contextLink[13] = "handbook_part2/DECISION%20NODE%206/index.html";

var textString = new Array(14);	
textString[0] = ("<div class=boxheader2>Description</div><div id=description_text_box>Focus on an item in the model</div>");
textString[1] = ("<div class=boxheader2>Strategic Analysis</div><div id=description_text_box>Main objectives:<br>To find the innovation process direction with the help of a general overview of the strategic issues at stake (stakeholders, regulation, boundary conditions, technologies, business culture, etc…)</div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[1] + " target=_blank>" + contextLinkText + "</a></div>");
textString[2] = ("<div class=boxheader2>Exploring Opportunities</div><div id=description_text_box>Main objectives:<br>To generate a panorama of contrasted scenarios and related sustainable PSS ideas.</div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[2] + " target=_blank>" + contextLinkText + "</a></div>");
textString[3] = ("<div class=boxheader2>PSS Idea Development</div><div id=description_text_box>Main objectives:<br>To shape the selected PSS ideas in more depth (make final selections in case of multiple PSS ideas)</div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[3] + " target=_blank>" + contextLinkText + "</a></div>");
textString[4] = ("<div class=boxheader2>PSS Concept Design</div><div id=description_text_box>Main objectives:<br>To develop the detailed functionalities of the PSS selected, model the system and make check on its viability and sustainability.</div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[4] + " target=_blank>" + contextLinkText + "</a></div>");
textString[5] = ("<div class=boxheader2>Development and Implementation</div><div id=description_text_box>In this new round, where large budgets and markets are at stake, a strict and well-documented project management approach should be followed. The Prince2 project management method is recommended.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[5] + " target=_blank>" + contextLinkText + "</a></div>");

textString[6] = ("<div class=boxheader2>Information Layer</div><div id=description_text_box>Contains the main deliverables<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[6] + " target=_blank>" + contextLinkText + "</a></div>");
textString[7] = ("<div class=boxheader2>Actors Layer</div><div id=description_text_box>Presents the involved actors.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[7] + " target=_blank>" + contextLinkText + "</a></div>");

textString[8] = ("<div class=boxheader2>Decision Node 1</div><div id=description_text_box>At the first decision node meeting, the management (board) will decide on the actual start of the PSS innovation project and will give her commitment to start the MEPSS innovation project and give her recommendations in the execution of the first phase.<br></div>");
textString[9] = ("<div class=boxheader2>Decision Node 2</div><div id=description_text_box>At the second decision node meeting, the management (board) will decide analyse the finalised project plan and the estimated potential of the PSS project, based on the finding of the steps executed in Phase 1.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[9] + " target=_blank>" + contextLinkText + "</a></div>");
textString[10] = ("<div class=boxheader2>Decision Node 3</div><div id=description_text_box>At the third decision node meeting, the management (board) will decide on the continuation of the PSS project, now that the opportunities have been widely explored in phase 2 of the project.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[10] + " target=_blank>" + contextLinkText + "</a></div>");
textString[11] = ("<div class=boxheader2>Decision Node 4</div><div id=description_text_box>At the fourth decision node meeting, the management (board) will decide on the continuation of the PSS project, now that that a PSS idea has been selected<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[11] + " target=_blank>" + contextLinkText + "</a></div>");
textString[12] = ("<div class=boxheader2>Decision Node 5</div><div id=description_text_box>Making the final decision for starting the actual implementation of the selected PSS project in the company.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[12] + " target=_blank>" + contextLinkText + "</a></div>");
textString[13] = ("<div class=boxheader2>Decision Node 6</div><div id=description_text_box>Installing monitoring and control system (Prince2) during excution of implementation process.<br></div><div class=boxheader2><img src=images/book-icon.gif border=0 /> <a href=" + contextLink[13] + " target=_blank>" + contextLinkText + "</a></div>");


//////////////////////////////////////////////////////////////////////////////////////////
//                                                                                      //
//      Rollover Functions from MacroMedia                                              //
//                                                                                      //
				function MM_swapImgRestore() //written by MacroMedia
					{
					var i,x,a=document.MM_sr; 
					for (i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
					}
				
				function MM_preloadImages() //written by MacroMedia
					{  
					var d=document; 
					if(d.images)
						{ 
						if(!d.MM_p) d.MM_p=new Array();
						var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
						for (i=0; i<a.length; i++)
						if (a[i].indexOf("#")!=0)
							{ 
							d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
							}
						}
					}
				
				function MM_findObj(n, d) //written by MacroMedia
					{
					var p,i,x;  
					if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) 
						{
						d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
						}
					if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
					for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
					if(!x && d.getElementById) x=d.getElementById(n); 
					return x;
				}
				
				function MM_swapImage() //written by MacroMedia
					{ 
					var i,j=0,x,a=MM_swapImage.arguments; 
					document.MM_sr=new Array; 
					for(i=0;i<(a.length-2);i+=3)
					if ((x=MM_findObj(a[i]))!=null)
						{
						document.MM_sr[j++]=x; 
						if(!x.oSrc) x.oSrc=x.src;
						x.src=a[i+2];
						}
					}
//                                                                                      //
//                                                                                      //
//////////////////////////////////////////////////////////////////////////////////////////


