// JavaScript Document
$(document).ready(function() {
	$('.queryTip').poshytip({
		className: 'tip-twitter',
		showTimeout: 1,
		alignTo: 'target',
		alignX: 'center',
		offsetY: 5,
		allowTipHover: false,
		fade: true,
		slide: true
	});
});

$(document).ready(function() {
	$("a[rel=lightbox]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'transitionIn'		: 'elastic',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
});


$(document).ready(function() {
	$('ul#NewsCarusel').carouFredSel({
		circular: true,
		auto: { pauseOnHover: true },
		scroll:{duration: 1000},
		direction: "up",
		padding : 4,
		items : 2,
	});
});



function _showFunction(){
	
		if(document.getElementById('Show').style.display == '' || document.getElementById('Show').style.display == 'block'){
			document.getElementById('Show').style.display = 'none';
			document.getElementById('Hidden').style.display = 'block';
			
			return true;
		}else{
			document.getElementById('Show').style.display = 'block';
			document.getElementById('Hidden').style.display = 'none';
			
			return true;
		}
	
}
