function writeRandomImage() {
	var imgs = ['img/homeCoffee.gif', 'img/homeDecorator.gif', 'img/homeEleven.gif', 'img/homeGuilt.gif', 'img/homeMiddle.gif', 'img/homePiggy.gif', 'img/homePlatinum.gif', 'img/homeStopwatch.gif', 'img/homeSwap.gif'];
	var randomnumber=Math.floor(Math.random()*imgs.length);
	
	document.write('<img src="'+imgs[randomnumber]+'" id="contentimg" alt="" />');
}
function writeCurrDate() {
	var txt_weekdays = ["Sunday","Monday","Tuesday","Wednesday",
						"Thursday","Friday","Saturday"];
    var txt_months =  ["", "January", "February", "March", "April",
						"May", "June", "July", "August", "September", "October", "November",
						"December"];
	var currentTime = new Date();
	var month = currentTime.getMonth() + 1;
	var day = currentTime.getDate();
	var weekday = currentTime.getDay();
	var year = currentTime.getFullYear();
	document.write(txt_weekdays[weekday]+', '+txt_months[month] + " " + day + ", " + year);
}

/*
statements = [	'<a href="casestudy01.html">We have reduced cost by putting in a middle man...</a>',
				'<a href="casestudy02.html">\'Visual Guilt\' is worth 15% in savings...</a>',
				'<a href="casestudy03.html">Do you know how much platinum there is in a network router? ...</a>',
				'<a href="casestudy04.html">A cup of coffee is our most effective purchasing tool...</a>',
				'<a href="casestudy05.html">Do you know you can swap things for free TV ads?...</a>',
				'<a href="casestudy06.html">We like a good decorator...</a>',
				'<a href="casestudy07.html">We recently saved a client &pound;10m in less than 45 minutes...</a>',
				'<a href="casestudy08.html">Last year we saved almost $100m for a client in the leisure sector...</a>',
				'<a href="casestudy09.html">We once seved &pound;11m on a budget of &pound;9m...</a>',
				'<a href="casestudy10.html">There are always plenty of hidde savings to be found...</a>',
				


				
				
				];
	
randomnumbers = [];

randomStatements();
	
function randomStatements() {
	
	var randomnumber = Math.floor(Math.random()*statements.length);
	randomnumbers = [randomnumber];
	while (randomnumbers.length != statements.length) {
		randomnumber=Math.floor(Math.random()*statements.length);
		if (randomnumbers.indexOf(randomnumber) == -1) {
			randomnumbers[randomnumbers.length] = randomnumber;
		}
	}
}
*/
if(typeof(jQuery) != 'undefined') {
	jQuery(document).ready(function() {

		jQuery('#accordion').accordion({
				autoheight: false,
				event: 'click',
				header: 'a'
			});
	});
}
