function ShowImageLarge(showhide) {
	if (showhide == 'hide') {
		document.getElementById('image_large').style.display = 'none';
	} else {
		document.getElementById('image_large').style.display = 'block';		
	}
}
function HideOneDiv(div_id) {
	if (document.getElementById(div_id)) { 
		divtohide = document.getElementById(div_id); 
		divtohide.style.display = 'none';
	} else {
		alert('err');
	}
}
function ShowOneDiv(div_id) {
	if (document.getElementById(div_id)) {
		divtoshow = document.getElementById(div_id); 
		divtoshow.style.display = 'block';
	} else {
		alert('err');
	}
}


function random_quotes(div_id,lastNumber) {

	var r_quotes = new Array ();
	r_quotes.push('<p>QUOTE_O It seems essential, in relationships and all tasks, that we concentrate only on what is most significant and important. QUOTE</p><i>Kierkegaard</i>');
	r_quotes.push('<p>QUOTE_O Careers can only be understood backwards; but they must be lived forward. QUOTE</p><i>Kierkegaard</i> <span class="font_smaller">(adapted – the actual quote refers to "life", not "careers")</span>');
	r_quotes.push('<p>QUOTE_O Principles and rules are intended to provide a thinking man with a frame of reference. QUOTE</p><i>Clausewitz</i>');
	r_quotes.push('<p>QUOTE_O Entrepreneurs are simply those who understand that there is little difference between obstacle and opportunity and are able to turn both to their advantage. QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O One change always leaves the way open for the establishment of others. QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O The first method for estimating the intelligence of a ruler is to look at the men he has around him. QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O The question is, then, do we try to make things easy on ourselves or do we try to make things easy on our customers, whoever they may be? QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things. QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O Who wishes to be obeyed must know how to command. QUOTE</p><i>Machiavelli</i>');
	r_quotes.push('<p>QUOTE_O Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong remedies. QUOTE</p><i>Groucho Marx</i>');
	r_quotes.push('<p>QUOTE_O Opportunities multiply as they are seized. QUOTE</p><i>Sun Tzu</i>');
	r_quotes.push('<p>QUOTE_O Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat. QUOTE</p><i>Sun Tzu</i>');
	r_quotes.push('<p>QUOTE_O To see victory only when it is within the ken of the common herd is not the acme of excellence. QUOTE</p><i>Sun Tzu</i>');
	r_quotes.push('<p>QUOTE_O It\'s absolutely impossible but it has possibilities. QUOTE</p><i>Sam Goldwyn</i>');
	r_quotes.push('<p>QUOTE_O Never make forecasts, especially about the future. QUOTE</p><i>Sam Goldwyn</i>');
	r_quotes.push('<p>QUOTE_O You never get a second chance to make a first impression. QUOTE</p><i>Sam Goldwyn</i>');
	r_quotes.push('<p>QUOTE_O Non solum fumo speculisque, sed etiam tintinnabulis fistulisque factum est. QUOTE</p><i>Allegedly a senior civil servant on a major NHS IT programme.</i>');
	r_quotes.push('<p>QUOTE_O Not everything that counts can be counted and not everything that can be counted counts. QUOTE</p><i>Einstein</i>');
	r_quotes.push('<p>QUOTE_O If you want things to stay as they are, things will have to change. QUOTE</p><i>Giuseppe di Lampedusa</i>');

	var i = Math.round((r_quotes.length-1)*Math.random());
	while (i == lastNumber) { //not the same number twice...
		var i = Math.round((r_quotes.length-1)*Math.random());
	}
	
	var lastNumber = i;
	var openQuote = '<img src="img/quote_open.png" id="quote_open">';
	var closeQuote = '<img src="img/quote_close.png" id="quote_close">';
	var openQuote = '';
	var closeQuote = '';
	var selected_quote = r_quotes[i];
			selected_quote = selected_quote.replace('QUOTE_O ',openQuote);
			selected_quote = selected_quote.replace(' QUOTE',closeQuote);
	var returnstring = selected_quote;

	var quotes_delay = 5000;
	setTimeout('random_quotes(\'quotes\','+lastNumber+')', quotes_delay);

	if (document.getElementById(div_id)) { 
		div_content = document.getElementById(div_id); 
		div_content.innerHTML = returnstring;
	} else {
		alert('err');
	}
	setTimeout('random_quotes(div_id,lastNumber)', quotes_delay);
}

