$(document).ready(function(){
	jQuery.fn.wrapInRows = function(html, rowSize) {
	rowSize = rowSize || 1;
	var items = this.get(),
		rows = [],
		cur = rows[0] = $(html);
	while (items[0]) {
		if (rows[rows.length - 1].children().length === rowSize) {
			cur = rows[rows.length] = $(html);
		}
		cur.append( items.shift() );
	}
	return this.pushStack(rows);
	};
	$('#slideshow ul li').wrapInRows('<li class="slides">', 3).appendTo('#slideshow ul');
	$('#slideshow ul li li:nth-child(1)').wrapInner('<a href="/about-us/mission/index.aspx?pillar=1">');
	$('#slideshow ul li li:nth-child(2)').wrapInner('<a href="/about-us/mission/index.aspx?pillar=2">');
	$('#slideshow ul li li:nth-child(3)').wrapInner('<a href="/about-us/mission/index.aspx?pillar=3">');
	$("#slideshow ul").cycle({ fx: 'fade', speed: 1500, timeout: 5000, random: false, height: '290px' });
});
