$(function(){  
	
	// round the corners of our panels
/*	$(".content .panel").each( function(i) { 
		// assign a unique id to each one (required for this plugin)
		$(this).attr("id",'panel-'+i);
		$('#panel-'+i).corners({ radio:10 }) 
	});*/
	
	/*$(".service-snippet").each( function(i) { 
		// assign a unique id to each one (required for this plugin)
		$(this).attr("id",'panel-'+i);
		$('#panel-'+i).corners({ radio:10 }) 
	});*/

	// Loop over each product, adding a click event that redirects to the link in the h2
	$( ".service-snippet" ).each(
		function( intIndex ){
			var link = $(this).contents().find("a").attr("href");
			$( this ).bind (
				"click",
				function(){
					window.location = link;
				}
			);
		}
	);
	
	// news ticker tape on home page
	$('#news_ticker').vTicker({
		speed: 500,
		pause: 4000,
		showItems: 1,
		animation: 'fade',
		mousePause: true,
		height: 34,
		direction: 'up'
	});



	
	fontResizer('125%','140%','160%');
	
	$('.columnize').columnize({columns:2, lastNeverTallest:true});
	$('.slideshow').cycle({timeout:10000});
	
/*	var colour = $("#page-colour").html();
	
	// add colour ticks to li elements
	$(".content li:not(.treeview li)").css("background-image", "url(includes/phpthumb/phpThumb.php?src=../../images/tick.png&f=png&fltr[]=clr|45|"+colour+")");*/
	
	$("#topNav li ul").mouseover(function() {
		$(this).css("z-index", "2000");
	});
	
	//$('ul#topNav').superfish( { autoArrows:false, dropShadows:false } );
	
	$("#news-archive").treeview({
		animated: "medium",
		collapsed: true,
		unique: true
	});
});
