$(document).ready(function() {
	// allow css to validate
	$('#jqb_object > .jqb_bar').css('opacity', '0.7');
	$('#jqb_object > .jqb_bar').css('filter', 'alpha(opacity=50)');
	
	//paginate news
	var options = {
	  	pageSize: 10,
		currentPage: 1,
		holder: null,
		pagerLocation: "before"
	}

	$('ul#news-list').quickPager(options);
	
	
	// create pop up link for CQC
	$('a').click(function() {
		if($(this).attr('href') == '2010-survey') {
			window.open('/2010-survey', '', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=890,height=430');
			return false;
		}
	});
	
	// add shadow to internal images
	$("img.default-img").dropShadow({left: 5, top: 5, opacity: 0.8, blur: 5, color: '#000000'});
	/*$(".news-image img").dropShadow({left: 5, top: 5, opacity: 0.8, blur: 5, color: '#000000'});*/
	
	// make small print
	var pathname = window.location.pathname;
	if(pathname == '/legal') {
		$('body .content').css('font-size', '0.9em');
	}
		

	
});
