var cf = new ContentFlow('contentFlow', {reflectionColor: "#000000"});
var stop_timer = false;

function Newsletter_onblur(contol) {
	if (contol.value == '')
		contol.value = 'Email Address...';
}

function Newsletter_onfocus(contol) {
	if (contol.value == 'Email Address...')
		contol.value = '';
}

function subscribesub(){
  document.ds_subscribe.submit();
}

$(document).ready(function()
{
	$('.scroll-pane').jScrollPane({scrollbarWidth:18, dragMinHeight:66, dragMaxHeight:66, showArrows:true});	
	$('.text_scroll').html($('#news_content').html());
	$('#news_content').html('');
	$("ul#news_ticker").liScroll({travelocity: speed}); 
	
	Timer_ContentFlow();	
	
	$('.flow').find('.item').mouseover(function() {
		   stop_timer=true;
		});
	$('.flow').find('.item').mouseout(function() {
		   stop_timer=false;
		});
				
});


function Timer_ContentFlow()
{
	 setTimeout(function()
     {
		if (!stop_timer)
		{	
		   cf.moveToIndex('next');
		}   

		Timer_ContentFlow();
		 
     }, 3000);
}
