/*! MARAC General v1 <http://nvinteractive.co.nz>
	Copyright (c) NV Interactive
	
	References:
		jquery-1.2.6.js
		
	Release Notes:

		
*/

ch_ui = function(){
	
	document.write('<style type="text/css">');
	document.write("body {visibility: hidden;} ");
	document.write('</style>');
	
	var init = function(){
		$("body").css( {visibility: "visible"} );

		//Add arrows to heading links
		$("#content :header a").append(" <span class='icon_more'>&nbsp;</span>");
		
		//Turn read more text into buttons
		$("#content a:contains('Read more'):not(.button)").addClass("button").html("<strong>Read more <span class='icon_more'>&nbsp;</span></strong>").wrap("<div class='button_set'></div>");
		
		//Add custom classes to form elements
		$(":text, :password, textarea").addClass("field");
		
		//Add pdf class to all downloadable pdfs
		$("#content a[href$='pdf']").addClass("pdf");
		
		//Zebra striping
		$("tr:even").addClass("even");
		
		$('.gallery_item a').lightBox();
		
		$('.gallery_item span').css('opacity', '.7');
	}	
	
	return {
	/* Public API
	*/
	init: init
	}
		
}();


$(document).ready(ch_ui.init);

