function showDiv(id) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.display = "block";
}

function hideDiv(id) {
	document.getElementById(id).style.visibility = "hidden";
	document.getElementById(id).style.display = "none";
}

function changeDiv(id, id1) {
	if(document.getElementById(id).checked) {
		showDiv(id1);
	} else {
		hideDiv(id1);
	}
}


function trim(str) {
	if(typeof(str)=="string") {
		return str.replace(/^\s+|\s+$/g, "");
	 } else {
		 return str;
	 }
}


$(function() {
	$("#printlink").colorbox({
		transition: 'elastic',
		speed: '200',
		width: '65%',
		height: '75%',
		iframe: true
	});
	
	
	// news details
	$('#news-single-img').easySlider({
		prevText: '',
		nextText: '',
		speed: 800,
		pause: 2000
	});
	
	$("#news-single-img a[target=colorbox]").colorbox({
		transition: 'elastic',
		speed: '200',
		width: '640',
		height: '450',
		iframe: true
	});
	
	$("div.news-list-item h3 a").bigTarget({
		hoverClass: 'news-hover', // CSS class applied to the click zone onHover
		clickZone: 'div:eq(0)' // jQuery parent selector
	});
});