
// --- Start javascript code --- //
// Developed by Kasper digitale media - © 2010

// Please don't edit anything below apart from the indicated areas, recognizable by //--- edit below ---//
// What do you need to edit to add one page?

// 1. add a new case line to the code indicated below


// --- Main functionality of the script ---
// Load 2 background images based on the page currently loaded.
// This means every page defined in the script can have different background images.

function whichquote()
{

var randomnumber=Math.floor(Math.random()*6);

// switch - case, check which case is in order here and put the according data in the variable result.

switch (randomnumber) {	
//--- edit below ---//

//--- enter possibilties, copy one line, then edit it. Last line is default line

case 0: quote = 'Communicating when the crisis is at its peak is too late.'; break;
case 1: quote = 'Communicating properly with all stakeholders creates a vast amount of goodwill'; break;
case 2: quote = 'Communicate internally first, and only then externally.'; break;
case 3: quote = 'An event is always a means, never an end.'; break;
case 4: quote = 'Your own employees are the best advocates for your company or organisation.'; break;
case 5: quote = 'PR paves the way for marketing.'; break;
default: quote = 'Communicating when the crisis is at its peak is too late.';


//--- don't edit below this point ---//

}

// get the container that will contain the quote
  var container = document.getElementById('right');

// create a div object (<div></div>)
  var newdiv = document.createElement('div');
// add id with value 'quote' (id='quote')
  newdiv.setAttribute('id','quote');
// put real quote in the newly made div
  newdiv.innerHTML = quote;

// append the container div with the new div 
 container.appendChild(newdiv);


}

// --- End Javascript code --- //