/*//////////////News Animation Start//////////*/
$(document).ready(function() {
$('#daterotator').cycle({ 
    fx:     'scrollUp', 
    speed:  'slow', 
    timeout: 7000, 
    cleartypeNoBg: true
});});

$(document).ready(function() {
$('#newsrotator').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 7000, 
    cleartypeNoBg: true
});});
/*////////////End News Animation///////////////////////////*/

/*///////////////////Banner Animation Start//////*/
$(document).ready(function() {
	var interval;
	$('ul#contentrotator')
		.roundabout()
		.hover(
			function() {
				clearInterval(interval);
			},
			function() {
				interval = startAutoPlay();
			}
		);
	
	interval = startAutoPlay();
});

function startAutoPlay() {
	return setInterval(function() {
		$('ul#contentrotator').roundabout_animateToNextChild();
	}, 6000);
}
/*////////////End Banner Animation//////////////*/

/*//////////////Item holders//////////*/
$(document).ready(function(){
$(".imagegalleryholder").hoverIntent({
				over: itemholderon, 
				timeout: 50, 
				out: itemholderoff
});
});
function itemholderon() {
$(this).find('.whitelayer').animate({"opacity": "show"}, 500);
}
function itemholderoff() {
$(this).find('.whitelayer').animate({"opacity": "hide"}, 500);
}
/*////////////////////////////////*/

/*////////////////////////Fancy Box///////////////////////*/
$(document).ready(function() {

	$("a#example2").fancybox({
		'overlayShow'	: true,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titlePosition'	: 'over'
	});

});
/*////////////////////////////////*/

$(document).ready(function() {
    $('#mycarousel').jcarousel({
    start: 1
    });
});

function show_divs(){
		document.getElementById('daterotator').style.visibility = 'visible';
		document.getElementById('newsrotator').style.visibility = 'visible';
}

